2026-04-23 02:38:08,721 - INFO - Domain Default found not creating
2026-04-23 02:38:08,867 - INFO - Project ctest-TestBasicPolicy-10802713 not found, creating it
2026-04-23 02:38:09,344 - INFO - Created Project:ctest-TestBasicPolicy-10802713, ID : c9ea4868-a6b4-452c-84a8-1cfd148086f4
2026-04-23 02:38:10,782 - INFO - ================================================================================
2026-04-23 02:38:10,783 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 02:38:10,783 - 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-04-23 02:38:11,035 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-04-23 02:38:11,035 - INFO - Initial checks done. Running the testcase now
2026-04-23 02:38:11,035 - INFO -
2026-04-23 02:38:11,619 - DEBUG - Response for create_network : {'network': {'id': '17de6b92-969b-4f77-bec1-93e3f6581268', 'name': 'ctest-vn-57720449', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-vn-57720449'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:38:11,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '6052d7c4-2c74-45b5-8bbd-d27d5ec31eb2', 'name': '', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'network_id': '17de6b92-969b-4f77-bec1-93e3f6581268', 'ip_version': 4, 'cidr': '120.115.65.128/26', 'allocation_pools': [{'start': '120.115.65.130', 'end': '120.115.65.190'}], 'gateway_ip': '120.115.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.115.65.130', 'tags': [], 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4'}}
2026-04-23 02:38:11,824 - INFO - Created VN ctest-vn-57720449
2026-04-23 02:38:11,874 - DEBUG - VN ctest-vn-57720449 UUID is 17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:12,155 - DEBUG - Response for create_network : {'network': {'id': 'cb977579-4f20-47e8-a128-acd6f240858b', 'name': 'ctest-vn-18451732', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-vn-18451732'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:38:12,359 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9094c17-e3a0-449a-a1c5-4559bd24a50b', 'name': '', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'network_id': 'cb977579-4f20-47e8-a128-acd6f240858b', 'ip_version': 4, 'cidr': '172.127.105.192/26', 'allocation_pools': [{'start': '172.127.105.194', 'end': '172.127.105.254'}], 'gateway_ip': '172.127.105.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.127.105.194', 'tags': [], 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4'}}
2026-04-23 02:38:12,374 - INFO - Created VN ctest-vn-18451732
2026-04-23 02:38:12,425 - DEBUG - VN ctest-vn-18451732 UUID is cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:12,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449, 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-10802713:ctest-vn-18451732, 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-04-23 02:38:12,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17de6b92-969b-4f77-bec1-93e3f6581268', 'name': 'ctest-vn-57720449', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6052d7c4-2c74-45b5-8bbd-d27d5ec31eb2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-vn-57720449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-policy-allow-all-04668980']], 'subnet_ipam': [{'subnet_cidr': '120.115.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:38:13,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb977579-4f20-47e8-a128-acd6f240858b', 'name': 'ctest-vn-18451732', 'tenant_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'project_id': 'c9ea4868a6b4452c84a81cfd148086f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9094c17-e3a0-449a-a1c5-4559bd24a50b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-vn-18451732'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-policy-allow-all-04668980']], 'subnet_ipam': [{'subnet_cidr': '172.127.105.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:38:13,254 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 02:38:13,551 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 02:38:13,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3f428c20-6b1c-4a64-82b7-d49fd1f431cd
2026-04-23 02:38:13,587 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9ea4868-a6b4-452c-84a8-1cfd148086f4
2026-04-23 02:38:13,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68359c85-a6ed-466a-92bf-84f3f8300e71
2026-04-23 02:38:13,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68359c85-a6ed-466a-92bf-84f3f8300e71
2026-04-23 02:38:13,684 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5178940d-b552-4d59-bba7-49690608e7d0
2026-04-23 02:38:13,689 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:38:13,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68359c85-a6ed-466a-92bf-84f3f8300e71
2026-04-23 02:38:13,707 - INFO - Verified VN network id 12 for VN 17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,708 - INFO - Verifications in API Server for VN ctest-vn-57720449 passed
2026-04-23 02:38:13,708 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,715 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68359c85-a6ed-466a-92bf-84f3f8300e71
2026-04-23 02:38:13,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/68359c85-a6ed-466a-92bf-84f3f8300e71
2026-04-23 02:38:13,725 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5178940d-b552-4d59-bba7-49690608e7d0
2026-04-23 02:38:13,734 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10802713', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1719930385038266231', 'uuid-lslong': '13745430145011290728'}, 'enable': 'true', 'created': '2026-04-23T02:38:11', 'last-modified': '2026-04-23T02:38:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899980'}
2026-04-23 02:38:13,740 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:38:13,740 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57720449 passed
2026-04-23 02:38:13,740 - DEBUG - ====Verifying policy data for ctest-vn-57720449 in API_Server ======
2026-04-23 02:38:13,740 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 02:38:13,745 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3f428c20-6b1c-4a64-82b7-d49fd1f431cd
2026-04-23 02:38:13,753 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9ea4868-a6b4-452c-84a8-1cfd148086f4
2026-04-23 02:38:13,824 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/17de6b92-969b-4f77-bec1-93e3f6581268
2026-04-23 02:38:13,832 - DEBUG - ==>Verifying data for policy with id: e93433ca-a22b-4f57-9d35-2b27165e885d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-policy-allow-all-04668980']
2026-04-23 02:38:13,832 - INFO - VN ctest-vn-57720449 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:38:13,833 - DEBUG - Verifying the vn in opserver
2026-04-23 02:38:13,833 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449 virtual network link through opserver 10.0.0.38
2026-04-23 02:38:13,833 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 02:38:14,124 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 02:38:14,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449?flat'}
2026-04-23 02:38:14,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-57720449 is found in opserver
2026-04-23 02:38:14,193 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:38:14,199 - DEBUG - VRF ids for VN ctest-vn-57720449: {}
2026-04-23 02:38:14,200 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 02:38:14,204 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3f428c20-6b1c-4a64-82b7-d49fd1f431cd
2026-04-23 02:38:14,213 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9ea4868-a6b4-452c-84a8-1cfd148086f4
2026-04-23 02:38:14,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,293 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,301 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/456cdbf5-fbf7-4690-9398-f8b0468c9149
2026-04-23 02:38:14,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/456cdbf5-fbf7-4690-9398-f8b0468c9149
2026-04-23 02:38:14,315 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/13de08ba-e309-4334-b6aa-0b06696018f4
2026-04-23 02:38:14,322 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:38:14,322 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,331 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/456cdbf5-fbf7-4690-9398-f8b0468c9149
2026-04-23 02:38:14,347 - INFO - Verified VN network id 13 for VN cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,348 - INFO - Verifications in API Server for VN ctest-vn-18451732 passed
2026-04-23 02:38:14,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,356 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/456cdbf5-fbf7-4690-9398-f8b0468c9149
2026-04-23 02:38:14,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/456cdbf5-fbf7-4690-9398-f8b0468c9149
2026-04-23 02:38:14,369 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/13de08ba-e309-4334-b6aa-0b06696018f4
2026-04-23 02:38:14,379 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-18451732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10802713', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14670323475061688296', 'uuid-lslong': '11612721678362117515'}, 'enable': 'true', 'created': '2026-04-23T02:38:12', 'last-modified': '2026-04-23T02:38:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316809'}
2026-04-23 02:38:14,386 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:38:14,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18451732 passed
2026-04-23 02:38:14,386 - DEBUG - ====Verifying policy data for ctest-vn-18451732 in API_Server ======
2026-04-23 02:38:14,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 02:38:14,391 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3f428c20-6b1c-4a64-82b7-d49fd1f431cd
2026-04-23 02:38:14,401 - DEBUG - Requesting: http://10.0.0.38:8082/project/c9ea4868-a6b4-452c-84a8-1cfd148086f4
2026-04-23 02:38:14,464 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cb977579-4f20-47e8-a128-acd6f240858b
2026-04-23 02:38:14,472 - DEBUG - ==>Verifying data for policy with id: e93433ca-a22b-4f57-9d35-2b27165e885d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10802713', 'ctest-policy-allow-all-04668980']
2026-04-23 02:38:14,472 - INFO - VN ctest-vn-18451732 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:38:14,472 - DEBUG - Verifying the vn in opserver
2026-04-23 02:38:14,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-18451732 virtual network link through opserver 10.0.0.38
2026-04-23 02:38:14,472 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 02:38:14,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-18451732', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-18451732?flat'}
2026-04-23 02:38:14,479 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10802713:ctest-vn-18451732 is found in opserver
2026-04-23 02:38:14,487 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:38:14,491 - DEBUG - VRF ids for VN ctest-vn-18451732: {}
2026-04-23 02:38:14,545 - DEBUG - Services list from nova: [