2025-08-07 17:40:21,272 - INFO - Domain Default found not creating 2025-08-07 17:40:21,418 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87612693 not found, creating it 2025-08-07 17:40:21,881 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87612693, ID : 88159302-07cb-4d5c-b68a-e665e63b02da 2025-08-07 17:40:23,398 - INFO - ================================================================================ 2025-08-07 17:40:23,398 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 17:40:23,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-07 17:40:23,653 - INFO - Initial checks done. Running the testcase now 2025-08-07 17:40:23,653 - INFO - 2025-08-07 17:40:23,653 - INFO - ================================================================================ 2025-08-07 17:40:23,653 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 17:40:23,653 - 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-08-07 17:40:23,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-07 17:40:23,939 - INFO - Initial checks done. Running the testcase now 2025-08-07 17:40:23,939 - INFO - 2025-08-07 17:40:24,348 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814, 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-87612693:ctest-vn4-61819814, 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-87612693:ctest-vn4-61819814, 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-87612693:ctest-vn4-61819814, 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-08-07 17:40:24,865 - DEBUG - Response for create_network : {'network': {'id': '12478ea1-ab4e-4597-b0d6-bbf671488116', 'name': 'ctest-vn4-61819814', 'tenant_id': '8815930207cb4d5cb68ae665e63b02da', 'project_id': '8815930207cb4d5cb68ae665e63b02da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87612693', 'ctest-vn4-61819814'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 17:40:25,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '91eac7af-ee1f-4544-aeee-d134d5ad6186', 'name': '', 'tenant_id': '8815930207cb4d5cb68ae665e63b02da', 'network_id': '12478ea1-ab4e-4597-b0d6-bbf671488116', 'ip_version': 4, 'cidr': '21.119.42.128/26', 'allocation_pools': [{'start': '21.119.42.130', 'end': '21.119.42.190'}], 'gateway_ip': '21.119.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.119.42.130', 'tags': [], 'project_id': '8815930207cb4d5cb68ae665e63b02da'}} 2025-08-07 17:40:25,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '53327f7a-c0d5-4c82-a463-4352b2f7ae46', 'name': '', 'tenant_id': '8815930207cb4d5cb68ae665e63b02da', 'network_id': '12478ea1-ab4e-4597-b0d6-bbf671488116', 'ip_version': 6, 'cidr': '22b5:66d0:f4fd:962c:2d25:9152::/96', 'allocation_pools': [{'start': '22b5:66d0:f4fd:962c:2d25:9152:0:2', 'end': '22b5:66d0:f4fd:962c:2d25:9152:ffff:fffe'}], 'gateway_ip': '22b5:66d0:f4fd:962c:2d25:9152:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22b5:66d0:f4fd:962c:2d25:9152:0:2', 'tags': [], 'project_id': '8815930207cb4d5cb68ae665e63b02da'}} 2025-08-07 17:40:25,260 - INFO - Created VN ctest-vn4-61819814 2025-08-07 17:40:25,314 - DEBUG - VN ctest-vn4-61819814 UUID is 12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:25,520 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12478ea1-ab4e-4597-b0d6-bbf671488116', 'name': 'ctest-vn4-61819814', 'tenant_id': '8815930207cb4d5cb68ae665e63b02da', 'project_id': '8815930207cb4d5cb68ae665e63b02da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91eac7af-ee1f-4544-aeee-d134d5ad6186', '53327f7a-c0d5-4c82-a463-4352b2f7ae46'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87612693', 'ctest-vn4-61819814'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87612693', 'ctest-policy1-76384474']], 'subnet_ipam': [{'subnet_cidr': '21.119.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22b5:66d0:f4fd:962c:2d25:9152::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 17:40:25,694 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 17:40:26,028 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 17:40:26,058 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74 2025-08-07 17:40:26,072 - DEBUG - Requesting: http://10.0.0.38:8082/project/88159302-07cb-4d5c-b68a-e665e63b02da 2025-08-07 17:40:26,149 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,162 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,173 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:26,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:26,188 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/21c2a44b-eda6-4a78-a482-a187408461c2 2025-08-07 17:40:26,195 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 17:40:26,195 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:26,221 - INFO - Verified VN network id 12 for VN 12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,221 - INFO - Verifications in API Server for VN ctest-vn4-61819814 passed 2025-08-07 17:40:26,221 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:26,241 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:26,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/21c2a44b-eda6-4a78-a482-a187408461c2 2025-08-07 17:40:26,263 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87612693', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1317178241044071831', 'uuid-lslong': '12742578862828323094'}, 'enable': 'true', 'created': '2025-08-07T17:40:24', 'last-modified': '2025-08-07T17:40:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773406'} 2025-08-07 17:40:26,270 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 17:40:26,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61819814 passed 2025-08-07 17:40:26,270 - DEBUG - ====Verifying policy data for ctest-vn4-61819814 in API_Server ====== 2025-08-07 17:40:26,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 17:40:26,275 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74 2025-08-07 17:40:26,287 - DEBUG - Requesting: http://10.0.0.38:8082/project/88159302-07cb-4d5c-b68a-e665e63b02da 2025-08-07 17:40:26,356 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/12478ea1-ab4e-4597-b0d6-bbf671488116 2025-08-07 17:40:26,367 - DEBUG - ==>Verifying data for policy with id: 21ce9b68-4a25-477d-940b-c256cd523fbf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87612693', 'ctest-policy1-76384474'] 2025-08-07 17:40:26,367 - INFO - VN ctest-vn4-61819814 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 17:40:26,368 - DEBUG - Verifying the vn in opserver 2025-08-07 17:40:26,368 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814 virtual network link through opserver 10.0.0.38 2025-08-07 17:40:26,368 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-07 17:40:26,701 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-07 17:40:26,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814?flat'} 2025-08-07 17:40:26,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87612693:ctest-vn4-61819814 is found in opserver 2025-08-07 17:40:26,768 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 17:40:26,775 - DEBUG - VRF ids for VN ctest-vn4-61819814: {} 2025-08-07 17:40:26,775 - DEBUG - ====Verifying data for ctest-policy1-76384474 in API_Server ====== 2025-08-07 17:40:26,775 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 17:40:26,782 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74 2025-08-07 17:40:26,794 - DEBUG - Requesting: http://10.0.0.38:8082/project/88159302-07cb-4d5c-b68a-e665e63b02da 2025-08-07 17:40:26,866 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/21ce9b68-4a25-477d-940b-c256cd523fbf 2025-08-07 17:40:26,877 - INFO - Verified policy ctest-policy1-76384474 in API Server, Result: True 2025-08-07 17:40:26,877 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 17:40:26,885 - INFO - Deleting VN ctest-vn4-61819814 2025-08-07 17:40:27,011 - DEBUG - Response for deleting network () 2025-08-07 17:40:27,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c839b3e4-a011-4f66-a500-02941cd3d5e3 2025-08-07 17:40:27,017 - DEBUG - Response Code: 404 2025-08-07 17:40:27,017 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 17:40:27,023 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12f416eb-6c5a-480f-aedd-27833d93ca74 2025-08-07 17:40:27,080 - DEBUG - Requesting: http://10.0.0.38:8082/project/88159302-07cb-4d5c-b68a-e665e63b02da 2025-08-07 17:40:27,159 - INFO - Validated that VN ctest-vn4-61819814 is not found in API Server 2025-08-07 17:40:27,172 - DEBUG - VN ctest-vn4-61819814 is not present in Agent 10.0.0.38 2025-08-07 17:40:27,172 - INFO - Validated that VN ctest-vn4-61819814 is not in any agent 2025-08-07 17:40:27,190 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61819814 info 2025-08-07 17:40:27,216 - INFO - Deleted policy ctest-policy1-76384474 2025-08-07 17:40:27,386 - DEBUG - policy ctest-policy1-76384474 is not found in API Server 2025-08-07 17:40:27,640 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 17:40:27,640 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-07 17:40:27,640 - INFO - -------------------------------------------------------------------------------- 2025-08-07 17:40:27,927 - DEBUG - No XMPP flaps were noticed during the test
2025-08-07 17:40:27,928 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-07 17:40:27,928 - INFO - -------------------------------------------------------------------------------- 2025-08-07 17:40:28,645 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87612693, ID : 88159302-07cb-4d5c-b68a-e665e63b02da