2026-08-17 15:56:11,773 - INFO - Domain Default found not creating
2026-08-17 15:56:11,944 - INFO - Project ctest-TestBasicPolicy-55084878 not found, creating it
2026-08-17 15:56:12,456 - INFO - Created Project:ctest-TestBasicPolicy-55084878, ID : 3f14d896-f558-4e45-b252-1358ee10f127
2026-08-17 15:56:14,031 - INFO - ================================================================================
2026-08-17 15:56:14,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-17 15:56:14,032 - 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-08-17 15:56:14,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-08-17 15:56:14,301 - INFO - Initial checks done. Running the testcase now
2026-08-17 15:56:14,301 - INFO -
2026-08-17 15:56:14,903 - DEBUG - Response for create_network : {'network': {'id': '7fa94982-217c-4e2f-80a8-41291bec283a', 'name': 'ctest-vn-42962292', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'project_id': '3f14d896f5584e45b2521358ee10f127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-vn-42962292'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:56:15,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '181938c8-f6ab-4a1a-a83b-b5d409f06ee7', 'name': '', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'network_id': '7fa94982-217c-4e2f-80a8-41291bec283a', 'ip_version': 4, 'cidr': '12.97.109.64/26', 'allocation_pools': [{'start': '12.97.109.66', 'end': '12.97.109.126'}], 'gateway_ip': '12.97.109.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.97.109.66', 'tags': [], 'project_id': '3f14d896f5584e45b2521358ee10f127'}}
2026-08-17 15:56:15,153 - INFO - Created VN ctest-vn-42962292
2026-08-17 15:56:15,208 - DEBUG - VN ctest-vn-42962292 UUID is 7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:15,516 - DEBUG - Response for create_network : {'network': {'id': '48db7bc5-e70b-4eb7-b701-711e6e598bf9', 'name': 'ctest-vn-51998111', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'project_id': '3f14d896f5584e45b2521358ee10f127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-vn-51998111'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:56:15,716 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2011025-41a7-4285-ae89-5d1ac8dc7cb0', 'name': '', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'network_id': '48db7bc5-e70b-4eb7-b701-711e6e598bf9', 'ip_version': 4, 'cidr': '63.126.253.64/26', 'allocation_pools': [{'start': '63.126.253.66', 'end': '63.126.253.126'}], 'gateway_ip': '63.126.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.126.253.66', 'tags': [], 'project_id': '3f14d896f5584e45b2521358ee10f127'}}
2026-08-17 15:56:15,732 - INFO - Created VN ctest-vn-51998111
2026-08-17 15:56:15,784 - DEBUG - VN ctest-vn-51998111 UUID is 48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:15,936 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292, 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-55084878:ctest-vn-51998111, 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-08-17 15:56:16,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fa94982-217c-4e2f-80a8-41291bec283a', 'name': 'ctest-vn-42962292', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'project_id': '3f14d896f5584e45b2521358ee10f127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['181938c8-f6ab-4a1a-a83b-b5d409f06ee7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-vn-42962292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-policy-allow-all-18413675']], 'subnet_ipam': [{'subnet_cidr': '12.97.109.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:56:16,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48db7bc5-e70b-4eb7-b701-711e6e598bf9', 'name': 'ctest-vn-51998111', 'tenant_id': '3f14d896f5584e45b2521358ee10f127', 'project_id': '3f14d896f5584e45b2521358ee10f127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2011025-41a7-4285-ae89-5d1ac8dc7cb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-vn-51998111'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-policy-allow-all-18413675']], 'subnet_ipam': [{'subnet_cidr': '63.126.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 15:56:16,732 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-17 15:56:17,065 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-17 15:56:17,094 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946
2026-08-17 15:56:17,107 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f14d896-f558-4e45-b252-1358ee10f127
2026-08-17 15:56:17,181 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddd07018-069d-4117-9cbe-5425310c4d1e
2026-08-17 15:56:17,213 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddd07018-069d-4117-9cbe-5425310c4d1e
2026-08-17 15:56:17,221 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c37ab432-587c-432d-ad8e-f2021010680f
2026-08-17 15:56:17,229 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 15:56:17,229 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,238 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddd07018-069d-4117-9cbe-5425310c4d1e
2026-08-17 15:56:17,255 - INFO - Verified VN network id 11 for VN 7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,255 - INFO - Verifications in API Server for VN ctest-vn-42962292 passed
2026-08-17 15:56:17,255 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,265 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddd07018-069d-4117-9cbe-5425310c4d1e
2026-08-17 15:56:17,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddd07018-069d-4117-9cbe-5425310c4d1e
2026-08-17 15:56:17,282 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c37ab432-587c-432d-ad8e-f2021010680f
2026-08-17 15:56:17,297 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55084878', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9198964537137319471', 'uuid-lslong': '9270731477760092218'}, 'enable': 'true', 'created': '2026-08-17T15:56:14', 'last-modified': '2026-08-17T15:56:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009208'}
2026-08-17 15:56:17,303 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 15:56:17,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42962292 passed
2026-08-17 15:56:17,304 - DEBUG - ====Verifying policy data for ctest-vn-42962292 in API_Server ======
2026-08-17 15:56:17,304 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-17 15:56:17,310 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946
2026-08-17 15:56:17,322 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f14d896-f558-4e45-b252-1358ee10f127
2026-08-17 15:56:17,411 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7fa94982-217c-4e2f-80a8-41291bec283a
2026-08-17 15:56:17,421 - DEBUG - ==>Verifying data for policy with id: 122a9f42-bfbc-4f49-8480-00bc00ec4df2, fqn: ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-policy-allow-all-18413675']
2026-08-17 15:56:17,421 - INFO - VN ctest-vn-42962292 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 15:56:17,421 - DEBUG - Verifying the vn in opserver
2026-08-17 15:56:17,421 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292 virtual network link through opserver 10.0.0.38
2026-08-17 15:56:17,421 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-17 15:56:17,894 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-17 15:56:17,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292?flat'}
2026-08-17 15:56:17,968 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-42962292 is found in opserver
2026-08-17 15:56:17,980 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 15:56:17,985 - DEBUG - VRF ids for VN ctest-vn-42962292: {}
2026-08-17 15:56:17,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-17 15:56:17,992 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946
2026-08-17 15:56:18,004 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f14d896-f558-4e45-b252-1358ee10f127
2026-08-17 15:56:18,081 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,103 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0a0ed1f-1148-47a0-9e25-b89530d28770
2026-08-17 15:56:18,111 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0a0ed1f-1148-47a0-9e25-b89530d28770
2026-08-17 15:56:18,119 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47a7383d-c1c5-4c6f-80bb-6466b0b42906
2026-08-17 15:56:18,126 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 15:56:18,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,136 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0a0ed1f-1148-47a0-9e25-b89530d28770
2026-08-17 15:56:18,151 - INFO - Verified VN network id 12 for VN 48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,151 - INFO - Verifications in API Server for VN ctest-vn-51998111 passed
2026-08-17 15:56:18,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0a0ed1f-1148-47a0-9e25-b89530d28770
2026-08-17 15:56:18,168 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a0a0ed1f-1148-47a0-9e25-b89530d28770
2026-08-17 15:56:18,175 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47a7383d-c1c5-4c6f-80bb-6466b0b42906
2026-08-17 15:56:18,187 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-51998111', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55084878', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5249925880545496759', 'uuid-lslong': '13186945559431842809'}, 'enable': 'true', 'created': '2026-08-17T15:56:15', 'last-modified': '2026-08-17T15:56:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.653717'}
2026-08-17 15:56:18,195 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 15:56:18,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51998111 passed
2026-08-17 15:56:18,195 - DEBUG - ====Verifying policy data for ctest-vn-51998111 in API_Server ======
2026-08-17 15:56:18,195 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-17 15:56:18,202 - DEBUG - Requesting: http://10.0.0.38:8082/domain/96701fdd-cdc5-4d69-897f-51d30045c946
2026-08-17 15:56:18,213 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f14d896-f558-4e45-b252-1358ee10f127
2026-08-17 15:56:18,294 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/48db7bc5-e70b-4eb7-b701-711e6e598bf9
2026-08-17 15:56:18,313 - DEBUG - ==>Verifying data for policy with id: 122a9f42-bfbc-4f49-8480-00bc00ec4df2, fqn: ['default-domain', 'ctest-TestBasicPolicy-55084878', 'ctest-policy-allow-all-18413675']
2026-08-17 15:56:18,313 - INFO - VN ctest-vn-51998111 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 15:56:18,313 - DEBUG - Verifying the vn in opserver
2026-08-17 15:56:18,313 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-51998111 virtual network link through opserver 10.0.0.38
2026-08-17 15:56:18,313 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-17 15:56:18,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-51998111', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-51998111?flat'}
2026-08-17 15:56:18,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55084878:ctest-vn-51998111 is found in opserver
2026-08-17 15:56:18,334 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 15:56:18,340 - DEBUG - VRF ids for VN ctest-vn-51998111: {}
2026-08-17 15:56:18,400 - DEBUG - Services list from nova: [