2026-02-10 17:49:31,948 - INFO - Domain Default found not creating 2026-02-10 17:49:32,267 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86698226 not found, creating it 2026-02-10 17:49:32,818 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86698226, ID : ee495045-4be0-4efe-a4f5-b199365a40f5 2026-02-10 17:49:34,603 - INFO - ================================================================================ 2026-02-10 17:49:34,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 17:49:34,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 17:49:34,896 - INFO - Initial checks done. Running the testcase now 2026-02-10 17:49:34,896 - INFO - 2026-02-10 17:49:34,896 - INFO - ================================================================================ 2026-02-10 17:49:34,896 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 17:49:34,896 - 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-10 17:49:35,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 17:49:35,232 - INFO - Initial checks done. Running the testcase now 2026-02-10 17:49:35,232 - INFO - 2026-02-10 17:49:35,636 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303, 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-86698226:ctest-vn4-47683303, 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-86698226:ctest-vn4-47683303, 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-86698226:ctest-vn4-47683303, 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-10 17:49:36,290 - DEBUG - Response for create_network : {'network': {'id': 'f2c196ba-803e-42a2-8c67-abe1466638df', 'name': 'ctest-vn4-47683303', 'tenant_id': 'ee4950454be04efea4f5b199365a40f5', 'project_id': 'ee4950454be04efea4f5b199365a40f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86698226', 'ctest-vn4-47683303'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 17:49:36,477 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb965101-7e96-4db3-bbc2-a185e3a73cde', 'name': '', 'tenant_id': 'ee4950454be04efea4f5b199365a40f5', 'network_id': 'f2c196ba-803e-42a2-8c67-abe1466638df', 'ip_version': 4, 'cidr': '73.113.122.128/26', 'allocation_pools': [{'start': '73.113.122.130', 'end': '73.113.122.190'}], 'gateway_ip': '73.113.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.113.122.130', 'tags': [], 'project_id': 'ee4950454be04efea4f5b199365a40f5'}} 2026-02-10 17:49:36,695 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bf0d11e-0132-45b0-8c4d-f06149feb075', 'name': '', 'tenant_id': 'ee4950454be04efea4f5b199365a40f5', 'network_id': 'f2c196ba-803e-42a2-8c67-abe1466638df', 'ip_version': 6, 'cidr': '281f:3ca7:8119:e1a4:1143:85c7::/96', 'allocation_pools': [{'start': '281f:3ca7:8119:e1a4:1143:85c7:0:2', 'end': '281f:3ca7:8119:e1a4:1143:85c7:ffff:fffe'}], 'gateway_ip': '281f:3ca7:8119:e1a4:1143:85c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '281f:3ca7:8119:e1a4:1143:85c7:0:2', 'tags': [], 'project_id': 'ee4950454be04efea4f5b199365a40f5'}} 2026-02-10 17:49:36,720 - INFO - Created VN ctest-vn4-47683303 2026-02-10 17:49:36,779 - DEBUG - VN ctest-vn4-47683303 UUID is f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,044 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2c196ba-803e-42a2-8c67-abe1466638df', 'name': 'ctest-vn4-47683303', 'tenant_id': 'ee4950454be04efea4f5b199365a40f5', 'project_id': 'ee4950454be04efea4f5b199365a40f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb965101-7e96-4db3-bbc2-a185e3a73cde', '7bf0d11e-0132-45b0-8c4d-f06149feb075'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86698226', 'ctest-vn4-47683303'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86698226', 'ctest-policy1-28941017']], 'subnet_ipam': [{'subnet_cidr': '73.113.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '281f:3ca7:8119:e1a4:1143:85c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 17:49:37,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 17:49:37,562 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 17:49:37,621 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21482288-41c2-47ec-b902-24353ba20b93 2026-02-10 17:49:37,655 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee495045-4be0-4efe-a4f5-b199365a40f5 2026-02-10 17:49:37,758 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,785 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,811 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:37,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:37,840 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5df88b2d-847f-4ddc-a1e6-11f76d04085c 2026-02-10 17:49:37,848 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 17:49:37,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,865 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:37,894 - INFO - Verified VN network id 10 for VN f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,895 - INFO - Verifications in API Server for VN ctest-vn4-47683303 passed 2026-02-10 17:49:37,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:37,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:37,936 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:37,948 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5df88b2d-847f-4ddc-a1e6-11f76d04085c 2026-02-10 17:49:37,966 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86698226', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17492428155443364514', 'uuid-lslong': '10117244071948204255'}, 'enable': 'true', 'created': '2026-02-10T17:49:36', 'last-modified': '2026-02-10T17:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958294'} 2026-02-10 17:49:37,979 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 17:49:37,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47683303 passed 2026-02-10 17:49:37,980 - DEBUG - ====Verifying policy data for ctest-vn4-47683303 in API_Server ====== 2026-02-10 17:49:37,980 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 17:49:37,990 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21482288-41c2-47ec-b902-24353ba20b93 2026-02-10 17:49:38,008 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee495045-4be0-4efe-a4f5-b199365a40f5 2026-02-10 17:49:38,105 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f2c196ba-803e-42a2-8c67-abe1466638df 2026-02-10 17:49:38,124 - DEBUG - ==>Verifying data for policy with id: 5ef4f500-9f89-4d92-b798-c2f2f8ab6d32, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86698226', 'ctest-policy1-28941017'] 2026-02-10 17:49:38,124 - INFO - VN ctest-vn4-47683303 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 17:49:38,124 - DEBUG - Verifying the vn in opserver 2026-02-10 17:49:38,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303 virtual network link through opserver 10.0.0.38 2026-02-10 17:49:38,124 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 17:49:38,487 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 17:49:38,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303?flat'} 2026-02-10 17:49:38,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86698226:ctest-vn4-47683303 is found in opserver 2026-02-10 17:49:38,666 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 17:49:38,679 - DEBUG - VRF ids for VN ctest-vn4-47683303: {} 2026-02-10 17:49:38,681 - DEBUG - ====Verifying data for ctest-policy1-28941017 in API_Server ====== 2026-02-10 17:49:38,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 17:49:38,697 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21482288-41c2-47ec-b902-24353ba20b93 2026-02-10 17:49:38,725 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee495045-4be0-4efe-a4f5-b199365a40f5 2026-02-10 17:49:38,841 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5ef4f500-9f89-4d92-b798-c2f2f8ab6d32 2026-02-10 17:49:38,867 - INFO - Verified policy ctest-policy1-28941017 in API Server, Result: True 2026-02-10 17:49:38,867 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 17:49:38,886 - INFO - Deleting VN ctest-vn4-47683303 2026-02-10 17:49:39,093 - DEBUG - Response for deleting network () 2026-02-10 17:49:39,093 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb916e3d-e1f6-4339-98b7-fb6536f95e2c 2026-02-10 17:49:39,099 - DEBUG - Response Code: 404 2026-02-10 17:49:39,100 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 17:49:39,106 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21482288-41c2-47ec-b902-24353ba20b93 2026-02-10 17:49:39,161 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee495045-4be0-4efe-a4f5-b199365a40f5 2026-02-10 17:49:39,255 - INFO - Validated that VN ctest-vn4-47683303 is not found in API Server 2026-02-10 17:49:39,265 - DEBUG - VN ctest-vn4-47683303 is not present in Agent 10.0.0.38 2026-02-10 17:49:39,266 - INFO - Validated that VN ctest-vn4-47683303 is not in any agent 2026-02-10 17:49:39,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47683303 info 2026-02-10 17:49:39,335 - INFO - Deleted policy ctest-policy1-28941017 2026-02-10 17:49:39,530 - DEBUG - policy ctest-policy1-28941017 is not found in API Server 2026-02-10 17:49:39,848 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 17:49:39,848 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-10 17:49:39,849 - INFO - -------------------------------------------------------------------------------- 2026-02-10 17:49:40,188 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 17:49:40,188 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-02-10 17:49:40,188 - INFO - -------------------------------------------------------------------------------- 2026-02-10 17:49:41,082 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86698226, ID : ee495045-4be0-4efe-a4f5-b199365a40f5