2025-06-30 16:19:53,814 - INFO - Domain Default found not creating
2025-06-30 16:19:53,957 - INFO - Project ctest-TestBasicPolicy-73515041 not found, creating it
2025-06-30 16:19:54,475 - INFO - Created Project:ctest-TestBasicPolicy-73515041, ID : 724b867e-c4a2-4e7a-b274-bf2c2f61fcb7
2025-06-30 16:19:55,896 - INFO - ================================================================================
2025-06-30 16:19:55,897 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 16:19:55,897 - 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-06-30 16:19:56,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with
2025-06-30 16:19:56,155 - INFO - Initial checks done. Running the testcase now
2025-06-30 16:19:56,155 - INFO -
2025-06-30 16:19:56,696 - DEBUG - Response for create_network : {'network': {'id': '5567d89c-6565-4373-b359-ccf056c724d8', 'name': 'ctest-vn-31222376', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-vn-31222376'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:56,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '619be82f-8a89-4cf4-9d18-f97aede7f844', 'name': '', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'network_id': '5567d89c-6565-4373-b359-ccf056c724d8', 'ip_version': 4, 'cidr': '118.249.53.128/26', 'allocation_pools': [{'start': '118.249.53.130', 'end': '118.249.53.190'}], 'gateway_ip': '118.249.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.249.53.130', 'tags': [], 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7'}}
2025-06-30 16:19:56,930 - INFO - Created VN ctest-vn-31222376
2025-06-30 16:19:56,985 - DEBUG - VN ctest-vn-31222376 UUID is 5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:57,272 - DEBUG - Response for create_network : {'network': {'id': '0a634210-9f1c-4edc-aa0a-09487efaf92c', 'name': 'ctest-vn-77538697', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-vn-77538697'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:57,488 - DEBUG - Response for create_subnet : {'subnet': {'id': '34e2346d-0197-415d-b8c2-6d04c2ca1247', 'name': '', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'network_id': '0a634210-9f1c-4edc-aa0a-09487efaf92c', 'ip_version': 4, 'cidr': '31.178.97.128/26', 'allocation_pools': [{'start': '31.178.97.130', 'end': '31.178.97.190'}], 'gateway_ip': '31.178.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.178.97.130', 'tags': [], 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7'}}
2025-06-30 16:19:57,508 - INFO - Created VN ctest-vn-77538697
2025-06-30 16:19:57,561 - DEBUG - VN ctest-vn-77538697 UUID is 0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:57,672 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376, 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-73515041:ctest-vn-77538697, 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-06-30 16:19:57,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5567d89c-6565-4373-b359-ccf056c724d8', 'name': 'ctest-vn-31222376', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['619be82f-8a89-4cf4-9d18-f97aede7f844'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-vn-31222376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-policy-allow-all-44582273']], 'subnet_ipam': [{'subnet_cidr': '118.249.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:58,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a634210-9f1c-4edc-aa0a-09487efaf92c', 'name': 'ctest-vn-77538697', 'tenant_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'project_id': '724b867ec4a24e7ab274bf2c2f61fcb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34e2346d-0197-415d-b8c2-6d04c2ca1247'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-vn-77538697'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-policy-allow-all-44582273']], 'subnet_ipam': [{'subnet_cidr': '31.178.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:58,401 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 16:19:58,697 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 16:19:58,727 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3baa1c33-1272-4d6e-85fa-aa0729fdbfb2
2025-06-30 16:19:58,744 - DEBUG - Requesting: http://10.0.0.19:8082/project/724b867e-c4a2-4e7a-b274-bf2c2f61fcb7
2025-06-30 16:19:58,823 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:58,837 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:58,848 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/00e59896-095e-48d4-b14a-62fa861ce176
2025-06-30 16:19:58,857 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/00e59896-095e-48d4-b14a-62fa861ce176
2025-06-30 16:19:58,864 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ccd74d21-8864-4343-8615-73ad433e9277
2025-06-30 16:19:58,872 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 16:19:58,872 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:58,882 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/00e59896-095e-48d4-b14a-62fa861ce176
2025-06-30 16:19:58,897 - INFO - Verified VN network id 7 for VN 5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:58,897 - INFO - Verifications in API Server for VN ctest-vn-31222376 passed
2025-06-30 16:19:58,897 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:58,907 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/00e59896-095e-48d4-b14a-62fa861ce176
2025-06-30 16:19:58,916 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/00e59896-095e-48d4-b14a-62fa861ce176
2025-06-30 16:19:58,924 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ccd74d21-8864-4343-8615-73ad433e9277
2025-06-30 16:19:58,937 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73515041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6154125582052705139', 'uuid-lslong': '12923585938336457944'}, 'enable': 'true', 'created': '2025-06-30T16:19:56', 'last-modified': '2025-06-30T16:19:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990932'}
2025-06-30 16:19:58,944 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 16:19:58,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31222376 passed
2025-06-30 16:19:58,944 - DEBUG - ====Verifying policy data for ctest-vn-31222376 in API_Server ======
2025-06-30 16:19:58,944 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 16:19:58,950 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3baa1c33-1272-4d6e-85fa-aa0729fdbfb2
2025-06-30 16:19:58,963 - DEBUG - Requesting: http://10.0.0.19:8082/project/724b867e-c4a2-4e7a-b274-bf2c2f61fcb7
2025-06-30 16:19:59,036 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5567d89c-6565-4373-b359-ccf056c724d8
2025-06-30 16:19:59,046 - DEBUG - ==>Verifying data for policy with id: f380e2a2-382e-40bc-b6cc-acc331fea8e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-policy-allow-all-44582273']
2025-06-30 16:19:59,046 - INFO - VN ctest-vn-31222376 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 16:19:59,047 - DEBUG - Verifying the vn in opserver
2025-06-30 16:19:59,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376 virtual network link through opserver 10.0.0.19
2025-06-30 16:19:59,047 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 16:19:59,339 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 16:19:59,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376?flat'}
2025-06-30 16:19:59,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-31222376 is found in opserver
2025-06-30 16:19:59,402 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 16:19:59,408 - DEBUG - VRF ids for VN ctest-vn-31222376: {}
2025-06-30 16:19:59,408 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 16:19:59,413 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3baa1c33-1272-4d6e-85fa-aa0729fdbfb2
2025-06-30 16:19:59,425 - DEBUG - Requesting: http://10.0.0.19:8082/project/724b867e-c4a2-4e7a-b274-bf2c2f61fcb7
2025-06-30 16:19:59,494 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,506 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,516 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/99281dd4-ecb0-40f8-a922-a6dc75a86db1
2025-06-30 16:19:59,524 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/99281dd4-ecb0-40f8-a922-a6dc75a86db1
2025-06-30 16:19:59,531 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/dfed6d4b-a6ec-49f5-aa65-e7eb4081c03a
2025-06-30 16:19:59,537 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 16:19:59,538 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,547 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/99281dd4-ecb0-40f8-a922-a6dc75a86db1
2025-06-30 16:19:59,563 - INFO - Verified VN network id 8 for VN 0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,563 - INFO - Verifications in API Server for VN ctest-vn-77538697 passed
2025-06-30 16:19:59,563 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,573 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/99281dd4-ecb0-40f8-a922-a6dc75a86db1
2025-06-30 16:19:59,581 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/99281dd4-ecb0-40f8-a922-a6dc75a86db1
2025-06-30 16:19:59,588 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/dfed6d4b-a6ec-49f5-aa65-e7eb4081c03a
2025-06-30 16:19:59,600 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-77538697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73515041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '748514602229976796', 'uuid-lslong': '12252615943187527980'}, 'enable': 'true', 'created': '2025-06-30T16:19:57', 'last-modified': '2025-06-30T16:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420807'}
2025-06-30 16:19:59,607 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 16:19:59,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77538697 passed
2025-06-30 16:19:59,607 - DEBUG - ====Verifying policy data for ctest-vn-77538697 in API_Server ======
2025-06-30 16:19:59,607 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-30 16:19:59,614 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3baa1c33-1272-4d6e-85fa-aa0729fdbfb2
2025-06-30 16:19:59,625 - DEBUG - Requesting: http://10.0.0.19:8082/project/724b867e-c4a2-4e7a-b274-bf2c2f61fcb7
2025-06-30 16:19:59,693 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0a634210-9f1c-4edc-aa0a-09487efaf92c
2025-06-30 16:19:59,703 - DEBUG - ==>Verifying data for policy with id: f380e2a2-382e-40bc-b6cc-acc331fea8e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-73515041', 'ctest-policy-allow-all-44582273']
2025-06-30 16:19:59,703 - INFO - VN ctest-vn-77538697 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 16:19:59,703 - DEBUG - Verifying the vn in opserver
2025-06-30 16:19:59,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-77538697 virtual network link through opserver 10.0.0.19
2025-06-30 16:19:59,703 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-30 16:19:59,713 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-77538697', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-77538697?flat'}
2025-06-30 16:19:59,713 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73515041:ctest-vn-77538697 is found in opserver
2025-06-30 16:19:59,724 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 16:19:59,728 - DEBUG - VRF ids for VN ctest-vn-77538697: {}
2025-06-30 16:19:59,782 - DEBUG - Services list from nova: [