2025-12-21 15:04:34,996 - INFO - Domain Default found not creating 2025-12-21 15:04:35,173 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94285210 not found, creating it 2025-12-21 15:04:35,619 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94285210, ID : fef6ce9e-a32a-4c21-849d-074459e0290e 2025-12-21 15:04:37,081 - INFO - ================================================================================ 2025-12-21 15:04:37,082 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-21 15:04:37,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-21 15:04:37,341 - INFO - Initial checks done. Running the testcase now 2025-12-21 15:04:37,341 - INFO - 2025-12-21 15:04:37,341 - INFO - ================================================================================ 2025-12-21 15:04:37,341 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-21 15:04:37,341 - 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. 2025-12-21 15:04:37,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-21 15:04:37,628 - INFO - Initial checks done. Running the testcase now 2025-12-21 15:04:37,628 - INFO - 2025-12-21 15:04:37,978 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896, 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-94285210:ctest-vn4-11813896, 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-94285210:ctest-vn4-11813896, 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-94285210:ctest-vn4-11813896, 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] 2025-12-21 15:04:38,492 - DEBUG - Response for create_network : {'network': {'id': '068e0497-646f-46ed-8efb-3f8af6724b2d', 'name': 'ctest-vn4-11813896', 'tenant_id': 'fef6ce9ea32a4c21849d074459e0290e', 'project_id': 'fef6ce9ea32a4c21849d074459e0290e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94285210', 'ctest-vn4-11813896'], 'port_security_enabled': True, 'description': ''}} 2025-12-21 15:04:38,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b5f81cf-b053-4c26-a597-a2d040d73f84', 'name': '', 'tenant_id': 'fef6ce9ea32a4c21849d074459e0290e', 'network_id': '068e0497-646f-46ed-8efb-3f8af6724b2d', 'ip_version': 4, 'cidr': '32.37.188.64/26', 'allocation_pools': [{'start': '32.37.188.66', 'end': '32.37.188.126'}], 'gateway_ip': '32.37.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.37.188.66', 'tags': [], 'project_id': 'fef6ce9ea32a4c21849d074459e0290e'}} 2025-12-21 15:04:38,846 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd26d6e9c-cd0c-43fc-8eb9-ec3b72183969', 'name': '', 'tenant_id': 'fef6ce9ea32a4c21849d074459e0290e', 'network_id': '068e0497-646f-46ed-8efb-3f8af6724b2d', 'ip_version': 6, 'cidr': '3233:bfb4:c3cf:ad6f:7dde:b947::/96', 'allocation_pools': [{'start': '3233:bfb4:c3cf:ad6f:7dde:b947:0:2', 'end': '3233:bfb4:c3cf:ad6f:7dde:b947:ffff:fffe'}], 'gateway_ip': '3233:bfb4:c3cf:ad6f:7dde:b947:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3233:bfb4:c3cf:ad6f:7dde:b947:0:2', 'tags': [], 'project_id': 'fef6ce9ea32a4c21849d074459e0290e'}} 2025-12-21 15:04:38,866 - INFO - Created VN ctest-vn4-11813896 2025-12-21 15:04:38,919 - DEBUG - VN ctest-vn4-11813896 UUID is 068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '068e0497-646f-46ed-8efb-3f8af6724b2d', 'name': 'ctest-vn4-11813896', 'tenant_id': 'fef6ce9ea32a4c21849d074459e0290e', 'project_id': 'fef6ce9ea32a4c21849d074459e0290e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b5f81cf-b053-4c26-a597-a2d040d73f84', 'd26d6e9c-cd0c-43fc-8eb9-ec3b72183969'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94285210', 'ctest-vn4-11813896'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94285210', 'ctest-policy1-41659739']], 'subnet_ipam': [{'subnet_cidr': '32.37.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3233:bfb4:c3cf:ad6f:7dde:b947::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-21 15:04:39,307 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-21 15:04:39,603 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-21 15:04:39,634 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4feb2f-8f57-49e9-b996-9fb4b7761d1d 2025-12-21 15:04:39,646 - DEBUG - Requesting: http://10.0.0.38:8082/project/fef6ce9e-a32a-4c21-849d-074459e0290e 2025-12-21 15:04:39,730 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:39,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:39,768 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c5950f26-ab62-4a9e-8a72-ebb60df43c56 2025-12-21 15:04:39,774 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-21 15:04:39,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:39,797 - INFO - Verified VN network id 11 for VN 068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,797 - INFO - Verifications in API Server for VN ctest-vn4-11813896 passed 2025-12-21 15:04:39,797 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:39,813 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:39,821 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c5950f26-ab62-4a9e-8a72-ebb60df43c56 2025-12-21 15:04:39,834 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94285210', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '472320059192067821', 'uuid-lslong': '10302898438612863789'}, 'enable': 'true', 'created': '2025-12-21T15:04:38', 'last-modified': '2025-12-21T15:04:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725262'} 2025-12-21 15:04:39,840 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-21 15:04:39,840 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11813896 passed 2025-12-21 15:04:39,840 - DEBUG - ====Verifying policy data for ctest-vn4-11813896 in API_Server ====== 2025-12-21 15:04:39,840 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-21 15:04:39,845 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4feb2f-8f57-49e9-b996-9fb4b7761d1d 2025-12-21 15:04:39,856 - DEBUG - Requesting: http://10.0.0.38:8082/project/fef6ce9e-a32a-4c21-849d-074459e0290e 2025-12-21 15:04:39,928 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/068e0497-646f-46ed-8efb-3f8af6724b2d 2025-12-21 15:04:39,938 - DEBUG - ==>Verifying data for policy with id: 14929d27-53a5-463f-924e-07242db62092, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94285210', 'ctest-policy1-41659739'] 2025-12-21 15:04:39,938 - INFO - VN ctest-vn4-11813896 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-21 15:04:39,938 - DEBUG - Verifying the vn in opserver 2025-12-21 15:04:39,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896 virtual network link through opserver 10.0.0.38 2025-12-21 15:04:39,939 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-21 15:04:40,239 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-21 15:04:40,300 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896?flat'} 2025-12-21 15:04:40,300 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94285210:ctest-vn4-11813896 is found in opserver 2025-12-21 15:04:40,310 - DEBUG - Do not have enough data to verify VN in agent 2025-12-21 15:04:40,314 - DEBUG - VRF ids for VN ctest-vn4-11813896: {} 2025-12-21 15:04:40,314 - DEBUG - ====Verifying data for ctest-policy1-41659739 in API_Server ====== 2025-12-21 15:04:40,314 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-21 15:04:40,320 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4feb2f-8f57-49e9-b996-9fb4b7761d1d 2025-12-21 15:04:40,329 - DEBUG - Requesting: http://10.0.0.38:8082/project/fef6ce9e-a32a-4c21-849d-074459e0290e 2025-12-21 15:04:40,406 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/14929d27-53a5-463f-924e-07242db62092 2025-12-21 15:04:40,415 - INFO - Verified policy ctest-policy1-41659739 in API Server, Result: True 2025-12-21 15:04:40,415 - INFO - Done with setup and verification, moving onto test .. 2025-12-21 15:04:40,424 - INFO - Deleting VN ctest-vn4-11813896 2025-12-21 15:04:40,541 - DEBUG - Response for deleting network () 2025-12-21 15:04:40,541 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0de528a5-b05c-41aa-900e-1578b6d32b3f 2025-12-21 15:04:40,546 - DEBUG - Response Code: 404 2025-12-21 15:04:40,546 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-21 15:04:40,552 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6e4feb2f-8f57-49e9-b996-9fb4b7761d1d 2025-12-21 15:04:40,608 - DEBUG - Requesting: http://10.0.0.38:8082/project/fef6ce9e-a32a-4c21-849d-074459e0290e 2025-12-21 15:04:40,676 - INFO - Validated that VN ctest-vn4-11813896 is not found in API Server 2025-12-21 15:04:40,686 - DEBUG - VN ctest-vn4-11813896 is not present in Agent 10.0.0.38 2025-12-21 15:04:40,686 - INFO - Validated that VN ctest-vn4-11813896 is not in any agent 2025-12-21 15:04:40,700 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11813896 info 2025-12-21 15:04:40,723 - INFO - Deleted policy ctest-policy1-41659739 2025-12-21 15:04:40,887 - DEBUG - policy ctest-policy1-41659739 is not found in API Server 2025-12-21 15:04:41,140 - DEBUG - No XMPP flaps were noticed during the test 2025-12-21 15:04:41,140 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-21 15:04:41,140 - INFO - -------------------------------------------------------------------------------- 2025-12-21 15:04:41,429 - DEBUG - No XMPP flaps were noticed during the test 2025-12-21 15:04:41,429 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-21 15:04:41,429 - INFO - -------------------------------------------------------------------------------- 2025-12-21 15:04:42,122 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94285210, ID : fef6ce9e-a32a-4c21-849d-074459e0290e