2026-02-09 13:35:32,829 - INFO - Domain Default found not creating 2026-02-09 13:35:33,126 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10911177 not found, creating it 2026-02-09 13:35:33,771 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10911177, ID : dc7c25b1-ce79-4284-b953-8cba61dbb27b 2026-02-09 13:35:35,616 - INFO - ================================================================================ 2026-02-09 13:35:35,616 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 13:35:35,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-02-09 13:35:35,906 - INFO - Initial checks done. Running the testcase now 2026-02-09 13:35:35,906 - INFO - 2026-02-09 13:35:35,906 - INFO - ================================================================================ 2026-02-09 13:35:35,906 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 13:35:35,906 - 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-09 13:35:36,207 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-02-09 13:35:36,207 - INFO - Initial checks done. Running the testcase now 2026-02-09 13:35:36,208 - INFO - 2026-02-09 13:35:36,634 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636, 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-10911177:ctest-vn4-42183636, 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-10911177:ctest-vn4-42183636, 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-10911177:ctest-vn4-42183636, 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-09 13:35:37,225 - DEBUG - Response for create_network : {'network': {'id': 'c45ffdb5-bac6-4f93-abc6-4003d9b23ae0', 'name': 'ctest-vn4-42183636', 'tenant_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'project_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10911177', 'ctest-vn4-42183636'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 13:35:37,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '44b6be4a-d91f-4cd0-9d90-dac3bd30abb7', 'name': '', 'tenant_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'network_id': 'c45ffdb5-bac6-4f93-abc6-4003d9b23ae0', 'ip_version': 4, 'cidr': '118.135.71.128/26', 'allocation_pools': [{'start': '118.135.71.130', 'end': '118.135.71.190'}], 'gateway_ip': '118.135.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.135.71.130', 'tags': [], 'project_id': 'dc7c25b1ce794284b9538cba61dbb27b'}} 2026-02-09 13:35:37,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '32dea9ce-e605-4dc3-96b4-4932cd0660c3', 'name': '', 'tenant_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'network_id': 'c45ffdb5-bac6-4f93-abc6-4003d9b23ae0', 'ip_version': 6, 'cidr': '247f:d2e4:3b4b:6e44:65ba:8c30::/96', 'allocation_pools': [{'start': '247f:d2e4:3b4b:6e44:65ba:8c30:0:2', 'end': '247f:d2e4:3b4b:6e44:65ba:8c30:ffff:fffe'}], 'gateway_ip': '247f:d2e4:3b4b:6e44:65ba:8c30:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '247f:d2e4:3b4b:6e44:65ba:8c30:0:2', 'tags': [], 'project_id': 'dc7c25b1ce794284b9538cba61dbb27b'}} 2026-02-09 13:35:37,680 - INFO - Created VN ctest-vn4-42183636 2026-02-09 13:35:37,739 - DEBUG - VN ctest-vn4-42183636 UUID is c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,050 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c45ffdb5-bac6-4f93-abc6-4003d9b23ae0', 'name': 'ctest-vn4-42183636', 'tenant_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'project_id': 'dc7c25b1ce794284b9538cba61dbb27b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44b6be4a-d91f-4cd0-9d90-dac3bd30abb7', '32dea9ce-e605-4dc3-96b4-4932cd0660c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10911177', 'ctest-vn4-42183636'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10911177', 'ctest-policy1-14840035']], 'subnet_ipam': [{'subnet_cidr': '118.135.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '247f:d2e4:3b4b:6e44:65ba:8c30::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 13:35:38,219 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 13:35:38,527 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 13:35:38,572 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff 2026-02-09 13:35:38,587 - DEBUG - Requesting: http://10.0.0.19:8082/project/dc7c25b1-ce79-4284-b953-8cba61dbb27b 2026-02-09 13:35:38,696 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,713 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,725 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:38,735 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:38,744 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8dadd237-73a6-4259-9252-69de1725b767 2026-02-09 13:35:38,754 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 13:35:38,754 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,765 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:38,783 - INFO - Verified VN network id 9 for VN c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,783 - INFO - Verifications in API Server for VN ctest-vn4-42183636 passed 2026-02-09 13:35:38,783 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,796 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:38,807 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:38,816 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8dadd237-73a6-4259-9252-69de1725b767 2026-02-09 13:35:38,832 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10911177', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14150307511185854355', 'uuid-lslong': '12377651011155802848'}, 'enable': 'true', 'created': '2026-02-09T13:35:37', 'last-modified': '2026-02-09T13:35:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.837086'} 2026-02-09 13:35:38,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 13:35:38,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42183636 passed 2026-02-09 13:35:38,840 - DEBUG - ====Verifying policy data for ctest-vn4-42183636 in API_Server ====== 2026-02-09 13:35:38,840 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 13:35:38,847 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff 2026-02-09 13:35:38,860 - DEBUG - Requesting: http://10.0.0.19:8082/project/dc7c25b1-ce79-4284-b953-8cba61dbb27b 2026-02-09 13:35:38,942 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c45ffdb5-bac6-4f93-abc6-4003d9b23ae0 2026-02-09 13:35:38,953 - DEBUG - ==>Verifying data for policy with id: 22594130-3583-4677-861e-16e908e9c004, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10911177', 'ctest-policy1-14840035'] 2026-02-09 13:35:38,953 - INFO - VN ctest-vn4-42183636 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 13:35:38,953 - DEBUG - Verifying the vn in opserver 2026-02-09 13:35:38,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636 virtual network link through opserver 10.0.0.19 2026-02-09 13:35:38,953 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-09 13:35:39,261 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-09 13:35:39,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636?flat'} 2026-02-09 13:35:39,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10911177:ctest-vn4-42183636 is found in opserver 2026-02-09 13:35:39,363 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 13:35:39,372 - DEBUG - VRF ids for VN ctest-vn4-42183636: {} 2026-02-09 13:35:39,373 - DEBUG - ====Verifying data for ctest-policy1-14840035 in API_Server ====== 2026-02-09 13:35:39,373 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 13:35:39,380 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff 2026-02-09 13:35:39,393 - DEBUG - Requesting: http://10.0.0.19:8082/project/dc7c25b1-ce79-4284-b953-8cba61dbb27b 2026-02-09 13:35:39,475 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/22594130-3583-4677-861e-16e908e9c004 2026-02-09 13:35:39,488 - INFO - Verified policy ctest-policy1-14840035 in API Server, Result: True 2026-02-09 13:35:39,489 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 13:35:39,501 - INFO - Deleting VN ctest-vn4-42183636 2026-02-09 13:35:39,688 - DEBUG - Response for deleting network () 2026-02-09 13:35:39,688 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/0188080c-dbf6-4526-92d8-94e11feeb38c 2026-02-09 13:35:39,698 - DEBUG - Response Code: 404 2026-02-09 13:35:39,698 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-09 13:35:39,708 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff 2026-02-09 13:35:39,774 - DEBUG - Requesting: http://10.0.0.19:8082/project/dc7c25b1-ce79-4284-b953-8cba61dbb27b 2026-02-09 13:35:39,866 - INFO - Validated that VN ctest-vn4-42183636 is not found in API Server 2026-02-09 13:35:39,881 - DEBUG - VN ctest-vn4-42183636 is not present in Agent 10.0.0.19 2026-02-09 13:35:39,881 - INFO - Validated that VN ctest-vn4-42183636 is not in any agent 2026-02-09 13:35:39,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42183636 info 2026-02-09 13:35:39,944 - INFO - Deleted policy ctest-policy1-14840035 2026-02-09 13:35:40,115 - DEBUG - policy ctest-policy1-14840035 is not found in API Server 2026-02-09 13:35:40,388 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 13:35:40,388 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-09 13:35:40,389 - INFO - -------------------------------------------------------------------------------- 2026-02-09 13:35:40,684 - DEBUG - No XMPP flaps were noticed during the test
2026-02-09 13:35:40,685 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-09 13:35:40,685 - INFO - -------------------------------------------------------------------------------- 2026-02-09 13:35:41,536 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10911177, ID : dc7c25b1-ce79-4284-b953-8cba61dbb27b