2026-02-04 13:21:04,982 - INFO - Domain Default found not creating 2026-02-04 13:21:05,172 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48674748 not found, creating it 2026-02-04 13:21:05,688 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48674748, ID : 64fb683a-187d-4f64-ab0a-fa4b293e5594 2026-02-04 13:21:07,366 - INFO - ================================================================================ 2026-02-04 13:21:07,366 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 13:21:07,625 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-04 13:21:07,625 - INFO - Initial checks done. Running the testcase now 2026-02-04 13:21:07,625 - INFO - 2026-02-04 13:21:07,625 - INFO - ================================================================================ 2026-02-04 13:21:07,625 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 13:21:07,625 - 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-04 13:21:07,920 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-04 13:21:07,920 - INFO - Initial checks done. Running the testcase now 2026-02-04 13:21:07,921 - INFO - 2026-02-04 13:21:08,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556, 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-48674748:ctest-vn4-15981556, 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-48674748:ctest-vn4-15981556, 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-48674748:ctest-vn4-15981556, 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-04 13:21:08,829 - DEBUG - Response for create_network : {'network': {'id': 'db42c8e0-ae90-426f-845a-3dc73350e4ff', 'name': 'ctest-vn4-15981556', 'tenant_id': '64fb683a187d4f64ab0afa4b293e5594', 'project_id': '64fb683a187d4f64ab0afa4b293e5594', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48674748', 'ctest-vn4-15981556'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 13:21:09,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5dcb2ae-d398-4c27-9a98-9f8ab175a061', 'name': '', 'tenant_id': '64fb683a187d4f64ab0afa4b293e5594', 'network_id': 'db42c8e0-ae90-426f-845a-3dc73350e4ff', 'ip_version': 4, 'cidr': '129.175.66.192/26', 'allocation_pools': [{'start': '129.175.66.194', 'end': '129.175.66.254'}], 'gateway_ip': '129.175.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.175.66.194', 'tags': [], 'project_id': '64fb683a187d4f64ab0afa4b293e5594'}} 2026-02-04 13:21:09,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c862ed27-4eae-46b5-a889-685e24f08204', 'name': '', 'tenant_id': '64fb683a187d4f64ab0afa4b293e5594', 'network_id': 'db42c8e0-ae90-426f-845a-3dc73350e4ff', 'ip_version': 6, 'cidr': '3d78:1fa5:6964:29d2:2a0e:780f::/96', 'allocation_pools': [{'start': '3d78:1fa5:6964:29d2:2a0e:780f:0:2', 'end': '3d78:1fa5:6964:29d2:2a0e:780f:ffff:fffe'}], 'gateway_ip': '3d78:1fa5:6964:29d2:2a0e:780f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d78:1fa5:6964:29d2:2a0e:780f:0:2', 'tags': [], 'project_id': '64fb683a187d4f64ab0afa4b293e5594'}} 2026-02-04 13:21:09,254 - INFO - Created VN ctest-vn4-15981556 2026-02-04 13:21:09,306 - DEBUG - VN ctest-vn4-15981556 UUID is db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:09,545 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db42c8e0-ae90-426f-845a-3dc73350e4ff', 'name': 'ctest-vn4-15981556', 'tenant_id': '64fb683a187d4f64ab0afa4b293e5594', 'project_id': '64fb683a187d4f64ab0afa4b293e5594', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5dcb2ae-d398-4c27-9a98-9f8ab175a061', 'c862ed27-4eae-46b5-a889-685e24f08204'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48674748', 'ctest-vn4-15981556'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48674748', 'ctest-policy1-63261266']], 'subnet_ipam': [{'subnet_cidr': '129.175.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d78:1fa5:6964:29d2:2a0e:780f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 13:21:09,706 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 13:21:10,008 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 13:21:10,043 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73275af9-6d96-4f52-9edb-6bedf6a296da 2026-02-04 13:21:10,057 - DEBUG - Requesting: http://10.0.0.22:8082/project/64fb683a-187d-4f64-ab0a-fa4b293e5594 2026-02-04 13:21:10,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,155 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,164 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,171 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/019a6cf8-a760-4c94-864e-802e8d547c66 2026-02-04 13:21:10,179 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 13:21:10,179 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,190 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,206 - INFO - Verified VN network id 11 for VN db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,206 - INFO - Verifications in API Server for VN ctest-vn4-15981556 passed 2026-02-04 13:21:10,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,216 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,231 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/019a6cf8-a760-4c94-864e-802e8d547c66 2026-02-04 13:21:10,243 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48674748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15799411310096040559', 'uuid-lslong': '9537003086679172351'}, 'enable': 'true', 'created': '2026-02-04T13:21:08', 'last-modified': '2026-02-04T13:21:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731942'} 2026-02-04 13:21:10,250 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 13:21:10,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15981556 passed 2026-02-04 13:21:10,250 - DEBUG - ====Verifying policy data for ctest-vn4-15981556 in API_Server ====== 2026-02-04 13:21:10,250 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 13:21:10,256 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73275af9-6d96-4f52-9edb-6bedf6a296da 2026-02-04 13:21:10,268 - DEBUG - Requesting: http://10.0.0.22:8082/project/64fb683a-187d-4f64-ab0a-fa4b293e5594 2026-02-04 13:21:10,340 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db42c8e0-ae90-426f-845a-3dc73350e4ff 2026-02-04 13:21:10,353 - DEBUG - ==>Verifying data for policy with id: 3bec39da-a29a-474c-85ad-56737f0e182f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48674748', 'ctest-policy1-63261266'] 2026-02-04 13:21:10,353 - INFO - VN ctest-vn4-15981556 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 13:21:10,353 - DEBUG - Verifying the vn in opserver 2026-02-04 13:21:10,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556 virtual network link through opserver 10.0.0.22 2026-02-04 13:21:10,353 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-04 13:21:10,655 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-04 13:21:10,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556?flat'} 2026-02-04 13:21:10,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48674748:ctest-vn4-15981556 is found in opserver 2026-02-04 13:21:10,742 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 13:21:10,747 - DEBUG - VRF ids for VN ctest-vn4-15981556: {} 2026-02-04 13:21:10,748 - DEBUG - ====Verifying data for ctest-policy1-63261266 in API_Server ====== 2026-02-04 13:21:10,748 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 13:21:10,753 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73275af9-6d96-4f52-9edb-6bedf6a296da 2026-02-04 13:21:10,763 - DEBUG - Requesting: http://10.0.0.22:8082/project/64fb683a-187d-4f64-ab0a-fa4b293e5594 2026-02-04 13:21:10,843 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/3bec39da-a29a-474c-85ad-56737f0e182f 2026-02-04 13:21:10,853 - INFO - Verified policy ctest-policy1-63261266 in API Server, Result: True 2026-02-04 13:21:10,853 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 13:21:10,861 - INFO - Deleting VN ctest-vn4-15981556 2026-02-04 13:21:10,974 - DEBUG - Response for deleting network () 2026-02-04 13:21:10,974 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/be4bf75d-e237-40bf-b942-e7908f7e1093 2026-02-04 13:21:10,980 - DEBUG - Response Code: 404 2026-02-04 13:21:10,980 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-04 13:21:10,987 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73275af9-6d96-4f52-9edb-6bedf6a296da 2026-02-04 13:21:11,039 - DEBUG - Requesting: http://10.0.0.22:8082/project/64fb683a-187d-4f64-ab0a-fa4b293e5594 2026-02-04 13:21:11,111 - INFO - Validated that VN ctest-vn4-15981556 is not found in API Server 2026-02-04 13:21:11,121 - DEBUG - VN ctest-vn4-15981556 is not present in Agent 10.0.0.22 2026-02-04 13:21:11,121 - INFO - Validated that VN ctest-vn4-15981556 is not in any agent 2026-02-04 13:21:11,135 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15981556 info 2026-02-04 13:21:11,163 - INFO - Deleted policy ctest-policy1-63261266 2026-02-04 13:21:11,329 - DEBUG - policy ctest-policy1-63261266 is not found in API Server 2026-02-04 13:21:11,592 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 13:21:11,592 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-04 13:21:11,592 - INFO - -------------------------------------------------------------------------------- 2026-02-04 13:21:11,897 - DEBUG - No XMPP flaps were noticed during the test 2026-02-04 13:21:11,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-04 13:21:11,898 - INFO - -------------------------------------------------------------------------------- 2026-02-04 13:21:12,600 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48674748, ID : 64fb683a-187d-4f64-ab0a-fa4b293e5594