2026-09-07 02:17:14,788 - INFO - Domain Default found not creating
2026-09-07 02:17:14,946 - INFO - Project ctest-TestBasicPolicy-93916189 not found, creating it
2026-09-07 02:17:15,449 - INFO - Created Project:ctest-TestBasicPolicy-93916189, ID : b7a1a70c-d255-40da-9fef-f93a0edc1999
2026-09-07 02:17:17,053 - INFO - ================================================================================
2026-09-07 02:17:17,053 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-07 02:17:17,053 - 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-09-07 02:17:17,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with
2026-09-07 02:17:17,321 - INFO - Initial checks done. Running the testcase now
2026-09-07 02:17:17,321 - INFO -
2026-09-07 02:17:17,989 - DEBUG - Response for create_network : {'network': {'id': 'be1632cb-98e5-4ad1-a67d-1ff6b1681452', 'name': 'ctest-vn-21548601', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'project_id': 'b7a1a70cd25540da9feff93a0edc1999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-vn-21548601'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-09-07 02:17:18,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '785d2cce-7c5f-4e59-90d0-9d17491bb82b', 'name': '', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'network_id': 'be1632cb-98e5-4ad1-a67d-1ff6b1681452', 'ip_version': 4, 'cidr': '215.48.61.0/26', 'allocation_pools': [{'start': '215.48.61.2', 'end': '215.48.61.62'}], 'gateway_ip': '215.48.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-07T02:17:18.103476', 'updated_at': '2026-09-07T02:17:18.103476', 'dns_server_address': '215.48.61.2', 'tags': [], 'project_id': 'b7a1a70cd25540da9feff93a0edc1999'}}
2026-09-07 02:17:18,181 - INFO - Created VN ctest-vn-21548601
2026-09-07 02:17:18,242 - DEBUG - VN ctest-vn-21548601 UUID is be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:18,551 - DEBUG - Response for create_network : {'network': {'id': '0526e5c5-af43-4c8d-9b85-38403b358d36', 'name': 'ctest-vn-32467382', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'project_id': 'b7a1a70cd25540da9feff93a0edc1999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-vn-32467382'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-09-07 02:17:18,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '4de1efb6-c5ef-4993-aca0-15de05ebb6b2', 'name': '', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'network_id': '0526e5c5-af43-4c8d-9b85-38403b358d36', 'ip_version': 4, 'cidr': '25.118.230.64/26', 'allocation_pools': [{'start': '25.118.230.66', 'end': '25.118.230.126'}], 'gateway_ip': '25.118.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-09-07T02:17:18.690088', 'updated_at': '2026-09-07T02:17:18.690088', 'dns_server_address': '25.118.230.66', 'tags': [], 'project_id': 'b7a1a70cd25540da9feff93a0edc1999'}}
2026-09-07 02:17:18,785 - INFO - Created VN ctest-vn-32467382
2026-09-07 02:17:18,838 - DEBUG - VN ctest-vn-32467382 UUID is 0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:18,954 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601, 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-93916189:ctest-vn-32467382, 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-09-07 02:17:19,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be1632cb-98e5-4ad1-a67d-1ff6b1681452', 'name': 'ctest-vn-21548601', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'project_id': 'b7a1a70cd25540da9feff93a0edc1999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['785d2cce-7c5f-4e59-90d0-9d17491bb82b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-vn-21548601'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-policy-allow-all-82719731']], 'subnet_ipam': [{'subnet_cidr': '215.48.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-09-07T02:17:17.955557', 'updated_at': '2026-09-07T02:17:18.114353'}}
2026-09-07 02:17:19,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0526e5c5-af43-4c8d-9b85-38403b358d36', 'name': 'ctest-vn-32467382', 'tenant_id': 'b7a1a70cd25540da9feff93a0edc1999', 'project_id': 'b7a1a70cd25540da9feff93a0edc1999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4de1efb6-c5ef-4993-aca0-15de05ebb6b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-vn-32467382'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-policy-allow-all-82719731']], 'subnet_ipam': [{'subnet_cidr': '25.118.230.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-09-07T02:17:18.515772', 'updated_at': '2026-09-07T02:17:18.710015'}}
2026-09-07 02:17:19,710 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-07 02:17:20,034 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-07 02:17:20,065 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b
2026-09-07 02:17:20,079 - DEBUG - Requesting: http://10.0.0.163:8082/project/b7a1a70c-d255-40da-9fef-f93a0edc1999
2026-09-07 02:17:20,168 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,183 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,194 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/4c2ea985-ba53-4ec8-8c9b-e47a613129cb
2026-09-07 02:17:20,202 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/4c2ea985-ba53-4ec8-8c9b-e47a613129cb
2026-09-07 02:17:20,209 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/da503ab2-67f5-47f0-972e-79e805d6a708
2026-09-07 02:17:20,216 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-07 02:17:20,216 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,227 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/4c2ea985-ba53-4ec8-8c9b-e47a613129cb
2026-09-07 02:17:20,244 - INFO - Verified VN network id 12 for VN be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,244 - INFO - Verifications in API Server for VN ctest-vn-21548601 passed
2026-09-07 02:17:20,245 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,256 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/4c2ea985-ba53-4ec8-8c9b-e47a613129cb
2026-09-07 02:17:20,265 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/4c2ea985-ba53-4ec8-8c9b-e47a613129cb
2026-09-07 02:17:20,274 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/da503ab2-67f5-47f0-972e-79e805d6a708
2026-09-07 02:17:20,288 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93916189', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13697191166718855889', 'uuid-lslong': '11996780126783673426'}, 'enable': 'true', 'created': '2026-09-07T02:17:17', 'last-modified': '2026-09-07T02:17:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025345'}
2026-09-07 02:17:20,296 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-07 02:17:20,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21548601 passed
2026-09-07 02:17:20,296 - DEBUG - ====Verifying policy data for ctest-vn-21548601 in API_Server ======
2026-09-07 02:17:20,296 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-07 02:17:20,303 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b
2026-09-07 02:17:20,314 - DEBUG - Requesting: http://10.0.0.163:8082/project/b7a1a70c-d255-40da-9fef-f93a0edc1999
2026-09-07 02:17:20,392 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/be1632cb-98e5-4ad1-a67d-1ff6b1681452
2026-09-07 02:17:20,403 - DEBUG - ==>Verifying data for policy with id: 7351bd65-21af-49fb-8aec-b7c4597ab65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-policy-allow-all-82719731']
2026-09-07 02:17:20,403 - INFO - VN ctest-vn-21548601 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-07 02:17:20,403 - DEBUG - Verifying the vn in opserver
2026-09-07 02:17:20,403 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601 virtual network link through opserver 10.0.0.163
2026-09-07 02:17:20,403 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-07 02:17:20,724 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-07 02:17:20,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601?flat'}
2026-09-07 02:17:20,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-21548601 is found in opserver
2026-09-07 02:17:20,797 - DEBUG - Do not have enough data to verify VN in agent
2026-09-07 02:17:20,802 - DEBUG - VRF ids for VN ctest-vn-21548601: {}
2026-09-07 02:17:20,803 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-07 02:17:20,809 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b
2026-09-07 02:17:20,822 - DEBUG - Requesting: http://10.0.0.163:8082/project/b7a1a70c-d255-40da-9fef-f93a0edc1999
2026-09-07 02:17:20,898 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:20,911 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:20,922 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/17f3dcc3-8fb8-4316-932b-381a9dfe5b8e
2026-09-07 02:17:20,932 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/17f3dcc3-8fb8-4316-932b-381a9dfe5b8e
2026-09-07 02:17:20,941 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/522626b6-05b1-40f9-af9b-b6aa53d15e22
2026-09-07 02:17:20,949 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-07 02:17:20,949 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:20,960 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/17f3dcc3-8fb8-4316-932b-381a9dfe5b8e
2026-09-07 02:17:20,979 - INFO - Verified VN network id 13 for VN 0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:20,979 - INFO - Verifications in API Server for VN ctest-vn-32467382 passed
2026-09-07 02:17:20,980 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:20,991 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/17f3dcc3-8fb8-4316-932b-381a9dfe5b8e
2026-09-07 02:17:20,999 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/17f3dcc3-8fb8-4316-932b-381a9dfe5b8e
2026-09-07 02:17:21,008 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/522626b6-05b1-40f9-af9b-b6aa53d15e22
2026-09-07 02:17:21,023 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-32467382', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93916189', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '371236656516385933', 'uuid-lslong': '11206425096303775030'}, 'enable': 'true', 'created': '2026-09-07T02:17:18', 'last-modified': '2026-09-07T02:17:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510785'}
2026-09-07 02:17:21,030 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-07 02:17:21,031 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32467382 passed
2026-09-07 02:17:21,031 - DEBUG - ====Verifying policy data for ctest-vn-32467382 in API_Server ======
2026-09-07 02:17:21,031 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-07 02:17:21,037 - DEBUG - Requesting: http://10.0.0.163:8082/domain/f0c743a3-1bc9-4596-bd51-59df39c5641b
2026-09-07 02:17:21,050 - DEBUG - Requesting: http://10.0.0.163:8082/project/b7a1a70c-d255-40da-9fef-f93a0edc1999
2026-09-07 02:17:21,127 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/0526e5c5-af43-4c8d-9b85-38403b358d36
2026-09-07 02:17:21,138 - DEBUG - ==>Verifying data for policy with id: 7351bd65-21af-49fb-8aec-b7c4597ab65c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93916189', 'ctest-policy-allow-all-82719731']
2026-09-07 02:17:21,138 - INFO - VN ctest-vn-32467382 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-07 02:17:21,138 - DEBUG - Verifying the vn in opserver
2026-09-07 02:17:21,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-32467382 virtual network link through opserver 10.0.0.163
2026-09-07 02:17:21,138 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-07 02:17:21,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-32467382', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-32467382?flat'}
2026-09-07 02:17:21,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93916189:ctest-vn-32467382 is found in opserver
2026-09-07 02:17:21,162 - DEBUG - Do not have enough data to verify VN in agent
2026-09-07 02:17:21,168 - DEBUG - VRF ids for VN ctest-vn-32467382: {}
2026-09-07 02:17:21,237 - DEBUG - Services list from nova: [