2026-02-04 21:40:37,188 - INFO - Domain Default found not creating 2026-02-04 21:40:37,352 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34635723 not found, creating it 2026-02-04 21:40:37,789 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34635723, ID : 2bf94c8b-fbaf-46df-acbf-bd75e5a41b40 2026-02-04 21:40:39,196 - INFO - ================================================================================ 2026-02-04 21:40:39,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 21:40:39,452 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-04 21:40:39,452 - INFO - Initial checks done. Running the testcase now 2026-02-04 21:40:39,452 - INFO - 2026-02-04 21:40:39,452 - INFO - ================================================================================ 2026-02-04 21:40:39,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 21:40:39,452 - 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-02-04 21:40:39,738 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-04 21:40:39,738 - INFO - Initial checks done. Running the testcase now 2026-02-04 21:40:39,738 - INFO - 2026-02-04 21:40:40,088 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439, 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-34635723:ctest-vn4-12022439, 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-34635723:ctest-vn4-12022439, 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-34635723:ctest-vn4-12022439, 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-02-04 21:40:40,589 - DEBUG - Response for create_network : {'network': {'id': 'f8c2fd84-5492-4957-8fe7-266eb08300ad', 'name': 'ctest-vn4-12022439', 'tenant_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'project_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34635723', 'ctest-vn4-12022439'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 21:40:40,803 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd602aa34-b205-439d-9eec-5c8a6d3ac81b', 'name': '', 'tenant_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'network_id': 'f8c2fd84-5492-4957-8fe7-266eb08300ad', 'ip_version': 4, 'cidr': '216.52.88.64/26', 'allocation_pools': [{'start': '216.52.88.66', 'end': '216.52.88.126'}], 'gateway_ip': '216.52.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.52.88.66', 'tags': [], 'project_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40'}} 2026-02-04 21:40:41,029 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af62203d-97e0-4b89-89ff-db1326cc9fde', 'name': '', 'tenant_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'network_id': 'f8c2fd84-5492-4957-8fe7-266eb08300ad', 'ip_version': 6, 'cidr': '396d:e404:569b:e7cf:469d:b3c4::/96', 'allocation_pools': [{'start': '396d:e404:569b:e7cf:469d:b3c4:0:2', 'end': '396d:e404:569b:e7cf:469d:b3c4:ffff:fffe'}], 'gateway_ip': '396d:e404:569b:e7cf:469d:b3c4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '396d:e404:569b:e7cf:469d:b3c4:0:2', 'tags': [], 'project_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40'}} 2026-02-04 21:40:41,048 - INFO - Created VN ctest-vn4-12022439 2026-02-04 21:40:41,098 - DEBUG - VN ctest-vn4-12022439 UUID is f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8c2fd84-5492-4957-8fe7-266eb08300ad', 'name': 'ctest-vn4-12022439', 'tenant_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'project_id': '2bf94c8bfbaf46dfacbfbd75e5a41b40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d602aa34-b205-439d-9eec-5c8a6d3ac81b', 'af62203d-97e0-4b89-89ff-db1326cc9fde'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34635723', 'ctest-vn4-12022439'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34635723', 'ctest-policy1-81418487']], 'subnet_ipam': [{'subnet_cidr': '216.52.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '396d:e404:569b:e7cf:469d:b3c4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 21:40:41,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 21:40:41,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 21:40:41,797 - DEBUG - Requesting: http://10.0.0.50:8082/domain/010506cc-b7cf-4ee8-b41e-b3fdd3161dd8 2026-02-04 21:40:41,809 - DEBUG - Requesting: http://10.0.0.50:8082/project/2bf94c8b-fbaf-46df-acbf-bd75e5a41b40 2026-02-04 21:40:41,879 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:41,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:41,910 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/584f69ac-b392-4a0e-adb8-ba60da833af3 2026-02-04 21:40:41,916 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 21:40:41,916 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,923 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:41,935 - INFO - Verified VN network id 11 for VN f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,935 - INFO - Verifications in API Server for VN ctest-vn4-12022439 passed 2026-02-04 21:40:41,935 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:41,943 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:41,948 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:41,954 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/584f69ac-b392-4a0e-adb8-ba60da833af3 2026-02-04 21:40:41,964 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34635723', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17925168211684378967', 'uuid-lslong': '10369298923893489837'}, 'enable': 'true', 'created': '2026-02-04T21:40:40', 'last-modified': '2026-02-04T21:40:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704266'} 2026-02-04 21:40:41,971 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 21:40:41,971 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12022439 passed 2026-02-04 21:40:41,971 - DEBUG - ====Verifying policy data for ctest-vn4-12022439 in API_Server ====== 2026-02-04 21:40:41,971 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 21:40:41,976 - DEBUG - Requesting: http://10.0.0.50:8082/domain/010506cc-b7cf-4ee8-b41e-b3fdd3161dd8 2026-02-04 21:40:41,985 - DEBUG - Requesting: http://10.0.0.50:8082/project/2bf94c8b-fbaf-46df-acbf-bd75e5a41b40 2026-02-04 21:40:42,056 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f8c2fd84-5492-4957-8fe7-266eb08300ad 2026-02-04 21:40:42,065 - DEBUG - ==>Verifying data for policy with id: 8f00d939-3ab3-40e9-9b8b-7f6fe25bd672, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34635723', 'ctest-policy1-81418487'] 2026-02-04 21:40:42,065 - INFO - VN ctest-vn4-12022439 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 21:40:42,065 - DEBUG - Verifying the vn in opserver 2026-02-04 21:40:42,065 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439 virtual network link through opserver 10.0.0.50 2026-02-04 21:40:42,065 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-04 21:40:42,356 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-04 21:40:42,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439?flat'} 2026-02-04 21:40:42,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34635723:ctest-vn4-12022439 is found in opserver 2026-02-04 21:40:42,428 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 21:40:42,432 - DEBUG - VRF ids for VN ctest-vn4-12022439: {} 2026-02-04 21:40:42,433 - DEBUG - ====Verifying data for ctest-policy1-81418487 in API_Server ====== 2026-02-04 21:40:42,433 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 21:40:42,439 - DEBUG - Requesting: http://10.0.0.50:8082/domain/010506cc-b7cf-4ee8-b41e-b3fdd3161dd8 2026-02-04 21:40:42,448 - DEBUG - Requesting: http://10.0.0.50:8082/project/2bf94c8b-fbaf-46df-acbf-bd75e5a41b40 2026-02-04 21:40:42,522 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8f00d939-3ab3-40e9-9b8b-7f6fe25bd672 2026-02-04 21:40:42,530 - INFO - Verified policy ctest-policy1-81418487 in API Server, Result: True 2026-02-04 21:40:42,530 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 21:40:42,538 - INFO - Deleting VN ctest-vn4-12022439 2026-02-04 21:40:42,650 - DEBUG - Response for deleting network () 2026-02-04 21:40:42,650 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6e3dfce3-5144-404f-89f4-359f0c869259 2026-02-04 21:40:42,654 - DEBUG - Response Code: 404 2026-02-04 21:40:42,654 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-04 21:40:42,658 - DEBUG - Requesting: http://10.0.0.50:8082/domain/010506cc-b7cf-4ee8-b41e-b3fdd3161dd8 2026-02-04 21:40:42,710 - DEBUG - Requesting: http://10.0.0.50:8082/project/2bf94c8b-fbaf-46df-acbf-bd75e5a41b40 2026-02-04 21:40:42,781 - INFO - Validated that VN ctest-vn4-12022439 is not found in API Server 2026-02-04 21:40:42,789 - DEBUG - VN ctest-vn4-12022439 is not present in Agent 10.0.0.50 2026-02-04 21:40:42,789 - INFO - Validated that VN ctest-vn4-12022439 is not in any agent 2026-02-04 21:40:42,803 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12022439 info 2026-02-04 21:40:42,825 - INFO - Deleted policy ctest-policy1-81418487 2026-02-04 21:40:42,990 - DEBUG - policy ctest-policy1-81418487 is not found in API Server 2026-02-04 21:40:43,246 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 21:40:43,247 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-04 21:40:43,247 - INFO - -------------------------------------------------------------------------------- 2026-02-04 21:40:43,535 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 21:40:43,536 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-04 21:40:43,536 - INFO - -------------------------------------------------------------------------------- 2026-02-04 21:40:44,221 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34635723, ID : 2bf94c8b-fbaf-46df-acbf-bd75e5a41b40