2026-09-02 14:22:59,395 - INFO - Domain Default found not creating
2026-09-02 14:22:59,612 - INFO - Project ctest-TestBasicPolicy-63680958 not found, creating it
2026-09-02 14:23:00,164 - INFO - Created Project:ctest-TestBasicPolicy-63680958, ID : eb5b4e65-01ab-4a3b-b516-3df2b41dfb85
2026-09-02 14:23:02,053 - INFO - ================================================================================
2026-09-02 14:23:02,053 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-02 14:23:02,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-02 14:23:02,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2026-09-02 14:23:02,332 - INFO - Initial checks done. Running the testcase now
2026-09-02 14:23:02,332 - INFO -
2026-09-02 14:23:03,044 - DEBUG - Response for create_network : {'network': {'id': '442543de-2683-4e2a-821e-2a698b3e067b', 'name': 'ctest-vn-75662097', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-vn-75662097'], 'port_security_enabled': True, 'description': ''}}
2026-09-02 14:23:03,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e806db1-66d5-4dc4-a00e-ffee22386b57', 'name': '', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'network_id': '442543de-2683-4e2a-821e-2a698b3e067b', 'ip_version': 4, 'cidr': '103.141.165.192/26', 'allocation_pools': [{'start': '103.141.165.194', 'end': '103.141.165.254'}], 'gateway_ip': '103.141.165.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.141.165.194', 'tags': [], 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85'}}
2026-09-02 14:23:03,279 - INFO - Created VN ctest-vn-75662097
2026-09-02 14:23:03,333 - DEBUG - VN ctest-vn-75662097 UUID is 442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:03,686 - DEBUG - Response for create_network : {'network': {'id': 'a29d4e57-6372-4b0c-85f1-c94d5abc7e51', 'name': 'ctest-vn-05081163', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-vn-05081163'], 'port_security_enabled': True, 'description': ''}}
2026-09-02 14:23:03,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de588e70-85db-45b0-8e83-f4a8f2a9b274', 'name': '', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'network_id': 'a29d4e57-6372-4b0c-85f1-c94d5abc7e51', 'ip_version': 4, 'cidr': '221.148.126.64/26', 'allocation_pools': [{'start': '221.148.126.66', 'end': '221.148.126.126'}], 'gateway_ip': '221.148.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.148.126.66', 'tags': [], 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85'}}
2026-09-02 14:23:03,932 - INFO - Created VN ctest-vn-05081163
2026-09-02 14:23:03,989 - DEBUG - VN ctest-vn-05081163 UUID is a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:04,109 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097, 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-63680958:ctest-vn-05081163, 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-02 14:23:04,441 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '442543de-2683-4e2a-821e-2a698b3e067b', 'name': 'ctest-vn-75662097', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9e806db1-66d5-4dc4-a00e-ffee22386b57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-vn-75662097'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-policy-allow-all-51018789']], 'subnet_ipam': [{'subnet_cidr': '103.141.165.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-02 14:23:04,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a29d4e57-6372-4b0c-85f1-c94d5abc7e51', 'name': 'ctest-vn-05081163', 'tenant_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'project_id': 'eb5b4e6501ab4a3bb5163df2b41dfb85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['de588e70-85db-45b0-8e83-f4a8f2a9b274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-vn-05081163'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-policy-allow-all-51018789']], 'subnet_ipam': [{'subnet_cidr': '221.148.126.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-02 14:23:04,881 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-02 14:23:05,264 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-02 14:23:05,296 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b
2026-09-02 14:23:05,313 - DEBUG - Requesting: http://10.0.0.161:8082/project/eb5b4e65-01ab-4a3b-b516-3df2b41dfb85
2026-09-02 14:23:05,410 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,427 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,440 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d815329e-da71-43ea-9420-f26281315e3e
2026-09-02 14:23:05,451 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d815329e-da71-43ea-9420-f26281315e3e
2026-09-02 14:23:05,461 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/68c9a931-0f51-4a38-95f7-1058e26ac412
2026-09-02 14:23:05,469 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-02 14:23:05,469 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,483 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d815329e-da71-43ea-9420-f26281315e3e
2026-09-02 14:23:05,506 - INFO - Verified VN network id 12 for VN 442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,507 - INFO - Verifications in API Server for VN ctest-vn-75662097 passed
2026-09-02 14:23:05,507 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,521 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d815329e-da71-43ea-9420-f26281315e3e
2026-09-02 14:23:05,532 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d815329e-da71-43ea-9420-f26281315e3e
2026-09-02 14:23:05,544 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/68c9a931-0f51-4a38-95f7-1058e26ac412
2026-09-02 14:23:05,562 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63680958', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4910405590125334058', 'uuid-lslong': '9375978107027981947'}, 'enable': 'true', 'created': '2026-09-02T14:23:02', 'last-modified': '2026-09-02T14:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.148929'}
2026-09-02 14:23:05,571 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-02 14:23:05,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75662097 passed
2026-09-02 14:23:05,571 - DEBUG - ====Verifying policy data for ctest-vn-75662097 in API_Server ======
2026-09-02 14:23:05,571 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-02 14:23:05,578 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b
2026-09-02 14:23:05,593 - DEBUG - Requesting: http://10.0.0.161:8082/project/eb5b4e65-01ab-4a3b-b516-3df2b41dfb85
2026-09-02 14:23:05,677 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/442543de-2683-4e2a-821e-2a698b3e067b
2026-09-02 14:23:05,689 - DEBUG - ==>Verifying data for policy with id: cd5e3862-da8d-415b-803a-58714b9d2c0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-policy-allow-all-51018789']
2026-09-02 14:23:05,690 - INFO - VN ctest-vn-75662097 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-02 14:23:05,690 - DEBUG - Verifying the vn in opserver
2026-09-02 14:23:05,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097 virtual network link through opserver 10.0.0.161
2026-09-02 14:23:05,690 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-02 14:23:06,070 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-02 14:23:06,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097?flat'}
2026-09-02 14:23:06,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-75662097 is found in opserver
2026-09-02 14:23:06,150 - DEBUG - Do not have enough data to verify VN in agent
2026-09-02 14:23:06,157 - DEBUG - VRF ids for VN ctest-vn-75662097: {}
2026-09-02 14:23:06,157 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-02 14:23:06,164 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b
2026-09-02 14:23:06,176 - DEBUG - Requesting: http://10.0.0.161:8082/project/eb5b4e65-01ab-4a3b-b516-3df2b41dfb85
2026-09-02 14:23:06,257 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,271 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,283 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c0ac7302-8715-42cd-992c-1fa8d37ce2dc
2026-09-02 14:23:06,292 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c0ac7302-8715-42cd-992c-1fa8d37ce2dc
2026-09-02 14:23:06,301 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/c82a3387-c75c-488a-82dd-421c465186c7
2026-09-02 14:23:06,310 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-02 14:23:06,310 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,321 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c0ac7302-8715-42cd-992c-1fa8d37ce2dc
2026-09-02 14:23:06,339 - INFO - Verified VN network id 13 for VN a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,339 - INFO - Verifications in API Server for VN ctest-vn-05081163 passed
2026-09-02 14:23:06,339 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,351 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c0ac7302-8715-42cd-992c-1fa8d37ce2dc
2026-09-02 14:23:06,367 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/c0ac7302-8715-42cd-992c-1fa8d37ce2dc
2026-09-02 14:23:06,375 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/c82a3387-c75c-488a-82dd-421c465186c7
2026-09-02 14:23:06,393 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-05081163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63680958', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11717607942725454604', 'uuid-lslong': '9651716810503650897'}, 'enable': 'true', 'created': '2026-09-02T14:23:03', 'last-modified': '2026-09-02T14:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.724078'}
2026-09-02 14:23:06,401 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-02 14:23:06,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05081163 passed
2026-09-02 14:23:06,402 - DEBUG - ====Verifying policy data for ctest-vn-05081163 in API_Server ======
2026-09-02 14:23:06,402 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-02 14:23:06,409 - DEBUG - Requesting: http://10.0.0.161:8082/domain/759a9c83-c697-48bb-b428-5713b193674b
2026-09-02 14:23:06,423 - DEBUG - Requesting: http://10.0.0.161:8082/project/eb5b4e65-01ab-4a3b-b516-3df2b41dfb85
2026-09-02 14:23:06,514 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a29d4e57-6372-4b0c-85f1-c94d5abc7e51
2026-09-02 14:23:06,530 - DEBUG - ==>Verifying data for policy with id: cd5e3862-da8d-415b-803a-58714b9d2c0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-63680958', 'ctest-policy-allow-all-51018789']
2026-09-02 14:23:06,530 - INFO - VN ctest-vn-05081163 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-02 14:23:06,530 - DEBUG - Verifying the vn in opserver
2026-09-02 14:23:06,530 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-05081163 virtual network link through opserver 10.0.0.161
2026-09-02 14:23:06,531 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-02 14:23:06,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-05081163', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-05081163?flat'}
2026-09-02 14:23:06,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63680958:ctest-vn-05081163 is found in opserver
2026-09-02 14:23:06,557 - DEBUG - Do not have enough data to verify VN in agent
2026-09-02 14:23:06,566 - DEBUG - VRF ids for VN ctest-vn-05081163: {}
2026-09-02 14:23:06,640 - DEBUG - Services list from nova: [