2026-02-10 15:13:02,011 - INFO - Domain Default found not creating 2026-02-10 15:13:02,195 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04748709 not found, creating it 2026-02-10 15:13:02,701 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04748709, ID : 97cfa509-78cc-4aa0-b25c-36418ed708dc 2026-02-10 15:13:04,770 - INFO - ================================================================================ 2026-02-10 15:13:04,770 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 15:13:05,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0'}} with 2026-02-10 15:13:05,081 - INFO - Initial checks done. Running the testcase now 2026-02-10 15:13:05,081 - INFO - 2026-02-10 15:13:05,081 - INFO - ================================================================================ 2026-02-10 15:13:05,081 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 15:13:05,081 - 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 15:13:05,432 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0'}} with 2026-02-10 15:13:05,432 - INFO - Initial checks done. Running the testcase now 2026-02-10 15:13:05,432 - INFO - 2026-02-10 15:13:05,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430, 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-04748709:ctest-vn4-69943430, 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-04748709:ctest-vn4-69943430, 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-04748709:ctest-vn4-69943430, 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 15:13:06,663 - DEBUG - Response for create_network : {'network': {'id': '225d5232-8a21-4874-8a70-045ba56068d9', 'name': 'ctest-vn4-69943430', 'tenant_id': '97cfa50978cc4aa0b25c36418ed708dc', 'project_id': '97cfa50978cc4aa0b25c36418ed708dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04748709', 'ctest-vn4-69943430'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 15:13:06,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f249dfd6-6b2c-4185-ba75-1cbbbaba5986', 'name': '', 'tenant_id': '97cfa50978cc4aa0b25c36418ed708dc', 'network_id': '225d5232-8a21-4874-8a70-045ba56068d9', 'ip_version': 4, 'cidr': '31.14.44.64/26', 'allocation_pools': [{'start': '31.14.44.66', 'end': '31.14.44.126'}], 'gateway_ip': '31.14.44.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.14.44.66', 'tags': [], 'project_id': '97cfa50978cc4aa0b25c36418ed708dc'}} 2026-02-10 15:13:07,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '609e62fa-8438-4969-a429-0554639cea60', 'name': '', 'tenant_id': '97cfa50978cc4aa0b25c36418ed708dc', 'network_id': '225d5232-8a21-4874-8a70-045ba56068d9', 'ip_version': 6, 'cidr': '27c6:717d:a11d:9f2f:c3b8:73da::/96', 'allocation_pools': [{'start': '27c6:717d:a11d:9f2f:c3b8:73da:0:2', 'end': '27c6:717d:a11d:9f2f:c3b8:73da:ffff:fffe'}], 'gateway_ip': '27c6:717d:a11d:9f2f:c3b8:73da:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27c6:717d:a11d:9f2f:c3b8:73da:0:2', 'tags': [], 'project_id': '97cfa50978cc4aa0b25c36418ed708dc'}} 2026-02-10 15:13:07,123 - INFO - Created VN ctest-vn4-69943430 2026-02-10 15:13:07,178 - DEBUG - VN ctest-vn4-69943430 UUID is 225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:07,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '225d5232-8a21-4874-8a70-045ba56068d9', 'name': 'ctest-vn4-69943430', 'tenant_id': '97cfa50978cc4aa0b25c36418ed708dc', 'project_id': '97cfa50978cc4aa0b25c36418ed708dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f249dfd6-6b2c-4185-ba75-1cbbbaba5986', '609e62fa-8438-4969-a429-0554639cea60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04748709', 'ctest-vn4-69943430'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04748709', 'ctest-policy1-75022604']], 'subnet_ipam': [{'subnet_cidr': '31.14.44.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27c6:717d:a11d:9f2f:c3b8:73da::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 15:13:07,687 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 15:13:08,015 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 15:13:08,057 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1cedc77e-92f8-4759-9059-9ef38beabb66 2026-02-10 15:13:08,084 - DEBUG - Requesting: http://10.0.0.33:8082/project/97cfa509-78cc-4aa0-b25c-36418ed708dc 2026-02-10 15:13:08,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,227 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,245 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:08,261 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:08,272 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f207c08c-5818-428a-b5a0-76546995ab36 2026-02-10 15:13:08,285 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 15:13:08,285 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,309 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:08,339 - INFO - Verified VN network id 11 for VN 225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,340 - INFO - Verifications in API Server for VN ctest-vn4-69943430 passed 2026-02-10 15:13:08,340 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,374 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:08,386 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:08,395 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f207c08c-5818-428a-b5a0-76546995ab36 2026-02-10 15:13:08,417 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04748709', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2476225747142920308', 'uuid-lslong': '9975477966288742617'}, 'enable': 'true', 'created': '2026-02-10T15:13:06', 'last-modified': '2026-02-10T15:13:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945787'} 2026-02-10 15:13:08,439 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 15:13:08,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69943430 passed 2026-02-10 15:13:08,440 - DEBUG - ====Verifying policy data for ctest-vn4-69943430 in API_Server ====== 2026-02-10 15:13:08,440 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 15:13:08,450 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1cedc77e-92f8-4759-9059-9ef38beabb66 2026-02-10 15:13:08,470 - DEBUG - Requesting: http://10.0.0.33:8082/project/97cfa509-78cc-4aa0-b25c-36418ed708dc 2026-02-10 15:13:08,573 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/225d5232-8a21-4874-8a70-045ba56068d9 2026-02-10 15:13:08,597 - DEBUG - ==>Verifying data for policy with id: 5fee7c9f-1224-476e-9b8d-6e77b1ddcc48, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04748709', 'ctest-policy1-75022604'] 2026-02-10 15:13:08,597 - INFO - VN ctest-vn4-69943430 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 15:13:08,597 - DEBUG - Verifying the vn in opserver 2026-02-10 15:13:08,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430 virtual network link through opserver 10.0.0.33 2026-02-10 15:13:08,598 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 15:13:08,942 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 15:13:09,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430?flat'} 2026-02-10 15:13:09,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04748709:ctest-vn4-69943430 is found in opserver 2026-02-10 15:13:09,064 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 15:13:09,080 - DEBUG - VRF ids for VN ctest-vn4-69943430: {} 2026-02-10 15:13:09,081 - DEBUG - ====Verifying data for ctest-policy1-75022604 in API_Server ====== 2026-02-10 15:13:09,081 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 15:13:09,096 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1cedc77e-92f8-4759-9059-9ef38beabb66 2026-02-10 15:13:09,130 - DEBUG - Requesting: http://10.0.0.33:8082/project/97cfa509-78cc-4aa0-b25c-36418ed708dc 2026-02-10 15:13:09,209 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/5fee7c9f-1224-476e-9b8d-6e77b1ddcc48 2026-02-10 15:13:09,220 - INFO - Verified policy ctest-policy1-75022604 in API Server, Result: True 2026-02-10 15:13:09,220 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 15:13:09,230 - INFO - Deleting VN ctest-vn4-69943430 2026-02-10 15:13:09,391 - DEBUG - Response for deleting network () 2026-02-10 15:13:09,391 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/72a28218-b676-40fe-a1e1-2f180c70af58 2026-02-10 15:13:09,396 - DEBUG - Response Code: 404 2026-02-10 15:13:09,396 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 15:13:09,401 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1cedc77e-92f8-4759-9059-9ef38beabb66 2026-02-10 15:13:09,455 - DEBUG - Requesting: http://10.0.0.33:8082/project/97cfa509-78cc-4aa0-b25c-36418ed708dc 2026-02-10 15:13:09,537 - INFO - Validated that VN ctest-vn4-69943430 is not found in API Server 2026-02-10 15:13:09,549 - DEBUG - VN ctest-vn4-69943430 is not present in Agent 10.0.0.33 2026-02-10 15:13:09,549 - INFO - Validated that VN ctest-vn4-69943430 is not in any agent 2026-02-10 15:13:09,570 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69943430 info 2026-02-10 15:13:09,596 - INFO - Deleted policy ctest-policy1-75022604 2026-02-10 15:13:09,758 - DEBUG - policy ctest-policy1-75022604 is not found in API Server 2026-02-10 15:13:10,070 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 15:13:10,070 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-10 15:13:10,070 - INFO - -------------------------------------------------------------------------------- 2026-02-10 15:13:10,392 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 15:13:10,393 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-02-10 15:13:10,393 - INFO - -------------------------------------------------------------------------------- 2026-02-10 15:13:11,246 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04748709, ID : 97cfa509-78cc-4aa0-b25c-36418ed708dc