2026-11-16 15:47:28,476 - INFO - Domain Default found not creating
2026-11-16 15:47:28,674 - INFO - Project ctest-TestBasicPolicy-81973921 not found, creating it
2026-11-16 15:47:29,158 - INFO - Created Project:ctest-TestBasicPolicy-81973921, ID : d003d091-c879-40e6-a014-32e007c7a8cb
2026-11-16 15:47:30,840 - INFO - ================================================================================
2026-11-16 15:47:30,840 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-16 15:47:30,840 - 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-11-16 15:47:31,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-11-16 15:47:31,101 - INFO - Initial checks done. Running the testcase now
2026-11-16 15:47:31,101 - INFO -
2026-11-16 15:47:31,718 - DEBUG - Response for create_network : {'network': {'id': '4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c', 'name': 'ctest-vn-05352880', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'project_id': 'd003d091c87940e6a01432e007c7a8cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-vn-05352880'], 'port_security_enabled': True, 'description': ''}}
2026-11-16 15:47:31,924 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a4c2a01-8ab9-449b-b4dc-657930bfb8f0', 'name': '', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'network_id': '4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c', 'ip_version': 4, 'cidr': '25.120.196.64/26', 'allocation_pools': [{'start': '25.120.196.66', 'end': '25.120.196.126'}], 'gateway_ip': '25.120.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.120.196.66', 'tags': [], 'project_id': 'd003d091c87940e6a01432e007c7a8cb'}}
2026-11-16 15:47:31,944 - INFO - Created VN ctest-vn-05352880
2026-11-16 15:47:31,998 - DEBUG - VN ctest-vn-05352880 UUID is 4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:32,343 - DEBUG - Response for create_network : {'network': {'id': '5b55cb1b-62f6-4fb3-8538-e419b58bd862', 'name': 'ctest-vn-76505831', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'project_id': 'd003d091c87940e6a01432e007c7a8cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-vn-76505831'], 'port_security_enabled': True, 'description': ''}}
2026-11-16 15:47:32,506 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed3b90aa-e72c-4445-9178-535324ba2720', 'name': '', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'network_id': '5b55cb1b-62f6-4fb3-8538-e419b58bd862', 'ip_version': 4, 'cidr': '182.198.107.0/26', 'allocation_pools': [{'start': '182.198.107.2', 'end': '182.198.107.62'}], 'gateway_ip': '182.198.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.198.107.2', 'tags': [], 'project_id': 'd003d091c87940e6a01432e007c7a8cb'}}
2026-11-16 15:47:32,522 - INFO - Created VN ctest-vn-76505831
2026-11-16 15:47:32,582 - DEBUG - VN ctest-vn-76505831 UUID is 5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:32,694 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880, 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-81973921:ctest-vn-76505831, 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-11-16 15:47:32,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c', 'name': 'ctest-vn-05352880', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'project_id': 'd003d091c87940e6a01432e007c7a8cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6a4c2a01-8ab9-449b-b4dc-657930bfb8f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-vn-05352880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-policy-allow-all-35633214']], 'subnet_ipam': [{'subnet_cidr': '25.120.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-16 15:47:33,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b55cb1b-62f6-4fb3-8538-e419b58bd862', 'name': 'ctest-vn-76505831', 'tenant_id': 'd003d091c87940e6a01432e007c7a8cb', 'project_id': 'd003d091c87940e6a01432e007c7a8cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ed3b90aa-e72c-4445-9178-535324ba2720'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-vn-76505831'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-policy-allow-all-35633214']], 'subnet_ipam': [{'subnet_cidr': '182.198.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-16 15:47:33,350 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-16 15:47:33,713 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-16 15:47:33,739 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b
2026-11-16 15:47:33,750 - DEBUG - Requesting: http://10.0.0.38:8082/project/d003d091-c879-40e6-a014-32e007c7a8cb
2026-11-16 15:47:33,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:33,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:33,849 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d35a0468-4dfb-47a6-9017-6c3043da643a
2026-11-16 15:47:33,856 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d35a0468-4dfb-47a6-9017-6c3043da643a
2026-11-16 15:47:33,862 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe3d35dd-fd7f-42cd-b90d-1496d4d579d5
2026-11-16 15:47:33,868 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-16 15:47:33,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:33,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d35a0468-4dfb-47a6-9017-6c3043da643a
2026-11-16 15:47:33,887 - INFO - Verified VN network id 11 for VN 4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:33,888 - INFO - Verifications in API Server for VN ctest-vn-05352880 passed
2026-11-16 15:47:33,888 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:33,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d35a0468-4dfb-47a6-9017-6c3043da643a
2026-11-16 15:47:33,903 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d35a0468-4dfb-47a6-9017-6c3043da643a
2026-11-16 15:47:33,910 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe3d35dd-fd7f-42cd-b90d-1496d4d579d5
2026-11-16 15:47:33,922 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81973921', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5682821076001705932', 'uuid-lslong': '13724055140308950044'}, 'enable': 'true', 'created': '2026-11-16T15:47:31', 'last-modified': '2026-11-16T15:47:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953158'}
2026-11-16 15:47:33,930 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-16 15:47:33,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05352880 passed
2026-11-16 15:47:33,930 - DEBUG - ====Verifying policy data for ctest-vn-05352880 in API_Server ======
2026-11-16 15:47:33,931 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-16 15:47:33,936 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b
2026-11-16 15:47:33,947 - DEBUG - Requesting: http://10.0.0.38:8082/project/d003d091-c879-40e6-a014-32e007c7a8cb
2026-11-16 15:47:34,017 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4edd6fa8-e52f-4fcc-be75-a36fdbfd1c1c
2026-11-16 15:47:34,027 - DEBUG - ==>Verifying data for policy with id: f32db447-c2c6-49a6-a1e6-c5a6ef4201c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-policy-allow-all-35633214']
2026-11-16 15:47:34,027 - INFO - VN ctest-vn-05352880 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-16 15:47:34,027 - DEBUG - Verifying the vn in opserver
2026-11-16 15:47:34,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880 virtual network link through opserver 10.0.0.38
2026-11-16 15:47:34,028 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-16 15:47:34,390 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-16 15:47:34,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880?flat'}
2026-11-16 15:47:34,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-05352880 is found in opserver
2026-11-16 15:47:34,454 - DEBUG - Do not have enough data to verify VN in agent
2026-11-16 15:47:34,459 - DEBUG - VRF ids for VN ctest-vn-05352880: {}
2026-11-16 15:47:34,459 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-16 15:47:34,464 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b
2026-11-16 15:47:34,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/d003d091-c879-40e6-a014-32e007c7a8cb
2026-11-16 15:47:34,546 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,568 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ce62bff-8667-4f9a-9840-13be7f9c5482
2026-11-16 15:47:34,576 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ce62bff-8667-4f9a-9840-13be7f9c5482
2026-11-16 15:47:34,583 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/188d6602-7f68-4d19-a477-900052d8721e
2026-11-16 15:47:34,589 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-16 15:47:34,589 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,598 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ce62bff-8667-4f9a-9840-13be7f9c5482
2026-11-16 15:47:34,613 - INFO - Verified VN network id 12 for VN 5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,614 - INFO - Verifications in API Server for VN ctest-vn-76505831 passed
2026-11-16 15:47:34,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ce62bff-8667-4f9a-9840-13be7f9c5482
2026-11-16 15:47:34,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ce62bff-8667-4f9a-9840-13be7f9c5482
2026-11-16 15:47:34,637 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/188d6602-7f68-4d19-a477-900052d8721e
2026-11-16 15:47:34,651 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-76505831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81973921', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6581389748956712883', 'uuid-lslong': '9599673404811368546'}, 'enable': 'true', 'created': '2026-11-16T15:47:32', 'last-modified': '2026-11-16T15:47:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488684'}
2026-11-16 15:47:34,659 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-16 15:47:34,659 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76505831 passed
2026-11-16 15:47:34,659 - DEBUG - ====Verifying policy data for ctest-vn-76505831 in API_Server ======
2026-11-16 15:47:34,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-16 15:47:34,665 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7860507-8b5a-4ab6-9a83-386b090a353b
2026-11-16 15:47:34,676 - DEBUG - Requesting: http://10.0.0.38:8082/project/d003d091-c879-40e6-a014-32e007c7a8cb
2026-11-16 15:47:34,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5b55cb1b-62f6-4fb3-8538-e419b58bd862
2026-11-16 15:47:34,763 - DEBUG - ==>Verifying data for policy with id: f32db447-c2c6-49a6-a1e6-c5a6ef4201c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-81973921', 'ctest-policy-allow-all-35633214']
2026-11-16 15:47:34,764 - INFO - VN ctest-vn-76505831 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-16 15:47:34,764 - DEBUG - Verifying the vn in opserver
2026-11-16 15:47:34,764 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-76505831 virtual network link through opserver 10.0.0.38
2026-11-16 15:47:34,764 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-16 15:47:34,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-76505831', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-76505831?flat'}
2026-11-16 15:47:34,774 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81973921:ctest-vn-76505831 is found in opserver
2026-11-16 15:47:34,785 - DEBUG - Do not have enough data to verify VN in agent
2026-11-16 15:47:34,790 - DEBUG - VRF ids for VN ctest-vn-76505831: {}
2026-11-16 15:47:34,849 - DEBUG - Services list from nova: [