2026-08-26 12:45:47,761 - INFO - Domain Default found not creating
2026-08-26 12:45:47,942 - INFO - Project ctest-TestBasicPolicy-56043064 not found, creating it
2026-08-26 12:45:48,438 - INFO - Created Project:ctest-TestBasicPolicy-56043064, ID : 683bf3ff-70b8-4bf4-80e8-b637d9ce29dc
2026-08-26 12:45:50,049 - INFO - ================================================================================
2026-08-26 12:45:50,049 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-26 12:45:50,049 - 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
2026-08-26 12:45:50,310 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-08-26 12:45:50,310 - INFO - Initial checks done. Running the testcase now
2026-08-26 12:45:50,310 - INFO -
2026-08-26 12:45:50,914 - DEBUG - Response for create_network : {'network': {'id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'name': 'ctest-vn-88787198', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-88787198'], 'port_security_enabled': True, 'description': ''}}
2026-08-26 12:45:51,092 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e99d5516-316f-4909-aa78-52cea3908d8c', 'name': '', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'network_id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'ip_version': 4, 'cidr': '81.234.30.192/26', 'allocation_pools': [{'start': '81.234.30.194', 'end': '81.234.30.254'}], 'gateway_ip': '81.234.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.234.30.194', 'tags': [], 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc'}}
2026-08-26 12:45:51,109 - INFO - Created VN ctest-vn-88787198
2026-08-26 12:45:51,160 - DEBUG - VN ctest-vn-88787198 UUID is fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:51,498 - DEBUG - Response for create_network : {'network': {'id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'name': 'ctest-vn-32464368', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-32464368'], 'port_security_enabled': True, 'description': ''}}
2026-08-26 12:45:51,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '5627daff-72ce-4f3b-8989-937b01c6a0f9', 'name': '', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'network_id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'ip_version': 4, 'cidr': '123.45.199.64/26', 'allocation_pools': [{'start': '123.45.199.66', 'end': '123.45.199.126'}], 'gateway_ip': '123.45.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.45.199.66', 'tags': [], 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc'}}
2026-08-26 12:45:51,721 - INFO - Created VN ctest-vn-32464368
2026-08-26 12:45:51,776 - DEBUG - VN ctest-vn-32464368 UUID is 2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:51,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198, 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-56043064:ctest-vn-32464368, 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]
2026-08-26 12:45:52,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fadbb2c1-bff0-4eb5-a03e-0e33e33a1056', 'name': 'ctest-vn-88787198', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e99d5516-316f-4909-aa78-52cea3908d8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-88787198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']], 'subnet_ipam': [{'subnet_cidr': '81.234.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-26 12:45:52,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ee5246a-483b-4391-a894-47d6b93f8b08', 'name': 'ctest-vn-32464368', 'tenant_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'project_id': '683bf3ff70b84bf480e8b637d9ce29dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5627daff-72ce-4f3b-8989-937b01c6a0f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-vn-32464368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']], 'subnet_ipam': [{'subnet_cidr': '123.45.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-26 12:45:52,644 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-26 12:45:52,974 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-26 12:45:53,005 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208
2026-08-26 12:45:53,018 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc
2026-08-26 12:45:53,099 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,112 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,123 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90
2026-08-26 12:45:53,133 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90
2026-08-26 12:45:53,141 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/84295037-f2f3-490c-8528-46525d9a2bf2
2026-08-26 12:45:53,149 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-26 12:45:53,149 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,159 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90
2026-08-26 12:45:53,173 - INFO - Verified VN network id 12 for VN fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,173 - INFO - Verifications in API Server for VN ctest-vn-88787198 passed
2026-08-26 12:45:53,173 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,183 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90
2026-08-26 12:45:53,191 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/e9f5971f-9017-4731-b64c-115a59b0cb90
2026-08-26 12:45:53,200 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/84295037-f2f3-490c-8528-46525d9a2bf2
2026-08-26 12:45:53,214 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56043064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18076238074600246965', 'uuid-lslong': '11546682110642884694'}, 'enable': 'true', 'created': '2026-08-26T12:45:50', 'last-modified': '2026-08-26T12:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000885'}
2026-08-26 12:45:53,221 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-26 12:45:53,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88787198 passed
2026-08-26 12:45:53,221 - DEBUG - ====Verifying policy data for ctest-vn-88787198 in API_Server ======
2026-08-26 12:45:53,221 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-26 12:45:53,227 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208
2026-08-26 12:45:53,238 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc
2026-08-26 12:45:53,311 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/fadbb2c1-bff0-4eb5-a03e-0e33e33a1056
2026-08-26 12:45:53,322 - DEBUG - ==>Verifying data for policy with id: 6ed61b94-71ea-4ae1-be6f-c970e2d870c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']
2026-08-26 12:45:53,322 - INFO - VN ctest-vn-88787198 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-26 12:45:53,322 - DEBUG - Verifying the vn in opserver
2026-08-26 12:45:53,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198 virtual network link through opserver 10.0.0.177
2026-08-26 12:45:53,322 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-26 12:45:53,648 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-26 12:45:53,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198?flat'}
2026-08-26 12:45:53,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-88787198 is found in opserver
2026-08-26 12:45:53,715 - DEBUG - Do not have enough data to verify VN in agent
2026-08-26 12:45:53,721 - DEBUG - VRF ids for VN ctest-vn-88787198: {}
2026-08-26 12:45:53,721 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-26 12:45:53,727 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208
2026-08-26 12:45:53,738 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc
2026-08-26 12:45:53,815 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:53,829 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:53,839 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c
2026-08-26 12:45:53,847 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c
2026-08-26 12:45:53,857 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8c327eaf-2334-4958-9277-0c00a85c7b03
2026-08-26 12:45:53,865 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-26 12:45:53,865 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:53,877 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c
2026-08-26 12:45:53,894 - INFO - Verified VN network id 13 for VN 2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:53,894 - INFO - Verifications in API Server for VN ctest-vn-32464368 passed
2026-08-26 12:45:53,894 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:53,905 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c
2026-08-26 12:45:53,913 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9c3ff48f-babc-410f-a503-f6331708bd2c
2026-08-26 12:45:53,920 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/8c327eaf-2334-4958-9277-0c00a85c7b03
2026-08-26 12:45:53,933 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56043064', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3379147134308402065', 'uuid-lslong': '12147413082481593096'}, 'enable': 'true', 'created': '2026-08-26T12:45:51', 'last-modified': '2026-08-26T12:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476620'}
2026-08-26 12:45:53,940 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-26 12:45:53,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32464368 passed
2026-08-26 12:45:53,940 - DEBUG - ====Verifying policy data for ctest-vn-32464368 in API_Server ======
2026-08-26 12:45:53,940 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-26 12:45:53,946 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208
2026-08-26 12:45:53,958 - DEBUG - Requesting: http://10.0.0.177:8082/project/683bf3ff-70b8-4bf4-80e8-b637d9ce29dc
2026-08-26 12:45:54,044 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/2ee5246a-483b-4391-a894-47d6b93f8b08
2026-08-26 12:45:54,054 - DEBUG - ==>Verifying data for policy with id: 6ed61b94-71ea-4ae1-be6f-c970e2d870c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-56043064', 'ctest-policy-allow-all-91429783']
2026-08-26 12:45:54,054 - INFO - VN ctest-vn-32464368 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-26 12:45:54,054 - DEBUG - Verifying the vn in opserver
2026-08-26 12:45:54,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368 virtual network link through opserver 10.0.0.177
2026-08-26 12:45:54,054 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-26 12:45:54,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368?flat'}
2026-08-26 12:45:54,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56043064:ctest-vn-32464368 is found in opserver
2026-08-26 12:45:54,077 - DEBUG - Do not have enough data to verify VN in agent
2026-08-26 12:45:54,082 - DEBUG - VRF ids for VN ctest-vn-32464368: {}
2026-08-26 12:45:54,153 - DEBUG - Services list from nova: [