2026-01-30 20:57:20,239 - INFO - Domain Default found not creating
2026-01-30 20:57:20,384 - INFO - Project ctest-TestBasicPolicy-84212014 not found, creating it
2026-01-30 20:57:20,814 - INFO - Created Project:ctest-TestBasicPolicy-84212014, ID : cf5adcfc-0bab-4fc0-810f-da31e77ec126
2026-01-30 20:57:22,248 - INFO - ================================================================================
2026-01-30 20:57:22,249 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 20:57:22,249 - 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-01-30 20:57:22,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-01-30 20:57:22,509 - INFO - Initial checks done. Running the testcase now
2026-01-30 20:57:22,509 - INFO -
2026-01-30 20:57:23,049 - DEBUG - Response for create_network : {'network': {'id': 'a468cd50-e999-4399-ad01-810aec121b1f', 'name': 'ctest-vn-37385441', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-vn-37385441'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 20:57:23,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f07d663-3f89-43d3-9480-fda8095126c7', 'name': '', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'network_id': 'a468cd50-e999-4399-ad01-810aec121b1f', 'ip_version': 4, 'cidr': '31.212.150.64/26', 'allocation_pools': [{'start': '31.212.150.66', 'end': '31.212.150.126'}], 'gateway_ip': '31.212.150.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.212.150.66', 'tags': [], 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126'}}
2026-01-30 20:57:23,265 - INFO - Created VN ctest-vn-37385441
2026-01-30 20:57:23,316 - DEBUG - VN ctest-vn-37385441 UUID is a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:23,634 - DEBUG - Response for create_network : {'network': {'id': 'e6aca8bc-97f5-4740-b01c-3b28e5d34a84', 'name': 'ctest-vn-03442312', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-vn-03442312'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 20:57:23,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c01d56b1-74db-49cd-8f7e-1e565e133b5b', 'name': '', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'network_id': 'e6aca8bc-97f5-4740-b01c-3b28e5d34a84', 'ip_version': 4, 'cidr': '117.133.222.192/26', 'allocation_pools': [{'start': '117.133.222.194', 'end': '117.133.222.254'}], 'gateway_ip': '117.133.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.133.222.194', 'tags': [], 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126'}}
2026-01-30 20:57:23,866 - INFO - Created VN ctest-vn-03442312
2026-01-30 20:57:23,916 - DEBUG - VN ctest-vn-03442312 UUID is e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:24,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441, 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-84212014:ctest-vn-03442312, 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-01-30 20:57:24,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a468cd50-e999-4399-ad01-810aec121b1f', 'name': 'ctest-vn-37385441', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f07d663-3f89-43d3-9480-fda8095126c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-vn-37385441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-policy-allow-all-68856634']], 'subnet_ipam': [{'subnet_cidr': '31.212.150.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 20:57:24,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6aca8bc-97f5-4740-b01c-3b28e5d34a84', 'name': 'ctest-vn-03442312', 'tenant_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'project_id': 'cf5adcfc0bab4fc0810fda31e77ec126', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c01d56b1-74db-49cd-8f7e-1e565e133b5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-vn-03442312'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-policy-allow-all-68856634']], 'subnet_ipam': [{'subnet_cidr': '117.133.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 20:57:24,736 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-30 20:57:25,027 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-30 20:57:25,057 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7cc790dc-c6fe-48b7-9f75-a0aeaa55fe04
2026-01-30 20:57:25,069 - DEBUG - Requesting: http://10.0.0.242:8082/project/cf5adcfc-0bab-4fc0-810f-da31e77ec126
2026-01-30 20:57:25,143 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,152 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,161 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd3dc15e-683e-48e2-ad53-21bfd92f3385
2026-01-30 20:57:25,167 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd3dc15e-683e-48e2-ad53-21bfd92f3385
2026-01-30 20:57:25,172 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f3d1a32d-c1d7-49af-ab8a-d6ce8e9c4d0a
2026-01-30 20:57:25,177 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 20:57:25,177 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,185 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd3dc15e-683e-48e2-ad53-21bfd92f3385
2026-01-30 20:57:25,196 - INFO - Verified VN network id 12 for VN a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,196 - INFO - Verifications in API Server for VN ctest-vn-37385441 passed
2026-01-30 20:57:25,196 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,204 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd3dc15e-683e-48e2-ad53-21bfd92f3385
2026-01-30 20:57:25,211 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dd3dc15e-683e-48e2-ad53-21bfd92f3385
2026-01-30 20:57:25,218 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f3d1a32d-c1d7-49af-ab8a-d6ce8e9c4d0a
2026-01-30 20:57:25,229 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84212014', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11846944567198303129', 'uuid-lslong': '12466387127448509215'}, 'enable': 'true', 'created': '2026-01-30T20:57:23', 'last-modified': '2026-01-30T20:57:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895229'}
2026-01-30 20:57:25,237 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 20:57:25,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37385441 passed
2026-01-30 20:57:25,237 - DEBUG - ====Verifying policy data for ctest-vn-37385441 in API_Server ======
2026-01-30 20:57:25,237 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-30 20:57:25,242 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7cc790dc-c6fe-48b7-9f75-a0aeaa55fe04
2026-01-30 20:57:25,253 - DEBUG - Requesting: http://10.0.0.242:8082/project/cf5adcfc-0bab-4fc0-810f-da31e77ec126
2026-01-30 20:57:25,320 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a468cd50-e999-4399-ad01-810aec121b1f
2026-01-30 20:57:25,329 - DEBUG - ==>Verifying data for policy with id: 2dc7259c-9142-4bc6-94c8-75ceecc4e522, fqn: ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-policy-allow-all-68856634']
2026-01-30 20:57:25,329 - INFO - VN ctest-vn-37385441 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 20:57:25,329 - DEBUG - Verifying the vn in opserver
2026-01-30 20:57:25,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441 virtual network link through opserver 10.0.0.242
2026-01-30 20:57:25,329 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-30 20:57:25,619 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-30 20:57:25,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441?flat'}
2026-01-30 20:57:25,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-37385441 is found in opserver
2026-01-30 20:57:25,692 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 20:57:25,696 - DEBUG - VRF ids for VN ctest-vn-37385441: {}
2026-01-30 20:57:25,696 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-30 20:57:25,701 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7cc790dc-c6fe-48b7-9f75-a0aeaa55fe04
2026-01-30 20:57:25,710 - DEBUG - Requesting: http://10.0.0.242:8082/project/cf5adcfc-0bab-4fc0-810f-da31e77ec126
2026-01-30 20:57:25,780 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,791 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,799 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c9717d59-717a-4ad4-99c8-f490d6d0f794
2026-01-30 20:57:25,804 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c9717d59-717a-4ad4-99c8-f490d6d0f794
2026-01-30 20:57:25,810 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fbf691f1-22a8-4f88-baa1-f6b80e6f07d1
2026-01-30 20:57:25,815 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 20:57:25,815 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,822 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c9717d59-717a-4ad4-99c8-f490d6d0f794
2026-01-30 20:57:25,833 - INFO - Verified VN network id 13 for VN e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,834 - INFO - Verifications in API Server for VN ctest-vn-03442312 passed
2026-01-30 20:57:25,834 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,842 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c9717d59-717a-4ad4-99c8-f490d6d0f794
2026-01-30 20:57:25,848 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/c9717d59-717a-4ad4-99c8-f490d6d0f794
2026-01-30 20:57:25,854 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fbf691f1-22a8-4f88-baa1-f6b80e6f07d1
2026-01-30 20:57:25,863 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-03442312', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84212014', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16621845852674410304', 'uuid-lslong': '12690082896863775364'}, 'enable': 'true', 'created': '2026-01-30T20:57:23', 'last-modified': '2026-01-30T20:57:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309153'}
2026-01-30 20:57:25,868 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 20:57:25,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03442312 passed
2026-01-30 20:57:25,869 - DEBUG - ====Verifying policy data for ctest-vn-03442312 in API_Server ======
2026-01-30 20:57:25,869 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-01-30 20:57:25,873 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7cc790dc-c6fe-48b7-9f75-a0aeaa55fe04
2026-01-30 20:57:25,882 - DEBUG - Requesting: http://10.0.0.242:8082/project/cf5adcfc-0bab-4fc0-810f-da31e77ec126
2026-01-30 20:57:25,951 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e6aca8bc-97f5-4740-b01c-3b28e5d34a84
2026-01-30 20:57:25,959 - DEBUG - ==>Verifying data for policy with id: 2dc7259c-9142-4bc6-94c8-75ceecc4e522, fqn: ['default-domain', 'ctest-TestBasicPolicy-84212014', 'ctest-policy-allow-all-68856634']
2026-01-30 20:57:25,960 - INFO - VN ctest-vn-03442312 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 20:57:25,960 - DEBUG - Verifying the vn in opserver
2026-01-30 20:57:25,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-03442312 virtual network link through opserver 10.0.0.242
2026-01-30 20:57:25,960 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-01-30 20:57:25,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-03442312', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-03442312?flat'}
2026-01-30 20:57:25,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84212014:ctest-vn-03442312 is found in opserver
2026-01-30 20:57:25,980 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 20:57:25,984 - DEBUG - VRF ids for VN ctest-vn-03442312: {}
2026-01-30 20:57:26,041 - DEBUG - Services list from nova: [