2026-08-17 05:32:54,605 - INFO - Domain Default found not creating 2026-08-17 05:32:54,783 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59594595 not found, creating it 2026-08-17 05:32:55,288 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59594595, ID : 9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645 2026-08-17 05:32:57,009 - INFO - ================================================================================ 2026-08-17 05:32:57,009 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 05:32:57,294 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.18': '0'}} with 2026-08-17 05:32:57,294 - INFO - Initial checks done. Running the testcase now 2026-08-17 05:32:57,294 - INFO - 2026-08-17 05:32:57,294 - INFO - ================================================================================ 2026-08-17 05:32:57,295 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 05:32:57,295 - 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-08-17 05:32:57,599 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.18': '0'}} with 2026-08-17 05:32:57,599 - INFO - Initial checks done. Running the testcase now 2026-08-17 05:32:57,599 - INFO - 2026-08-17 05:32:58,045 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947, 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-59594595:ctest-vn4-85024947, 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-59594595:ctest-vn4-85024947, 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-59594595:ctest-vn4-85024947, 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-08-17 05:32:58,613 - DEBUG - Response for create_network : {'network': {'id': '151df8ec-e9bb-4ea1-a766-ec631dfa2388', 'name': 'ctest-vn4-85024947', 'tenant_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'project_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59594595', 'ctest-vn4-85024947'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 05:32:58,805 - DEBUG - Response for create_subnet : {'subnet': {'id': '4df013d8-a897-4a3d-9726-630e6c0a0428', 'name': '', 'tenant_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'network_id': '151df8ec-e9bb-4ea1-a766-ec631dfa2388', 'ip_version': 4, 'cidr': '64.70.31.0/26', 'allocation_pools': [{'start': '64.70.31.2', 'end': '64.70.31.62'}], 'gateway_ip': '64.70.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.70.31.2', 'tags': [], 'project_id': '9c0eeb3dac004c08ab35d47cdd2c8645'}} 2026-08-17 05:32:58,984 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0985b32-223c-4c0a-9520-1987b14cbbce', 'name': '', 'tenant_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'network_id': '151df8ec-e9bb-4ea1-a766-ec631dfa2388', 'ip_version': 6, 'cidr': '24bc:da8d:3265:66a7:934b:cfc8::/96', 'allocation_pools': [{'start': '24bc:da8d:3265:66a7:934b:cfc8:0:2', 'end': '24bc:da8d:3265:66a7:934b:cfc8:ffff:fffe'}], 'gateway_ip': '24bc:da8d:3265:66a7:934b:cfc8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24bc:da8d:3265:66a7:934b:cfc8:0:2', 'tags': [], 'project_id': '9c0eeb3dac004c08ab35d47cdd2c8645'}} 2026-08-17 05:32:59,006 - INFO - Created VN ctest-vn4-85024947 2026-08-17 05:32:59,064 - DEBUG - VN ctest-vn4-85024947 UUID is 151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:32:59,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '151df8ec-e9bb-4ea1-a766-ec631dfa2388', 'name': 'ctest-vn4-85024947', 'tenant_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'project_id': '9c0eeb3dac004c08ab35d47cdd2c8645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4df013d8-a897-4a3d-9726-630e6c0a0428', 'c0985b32-223c-4c0a-9520-1987b14cbbce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59594595', 'ctest-vn4-85024947'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59594595', 'ctest-policy1-35844413']], 'subnet_ipam': [{'subnet_cidr': '64.70.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24bc:da8d:3265:66a7:934b:cfc8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 05:32:59,480 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-17 05:32:59,855 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-17 05:32:59,885 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c 2026-08-17 05:32:59,900 - DEBUG - Requesting: http://10.0.0.161:8082/project/9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645 2026-08-17 05:32:59,981 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:32:59,995 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:33:00,006 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,015 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,023 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/e6da3b5f-2076-4828-9f97-1b4895586eff 2026-08-17 05:33:00,032 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-17 05:33:00,032 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:33:00,043 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,062 - INFO - Verified VN network id 12 for VN 151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:33:00,062 - INFO - Verifications in API Server for VN ctest-vn4-85024947 passed 2026-08-17 05:33:00,063 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:33:00,075 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,084 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,092 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/e6da3b5f-2076-4828-9f97-1b4895586eff 2026-08-17 05:33:00,107 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59594595', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1521645945538432673', 'uuid-lslong': '12062588562407302024'}, 'enable': 'true', 'created': '2026-08-17T05:32:58', 'last-modified': '2026-08-17T05:32:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.834448'} 2026-08-17 05:33:00,116 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-17 05:33:00,116 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85024947 passed 2026-08-17 05:33:00,116 - DEBUG - ====Verifying policy data for ctest-vn4-85024947 in API_Server ====== 2026-08-17 05:33:00,116 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-17 05:33:00,123 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c 2026-08-17 05:33:00,136 - DEBUG - Requesting: http://10.0.0.161:8082/project/9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645 2026-08-17 05:33:00,217 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/151df8ec-e9bb-4ea1-a766-ec631dfa2388 2026-08-17 05:33:00,229 - DEBUG - ==>Verifying data for policy with id: a2a54c79-b46b-4993-a280-da0b64c32270, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59594595', 'ctest-policy1-35844413'] 2026-08-17 05:33:00,229 - INFO - VN ctest-vn4-85024947 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 05:33:00,229 - DEBUG - Verifying the vn in opserver 2026-08-17 05:33:00,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947 virtual network link through opserver 10.0.0.161 2026-08-17 05:33:00,229 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-17 05:33:00,599 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-17 05:33:00,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947?flat'} 2026-08-17 05:33:00,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59594595:ctest-vn4-85024947 is found in opserver 2026-08-17 05:33:00,672 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 05:33:00,678 - DEBUG - VRF ids for VN ctest-vn4-85024947: {} 2026-08-17 05:33:00,678 - DEBUG - ====Verifying data for ctest-policy1-35844413 in API_Server ====== 2026-08-17 05:33:00,678 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-17 05:33:00,685 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c 2026-08-17 05:33:00,697 - DEBUG - Requesting: http://10.0.0.161:8082/project/9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645 2026-08-17 05:33:00,783 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/a2a54c79-b46b-4993-a280-da0b64c32270 2026-08-17 05:33:00,794 - INFO - Verified policy ctest-policy1-35844413 in API Server, Result: True 2026-08-17 05:33:00,795 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 05:33:00,806 - INFO - Deleting VN ctest-vn4-85024947 2026-08-17 05:33:00,948 - DEBUG - Response for deleting network () 2026-08-17 05:33:00,948 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/72094854-016f-4082-a838-647cad05e4d2 2026-08-17 05:33:00,955 - DEBUG - Response Code: 404 2026-08-17 05:33:00,955 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-17 05:33:00,961 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c 2026-08-17 05:33:01,022 - DEBUG - Requesting: http://10.0.0.161:8082/project/9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645 2026-08-17 05:33:01,106 - INFO - Validated that VN ctest-vn4-85024947 is not found in API Server 2026-08-17 05:33:01,118 - DEBUG - VN ctest-vn4-85024947 is not present in Agent 10.0.0.161 2026-08-17 05:33:01,118 - INFO - Validated that VN ctest-vn4-85024947 is not in any agent 2026-08-17 05:33:01,134 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85024947 info 2026-08-17 05:33:01,167 - INFO - Deleted policy ctest-policy1-35844413 2026-08-17 05:33:01,339 - DEBUG - policy ctest-policy1-35844413 is not found in API Server 2026-08-17 05:33:01,611 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 05:33:01,611 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-17 05:33:01,611 - INFO - -------------------------------------------------------------------------------- 2026-08-17 05:33:01,909 - DEBUG - No XMPP flaps were noticed during the test 2026-08-17 05:33:01,909 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-17 05:33:01,910 - INFO - -------------------------------------------------------------------------------- 2026-08-17 05:33:02,694 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59594595, ID : 9c0eeb3d-ac00-4c08-ab35-d47cdd2c8645