2026-11-02 19:28:18,437 - INFO - Domain Default found not creating 2026-11-02 19:28:18,632 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51561027 not found, creating it 2026-11-02 19:28:19,140 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51561027, ID : 9da07f1e-5186-4110-b306-86a31ecb46c5 2026-11-02 19:28:21,000 - INFO - ================================================================================ 2026-11-02 19:28:21,000 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 19:28:21,260 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-11-02 19:28:21,260 - INFO - Initial checks done. Running the testcase now 2026-11-02 19:28:21,261 - INFO - 2026-11-02 19:28:21,261 - INFO - ================================================================================ 2026-11-02 19:28:21,261 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 19:28:21,261 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-11-02 19:28:21,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-11-02 19:28:21,560 - INFO - Initial checks done. Running the testcase now 2026-11-02 19:28:21,560 - INFO - 2026-11-02 19:28:22,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537, 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-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537, 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-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537, 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-11-02 19:28:22,608 - DEBUG - Response for create_network : {'network': {'id': 'fac24426-3fdf-49b9-8957-a559e4471375', 'name': 'ctest-vn4-76916537', 'tenant_id': '9da07f1e51864110b30686a31ecb46c5', 'project_id': '9da07f1e51864110b30686a31ecb46c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51561027', 'ctest-vn4-76916537'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 19:28:22,788 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ea3173a-540a-4f06-aa7a-50fed98b82a8', 'name': '', 'tenant_id': '9da07f1e51864110b30686a31ecb46c5', 'network_id': 'fac24426-3fdf-49b9-8957-a559e4471375', 'ip_version': 4, 'cidr': '135.137.76.128/26', 'allocation_pools': [{'start': '135.137.76.130', 'end': '135.137.76.190'}], 'gateway_ip': '135.137.76.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.137.76.130', 'tags': [], 'project_id': '9da07f1e51864110b30686a31ecb46c5'}} 2026-11-02 19:28:23,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e27e5aa1-ed3f-4904-ac86-7b331e476507', 'name': '', 'tenant_id': '9da07f1e51864110b30686a31ecb46c5', 'network_id': 'fac24426-3fdf-49b9-8957-a559e4471375', 'ip_version': 6, 'cidr': '321b:a5f1:7b8d:59e6:636b:a489::/96', 'allocation_pools': [{'start': '321b:a5f1:7b8d:59e6:636b:a489:0:2', 'end': '321b:a5f1:7b8d:59e6:636b:a489:ffff:fffe'}], 'gateway_ip': '321b:a5f1:7b8d:59e6:636b:a489:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '321b:a5f1:7b8d:59e6:636b:a489:0:2', 'tags': [], 'project_id': '9da07f1e51864110b30686a31ecb46c5'}} 2026-11-02 19:28:23,038 - INFO - Created VN ctest-vn4-76916537 2026-11-02 19:28:23,092 - DEBUG - VN ctest-vn4-76916537 UUID is fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:23,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fac24426-3fdf-49b9-8957-a559e4471375', 'name': 'ctest-vn4-76916537', 'tenant_id': '9da07f1e51864110b30686a31ecb46c5', 'project_id': '9da07f1e51864110b30686a31ecb46c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7ea3173a-540a-4f06-aa7a-50fed98b82a8', 'e27e5aa1-ed3f-4904-ac86-7b331e476507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51561027', 'ctest-vn4-76916537'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51561027', 'ctest-policy1-46087916']], 'subnet_ipam': [{'subnet_cidr': '135.137.76.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '321b:a5f1:7b8d:59e6:636b:a489::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 19:28:23,488 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 19:28:24,117 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 19:28:24,151 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff097619-f248-4178-8a91-adf0cb7d2f06 2026-11-02 19:28:24,166 - DEBUG - Requesting: http://10.0.0.38:8082/project/9da07f1e-5186-4110-b306-86a31ecb46c5 2026-11-02 19:28:24,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,259 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,274 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:24,284 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:24,293 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7fcba2ab-f5b5-4da7-aa01-2de8d422934e 2026-11-02 19:28:24,302 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 19:28:24,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,319 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:24,334 - INFO - Verified VN network id 12 for VN fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,334 - INFO - Verifications in API Server for VN ctest-vn4-76916537 passed 2026-11-02 19:28:24,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,343 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:24,349 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:24,355 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7fcba2ab-f5b5-4da7-aa01-2de8d422934e 2026-11-02 19:28:24,370 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51561027', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18069079586034895289', 'uuid-lslong': '9896560511670489973'}, 'enable': 'true', 'created': '2026-11-02T19:28:22', 'last-modified': '2026-11-02T19:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.089499'} 2026-11-02 19:28:24,379 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 19:28:24,379 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76916537 passed 2026-11-02 19:28:24,379 - DEBUG - ====Verifying policy data for ctest-vn4-76916537 in API_Server ====== 2026-11-02 19:28:24,379 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 19:28:24,386 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff097619-f248-4178-8a91-adf0cb7d2f06 2026-11-02 19:28:24,399 - DEBUG - Requesting: http://10.0.0.38:8082/project/9da07f1e-5186-4110-b306-86a31ecb46c5 2026-11-02 19:28:24,478 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fac24426-3fdf-49b9-8957-a559e4471375 2026-11-02 19:28:24,489 - DEBUG - ==>Verifying data for policy with id: 84d8c2ae-9dda-4502-ad7e-03e44407f306, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51561027', 'ctest-policy1-46087916'] 2026-11-02 19:28:24,490 - INFO - VN ctest-vn4-76916537 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 19:28:24,490 - DEBUG - Verifying the vn in opserver 2026-11-02 19:28:24,490 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537 virtual network link through opserver 10.0.0.38 2026-11-02 19:28:24,490 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 19:28:24,918 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 19:28:24,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537?flat'} 2026-11-02 19:28:24,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51561027:ctest-vn4-76916537 is found in opserver 2026-11-02 19:28:24,991 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 19:28:24,996 - DEBUG - VRF ids for VN ctest-vn4-76916537: {} 2026-11-02 19:28:24,997 - DEBUG - ====Verifying data for ctest-policy1-46087916 in API_Server ====== 2026-11-02 19:28:24,997 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 19:28:25,003 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff097619-f248-4178-8a91-adf0cb7d2f06 2026-11-02 19:28:25,016 - DEBUG - Requesting: http://10.0.0.38:8082/project/9da07f1e-5186-4110-b306-86a31ecb46c5 2026-11-02 19:28:25,091 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/84d8c2ae-9dda-4502-ad7e-03e44407f306 2026-11-02 19:28:25,104 - INFO - Verified policy ctest-policy1-46087916 in API Server, Result: True 2026-11-02 19:28:25,105 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 19:28:25,115 - INFO - Deleting VN ctest-vn4-76916537 2026-11-02 19:28:25,234 - DEBUG - Response for deleting network () 2026-11-02 19:28:25,234 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ace5c32-17c3-4100-8adf-ef2103e6e6fb 2026-11-02 19:28:25,239 - DEBUG - Response Code: 404 2026-11-02 19:28:25,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 19:28:25,244 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff097619-f248-4178-8a91-adf0cb7d2f06 2026-11-02 19:28:25,298 - DEBUG - Requesting: http://10.0.0.38:8082/project/9da07f1e-5186-4110-b306-86a31ecb46c5 2026-11-02 19:28:25,377 - INFO - Validated that VN ctest-vn4-76916537 is not found in API Server 2026-11-02 19:28:25,390 - DEBUG - VN ctest-vn4-76916537 is not present in Agent 10.0.0.38 2026-11-02 19:28:25,390 - INFO - Validated that VN ctest-vn4-76916537 is not in any agent 2026-11-02 19:28:25,411 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76916537 info 2026-11-02 19:28:25,438 - INFO - Deleted policy ctest-policy1-46087916 2026-11-02 19:28:25,611 - DEBUG - policy ctest-policy1-46087916 is not found in API Server 2026-11-02 19:28:25,880 - DEBUG - No XMPP flaps were noticed during the test
2026-11-02 19:28:25,880 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-02 19:28:25,880 - INFO - -------------------------------------------------------------------------------- 2026-11-02 19:28:26,166 - DEBUG - No XMPP flaps were noticed during the test
2026-11-02 19:28:26,166 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-02 19:28:26,166 - INFO - -------------------------------------------------------------------------------- 2026-11-02 19:28:26,995 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51561027, ID : 9da07f1e-5186-4110-b306-86a31ecb46c5