2026-06-22 02:09:09,219 - INFO - Domain Default found not creating 2026-06-22 02:09:09,350 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48521933 not found, creating it 2026-06-22 02:09:09,792 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48521933, ID : 34d33f89-653c-4bc2-a305-eeeb222b56aa 2026-06-22 02:09:11,272 - INFO - ================================================================================ 2026-06-22 02:09:11,272 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:09:11,531 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-22 02:09:11,531 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:09:11,531 - INFO - 2026-06-22 02:09:11,531 - INFO - ================================================================================ 2026-06-22 02:09:11,531 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:09:11,531 - 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-06-22 02:09:11,820 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-22 02:09:11,820 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:09:11,820 - INFO - 2026-06-22 02:09:12,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265, 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-48521933:ctest-vn4-65638265, 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-48521933:ctest-vn4-65638265, 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-48521933:ctest-vn4-65638265, 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-06-22 02:09:12,674 - DEBUG - Response for create_network : {'network': {'id': 'c1843570-9563-4feb-bd7c-f44cf59c7c32', 'name': 'ctest-vn4-65638265', 'tenant_id': '34d33f89653c4bc2a305eeeb222b56aa', 'project_id': '34d33f89653c4bc2a305eeeb222b56aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521933', 'ctest-vn4-65638265'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:09:12,864 - DEBUG - Response for create_subnet : {'subnet': {'id': '75aa230b-1041-4848-8e47-27bd1d7406d2', 'name': '', 'tenant_id': '34d33f89653c4bc2a305eeeb222b56aa', 'network_id': 'c1843570-9563-4feb-bd7c-f44cf59c7c32', 'ip_version': 4, 'cidr': '180.122.254.0/26', 'allocation_pools': [{'start': '180.122.254.2', 'end': '180.122.254.62'}], 'gateway_ip': '180.122.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.122.254.2', 'tags': [], 'project_id': '34d33f89653c4bc2a305eeeb222b56aa'}} 2026-06-22 02:09:13,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c2f0279-5357-476a-98a2-a034dec0affe', 'name': '', 'tenant_id': '34d33f89653c4bc2a305eeeb222b56aa', 'network_id': 'c1843570-9563-4feb-bd7c-f44cf59c7c32', 'ip_version': 6, 'cidr': '299f:a60a:b184:cdea:deb2:2329::/96', 'allocation_pools': [{'start': '299f:a60a:b184:cdea:deb2:2329:0:2', 'end': '299f:a60a:b184:cdea:deb2:2329:ffff:fffe'}], 'gateway_ip': '299f:a60a:b184:cdea:deb2:2329:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '299f:a60a:b184:cdea:deb2:2329:0:2', 'tags': [], 'project_id': '34d33f89653c4bc2a305eeeb222b56aa'}} 2026-06-22 02:09:13,023 - INFO - Created VN ctest-vn4-65638265 2026-06-22 02:09:13,074 - DEBUG - VN ctest-vn4-65638265 UUID is c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1843570-9563-4feb-bd7c-f44cf59c7c32', 'name': 'ctest-vn4-65638265', 'tenant_id': '34d33f89653c4bc2a305eeeb222b56aa', 'project_id': '34d33f89653c4bc2a305eeeb222b56aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75aa230b-1041-4848-8e47-27bd1d7406d2', '9c2f0279-5357-476a-98a2-a034dec0affe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521933', 'ctest-vn4-65638265'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521933', 'ctest-policy1-63788314']], 'subnet_ipam': [{'subnet_cidr': '180.122.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '299f:a60a:b184:cdea:deb2:2329::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:09:13,414 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 02:09:13,735 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 02:09:13,757 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46 2026-06-22 02:09:13,769 - DEBUG - Requesting: http://10.0.0.38:8082/project/34d33f89-653c-4bc2-a305-eeeb222b56aa 2026-06-22 02:09:13,835 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:13,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:13,868 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b1bb6c3-cfd9-4d06-8824-a915f44904b4 2026-06-22 02:09:13,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:09:13,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,882 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:13,893 - INFO - Verified VN network id 11 for VN c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,894 - INFO - Verifications in API Server for VN ctest-vn4-65638265 passed 2026-06-22 02:09:13,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:13,902 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:13,909 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:13,915 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b1bb6c3-cfd9-4d06-8824-a915f44904b4 2026-06-22 02:09:13,924 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48521933', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13944329103904821227', 'uuid-lslong': '13654056781655866418'}, 'enable': 'true', 'created': '2026-06-22T02:09:12', 'last-modified': '2026-06-22T02:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702390'} 2026-06-22 02:09:13,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:09:13,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65638265 passed 2026-06-22 02:09:13,930 - DEBUG - ====Verifying policy data for ctest-vn4-65638265 in API_Server ====== 2026-06-22 02:09:13,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 02:09:13,935 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46 2026-06-22 02:09:13,945 - DEBUG - Requesting: http://10.0.0.38:8082/project/34d33f89-653c-4bc2-a305-eeeb222b56aa 2026-06-22 02:09:14,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c1843570-9563-4feb-bd7c-f44cf59c7c32 2026-06-22 02:09:14,019 - DEBUG - ==>Verifying data for policy with id: 0ae1c6a0-758f-452e-b797-cdac1ce5af86, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521933', 'ctest-policy1-63788314'] 2026-06-22 02:09:14,019 - INFO - VN ctest-vn4-65638265 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 02:09:14,019 - DEBUG - Verifying the vn in opserver 2026-06-22 02:09:14,019 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265 virtual network link through opserver 10.0.0.38 2026-06-22 02:09:14,019 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 02:09:14,336 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 02:09:14,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265?flat'} 2026-06-22 02:09:14,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521933:ctest-vn4-65638265 is found in opserver 2026-06-22 02:09:14,392 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 02:09:14,396 - DEBUG - VRF ids for VN ctest-vn4-65638265: {} 2026-06-22 02:09:14,396 - DEBUG - ====Verifying data for ctest-policy1-63788314 in API_Server ====== 2026-06-22 02:09:14,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 02:09:14,401 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46 2026-06-22 02:09:14,409 - DEBUG - Requesting: http://10.0.0.38:8082/project/34d33f89-653c-4bc2-a305-eeeb222b56aa 2026-06-22 02:09:14,472 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0ae1c6a0-758f-452e-b797-cdac1ce5af86 2026-06-22 02:09:14,480 - INFO - Verified policy ctest-policy1-63788314 in API Server, Result: True 2026-06-22 02:09:14,480 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 02:09:14,486 - INFO - Deleting VN ctest-vn4-65638265 2026-06-22 02:09:14,577 - DEBUG - Response for deleting network () 2026-06-22 02:09:14,577 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e499b48a-5c31-4431-8981-f4cd74be5da0 2026-06-22 02:09:14,581 - DEBUG - Response Code: 404 2026-06-22 02:09:14,581 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 02:09:14,585 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b8fd5757-49ec-4513-adc1-5c67b2382f46 2026-06-22 02:09:14,638 - DEBUG - Requesting: http://10.0.0.38:8082/project/34d33f89-653c-4bc2-a305-eeeb222b56aa 2026-06-22 02:09:14,712 - INFO - Validated that VN ctest-vn4-65638265 is not found in API Server 2026-06-22 02:09:14,720 - DEBUG - VN ctest-vn4-65638265 is not present in Agent 10.0.0.38 2026-06-22 02:09:14,720 - INFO - Validated that VN ctest-vn4-65638265 is not in any agent 2026-06-22 02:09:14,731 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65638265 info 2026-06-22 02:09:14,749 - INFO - Deleted policy ctest-policy1-63788314 2026-06-22 02:09:14,906 - DEBUG - policy ctest-policy1-63788314 is not found in API Server 2026-06-22 02:09:15,158 - DEBUG - No XMPP flaps were noticed during the test 2026-06-22 02:09:15,158 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-22 02:09:15,159 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:09:15,447 - DEBUG - No XMPP flaps were noticed during the test 2026-06-22 02:09:15,447 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-22 02:09:15,447 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:09:16,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48521933, ID : 34d33f89-653c-4bc2-a305-eeeb222b56aa