2026-01-28 17:48:47,340 - INFO - Domain Default found not creating 2026-01-28 17:48:47,492 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55139907 not found, creating it 2026-01-28 17:48:47,941 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55139907, ID : 5e04129a-2f4f-47a8-b2de-dc4093deeef0 2026-01-28 17:48:49,365 - INFO - ================================================================================ 2026-01-28 17:48:49,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 17:48:49,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-28 17:48:49,622 - INFO - Initial checks done. Running the testcase now 2026-01-28 17:48:49,622 - INFO - 2026-01-28 17:48:49,622 - INFO - ================================================================================ 2026-01-28 17:48:49,623 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 17:48:49,623 - 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-01-28 17:48:49,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-28 17:48:49,909 - INFO - Initial checks done. Running the testcase now 2026-01-28 17:48:49,909 - INFO - 2026-01-28 17:48:50,256 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429, 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-55139907:ctest-vn4-29902429, 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-55139907:ctest-vn4-29902429, 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-55139907:ctest-vn4-29902429, 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-28 17:48:50,763 - DEBUG - Response for create_network : {'network': {'id': 'e681c26c-5438-486e-82ae-9a150364cc8d', 'name': 'ctest-vn4-29902429', 'tenant_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'project_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55139907', 'ctest-vn4-29902429'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 17:48:50,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ab6c593-c1dd-4410-9047-615aba84d8a3', 'name': '', 'tenant_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'network_id': 'e681c26c-5438-486e-82ae-9a150364cc8d', 'ip_version': 4, 'cidr': '45.66.64.64/26', 'allocation_pools': [{'start': '45.66.64.66', 'end': '45.66.64.126'}], 'gateway_ip': '45.66.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.66.64.66', 'tags': [], 'project_id': '5e04129a2f4f47a8b2dedc4093deeef0'}} 2026-01-28 17:48:51,157 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8f06642-e200-436e-be09-ad19fd89273f', 'name': '', 'tenant_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'network_id': 'e681c26c-5438-486e-82ae-9a150364cc8d', 'ip_version': 6, 'cidr': '3cda:3701:e724:bb36:a78d:54c7::/96', 'allocation_pools': [{'start': '3cda:3701:e724:bb36:a78d:54c7:0:2', 'end': '3cda:3701:e724:bb36:a78d:54c7:ffff:fffe'}], 'gateway_ip': '3cda:3701:e724:bb36:a78d:54c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cda:3701:e724:bb36:a78d:54c7:0:2', 'tags': [], 'project_id': '5e04129a2f4f47a8b2dedc4093deeef0'}} 2026-01-28 17:48:51,177 - INFO - Created VN ctest-vn4-29902429 2026-01-28 17:48:51,229 - DEBUG - VN ctest-vn4-29902429 UUID is e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:51,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e681c26c-5438-486e-82ae-9a150364cc8d', 'name': 'ctest-vn4-29902429', 'tenant_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'project_id': '5e04129a2f4f47a8b2dedc4093deeef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ab6c593-c1dd-4410-9047-615aba84d8a3', 'f8f06642-e200-436e-be09-ad19fd89273f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55139907', 'ctest-vn4-29902429'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55139907', 'ctest-policy1-84106279']], 'subnet_ipam': [{'subnet_cidr': '45.66.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cda:3701:e724:bb36:a78d:54c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 17:48:51,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 17:48:51,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 17:48:51,897 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09 2026-01-28 17:48:51,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/5e04129a-2f4f-47a8-b2de-dc4093deeef0 2026-01-28 17:48:51,978 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:51,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:51,997 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,003 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,009 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b976de5-8017-4731-951b-74b142007003 2026-01-28 17:48:52,014 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 17:48:52,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:52,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,036 - INFO - Verified VN network id 12 for VN e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:52,036 - INFO - Verifications in API Server for VN ctest-vn4-29902429 passed 2026-01-28 17:48:52,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:52,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,056 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b976de5-8017-4731-951b-74b142007003 2026-01-28 17:48:52,066 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55139907', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16609770671244331118', 'uuid-lslong': '9416633285920214157'}, 'enable': 'true', 'created': '2026-01-28T17:48:50', 'last-modified': '2026-01-28T17:48:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670141'} 2026-01-28 17:48:52,071 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 17:48:52,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29902429 passed 2026-01-28 17:48:52,072 - DEBUG - ====Verifying policy data for ctest-vn4-29902429 in API_Server ====== 2026-01-28 17:48:52,072 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 17:48:52,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09 2026-01-28 17:48:52,086 - DEBUG - Requesting: http://10.0.0.38:8082/project/5e04129a-2f4f-47a8-b2de-dc4093deeef0 2026-01-28 17:48:52,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e681c26c-5438-486e-82ae-9a150364cc8d 2026-01-28 17:48:52,168 - DEBUG - ==>Verifying data for policy with id: f432dffb-de04-4313-93e6-be9b6adf66d6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55139907', 'ctest-policy1-84106279'] 2026-01-28 17:48:52,168 - INFO - VN ctest-vn4-29902429 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 17:48:52,168 - DEBUG - Verifying the vn in opserver 2026-01-28 17:48:52,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429 virtual network link through opserver 10.0.0.38 2026-01-28 17:48:52,169 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-28 17:48:52,462 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-28 17:48:52,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429?flat'} 2026-01-28 17:48:52,521 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55139907:ctest-vn4-29902429 is found in opserver 2026-01-28 17:48:52,531 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 17:48:52,535 - DEBUG - VRF ids for VN ctest-vn4-29902429: {} 2026-01-28 17:48:52,535 - DEBUG - ====Verifying data for ctest-policy1-84106279 in API_Server ====== 2026-01-28 17:48:52,535 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 17:48:52,540 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09 2026-01-28 17:48:52,550 - DEBUG - Requesting: http://10.0.0.38:8082/project/5e04129a-2f4f-47a8-b2de-dc4093deeef0 2026-01-28 17:48:52,616 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f432dffb-de04-4313-93e6-be9b6adf66d6 2026-01-28 17:48:52,624 - INFO - Verified policy ctest-policy1-84106279 in API Server, Result: True 2026-01-28 17:48:52,624 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 17:48:52,631 - INFO - Deleting VN ctest-vn4-29902429 2026-01-28 17:48:52,750 - DEBUG - Response for deleting network () 2026-01-28 17:48:52,750 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/285eac9d-924c-4675-9b6c-844be6d208a1 2026-01-28 17:48:52,755 - DEBUG - Response Code: 404 2026-01-28 17:48:52,755 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-28 17:48:52,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9a62bedf-dab5-4bd9-82b0-dcb953c50c09 2026-01-28 17:48:52,815 - DEBUG - Requesting: http://10.0.0.38:8082/project/5e04129a-2f4f-47a8-b2de-dc4093deeef0 2026-01-28 17:48:52,886 - INFO - Validated that VN ctest-vn4-29902429 is not found in API Server 2026-01-28 17:48:52,897 - DEBUG - VN ctest-vn4-29902429 is not present in Agent 10.0.0.38 2026-01-28 17:48:52,897 - INFO - Validated that VN ctest-vn4-29902429 is not in any agent 2026-01-28 17:48:52,912 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29902429 info 2026-01-28 17:48:52,935 - INFO - Deleted policy ctest-policy1-84106279 2026-01-28 17:48:53,097 - DEBUG - policy ctest-policy1-84106279 is not found in API Server 2026-01-28 17:48:53,349 - DEBUG - No XMPP flaps were noticed during the test