2026-09-22 13:04:51,678 - INFO - Domain Default found not creating
2026-09-22 13:04:51,881 - INFO - Project ctest-TestBasicPolicy-40787480 not found, creating it
2026-09-22 13:04:52,410 - INFO - Created Project:ctest-TestBasicPolicy-40787480, ID : 43b5f423-bc5b-4e73-9df5-7ff0ef1d1bc7
2026-09-22 13:04:54,265 - INFO - ================================================================================
2026-09-22 13:04:54,265 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-22 13:04:54,265 - 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-22 13:04:54,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-09-22 13:04:54,542 - INFO - Initial checks done. Running the testcase now
2026-09-22 13:04:54,542 - INFO -
2026-09-22 13:04:55,235 - DEBUG - Response for create_network : {'network': {'id': 'f574a2ab-24bd-41d0-b539-f531ade33e57', 'name': 'ctest-vn-13654694', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-vn-13654694'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 13:04:55,416 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be4b9876-8145-4f8c-8b30-5f2101e249ac', 'name': '', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'network_id': 'f574a2ab-24bd-41d0-b539-f531ade33e57', 'ip_version': 4, 'cidr': '36.237.195.64/26', 'allocation_pools': [{'start': '36.237.195.66', 'end': '36.237.195.126'}], 'gateway_ip': '36.237.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.237.195.66', 'tags': [], 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7'}}
2026-09-22 13:04:55,442 - INFO - Created VN ctest-vn-13654694
2026-09-22 13:04:55,499 - DEBUG - VN ctest-vn-13654694 UUID is f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:55,863 - DEBUG - Response for create_network : {'network': {'id': 'e8e2ba38-4f12-4d54-9024-d217924e5f39', 'name': 'ctest-vn-71123132', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-vn-71123132'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 13:04:56,094 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c415a96b-c733-469c-a680-ccb095629d9a', 'name': '', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'network_id': 'e8e2ba38-4f12-4d54-9024-d217924e5f39', 'ip_version': 4, 'cidr': '31.159.152.64/26', 'allocation_pools': [{'start': '31.159.152.66', 'end': '31.159.152.126'}], 'gateway_ip': '31.159.152.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.159.152.66', 'tags': [], 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7'}}
2026-09-22 13:04:56,115 - INFO - Created VN ctest-vn-71123132
2026-09-22 13:04:56,171 - DEBUG - VN ctest-vn-71123132 UUID is e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:56,301 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694, 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-40787480:ctest-vn-71123132, 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-22 13:04:56,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f574a2ab-24bd-41d0-b539-f531ade33e57', 'name': 'ctest-vn-13654694', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['be4b9876-8145-4f8c-8b30-5f2101e249ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-vn-13654694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-policy-allow-all-11288978']], 'subnet_ipam': [{'subnet_cidr': '36.237.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 13:04:56,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e2ba38-4f12-4d54-9024-d217924e5f39', 'name': 'ctest-vn-71123132', 'tenant_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'project_id': '43b5f423bc5b4e739df57ff0ef1d1bc7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c415a96b-c733-469c-a680-ccb095629d9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-vn-71123132'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-policy-allow-all-11288978']], 'subnet_ipam': [{'subnet_cidr': '31.159.152.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 13:04:57,087 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 13:04:57,471 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 13:04:57,508 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7
2026-09-22 13:04:57,526 - DEBUG - Requesting: http://10.0.0.161:8082/project/43b5f423-bc5b-4e73-9df5-7ff0ef1d1bc7
2026-09-22 13:04:57,618 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,633 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,646 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/86fd3516-dde7-4b42-a4ed-f53118bceb40
2026-09-22 13:04:57,658 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/86fd3516-dde7-4b42-a4ed-f53118bceb40
2026-09-22 13:04:57,670 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/8802fa55-7ab1-471c-a38c-773d5e334369
2026-09-22 13:04:57,680 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 13:04:57,680 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,693 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/86fd3516-dde7-4b42-a4ed-f53118bceb40
2026-09-22 13:04:57,712 - INFO - Verified VN network id 12 for VN f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,712 - INFO - Verifications in API Server for VN ctest-vn-13654694 passed
2026-09-22 13:04:57,712 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,725 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/86fd3516-dde7-4b42-a4ed-f53118bceb40
2026-09-22 13:04:57,736 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/86fd3516-dde7-4b42-a4ed-f53118bceb40
2026-09-22 13:04:57,747 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/8802fa55-7ab1-471c-a38c-773d5e334369
2026-09-22 13:04:57,765 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40787480', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17686940492530270672', 'uuid-lslong': '13058738188257017431'}, 'enable': 'true', 'created': '2026-09-22T13:04:55', 'last-modified': '2026-09-22T13:04:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.152827'}
2026-09-22 13:04:57,774 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 13:04:57,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13654694 passed
2026-09-22 13:04:57,775 - DEBUG - ====Verifying policy data for ctest-vn-13654694 in API_Server ======
2026-09-22 13:04:57,775 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 13:04:57,782 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7
2026-09-22 13:04:57,795 - DEBUG - Requesting: http://10.0.0.161:8082/project/43b5f423-bc5b-4e73-9df5-7ff0ef1d1bc7
2026-09-22 13:04:57,878 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/f574a2ab-24bd-41d0-b539-f531ade33e57
2026-09-22 13:04:57,890 - DEBUG - ==>Verifying data for policy with id: d207e5ef-9edc-4ab8-9b97-99c451314c50, fqn: ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-policy-allow-all-11288978']
2026-09-22 13:04:57,890 - INFO - VN ctest-vn-13654694 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 13:04:57,890 - DEBUG - Verifying the vn in opserver
2026-09-22 13:04:57,890 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694 virtual network link through opserver 10.0.0.161
2026-09-22 13:04:57,890 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 13:04:58,258 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 13:04:58,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694?flat'}
2026-09-22 13:04:58,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-13654694 is found in opserver
2026-09-22 13:04:58,338 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 13:04:58,345 - DEBUG - VRF ids for VN ctest-vn-13654694: {}
2026-09-22 13:04:58,345 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 13:04:58,352 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7
2026-09-22 13:04:58,364 - DEBUG - Requesting: http://10.0.0.161:8082/project/43b5f423-bc5b-4e73-9df5-7ff0ef1d1bc7
2026-09-22 13:04:58,457 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,475 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,492 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c6f66275-226e-42b2-98e5-075635260c4e
2026-09-22 13:04:58,504 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c6f66275-226e-42b2-98e5-075635260c4e
2026-09-22 13:04:58,515 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0c79d8fd-1372-4adf-965b-66ef8b571ef4
2026-09-22 13:04:58,523 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 13:04:58,523 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,536 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c6f66275-226e-42b2-98e5-075635260c4e
2026-09-22 13:04:58,555 - INFO - Verified VN network id 13 for VN e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,555 - INFO - Verifications in API Server for VN ctest-vn-71123132 passed
2026-09-22 13:04:58,555 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,568 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c6f66275-226e-42b2-98e5-075635260c4e
2026-09-22 13:04:58,578 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c6f66275-226e-42b2-98e5-075635260c4e
2026-09-22 13:04:58,587 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0c79d8fd-1372-4adf-965b-66ef8b571ef4
2026-09-22 13:04:58,603 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-71123132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40787480', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16781179912543423828', 'uuid-lslong': '10386657639303896889'}, 'enable': 'true', 'created': '2026-09-22T13:04:55', 'last-modified': '2026-09-22T13:04:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.727638'}
2026-09-22 13:04:58,612 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 13:04:58,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71123132 passed
2026-09-22 13:04:58,612 - DEBUG - ====Verifying policy data for ctest-vn-71123132 in API_Server ======
2026-09-22 13:04:58,612 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-22 13:04:58,619 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7
2026-09-22 13:04:58,633 - DEBUG - Requesting: http://10.0.0.161:8082/project/43b5f423-bc5b-4e73-9df5-7ff0ef1d1bc7
2026-09-22 13:04:58,713 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/e8e2ba38-4f12-4d54-9024-d217924e5f39
2026-09-22 13:04:58,726 - DEBUG - ==>Verifying data for policy with id: d207e5ef-9edc-4ab8-9b97-99c451314c50, fqn: ['default-domain', 'ctest-TestBasicPolicy-40787480', 'ctest-policy-allow-all-11288978']
2026-09-22 13:04:58,726 - INFO - VN ctest-vn-71123132 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 13:04:58,726 - DEBUG - Verifying the vn in opserver
2026-09-22 13:04:58,726 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-71123132 virtual network link through opserver 10.0.0.161
2026-09-22 13:04:58,726 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-22 13:04:58,740 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-71123132', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-71123132?flat'}
2026-09-22 13:04:58,740 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40787480:ctest-vn-71123132 is found in opserver
2026-09-22 13:04:58,755 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 13:04:58,761 - DEBUG - VRF ids for VN ctest-vn-71123132: {}
2026-09-22 13:04:58,839 - DEBUG - Services list from nova: [