2026-11-06 21:11:34,972 - INFO - Domain Default found not creating 2026-11-06 21:11:35,201 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63787483 not found, creating it 2026-11-06 21:11:35,724 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63787483, ID : a38008b0-ab3c-4261-a724-866e567dd652 2026-11-06 21:11:37,966 - INFO - ================================================================================ 2026-11-06 21:11:37,966 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 21:11:38,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-11-06 21:11:38,255 - INFO - Initial checks done. Running the testcase now 2026-11-06 21:11:38,255 - INFO - 2026-11-06 21:11:38,255 - INFO - ================================================================================ 2026-11-06 21:11:38,255 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 21:11:38,255 - 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-06 21:11:38,572 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-11-06 21:11:38,572 - INFO - Initial checks done. Running the testcase now 2026-11-06 21:11:38,572 - INFO - 2026-11-06 21:11:38,987 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853, 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-63787483:ctest-vn4-30841853, 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-63787483:ctest-vn4-30841853, 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-63787483:ctest-vn4-30841853, 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-06 21:11:39,545 - DEBUG - Response for create_network : {'network': {'id': 'c0cb601b-fae4-42ae-92d7-106cedc1020d', 'name': 'ctest-vn4-30841853', 'tenant_id': 'a38008b0ab3c4261a724866e567dd652', 'project_id': 'a38008b0ab3c4261a724866e567dd652', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63787483', 'ctest-vn4-30841853'], 'port_security_enabled': True, 'description': ''}} 2026-11-06 21:11:39,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0bf18fd-d119-4e0a-9747-52fef66aa8b5', 'name': '', 'tenant_id': 'a38008b0ab3c4261a724866e567dd652', 'network_id': 'c0cb601b-fae4-42ae-92d7-106cedc1020d', 'ip_version': 4, 'cidr': '46.70.114.128/26', 'allocation_pools': [{'start': '46.70.114.130', 'end': '46.70.114.190'}], 'gateway_ip': '46.70.114.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.70.114.130', 'tags': [], 'project_id': 'a38008b0ab3c4261a724866e567dd652'}} 2026-11-06 21:11:39,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '5899ed76-f984-4636-ba5a-68f45a8ad9c4', 'name': '', 'tenant_id': 'a38008b0ab3c4261a724866e567dd652', 'network_id': 'c0cb601b-fae4-42ae-92d7-106cedc1020d', 'ip_version': 6, 'cidr': '3fa4:f195:b689:cfb3:d529:ca5::/96', 'allocation_pools': [{'start': '3fa4:f195:b689:cfb3:d529:ca5:0:2', 'end': '3fa4:f195:b689:cfb3:d529:ca5:ffff:fffe'}], 'gateway_ip': '3fa4:f195:b689:cfb3:d529:ca5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fa4:f195:b689:cfb3:d529:ca5:0:2', 'tags': [], 'project_id': 'a38008b0ab3c4261a724866e567dd652'}} 2026-11-06 21:11:39,945 - INFO - Created VN ctest-vn4-30841853 2026-11-06 21:11:40,000 - DEBUG - VN ctest-vn4-30841853 UUID is c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:40,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0cb601b-fae4-42ae-92d7-106cedc1020d', 'name': 'ctest-vn4-30841853', 'tenant_id': 'a38008b0ab3c4261a724866e567dd652', 'project_id': 'a38008b0ab3c4261a724866e567dd652', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d0bf18fd-d119-4e0a-9747-52fef66aa8b5', '5899ed76-f984-4636-ba5a-68f45a8ad9c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63787483', 'ctest-vn4-30841853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63787483', 'ctest-policy1-72298718']], 'subnet_ipam': [{'subnet_cidr': '46.70.114.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fa4:f195:b689:cfb3:d529:ca5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-06 21:11:40,404 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-11-06 21:11:41,039 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-11-06 21:11:41,073 - DEBUG - Requesting: http://10.0.0.189:8082/domain/c4e2925e-8785-416d-a2da-d7b41e7ebad6 2026-11-06 21:11:41,085 - DEBUG - Requesting: http://10.0.0.189:8082/project/a38008b0-ab3c-4261-a724-866e567dd652 2026-11-06 21:11:41,163 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,177 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,187 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:41,194 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:41,201 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/df16b385-2900-409f-89a8-1a2fb8d34ecc 2026-11-06 21:11:41,209 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 21:11:41,209 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,222 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:41,242 - INFO - Verified VN network id 12 for VN c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,242 - INFO - Verifications in API Server for VN ctest-vn4-30841853 passed 2026-11-06 21:11:41,242 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,255 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:41,266 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:41,275 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/df16b385-2900-409f-89a8-1a2fb8d34ecc 2026-11-06 21:11:41,289 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63787483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13892303148844073646', 'uuid-lslong': '10580943909561631245'}, 'enable': 'true', 'created': '2026-11-06T21:11:39', 'last-modified': '2026-11-06T21:11:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087634'} 2026-11-06 21:11:41,297 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 21:11:41,297 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30841853 passed 2026-11-06 21:11:41,298 - DEBUG - ====Verifying policy data for ctest-vn4-30841853 in API_Server ====== 2026-11-06 21:11:41,298 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-11-06 21:11:41,304 - DEBUG - Requesting: http://10.0.0.189:8082/domain/c4e2925e-8785-416d-a2da-d7b41e7ebad6 2026-11-06 21:11:41,313 - DEBUG - Requesting: http://10.0.0.189:8082/project/a38008b0-ab3c-4261-a724-866e567dd652 2026-11-06 21:11:41,383 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/c0cb601b-fae4-42ae-92d7-106cedc1020d 2026-11-06 21:11:41,395 - DEBUG - ==>Verifying data for policy with id: a25044e3-d6f3-4f90-8cc2-f925af77cd65, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63787483', 'ctest-policy1-72298718'] 2026-11-06 21:11:41,395 - INFO - VN ctest-vn4-30841853 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-06 21:11:41,395 - DEBUG - Verifying the vn in opserver 2026-11-06 21:11:41,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853 virtual network link through opserver 10.0.0.189 2026-11-06 21:11:41,396 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-11-06 21:11:41,762 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-11-06 21:11:41,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853?flat'} 2026-11-06 21:11:41,824 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63787483:ctest-vn4-30841853 is found in opserver 2026-11-06 21:11:41,834 - DEBUG - Do not have enough data to verify VN in agent 2026-11-06 21:11:41,840 - DEBUG - VRF ids for VN ctest-vn4-30841853: {} 2026-11-06 21:11:41,840 - DEBUG - ====Verifying data for ctest-policy1-72298718 in API_Server ====== 2026-11-06 21:11:41,840 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-11-06 21:11:41,846 - DEBUG - Requesting: http://10.0.0.189:8082/domain/c4e2925e-8785-416d-a2da-d7b41e7ebad6 2026-11-06 21:11:41,856 - DEBUG - Requesting: http://10.0.0.189:8082/project/a38008b0-ab3c-4261-a724-866e567dd652 2026-11-06 21:11:41,932 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/a25044e3-d6f3-4f90-8cc2-f925af77cd65 2026-11-06 21:11:41,943 - INFO - Verified policy ctest-policy1-72298718 in API Server, Result: True 2026-11-06 21:11:41,943 - INFO - Done with setup and verification, moving onto test .. 2026-11-06 21:11:41,951 - INFO - Deleting VN ctest-vn4-30841853 2026-11-06 21:11:42,068 - DEBUG - Response for deleting network () 2026-11-06 21:11:42,068 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/d280384d-e78c-479d-b12b-977c2892cfc7 2026-11-06 21:11:42,073 - DEBUG - Response Code: 404 2026-11-06 21:11:42,073 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-11-06 21:11:42,079 - DEBUG - Requesting: http://10.0.0.189:8082/domain/c4e2925e-8785-416d-a2da-d7b41e7ebad6 2026-11-06 21:11:42,133 - DEBUG - Requesting: http://10.0.0.189:8082/project/a38008b0-ab3c-4261-a724-866e567dd652 2026-11-06 21:11:42,212 - INFO - Validated that VN ctest-vn4-30841853 is not found in API Server 2026-11-06 21:11:42,225 - DEBUG - VN ctest-vn4-30841853 is not present in Agent 10.0.0.189 2026-11-06 21:11:42,225 - INFO - Validated that VN ctest-vn4-30841853 is not in any agent 2026-11-06 21:11:42,245 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30841853 info 2026-11-06 21:11:42,279 - INFO - Deleted policy ctest-policy1-72298718 2026-11-06 21:11:42,456 - DEBUG - policy ctest-policy1-72298718 is not found in API Server 2026-11-06 21:11:42,717 - DEBUG - No XMPP flaps were noticed during the test