2026-02-10 00:36:33,756 - INFO - Domain Default found not creating 2026-02-10 00:36:33,894 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23039100 not found, creating it 2026-02-10 00:36:34,311 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23039100, ID : 8663feef-481c-4945-a114-5235e6c8b35f 2026-02-10 00:36:35,723 - INFO - ================================================================================ 2026-02-10 00:36:35,723 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 00:36:35,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-10 00:36:35,976 - INFO - Initial checks done. Running the testcase now 2026-02-10 00:36:35,976 - INFO - 2026-02-10 00:36:35,976 - INFO - ================================================================================ 2026-02-10 00:36:35,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 00:36:35,976 - 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 00:36:36,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-02-10 00:36:36,268 - INFO - Initial checks done. Running the testcase now 2026-02-10 00:36:36,268 - INFO - 2026-02-10 00:36:36,588 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007, 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-23039100:ctest-vn4-08617007, 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-23039100:ctest-vn4-08617007, 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-23039100:ctest-vn4-08617007, 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 00:36:37,068 - DEBUG - Response for create_network : {'network': {'id': 'e8e42b3c-1021-4a09-97f6-43b832bbe2db', 'name': 'ctest-vn4-08617007', 'tenant_id': '8663feef481c4945a1145235e6c8b35f', 'project_id': '8663feef481c4945a1145235e6c8b35f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23039100', 'ctest-vn4-08617007'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 00:36:37,281 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8a58bcb-997a-491c-b0dd-3ab002eb3314', 'name': '', 'tenant_id': '8663feef481c4945a1145235e6c8b35f', 'network_id': 'e8e42b3c-1021-4a09-97f6-43b832bbe2db', 'ip_version': 4, 'cidr': '33.27.4.128/26', 'allocation_pools': [{'start': '33.27.4.130', 'end': '33.27.4.190'}], 'gateway_ip': '33.27.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.27.4.130', 'tags': [], 'project_id': '8663feef481c4945a1145235e6c8b35f'}} 2026-02-10 00:36:37,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c120f09-7241-4eec-83c9-3bda98e750f2', 'name': '', 'tenant_id': '8663feef481c4945a1145235e6c8b35f', 'network_id': 'e8e42b3c-1021-4a09-97f6-43b832bbe2db', 'ip_version': 6, 'cidr': '2bfc:8e6f:dd4d:4db9:ebb8:8509::/96', 'allocation_pools': [{'start': '2bfc:8e6f:dd4d:4db9:ebb8:8509:0:2', 'end': '2bfc:8e6f:dd4d:4db9:ebb8:8509:ffff:fffe'}], 'gateway_ip': '2bfc:8e6f:dd4d:4db9:ebb8:8509:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bfc:8e6f:dd4d:4db9:ebb8:8509:0:2', 'tags': [], 'project_id': '8663feef481c4945a1145235e6c8b35f'}} 2026-02-10 00:36:37,451 - INFO - Created VN ctest-vn4-08617007 2026-02-10 00:36:37,504 - DEBUG - VN ctest-vn4-08617007 UUID is e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:37,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8e42b3c-1021-4a09-97f6-43b832bbe2db', 'name': 'ctest-vn4-08617007', 'tenant_id': '8663feef481c4945a1145235e6c8b35f', 'project_id': '8663feef481c4945a1145235e6c8b35f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8a58bcb-997a-491c-b0dd-3ab002eb3314', '1c120f09-7241-4eec-83c9-3bda98e750f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23039100', 'ctest-vn4-08617007'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23039100', 'ctest-policy1-72455425']], 'subnet_ipam': [{'subnet_cidr': '33.27.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bfc:8e6f:dd4d:4db9:ebb8:8509::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 00:36:37,847 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 00:36:38,134 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 00:36:38,159 - DEBUG - Requesting: http://10.0.0.22:8082/domain/78d4456c-5c02-42a5-a2ae-70c9d6573204 2026-02-10 00:36:38,169 - DEBUG - Requesting: http://10.0.0.22:8082/project/8663feef-481c-4945-a114-5235e6c8b35f 2026-02-10 00:36:38,234 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,244 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,251 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,256 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,261 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3b7227ee-a813-4043-bcba-5e958375a4d5 2026-02-10 00:36:38,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 00:36:38,265 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,273 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,284 - INFO - Verified VN network id 11 for VN e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,284 - INFO - Verifications in API Server for VN ctest-vn4-08617007 passed 2026-02-10 00:36:38,284 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,291 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,295 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,300 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3b7227ee-a813-4043-bcba-5e958375a4d5 2026-02-10 00:36:38,308 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23039100', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16781585648457959945', 'uuid-lslong': '10950014002402157275'}, 'enable': 'true', 'created': '2026-02-10T00:36:37', 'last-modified': '2026-02-10T00:36:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.642540'} 2026-02-10 00:36:38,313 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 00:36:38,313 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08617007 passed 2026-02-10 00:36:38,313 - DEBUG - ====Verifying policy data for ctest-vn4-08617007 in API_Server ====== 2026-02-10 00:36:38,313 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 00:36:38,317 - DEBUG - Requesting: http://10.0.0.22:8082/domain/78d4456c-5c02-42a5-a2ae-70c9d6573204 2026-02-10 00:36:38,325 - DEBUG - Requesting: http://10.0.0.22:8082/project/8663feef-481c-4945-a114-5235e6c8b35f 2026-02-10 00:36:38,395 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8e42b3c-1021-4a09-97f6-43b832bbe2db 2026-02-10 00:36:38,403 - DEBUG - ==>Verifying data for policy with id: ecbcecb4-c032-4a58-b921-b6ad4b046ead, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23039100', 'ctest-policy1-72455425'] 2026-02-10 00:36:38,403 - INFO - VN ctest-vn4-08617007 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 00:36:38,403 - DEBUG - Verifying the vn in opserver 2026-02-10 00:36:38,404 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007 virtual network link through opserver 10.0.0.22 2026-02-10 00:36:38,404 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-10 00:36:38,690 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-10 00:36:38,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007?flat'} 2026-02-10 00:36:38,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23039100:ctest-vn4-08617007 is found in opserver 2026-02-10 00:36:38,749 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 00:36:38,753 - DEBUG - VRF ids for VN ctest-vn4-08617007: {} 2026-02-10 00:36:38,753 - DEBUG - ====Verifying data for ctest-policy1-72455425 in API_Server ====== 2026-02-10 00:36:38,753 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 00:36:38,758 - DEBUG - Requesting: http://10.0.0.22:8082/domain/78d4456c-5c02-42a5-a2ae-70c9d6573204 2026-02-10 00:36:38,766 - DEBUG - Requesting: http://10.0.0.22:8082/project/8663feef-481c-4945-a114-5235e6c8b35f 2026-02-10 00:36:38,834 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ecbcecb4-c032-4a58-b921-b6ad4b046ead 2026-02-10 00:36:38,842 - INFO - Verified policy ctest-policy1-72455425 in API Server, Result: True 2026-02-10 00:36:38,842 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 00:36:38,848 - INFO - Deleting VN ctest-vn4-08617007 2026-02-10 00:36:38,941 - DEBUG - Response for deleting network () 2026-02-10 00:36:38,941 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af44d94a-89ed-4812-833a-53f80c713e59 2026-02-10 00:36:38,945 - DEBUG - Response Code: 404 2026-02-10 00:36:38,945 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 00:36:38,949 - DEBUG - Requesting: http://10.0.0.22:8082/domain/78d4456c-5c02-42a5-a2ae-70c9d6573204 2026-02-10 00:36:39,003 - DEBUG - Requesting: http://10.0.0.22:8082/project/8663feef-481c-4945-a114-5235e6c8b35f 2026-02-10 00:36:39,074 - INFO - Validated that VN ctest-vn4-08617007 is not found in API Server 2026-02-10 00:36:39,082 - DEBUG - VN ctest-vn4-08617007 is not present in Agent 10.0.0.22 2026-02-10 00:36:39,083 - INFO - Validated that VN ctest-vn4-08617007 is not in any agent 2026-02-10 00:36:39,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08617007 info 2026-02-10 00:36:39,116 - INFO - Deleted policy ctest-policy1-72455425 2026-02-10 00:36:39,275 - DEBUG - policy ctest-policy1-72455425 is not found in API Server 2026-02-10 00:36:39,531 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 00:36:39,531 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 00:36:39,531 - INFO - -------------------------------------------------------------------------------- 2026-02-10 00:36:39,820 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 00:36:39,820 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 00:36:39,821 - INFO - -------------------------------------------------------------------------------- 2026-02-10 00:36:40,464 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23039100, ID : 8663feef-481c-4945-a114-5235e6c8b35f