2026-03-19 02:27:06,794 - INFO - Domain Default found not creating 2026-03-19 02:27:06,959 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97811351 not found, creating it 2026-03-19 02:27:07,416 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97811351, ID : e1da85a6-f777-47bd-86cb-4c18baffb0d0 2026-03-19 02:27:08,902 - INFO - ================================================================================ 2026-03-19 02:27:08,902 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:27:09,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0'}} with 2026-03-19 02:27:09,159 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:27:09,159 - INFO - 2026-03-19 02:27:09,159 - INFO - ================================================================================ 2026-03-19 02:27:09,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:27:09,159 - 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-03-19 02:27:09,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0'}} with 2026-03-19 02:27:09,453 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:27:09,454 - INFO - 2026-03-19 02:27:09,815 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271, 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-97811351:ctest-vn4-05027271, 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-97811351:ctest-vn4-05027271, 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-97811351:ctest-vn4-05027271, 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-19 02:27:10,349 - DEBUG - Response for create_network : {'network': {'id': 'dfe1e24a-45e3-4ced-979c-73c013b08532', 'name': 'ctest-vn4-05027271', 'tenant_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'project_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97811351', 'ctest-vn4-05027271'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:27:10,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ead50eb-63c5-41c1-903e-fdbee8580a62', 'name': '', 'tenant_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'network_id': 'dfe1e24a-45e3-4ced-979c-73c013b08532', 'ip_version': 4, 'cidr': '155.199.80.0/26', 'allocation_pools': [{'start': '155.199.80.2', 'end': '155.199.80.62'}], 'gateway_ip': '155.199.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.199.80.2', 'tags': [], 'project_id': 'e1da85a6f77747bd86cb4c18baffb0d0'}} 2026-03-19 02:27:10,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '15b5c98a-2ff1-4f2e-ac04-b9d896814fc9', 'name': '', 'tenant_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'network_id': 'dfe1e24a-45e3-4ced-979c-73c013b08532', 'ip_version': 6, 'cidr': '3b51:f0ec:c782:1555:484e:6d12::/96', 'allocation_pools': [{'start': '3b51:f0ec:c782:1555:484e:6d12:0:2', 'end': '3b51:f0ec:c782:1555:484e:6d12:ffff:fffe'}], 'gateway_ip': '3b51:f0ec:c782:1555:484e:6d12:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b51:f0ec:c782:1555:484e:6d12:0:2', 'tags': [], 'project_id': 'e1da85a6f77747bd86cb4c18baffb0d0'}} 2026-03-19 02:27:10,756 - INFO - Created VN ctest-vn4-05027271 2026-03-19 02:27:10,809 - DEBUG - VN ctest-vn4-05027271 UUID is dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfe1e24a-45e3-4ced-979c-73c013b08532', 'name': 'ctest-vn4-05027271', 'tenant_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'project_id': 'e1da85a6f77747bd86cb4c18baffb0d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ead50eb-63c5-41c1-903e-fdbee8580a62', '15b5c98a-2ff1-4f2e-ac04-b9d896814fc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97811351', 'ctest-vn4-05027271'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97811351', 'ctest-policy1-08348524']], 'subnet_ipam': [{'subnet_cidr': '155.199.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b51:f0ec:c782:1555:484e:6d12::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:27:11,177 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 02:27:11,469 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 02:27:11,500 - DEBUG - Requesting: http://10.0.0.249:8082/domain/278385c2-5a59-4b69-a7f2-aaeef32c54f8 2026-03-19 02:27:11,512 - DEBUG - Requesting: http://10.0.0.249:8082/project/e1da85a6-f777-47bd-86cb-4c18baffb0d0 2026-03-19 02:27:11,586 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,598 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,607 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:11,614 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:11,623 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c33f21a6-7c50-47c2-9b4f-73d4385d3340 2026-03-19 02:27:11,629 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:27:11,630 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,640 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:11,657 - INFO - Verified VN network id 11 for VN dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,657 - INFO - Verifications in API Server for VN ctest-vn4-05027271 passed 2026-03-19 02:27:11,657 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,666 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:11,673 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:11,695 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c33f21a6-7c50-47c2-9b4f-73d4385d3340 2026-03-19 02:27:11,706 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97811351', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16132424148845808877', 'uuid-lslong': '10924734064895231282'}, 'enable': 'true', 'created': '2026-03-19T02:27:10', 'last-modified': '2026-03-19T02:27:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723686'} 2026-03-19 02:27:11,711 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:27:11,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05027271 passed 2026-03-19 02:27:11,712 - DEBUG - ====Verifying policy data for ctest-vn4-05027271 in API_Server ====== 2026-03-19 02:27:11,712 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 02:27:11,718 - DEBUG - Requesting: http://10.0.0.249:8082/domain/278385c2-5a59-4b69-a7f2-aaeef32c54f8 2026-03-19 02:27:11,730 - DEBUG - Requesting: http://10.0.0.249:8082/project/e1da85a6-f777-47bd-86cb-4c18baffb0d0 2026-03-19 02:27:11,800 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dfe1e24a-45e3-4ced-979c-73c013b08532 2026-03-19 02:27:11,813 - DEBUG - ==>Verifying data for policy with id: ab33669b-e36c-4485-9f47-5e9371abd844, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97811351', 'ctest-policy1-08348524'] 2026-03-19 02:27:11,813 - INFO - VN ctest-vn4-05027271 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 02:27:11,813 - DEBUG - Verifying the vn in opserver 2026-03-19 02:27:11,813 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271 virtual network link through opserver 10.0.0.249 2026-03-19 02:27:11,813 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-19 02:27:12,109 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-19 02:27:12,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271?flat'} 2026-03-19 02:27:12,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97811351:ctest-vn4-05027271 is found in opserver 2026-03-19 02:27:12,198 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 02:27:12,202 - DEBUG - VRF ids for VN ctest-vn4-05027271: {} 2026-03-19 02:27:12,203 - DEBUG - ====Verifying data for ctest-policy1-08348524 in API_Server ====== 2026-03-19 02:27:12,203 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 02:27:12,208 - DEBUG - Requesting: http://10.0.0.249:8082/domain/278385c2-5a59-4b69-a7f2-aaeef32c54f8 2026-03-19 02:27:12,220 - DEBUG - Requesting: http://10.0.0.249:8082/project/e1da85a6-f777-47bd-86cb-4c18baffb0d0 2026-03-19 02:27:12,291 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/ab33669b-e36c-4485-9f47-5e9371abd844 2026-03-19 02:27:12,301 - INFO - Verified policy ctest-policy1-08348524 in API Server, Result: True 2026-03-19 02:27:12,301 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 02:27:12,309 - INFO - Deleting VN ctest-vn4-05027271 2026-03-19 02:27:12,431 - DEBUG - Response for deleting network () 2026-03-19 02:27:12,432 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bf2dd8b-42b2-4bfa-846b-363277ad31e7 2026-03-19 02:27:12,437 - DEBUG - Response Code: 404 2026-03-19 02:27:12,437 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 02:27:12,442 - DEBUG - Requesting: http://10.0.0.249:8082/domain/278385c2-5a59-4b69-a7f2-aaeef32c54f8 2026-03-19 02:27:12,495 - DEBUG - Requesting: http://10.0.0.249:8082/project/e1da85a6-f777-47bd-86cb-4c18baffb0d0 2026-03-19 02:27:12,570 - INFO - Validated that VN ctest-vn4-05027271 is not found in API Server 2026-03-19 02:27:12,580 - DEBUG - VN ctest-vn4-05027271 is not present in Agent 10.0.0.249 2026-03-19 02:27:12,580 - INFO - Validated that VN ctest-vn4-05027271 is not in any agent 2026-03-19 02:27:12,594 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05027271 info 2026-03-19 02:27:12,618 - INFO - Deleted policy ctest-policy1-08348524 2026-03-19 02:27:12,784 - DEBUG - policy ctest-policy1-08348524 is not found in API Server 2026-03-19 02:27:13,042 - DEBUG - No XMPP flaps were noticed during the test