2026-03-23 15:24:39,378 - INFO - Domain Default found not creating
2026-03-23 15:24:39,531 - INFO - Project ctest-TestBasicPolicy-85539663 not found, creating it
2026-03-23 15:24:40,028 - INFO - Created Project:ctest-TestBasicPolicy-85539663, ID : f8870ba4-6e06-44b9-9ada-d50d1840eeb3
2026-03-23 15:24:41,498 - INFO - ================================================================================
2026-03-23 15:24:41,498 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-23 15:24:41,498 - 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-03-23 15:24:41,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2026-03-23 15:24:41,754 - INFO - Initial checks done. Running the testcase now
2026-03-23 15:24:41,754 - INFO -
2026-03-23 15:24:42,294 - DEBUG - Response for create_network : {'network': {'id': 'a666fc47-f64d-4109-bf57-829f759edd52', 'name': 'ctest-vn-86331476', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'project_id': 'f8870ba46e0644b99adad50d1840eeb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-vn-86331476'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:24:42,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '30ad245f-1d66-442d-a007-e3febdb29faa', 'name': '', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'network_id': 'a666fc47-f64d-4109-bf57-829f759edd52', 'ip_version': 4, 'cidr': '111.193.131.128/26', 'allocation_pools': [{'start': '111.193.131.130', 'end': '111.193.131.190'}], 'gateway_ip': '111.193.131.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.193.131.130', 'tags': [], 'project_id': 'f8870ba46e0644b99adad50d1840eeb3'}}
2026-03-23 15:24:42,531 - INFO - Created VN ctest-vn-86331476
2026-03-23 15:24:42,581 - DEBUG - VN ctest-vn-86331476 UUID is a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:42,892 - DEBUG - Response for create_network : {'network': {'id': '93e7e4f3-2c03-470b-8623-14c140e34868', 'name': 'ctest-vn-81012415', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'project_id': 'f8870ba46e0644b99adad50d1840eeb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-vn-81012415'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:24:43,093 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc056fd0-07be-43ab-a854-9d86e5e41dc6', 'name': '', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'network_id': '93e7e4f3-2c03-470b-8623-14c140e34868', 'ip_version': 4, 'cidr': '33.130.202.64/26', 'allocation_pools': [{'start': '33.130.202.66', 'end': '33.130.202.126'}], 'gateway_ip': '33.130.202.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.130.202.66', 'tags': [], 'project_id': 'f8870ba46e0644b99adad50d1840eeb3'}}
2026-03-23 15:24:43,111 - INFO - Created VN ctest-vn-81012415
2026-03-23 15:24:43,161 - DEBUG - VN ctest-vn-81012415 UUID is 93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:43,317 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476, 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-85539663:ctest-vn-81012415, 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-03-23 15:24:43,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a666fc47-f64d-4109-bf57-829f759edd52', 'name': 'ctest-vn-86331476', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'project_id': 'f8870ba46e0644b99adad50d1840eeb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30ad245f-1d66-442d-a007-e3febdb29faa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-vn-86331476'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-policy-allow-all-32138349']], 'subnet_ipam': [{'subnet_cidr': '111.193.131.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:24:43,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93e7e4f3-2c03-470b-8623-14c140e34868', 'name': 'ctest-vn-81012415', 'tenant_id': 'f8870ba46e0644b99adad50d1840eeb3', 'project_id': 'f8870ba46e0644b99adad50d1840eeb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc056fd0-07be-43ab-a854-9d86e5e41dc6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-vn-81012415'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-policy-allow-all-32138349']], 'subnet_ipam': [{'subnet_cidr': '33.130.202.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 15:24:44,013 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-23 15:24:44,306 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-23 15:24:44,337 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ba3f35-d5dc-4a11-a3db-8f140f640d17
2026-03-23 15:24:44,348 - DEBUG - Requesting: http://10.0.0.19:8082/project/f8870ba4-6e06-44b9-9ada-d50d1840eeb3
2026-03-23 15:24:44,418 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,428 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,436 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/068c3c11-a7da-4cf4-b287-f71a8db88684
2026-03-23 15:24:44,442 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/068c3c11-a7da-4cf4-b287-f71a8db88684
2026-03-23 15:24:44,448 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e91de325-8996-404c-b710-5980f93e33c4
2026-03-23 15:24:44,455 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 15:24:44,455 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,464 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/068c3c11-a7da-4cf4-b287-f71a8db88684
2026-03-23 15:24:44,477 - INFO - Verified VN network id 11 for VN a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,477 - INFO - Verifications in API Server for VN ctest-vn-86331476 passed
2026-03-23 15:24:44,478 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,485 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/068c3c11-a7da-4cf4-b287-f71a8db88684
2026-03-23 15:24:44,492 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/068c3c11-a7da-4cf4-b287-f71a8db88684
2026-03-23 15:24:44,497 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e91de325-8996-404c-b710-5980f93e33c4
2026-03-23 15:24:44,508 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85539663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11990548443925659913', 'uuid-lslong': '13787632405602819410'}, 'enable': 'true', 'created': '2026-03-23T15:24:42', 'last-modified': '2026-03-23T15:24:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915275'}
2026-03-23 15:24:44,513 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 15:24:44,513 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86331476 passed
2026-03-23 15:24:44,514 - DEBUG - ====Verifying policy data for ctest-vn-86331476 in API_Server ======
2026-03-23 15:24:44,514 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-23 15:24:44,519 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ba3f35-d5dc-4a11-a3db-8f140f640d17
2026-03-23 15:24:44,529 - DEBUG - Requesting: http://10.0.0.19:8082/project/f8870ba4-6e06-44b9-9ada-d50d1840eeb3
2026-03-23 15:24:44,606 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a666fc47-f64d-4109-bf57-829f759edd52
2026-03-23 15:24:44,615 - DEBUG - ==>Verifying data for policy with id: 43c88028-336c-417c-8201-53ca457b925c, fqn: ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-policy-allow-all-32138349']
2026-03-23 15:24:44,616 - INFO - VN ctest-vn-86331476 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 15:24:44,616 - DEBUG - Verifying the vn in opserver
2026-03-23 15:24:44,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476 virtual network link through opserver 10.0.0.19
2026-03-23 15:24:44,616 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-23 15:24:44,909 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-23 15:24:44,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476?flat'}
2026-03-23 15:24:44,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-86331476 is found in opserver
2026-03-23 15:24:44,979 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 15:24:44,983 - DEBUG - VRF ids for VN ctest-vn-86331476: {}
2026-03-23 15:24:44,983 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-23 15:24:44,989 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ba3f35-d5dc-4a11-a3db-8f140f640d17
2026-03-23 15:24:44,999 - DEBUG - Requesting: http://10.0.0.19:8082/project/f8870ba4-6e06-44b9-9ada-d50d1840eeb3
2026-03-23 15:24:45,063 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,073 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,082 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2cbaac01-487b-4d2c-bd11-3beca01e82cc
2026-03-23 15:24:45,091 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2cbaac01-487b-4d2c-bd11-3beca01e82cc
2026-03-23 15:24:45,099 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/78a8b177-7364-418c-95a8-cfae962a6619
2026-03-23 15:24:45,105 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 15:24:45,105 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,113 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2cbaac01-487b-4d2c-bd11-3beca01e82cc
2026-03-23 15:24:45,126 - INFO - Verified VN network id 12 for VN 93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,126 - INFO - Verifications in API Server for VN ctest-vn-81012415 passed
2026-03-23 15:24:45,126 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,135 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2cbaac01-487b-4d2c-bd11-3beca01e82cc
2026-03-23 15:24:45,141 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2cbaac01-487b-4d2c-bd11-3beca01e82cc
2026-03-23 15:24:45,149 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/78a8b177-7364-418c-95a8-cfae962a6619
2026-03-23 15:24:45,161 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-81012415', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85539663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10657738776262166283', 'uuid-lslong': '9665592045517097064'}, 'enable': 'true', 'created': '2026-03-23T15:24:42', 'last-modified': '2026-03-23T15:24:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.340420'}
2026-03-23 15:24:45,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 15:24:45,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81012415 passed
2026-03-23 15:24:45,169 - DEBUG - ====Verifying policy data for ctest-vn-81012415 in API_Server ======
2026-03-23 15:24:45,169 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-03-23 15:24:45,175 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ba3f35-d5dc-4a11-a3db-8f140f640d17
2026-03-23 15:24:45,187 - DEBUG - Requesting: http://10.0.0.19:8082/project/f8870ba4-6e06-44b9-9ada-d50d1840eeb3
2026-03-23 15:24:45,259 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/93e7e4f3-2c03-470b-8623-14c140e34868
2026-03-23 15:24:45,267 - DEBUG - ==>Verifying data for policy with id: 43c88028-336c-417c-8201-53ca457b925c, fqn: ['default-domain', 'ctest-TestBasicPolicy-85539663', 'ctest-policy-allow-all-32138349']
2026-03-23 15:24:45,267 - INFO - VN ctest-vn-81012415 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 15:24:45,267 - DEBUG - Verifying the vn in opserver
2026-03-23 15:24:45,267 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-81012415 virtual network link through opserver 10.0.0.19
2026-03-23 15:24:45,267 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-03-23 15:24:45,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-81012415', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-81012415?flat'}
2026-03-23 15:24:45,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85539663:ctest-vn-81012415 is found in opserver
2026-03-23 15:24:45,285 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 15:24:45,289 - DEBUG - VRF ids for VN ctest-vn-81012415: {}
2026-03-23 15:24:45,344 - DEBUG - Services list from nova: [