2026-06-01 12:02:00,453 - INFO - Domain Default found not creating 2026-06-01 12:02:00,652 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37685844 not found, creating it 2026-06-01 12:02:01,155 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37685844, ID : 51fcba7e-f7d2-4242-a3ee-8bdf316f369c 2026-06-01 12:02:02,768 - INFO - ================================================================================ 2026-06-01 12:02:02,768 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 12:02:03,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-01 12:02:03,030 - INFO - Initial checks done. Running the testcase now 2026-06-01 12:02:03,030 - INFO - 2026-06-01 12:02:03,030 - INFO - ================================================================================ 2026-06-01 12:02:03,030 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 12:02:03,030 - 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-06-01 12:02:03,320 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-01 12:02:03,320 - INFO - Initial checks done. Running the testcase now 2026-06-01 12:02:03,320 - INFO - 2026-06-01 12:02:03,682 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551, 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-37685844:ctest-vn4-88247551, 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-37685844:ctest-vn4-88247551, 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-37685844:ctest-vn4-88247551, 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-01 12:02:04,215 - DEBUG - Response for create_network : {'network': {'id': '80e7ade7-3a2e-419a-8844-c9e42e0f3929', 'name': 'ctest-vn4-88247551', 'tenant_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'project_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37685844', 'ctest-vn4-88247551'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 12:02:04,366 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fa64c8e-918f-440b-a468-1d334c574820', 'name': '', 'tenant_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'network_id': '80e7ade7-3a2e-419a-8844-c9e42e0f3929', 'ip_version': 4, 'cidr': '192.179.162.0/26', 'allocation_pools': [{'start': '192.179.162.2', 'end': '192.179.162.62'}], 'gateway_ip': '192.179.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.179.162.2', 'tags': [], 'project_id': '51fcba7ef7d24242a3ee8bdf316f369c'}} 2026-06-01 12:02:04,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '95b183ee-4baf-4a48-90db-229ef18e8a28', 'name': '', 'tenant_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'network_id': '80e7ade7-3a2e-419a-8844-c9e42e0f3929', 'ip_version': 6, 'cidr': '2fc8:5332:2e1c:a40f:acfc:f1a6::/96', 'allocation_pools': [{'start': '2fc8:5332:2e1c:a40f:acfc:f1a6:0:2', 'end': '2fc8:5332:2e1c:a40f:acfc:f1a6:ffff:fffe'}], 'gateway_ip': '2fc8:5332:2e1c:a40f:acfc:f1a6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fc8:5332:2e1c:a40f:acfc:f1a6:0:2', 'tags': [], 'project_id': '51fcba7ef7d24242a3ee8bdf316f369c'}} 2026-06-01 12:02:04,594 - INFO - Created VN ctest-vn4-88247551 2026-06-01 12:02:04,647 - DEBUG - VN ctest-vn4-88247551 UUID is 80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:04,864 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80e7ade7-3a2e-419a-8844-c9e42e0f3929', 'name': 'ctest-vn4-88247551', 'tenant_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'project_id': '51fcba7ef7d24242a3ee8bdf316f369c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fa64c8e-918f-440b-a468-1d334c574820', '95b183ee-4baf-4a48-90db-229ef18e8a28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37685844', 'ctest-vn4-88247551'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37685844', 'ctest-policy1-33072090']], 'subnet_ipam': [{'subnet_cidr': '192.179.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fc8:5332:2e1c:a40f:acfc:f1a6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 12:02:05,019 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-01 12:02:05,323 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-01 12:02:05,361 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1c93daf5-4b4d-4898-a0cf-d605330f98e5 2026-06-01 12:02:05,375 - DEBUG - Requesting: http://10.0.0.50:8082/project/51fcba7e-f7d2-4242-a3ee-8bdf316f369c 2026-06-01 12:02:05,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,461 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,471 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:05,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:05,487 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d0f255e-dbd5-40d2-8e73-a6847d2f3c8d 2026-06-01 12:02:05,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 12:02:05,494 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,504 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:05,525 - INFO - Verified VN network id 11 for VN 80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,525 - INFO - Verifications in API Server for VN ctest-vn4-88247551 passed 2026-06-01 12:02:05,525 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:05,550 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:05,558 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d0f255e-dbd5-40d2-8e73-a6847d2f3c8d 2026-06-01 12:02:05,573 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37685844', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9288583965100097946', 'uuid-lslong': '9819195069436999977'}, 'enable': 'true', 'created': '2026-06-01T12:02:04', 'last-modified': '2026-06-01T12:02:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740449'} 2026-06-01 12:02:05,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 12:02:05,580 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88247551 passed 2026-06-01 12:02:05,580 - DEBUG - ====Verifying policy data for ctest-vn4-88247551 in API_Server ====== 2026-06-01 12:02:05,580 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-01 12:02:05,588 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1c93daf5-4b4d-4898-a0cf-d605330f98e5 2026-06-01 12:02:05,603 - DEBUG - Requesting: http://10.0.0.50:8082/project/51fcba7e-f7d2-4242-a3ee-8bdf316f369c 2026-06-01 12:02:05,680 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/80e7ade7-3a2e-419a-8844-c9e42e0f3929 2026-06-01 12:02:05,691 - DEBUG - ==>Verifying data for policy with id: 35b029c2-68c1-4207-ab7a-ebc0e68b3feb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37685844', 'ctest-policy1-33072090'] 2026-06-01 12:02:05,691 - INFO - VN ctest-vn4-88247551 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 12:02:05,691 - DEBUG - Verifying the vn in opserver 2026-06-01 12:02:05,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551 virtual network link through opserver 10.0.0.50 2026-06-01 12:02:05,691 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-01 12:02:05,984 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-01 12:02:06,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551?flat'} 2026-06-01 12:02:06,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37685844:ctest-vn4-88247551 is found in opserver 2026-06-01 12:02:06,075 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 12:02:06,080 - DEBUG - VRF ids for VN ctest-vn4-88247551: {} 2026-06-01 12:02:06,080 - DEBUG - ====Verifying data for ctest-policy1-33072090 in API_Server ====== 2026-06-01 12:02:06,081 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-01 12:02:06,087 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1c93daf5-4b4d-4898-a0cf-d605330f98e5 2026-06-01 12:02:06,099 - DEBUG - Requesting: http://10.0.0.50:8082/project/51fcba7e-f7d2-4242-a3ee-8bdf316f369c 2026-06-01 12:02:06,175 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/35b029c2-68c1-4207-ab7a-ebc0e68b3feb 2026-06-01 12:02:06,186 - INFO - Verified policy ctest-policy1-33072090 in API Server, Result: True 2026-06-01 12:02:06,186 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 12:02:06,196 - INFO - Deleting VN ctest-vn4-88247551 2026-06-01 12:02:06,323 - DEBUG - Response for deleting network () 2026-06-01 12:02:06,323 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48424e03-cae0-4d74-a521-c1e93e7c2211 2026-06-01 12:02:06,329 - DEBUG - Response Code: 404 2026-06-01 12:02:06,329 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-01 12:02:06,336 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1c93daf5-4b4d-4898-a0cf-d605330f98e5 2026-06-01 12:02:06,390 - DEBUG - Requesting: http://10.0.0.50:8082/project/51fcba7e-f7d2-4242-a3ee-8bdf316f369c 2026-06-01 12:02:06,459 - INFO - Validated that VN ctest-vn4-88247551 is not found in API Server 2026-06-01 12:02:06,469 - DEBUG - VN ctest-vn4-88247551 is not present in Agent 10.0.0.50 2026-06-01 12:02:06,469 - INFO - Validated that VN ctest-vn4-88247551 is not in any agent 2026-06-01 12:02:06,484 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88247551 info 2026-06-01 12:02:06,508 - INFO - Deleted policy ctest-policy1-33072090 2026-06-01 12:02:06,675 - DEBUG - policy ctest-policy1-33072090 is not found in API Server 2026-06-01 12:02:06,940 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 12:02:06,940 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-06-01 12:02:06,940 - INFO - -------------------------------------------------------------------------------- 2026-06-01 12:02:07,226 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 12:02:07,227 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-01 12:02:07,227 - INFO - -------------------------------------------------------------------------------- 2026-06-01 12:02:07,953 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37685844, ID : 51fcba7e-f7d2-4242-a3ee-8bdf316f369c