2026-06-15 15:37:16,900 - INFO - Domain Default found not creating
2026-06-15 15:37:17,032 - INFO - Project ctest-TestBasicPolicy-35607033 not found, creating it
2026-06-15 15:37:17,500 - INFO - Created Project:ctest-TestBasicPolicy-35607033, ID : becba8a2-3a5f-4c82-bdd4-41c18b85ce9d
2026-06-15 15:37:18,901 - INFO - ================================================================================
2026-06-15 15:37:18,902 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-15 15:37:18,902 - 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-06-15 15:37:19,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-06-15 15:37:19,157 - INFO - Initial checks done. Running the testcase now
2026-06-15 15:37:19,157 - INFO -
2026-06-15 15:37:19,706 - DEBUG - Response for create_network : {'network': {'id': '415937a9-f10f-4d32-8f8b-3e0eea688163', 'name': 'ctest-vn-40902849', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-vn-40902849'], 'port_security_enabled': True, 'description': ''}}
2026-06-15 15:37:19,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4da4e79-15cc-440c-a576-c3d97d0f516c', 'name': '', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'network_id': '415937a9-f10f-4d32-8f8b-3e0eea688163', 'ip_version': 4, 'cidr': '147.208.78.64/26', 'allocation_pools': [{'start': '147.208.78.66', 'end': '147.208.78.126'}], 'gateway_ip': '147.208.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.208.78.66', 'tags': [], 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d'}}
2026-06-15 15:37:19,925 - INFO - Created VN ctest-vn-40902849
2026-06-15 15:37:19,976 - DEBUG - VN ctest-vn-40902849 UUID is 415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:20,259 - DEBUG - Response for create_network : {'network': {'id': 'ea369c8f-235e-4b6d-ada3-1fb673ce8b82', 'name': 'ctest-vn-85776662', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-vn-85776662'], 'port_security_enabled': True, 'description': ''}}
2026-06-15 15:37:20,460 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8e7975f-ebd6-4542-a7e4-dcd8918feb92', 'name': '', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'network_id': 'ea369c8f-235e-4b6d-ada3-1fb673ce8b82', 'ip_version': 4, 'cidr': '140.143.106.0/26', 'allocation_pools': [{'start': '140.143.106.2', 'end': '140.143.106.62'}], 'gateway_ip': '140.143.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.143.106.2', 'tags': [], 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d'}}
2026-06-15 15:37:20,472 - INFO - Created VN ctest-vn-85776662
2026-06-15 15:37:20,520 - DEBUG - VN ctest-vn-85776662 UUID is ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:20,652 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849, 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-35607033:ctest-vn-85776662, 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-06-15 15:37:20,931 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '415937a9-f10f-4d32-8f8b-3e0eea688163', 'name': 'ctest-vn-40902849', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4da4e79-15cc-440c-a576-c3d97d0f516c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-vn-40902849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-policy-allow-all-16206478']], 'subnet_ipam': [{'subnet_cidr': '147.208.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-15 15:37:21,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea369c8f-235e-4b6d-ada3-1fb673ce8b82', 'name': 'ctest-vn-85776662', 'tenant_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'project_id': 'becba8a23a5f4c82bdd441c18b85ce9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8e7975f-ebd6-4542-a7e4-dcd8918feb92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-vn-85776662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-policy-allow-all-16206478']], 'subnet_ipam': [{'subnet_cidr': '140.143.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-15 15:37:21,316 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 15:37:21,631 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 15:37:21,655 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109
2026-06-15 15:37:21,665 - DEBUG - Requesting: http://10.0.0.38:8082/project/becba8a2-3a5f-4c82-bdd4-41c18b85ce9d
2026-06-15 15:37:21,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c217201-9efe-45f0-a710-eff844219e41
2026-06-15 15:37:21,759 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c217201-9efe-45f0-a710-eff844219e41
2026-06-15 15:37:21,764 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8130f42f-6044-490a-9a51-69c57b3b13bd
2026-06-15 15:37:21,768 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-15 15:37:21,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c217201-9efe-45f0-a710-eff844219e41
2026-06-15 15:37:21,785 - INFO - Verified VN network id 11 for VN 415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,785 - INFO - Verifications in API Server for VN ctest-vn-40902849 passed
2026-06-15 15:37:21,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,793 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c217201-9efe-45f0-a710-eff844219e41
2026-06-15 15:37:21,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c217201-9efe-45f0-a710-eff844219e41
2026-06-15 15:37:21,803 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8130f42f-6044-490a-9a51-69c57b3b13bd
2026-06-15 15:37:21,812 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35607033', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4708856088425876786', 'uuid-lslong': '10343429202969657699'}, 'enable': 'true', 'created': '2026-06-15T15:37:19', 'last-modified': '2026-06-15T15:37:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.902441'}
2026-06-15 15:37:21,817 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-15 15:37:21,817 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40902849 passed
2026-06-15 15:37:21,817 - DEBUG - ====Verifying policy data for ctest-vn-40902849 in API_Server ======
2026-06-15 15:37:21,817 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 15:37:21,822 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109
2026-06-15 15:37:21,830 - DEBUG - Requesting: http://10.0.0.38:8082/project/becba8a2-3a5f-4c82-bdd4-41c18b85ce9d
2026-06-15 15:37:21,906 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/415937a9-f10f-4d32-8f8b-3e0eea688163
2026-06-15 15:37:21,913 - DEBUG - ==>Verifying data for policy with id: 0da08927-3475-4fe0-a92d-490ad86d933c, fqn: ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-policy-allow-all-16206478']
2026-06-15 15:37:21,913 - INFO - VN ctest-vn-40902849 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-15 15:37:21,913 - DEBUG - Verifying the vn in opserver
2026-06-15 15:37:21,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849 virtual network link through opserver 10.0.0.38
2026-06-15 15:37:21,914 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 15:37:22,228 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 15:37:22,279 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849?flat'}
2026-06-15 15:37:22,279 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-40902849 is found in opserver
2026-06-15 15:37:22,288 - DEBUG - Do not have enough data to verify VN in agent
2026-06-15 15:37:22,292 - DEBUG - VRF ids for VN ctest-vn-40902849: {}
2026-06-15 15:37:22,292 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 15:37:22,297 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109
2026-06-15 15:37:22,305 - DEBUG - Requesting: http://10.0.0.38:8082/project/becba8a2-3a5f-4c82-bdd4-41c18b85ce9d
2026-06-15 15:37:22,373 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,391 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59a815bc-29f3-47eb-9add-9eadebff689e
2026-06-15 15:37:22,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59a815bc-29f3-47eb-9add-9eadebff689e
2026-06-15 15:37:22,401 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/564e2dcb-d3a9-4c17-a1e6-0eca9781fc31
2026-06-15 15:37:22,405 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-15 15:37:22,406 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59a815bc-29f3-47eb-9add-9eadebff689e
2026-06-15 15:37:22,422 - INFO - Verified VN network id 12 for VN ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,422 - INFO - Verifications in API Server for VN ctest-vn-85776662 passed
2026-06-15 15:37:22,422 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,429 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59a815bc-29f3-47eb-9add-9eadebff689e
2026-06-15 15:37:22,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59a815bc-29f3-47eb-9add-9eadebff689e
2026-06-15 15:37:22,438 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/564e2dcb-d3a9-4c17-a1e6-0eca9781fc31
2026-06-15 15:37:22,447 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-85776662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35607033', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16876848792205151085', 'uuid-lslong': '12511879058252794754'}, 'enable': 'true', 'created': '2026-06-15T15:37:20', 'last-modified': '2026-06-15T15:37:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312068'}
2026-06-15 15:37:22,452 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-15 15:37:22,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85776662 passed
2026-06-15 15:37:22,452 - DEBUG - ====Verifying policy data for ctest-vn-85776662 in API_Server ======
2026-06-15 15:37:22,452 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-15 15:37:22,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109
2026-06-15 15:37:22,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/becba8a2-3a5f-4c82-bdd4-41c18b85ce9d
2026-06-15 15:37:22,529 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea369c8f-235e-4b6d-ada3-1fb673ce8b82
2026-06-15 15:37:22,538 - DEBUG - ==>Verifying data for policy with id: 0da08927-3475-4fe0-a92d-490ad86d933c, fqn: ['default-domain', 'ctest-TestBasicPolicy-35607033', 'ctest-policy-allow-all-16206478']
2026-06-15 15:37:22,538 - INFO - VN ctest-vn-85776662 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-15 15:37:22,538 - DEBUG - Verifying the vn in opserver
2026-06-15 15:37:22,538 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-85776662 virtual network link through opserver 10.0.0.38
2026-06-15 15:37:22,538 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-15 15:37:22,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-85776662', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-85776662?flat'}
2026-06-15 15:37:22,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35607033:ctest-vn-85776662 is found in opserver
2026-06-15 15:37:22,556 - DEBUG - Do not have enough data to verify VN in agent
2026-06-15 15:37:22,559 - DEBUG - VRF ids for VN ctest-vn-85776662: {}
2026-06-15 15:37:22,619 - DEBUG - Services list from nova: [