2026-01-30 14:46:37,449 - INFO - Domain Default found not creating
2026-01-30 14:46:37,616 - INFO - Project ctest-TestBasicPolicy-61728129 not found, creating it
2026-01-30 14:46:38,085 - INFO - Created Project:ctest-TestBasicPolicy-61728129, ID : d9b67c70-2eb5-46a0-87ed-909ebfad171a
2026-01-30 14:46:39,569 - INFO - ================================================================================
2026-01-30 14:46:39,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 14:46:39,569 - 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-01-30 14:46:39,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-01-30 14:46:39,828 - INFO - Initial checks done. Running the testcase now
2026-01-30 14:46:39,828 - INFO -
2026-01-30 14:46:40,374 - DEBUG - Response for create_network : {'network': {'id': '8e9b4e41-dd53-45d5-bed9-4de910a6deb3', 'name': 'ctest-vn-89560570', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'project_id': 'd9b67c702eb546a087ed909ebfad171a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-vn-89560570'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 14:46:40,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f70f5c3-d149-4f7a-9236-3420e92cdcce', 'name': '', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'network_id': '8e9b4e41-dd53-45d5-bed9-4de910a6deb3', 'ip_version': 4, 'cidr': '62.226.134.128/26', 'allocation_pools': [{'start': '62.226.134.130', 'end': '62.226.134.190'}], 'gateway_ip': '62.226.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.226.134.130', 'tags': [], 'project_id': 'd9b67c702eb546a087ed909ebfad171a'}}
2026-01-30 14:46:40,540 - INFO - Created VN ctest-vn-89560570
2026-01-30 14:46:40,594 - DEBUG - VN ctest-vn-89560570 UUID is 8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:40,920 - DEBUG - Response for create_network : {'network': {'id': 'a8da9f93-4146-4ef5-aa69-84dc26104000', 'name': 'ctest-vn-23422327', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'project_id': 'd9b67c702eb546a087ed909ebfad171a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-vn-23422327'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 14:46:41,129 - DEBUG - Response for create_subnet : {'subnet': {'id': '457497f6-f605-48c5-8db1-7e12942f1e4a', 'name': '', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'network_id': 'a8da9f93-4146-4ef5-aa69-84dc26104000', 'ip_version': 4, 'cidr': '93.132.145.0/26', 'allocation_pools': [{'start': '93.132.145.2', 'end': '93.132.145.62'}], 'gateway_ip': '93.132.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.132.145.2', 'tags': [], 'project_id': 'd9b67c702eb546a087ed909ebfad171a'}}
2026-01-30 14:46:41,148 - INFO - Created VN ctest-vn-23422327
2026-01-30 14:46:41,198 - DEBUG - VN ctest-vn-23422327 UUID is a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:41,350 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570, 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-61728129:ctest-vn-23422327, 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-01-30 14:46:41,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e9b4e41-dd53-45d5-bed9-4de910a6deb3', 'name': 'ctest-vn-89560570', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'project_id': 'd9b67c702eb546a087ed909ebfad171a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f70f5c3-d149-4f7a-9236-3420e92cdcce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-vn-89560570'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-policy-allow-all-44871832']], 'subnet_ipam': [{'subnet_cidr': '62.226.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 14:46:41,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8da9f93-4146-4ef5-aa69-84dc26104000', 'name': 'ctest-vn-23422327', 'tenant_id': 'd9b67c702eb546a087ed909ebfad171a', 'project_id': 'd9b67c702eb546a087ed909ebfad171a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['457497f6-f605-48c5-8db1-7e12942f1e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-vn-23422327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-policy-allow-all-44871832']], 'subnet_ipam': [{'subnet_cidr': '93.132.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 14:46:42,062 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-30 14:46:42,358 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-30 14:46:42,390 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff618dc7-ed66-4937-b6d0-8a4283527306
2026-01-30 14:46:42,402 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9b67c70-2eb5-46a0-87ed-909ebfad171a
2026-01-30 14:46:42,475 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,484 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,492 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/545c85b7-e352-486b-9ff2-edcbb2e24295
2026-01-30 14:46:42,498 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/545c85b7-e352-486b-9ff2-edcbb2e24295
2026-01-30 14:46:42,504 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43cd9fa7-013c-40f0-9192-a4474c2a84ef
2026-01-30 14:46:42,509 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 14:46:42,509 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,517 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/545c85b7-e352-486b-9ff2-edcbb2e24295
2026-01-30 14:46:42,529 - INFO - Verified VN network id 12 for VN 8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,529 - INFO - Verifications in API Server for VN ctest-vn-89560570 passed
2026-01-30 14:46:42,529 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,536 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/545c85b7-e352-486b-9ff2-edcbb2e24295
2026-01-30 14:46:42,542 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/545c85b7-e352-486b-9ff2-edcbb2e24295
2026-01-30 14:46:42,549 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43cd9fa7-013c-40f0-9192-a4474c2a84ef
2026-01-30 14:46:42,559 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61728129', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10275893019568981461', 'uuid-lslong': '13752108600554610355'}, 'enable': 'true', 'created': '2026-01-30T14:46:40', 'last-modified': '2026-01-30T14:46:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938222'}
2026-01-30 14:46:42,565 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 14:46:42,565 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89560570 passed
2026-01-30 14:46:42,565 - DEBUG - ====Verifying policy data for ctest-vn-89560570 in API_Server ======
2026-01-30 14:46:42,565 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-30 14:46:42,570 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff618dc7-ed66-4937-b6d0-8a4283527306
2026-01-30 14:46:42,580 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9b67c70-2eb5-46a0-87ed-909ebfad171a
2026-01-30 14:46:42,647 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8e9b4e41-dd53-45d5-bed9-4de910a6deb3
2026-01-30 14:46:42,655 - DEBUG - ==>Verifying data for policy with id: 8844dc79-af87-4989-97ba-bc6e21a63c43, fqn: ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-policy-allow-all-44871832']
2026-01-30 14:46:42,655 - INFO - VN ctest-vn-89560570 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 14:46:42,655 - DEBUG - Verifying the vn in opserver
2026-01-30 14:46:42,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570 virtual network link through opserver 10.0.0.22
2026-01-30 14:46:42,655 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-30 14:46:42,954 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-30 14:46:43,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570?flat'}
2026-01-30 14:46:43,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-89560570 is found in opserver
2026-01-30 14:46:43,021 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 14:46:43,025 - DEBUG - VRF ids for VN ctest-vn-89560570: {}
2026-01-30 14:46:43,025 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-30 14:46:43,030 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff618dc7-ed66-4937-b6d0-8a4283527306
2026-01-30 14:46:43,039 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9b67c70-2eb5-46a0-87ed-909ebfad171a
2026-01-30 14:46:43,109 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,119 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,127 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039f3202-6123-46e6-a0aa-df79911277ee
2026-01-30 14:46:43,133 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039f3202-6123-46e6-a0aa-df79911277ee
2026-01-30 14:46:43,139 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/45120277-d62a-468a-940b-bf570e02ab7b
2026-01-30 14:46:43,145 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 14:46:43,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,152 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039f3202-6123-46e6-a0aa-df79911277ee
2026-01-30 14:46:43,166 - INFO - Verified VN network id 13 for VN a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,166 - INFO - Verifications in API Server for VN ctest-vn-23422327 passed
2026-01-30 14:46:43,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,174 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039f3202-6123-46e6-a0aa-df79911277ee
2026-01-30 14:46:43,180 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/039f3202-6123-46e6-a0aa-df79911277ee
2026-01-30 14:46:43,187 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/45120277-d62a-468a-940b-bf570e02ab7b
2026-01-30 14:46:43,198 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-23422327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61728129', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12167212798098951925', 'uuid-lslong': '12279491940068638720'}, 'enable': 'true', 'created': '2026-01-30T14:46:40', 'last-modified': '2026-01-30T14:46:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.345151'}
2026-01-30 14:46:43,204 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 14:46:43,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23422327 passed
2026-01-30 14:46:43,204 - DEBUG - ====Verifying policy data for ctest-vn-23422327 in API_Server ======
2026-01-30 14:46:43,204 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-30 14:46:43,213 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff618dc7-ed66-4937-b6d0-8a4283527306
2026-01-30 14:46:43,224 - DEBUG - Requesting: http://10.0.0.22:8082/project/d9b67c70-2eb5-46a0-87ed-909ebfad171a
2026-01-30 14:46:43,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8da9f93-4146-4ef5-aa69-84dc26104000
2026-01-30 14:46:43,302 - DEBUG - ==>Verifying data for policy with id: 8844dc79-af87-4989-97ba-bc6e21a63c43, fqn: ['default-domain', 'ctest-TestBasicPolicy-61728129', 'ctest-policy-allow-all-44871832']
2026-01-30 14:46:43,302 - INFO - VN ctest-vn-23422327 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 14:46:43,302 - DEBUG - Verifying the vn in opserver
2026-01-30 14:46:43,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-23422327 virtual network link through opserver 10.0.0.22
2026-01-30 14:46:43,302 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-30 14:46:43,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-23422327', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-23422327?flat'}
2026-01-30 14:46:43,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61728129:ctest-vn-23422327 is found in opserver
2026-01-30 14:46:43,323 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 14:46:43,328 - DEBUG - VRF ids for VN ctest-vn-23422327: {}
2026-01-30 14:46:43,384 - DEBUG - Services list from nova: [