2026-10-22 18:10:20,510 - INFO - Domain Default found not creating
2026-10-22 18:10:20,766 - INFO - Project ctest-TestBasicPolicy-68132619 not found, creating it
2026-10-22 18:10:21,364 - INFO - Created Project:ctest-TestBasicPolicy-68132619, ID : b1e335a1-1796-4f62-b013-3e23bc8abf6f
2026-10-22 18:10:23,543 - INFO - ================================================================================
2026-10-22 18:10:23,543 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-22 18:10:23,543 - 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-10-22 18:10:23,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with
2026-10-22 18:10:23,836 - INFO - Initial checks done. Running the testcase now
2026-10-22 18:10:23,836 - INFO -
2026-10-22 18:10:24,636 - DEBUG - Response for create_network : {'network': {'id': '04d967a8-99ff-40f6-a143-94ec86b64e46', 'name': 'ctest-vn-69867254', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'project_id': 'b1e335a117964f62b0133e23bc8abf6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-vn-69867254'], 'port_security_enabled': True, 'description': ''}}
2026-10-22 18:10:24,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '14a196e5-912a-4a23-bfb8-998d29812a10', 'name': '', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'network_id': '04d967a8-99ff-40f6-a143-94ec86b64e46', 'ip_version': 4, 'cidr': '61.44.166.64/26', 'allocation_pools': [{'start': '61.44.166.66', 'end': '61.44.166.126'}], 'gateway_ip': '61.44.166.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.44.166.66', 'tags': [], 'project_id': 'b1e335a117964f62b0133e23bc8abf6f'}}
2026-10-22 18:10:24,890 - INFO - Created VN ctest-vn-69867254
2026-10-22 18:10:24,945 - DEBUG - VN ctest-vn-69867254 UUID is 04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:25,303 - DEBUG - Response for create_network : {'network': {'id': '4b723ecf-7a3f-4cb9-a153-903d22487ac2', 'name': 'ctest-vn-85747099', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'project_id': 'b1e335a117964f62b0133e23bc8abf6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-vn-85747099'], 'port_security_enabled': True, 'description': ''}}
2026-10-22 18:10:25,520 - DEBUG - Response for create_subnet : {'subnet': {'id': '72f508e1-3ca5-43ae-b1fa-6e991bd1bc62', 'name': '', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'network_id': '4b723ecf-7a3f-4cb9-a153-903d22487ac2', 'ip_version': 4, 'cidr': '107.147.248.128/26', 'allocation_pools': [{'start': '107.147.248.130', 'end': '107.147.248.190'}], 'gateway_ip': '107.147.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.147.248.130', 'tags': [], 'project_id': 'b1e335a117964f62b0133e23bc8abf6f'}}
2026-10-22 18:10:25,542 - INFO - Created VN ctest-vn-85747099
2026-10-22 18:10:25,602 - DEBUG - VN ctest-vn-85747099 UUID is 4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:25,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254, 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-68132619:ctest-vn-85747099, 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-10-22 18:10:26,086 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04d967a8-99ff-40f6-a143-94ec86b64e46', 'name': 'ctest-vn-69867254', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'project_id': 'b1e335a117964f62b0133e23bc8abf6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['14a196e5-912a-4a23-bfb8-998d29812a10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-vn-69867254'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-policy-allow-all-06006817']], 'subnet_ipam': [{'subnet_cidr': '61.44.166.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-22 18:10:26,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b723ecf-7a3f-4cb9-a153-903d22487ac2', 'name': 'ctest-vn-85747099', 'tenant_id': 'b1e335a117964f62b0133e23bc8abf6f', 'project_id': 'b1e335a117964f62b0133e23bc8abf6f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['72f508e1-3ca5-43ae-b1fa-6e991bd1bc62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-vn-85747099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-policy-allow-all-06006817']], 'subnet_ipam': [{'subnet_cidr': '107.147.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-22 18:10:26,522 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-22 18:10:26,951 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-22 18:10:26,988 - DEBUG - Requesting: http://10.0.0.163:8082/domain/e6ac93aa-8efa-45a0-980a-4eaf19e4bf1b
2026-10-22 18:10:27,006 - DEBUG - Requesting: http://10.0.0.163:8082/project/b1e335a1-1796-4f62-b013-3e23bc8abf6f
2026-10-22 18:10:27,087 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,101 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,114 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/70a75301-c833-4402-a059-965d6c6b037a
2026-10-22 18:10:27,125 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/70a75301-c833-4402-a059-965d6c6b037a
2026-10-22 18:10:27,134 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/43762701-f3a3-42b2-8a72-77915e357c98
2026-10-22 18:10:27,143 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-22 18:10:27,143 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,157 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/70a75301-c833-4402-a059-965d6c6b037a
2026-10-22 18:10:27,177 - INFO - Verified VN network id 12 for VN 04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,177 - INFO - Verifications in API Server for VN ctest-vn-69867254 passed
2026-10-22 18:10:27,177 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,191 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/70a75301-c833-4402-a059-965d6c6b037a
2026-10-22 18:10:27,205 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/70a75301-c833-4402-a059-965d6c6b037a
2026-10-22 18:10:27,218 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/43762701-f3a3-42b2-8a72-77915e357c98
2026-10-22 18:10:27,242 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68132619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '349424419933733110', 'uuid-lslong': '11620295207139298886'}, 'enable': 'true', 'created': '2026-10-22T18:10:24', 'last-modified': '2026-10-22T18:10:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.193520'}
2026-10-22 18:10:27,255 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-22 18:10:27,255 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69867254 passed
2026-10-22 18:10:27,256 - DEBUG - ====Verifying policy data for ctest-vn-69867254 in API_Server ======
2026-10-22 18:10:27,256 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-22 18:10:27,265 - DEBUG - Requesting: http://10.0.0.163:8082/domain/e6ac93aa-8efa-45a0-980a-4eaf19e4bf1b
2026-10-22 18:10:27,283 - DEBUG - Requesting: http://10.0.0.163:8082/project/b1e335a1-1796-4f62-b013-3e23bc8abf6f
2026-10-22 18:10:27,376 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/04d967a8-99ff-40f6-a143-94ec86b64e46
2026-10-22 18:10:27,392 - DEBUG - ==>Verifying data for policy with id: 02f3bc5c-9383-4fa0-9dbd-80dd2ce8067d, fqn: ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-policy-allow-all-06006817']
2026-10-22 18:10:27,392 - INFO - VN ctest-vn-69867254 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-22 18:10:27,392 - DEBUG - Verifying the vn in opserver
2026-10-22 18:10:27,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254 virtual network link through opserver 10.0.0.163
2026-10-22 18:10:27,393 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-22 18:10:27,816 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-22 18:10:27,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254?flat'}
2026-10-22 18:10:27,912 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-69867254 is found in opserver
2026-10-22 18:10:27,928 - DEBUG - Do not have enough data to verify VN in agent
2026-10-22 18:10:27,936 - DEBUG - VRF ids for VN ctest-vn-69867254: {}
2026-10-22 18:10:27,936 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-22 18:10:27,945 - DEBUG - Requesting: http://10.0.0.163:8082/domain/e6ac93aa-8efa-45a0-980a-4eaf19e4bf1b
2026-10-22 18:10:27,962 - DEBUG - Requesting: http://10.0.0.163:8082/project/b1e335a1-1796-4f62-b013-3e23bc8abf6f
2026-10-22 18:10:28,053 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,077 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,094 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5561d481-3ef4-4fc9-83be-16da64a7d255
2026-10-22 18:10:28,107 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5561d481-3ef4-4fc9-83be-16da64a7d255
2026-10-22 18:10:28,122 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/79091905-6a8b-44be-ab92-613190966f81
2026-10-22 18:10:28,135 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-22 18:10:28,135 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,151 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5561d481-3ef4-4fc9-83be-16da64a7d255
2026-10-22 18:10:28,176 - INFO - Verified VN network id 13 for VN 4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,176 - INFO - Verifications in API Server for VN ctest-vn-85747099 passed
2026-10-22 18:10:28,176 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,195 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5561d481-3ef4-4fc9-83be-16da64a7d255
2026-10-22 18:10:28,207 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5561d481-3ef4-4fc9-83be-16da64a7d255
2026-10-22 18:10:28,218 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/79091905-6a8b-44be-ab92-613190966f81
2026-10-22 18:10:28,234 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-85747099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68132619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5436476761019731129', 'uuid-lslong': '11624793655415962306'}, 'enable': 'true', 'created': '2026-10-22T18:10:25', 'last-modified': '2026-10-22T18:10:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.909559'}
2026-10-22 18:10:28,243 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-22 18:10:28,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85747099 passed
2026-10-22 18:10:28,243 - DEBUG - ====Verifying policy data for ctest-vn-85747099 in API_Server ======
2026-10-22 18:10:28,243 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-10-22 18:10:28,252 - DEBUG - Requesting: http://10.0.0.163:8082/domain/e6ac93aa-8efa-45a0-980a-4eaf19e4bf1b
2026-10-22 18:10:28,268 - DEBUG - Requesting: http://10.0.0.163:8082/project/b1e335a1-1796-4f62-b013-3e23bc8abf6f
2026-10-22 18:10:28,356 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/4b723ecf-7a3f-4cb9-a153-903d22487ac2
2026-10-22 18:10:28,371 - DEBUG - ==>Verifying data for policy with id: 02f3bc5c-9383-4fa0-9dbd-80dd2ce8067d, fqn: ['default-domain', 'ctest-TestBasicPolicy-68132619', 'ctest-policy-allow-all-06006817']
2026-10-22 18:10:28,371 - INFO - VN ctest-vn-85747099 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-22 18:10:28,371 - DEBUG - Verifying the vn in opserver
2026-10-22 18:10:28,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-85747099 virtual network link through opserver 10.0.0.163
2026-10-22 18:10:28,372 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-10-22 18:10:28,386 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-85747099', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-85747099?flat'}
2026-10-22 18:10:28,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68132619:ctest-vn-85747099 is found in opserver
2026-10-22 18:10:28,403 - DEBUG - Do not have enough data to verify VN in agent
2026-10-22 18:10:28,411 - DEBUG - VRF ids for VN ctest-vn-85747099: {}
2026-10-22 18:10:28,504 - DEBUG - Services list from nova: [