2025-04-09 16:30:07,564 - INFO - Domain Default found not creating
2025-04-09 16:30:07,883 - INFO - Project ctest-TestBasicPolicy-75469671 not found, creating it
2025-04-09 16:30:08,688 - INFO - Created Project:ctest-TestBasicPolicy-75469671, ID : a94a4efe-d7c5-4baf-b3a6-c89b7c9c59ec
2025-04-09 16:30:10,346 - INFO - ================================================================================
2025-04-09 16:30:10,347 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 16:30:10,347 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-04-09 16:30:10,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-04-09 16:30:10,608 - INFO - Initial checks done. Running the testcase now
2025-04-09 16:30:10,608 - INFO -
2025-04-09 16:30:11,219 - DEBUG - Response for create_network : {'network': {'id': '4e40c29e-cacd-4142-9c1b-b392da7c0de3', 'name': 'ctest-vn-54084441', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-vn-54084441'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:30:11,435 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c205534-09b4-45e4-9232-b279277e9e26', 'name': '', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'network_id': '4e40c29e-cacd-4142-9c1b-b392da7c0de3', 'ip_version': 4, 'cidr': '217.187.142.192/26', 'allocation_pools': [{'start': '217.187.142.194', 'end': '217.187.142.254'}], 'gateway_ip': '217.187.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.187.142.194', 'tags': [], 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec'}}
2025-04-09 16:30:11,462 - INFO - Created VN ctest-vn-54084441
2025-04-09 16:30:11,521 - DEBUG - VN ctest-vn-54084441 UUID is 4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:11,873 - DEBUG - Response for create_network : {'network': {'id': 'b00c9079-1313-456f-a72b-0d97418e9ae0', 'name': 'ctest-vn-22207604', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-vn-22207604'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:30:12,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '56619f0e-46c5-412a-b20e-caf7cbde1853', 'name': '', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'network_id': 'b00c9079-1313-456f-a72b-0d97418e9ae0', 'ip_version': 4, 'cidr': '83.135.8.64/26', 'allocation_pools': [{'start': '83.135.8.66', 'end': '83.135.8.126'}], 'gateway_ip': '83.135.8.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.135.8.66', 'tags': [], 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec'}}
2025-04-09 16:30:12,126 - INFO - Created VN ctest-vn-22207604
2025-04-09 16:30:12,181 - DEBUG - VN ctest-vn-22207604 UUID is b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:12,319 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-04-09 16:30:12,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e40c29e-cacd-4142-9c1b-b392da7c0de3', 'name': 'ctest-vn-54084441', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c205534-09b4-45e4-9232-b279277e9e26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-vn-54084441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-policy-allow-all-70251743']], 'subnet_ipam': [{'subnet_cidr': '217.187.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:30:12,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b00c9079-1313-456f-a72b-0d97418e9ae0', 'name': 'ctest-vn-22207604', 'tenant_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'project_id': 'a94a4efed7c54bafb3a6c89b7c9c59ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56619f0e-46c5-412a-b20e-caf7cbde1853'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-vn-22207604'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-policy-allow-all-70251743']], 'subnet_ipam': [{'subnet_cidr': '83.135.8.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 16:30:13,140 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 16:30:13,519 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 16:30:13,569 - DEBUG - Requesting: http://10.0.0.48:8082/domain/7668f027-eb57-47cc-91d2-f0ace78159ef
2025-04-09 16:30:13,585 - DEBUG - Requesting: http://10.0.0.48:8082/project/a94a4efe-d7c5-4baf-b3a6-c89b7c9c59ec
2025-04-09 16:30:13,670 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,685 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,697 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1769cc03-dc42-4065-b2fe-d9551208c2ac
2025-04-09 16:30:13,707 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1769cc03-dc42-4065-b2fe-d9551208c2ac
2025-04-09 16:30:13,716 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b4d249ce-af38-4173-98c2-eb0622adec11
2025-04-09 16:30:13,725 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 16:30:13,725 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,738 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1769cc03-dc42-4065-b2fe-d9551208c2ac
2025-04-09 16:30:13,756 - INFO - Verified VN network id 8 for VN 4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,757 - INFO - Verifications in API Server for VN ctest-vn-54084441 passed
2025-04-09 16:30:13,757 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,768 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1769cc03-dc42-4065-b2fe-d9551208c2ac
2025-04-09 16:30:13,777 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1769cc03-dc42-4065-b2fe-d9551208c2ac
2025-04-09 16:30:13,787 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/b4d249ce-af38-4173-98c2-eb0622adec11
2025-04-09 16:30:13,802 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75469671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5638720720730931522', 'uuid-lslong': '11248781937600105955'}, 'enable': 'true', 'created': '2025-04-09T16:30:11', 'last-modified': '2025-04-09T16:30:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.157629'}
2025-04-09 16:30:13,810 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 16:30:13,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54084441 passed
2025-04-09 16:30:13,810 - DEBUG - ====Verifying policy data for ctest-vn-54084441 in API_Server ======
2025-04-09 16:30:13,810 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 16:30:13,819 - DEBUG - Requesting: http://10.0.0.48:8082/domain/7668f027-eb57-47cc-91d2-f0ace78159ef
2025-04-09 16:30:13,836 - DEBUG - Requesting: http://10.0.0.48:8082/project/a94a4efe-d7c5-4baf-b3a6-c89b7c9c59ec
2025-04-09 16:30:13,917 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e40c29e-cacd-4142-9c1b-b392da7c0de3
2025-04-09 16:30:13,931 - DEBUG - ==>Verifying data for policy with id: 360eb33f-20e7-46ef-986b-d1410a1001af, fqn: ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-policy-allow-all-70251743']
2025-04-09 16:30:13,931 - INFO - VN ctest-vn-54084441 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 16:30:13,931 - DEBUG - Verifying the vn in opserver
2025-04-09 16:30:13,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441 virtual network link through opserver 10.0.0.48
2025-04-09 16:30:13,931 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 16:30:14,228 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 16:30:14,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441?flat'}
2025-04-09 16:30:14,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-54084441 is found in opserver
2025-04-09 16:30:14,318 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 16:30:14,325 - DEBUG - VRF ids for VN ctest-vn-54084441: {}
2025-04-09 16:30:14,326 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 16:30:14,334 - DEBUG - Requesting: http://10.0.0.48:8082/domain/7668f027-eb57-47cc-91d2-f0ace78159ef
2025-04-09 16:30:14,350 - DEBUG - Requesting: http://10.0.0.48:8082/project/a94a4efe-d7c5-4baf-b3a6-c89b7c9c59ec
2025-04-09 16:30:14,426 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,442 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,455 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8c589c3-5b8d-4de8-9ba4-465d2dcec378
2025-04-09 16:30:14,465 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8c589c3-5b8d-4de8-9ba4-465d2dcec378
2025-04-09 16:30:14,476 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f2a2286a-3b9d-4ee2-a027-6ddb951f09ed
2025-04-09 16:30:14,487 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 16:30:14,487 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,500 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8c589c3-5b8d-4de8-9ba4-465d2dcec378
2025-04-09 16:30:14,519 - INFO - Verified VN network id 9 for VN b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,519 - INFO - Verifications in API Server for VN ctest-vn-22207604 passed
2025-04-09 16:30:14,519 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,533 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8c589c3-5b8d-4de8-9ba4-465d2dcec378
2025-04-09 16:30:14,543 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8c589c3-5b8d-4de8-9ba4-465d2dcec378
2025-04-09 16:30:14,553 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f2a2286a-3b9d-4ee2-a027-6ddb951f09ed
2025-04-09 16:30:14,569 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75469671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12685673100081317231', 'uuid-lslong': '12045736571623611104'}, 'enable': 'true', 'created': '2025-04-09T16:30:11', 'last-modified': '2025-04-09T16:30:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.649152'}
2025-04-09 16:30:14,577 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 16:30:14,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22207604 passed
2025-04-09 16:30:14,578 - DEBUG - ====Verifying policy data for ctest-vn-22207604 in API_Server ======
2025-04-09 16:30:14,578 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-09 16:30:14,599 - DEBUG - Requesting: http://10.0.0.48:8082/domain/7668f027-eb57-47cc-91d2-f0ace78159ef
2025-04-09 16:30:14,617 - DEBUG - Requesting: http://10.0.0.48:8082/project/a94a4efe-d7c5-4baf-b3a6-c89b7c9c59ec
2025-04-09 16:30:14,701 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/b00c9079-1313-456f-a72b-0d97418e9ae0
2025-04-09 16:30:14,716 - DEBUG - ==>Verifying data for policy with id: 360eb33f-20e7-46ef-986b-d1410a1001af, fqn: ['default-domain', 'ctest-TestBasicPolicy-75469671', 'ctest-policy-allow-all-70251743']
2025-04-09 16:30:14,716 - INFO - VN ctest-vn-22207604 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 16:30:14,717 - DEBUG - Verifying the vn in opserver
2025-04-09 16:30:14,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604 virtual network link through opserver 10.0.0.48
2025-04-09 16:30:14,717 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-09 16:30:14,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604?flat'}
2025-04-09 16:30:14,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75469671:ctest-vn-22207604 is found in opserver
2025-04-09 16:30:14,745 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 16:30:14,752 - DEBUG - VRF ids for VN ctest-vn-22207604: {}
2025-04-09 16:30:14,828 - DEBUG - Services list from nova: [