2025-07-23 14:57:04,198 - INFO - Domain Default found not creating 2025-07-23 14:57:04,367 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48333115 not found, creating it 2025-07-23 14:57:04,846 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48333115, ID : cec96199-8db2-4be3-bad0-c9f167d9186f 2025-07-23 14:57:06,309 - INFO - ================================================================================ 2025-07-23 14:57:06,309 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 14:57:06,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.25': '0'}} with 2025-07-23 14:57:06,568 - INFO - Initial checks done. Running the testcase now 2025-07-23 14:57:06,568 - INFO - 2025-07-23 14:57:06,568 - INFO - ================================================================================ 2025-07-23 14:57:06,568 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 14:57:06,568 - 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-07-23 14:57:06,869 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.25': '0'}} with 2025-07-23 14:57:06,869 - INFO - Initial checks done. Running the testcase now 2025-07-23 14:57:06,869 - INFO - 2025-07-23 14:57:07,239 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259, 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-48333115:ctest-vn4-77088259, 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-48333115:ctest-vn4-77088259, 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-48333115:ctest-vn4-77088259, 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-07-23 14:57:07,811 - DEBUG - Response for create_network : {'network': {'id': '1e2861f7-f97f-4dcf-986d-bf67e0d58298', 'name': 'ctest-vn4-77088259', 'tenant_id': 'cec961998db24be3bad0c9f167d9186f', 'project_id': 'cec961998db24be3bad0c9f167d9186f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48333115', 'ctest-vn4-77088259'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 14:57:07,993 - DEBUG - Response for create_subnet : {'subnet': {'id': '72c0415c-6362-4599-b86e-72984c9717ab', 'name': '', 'tenant_id': 'cec961998db24be3bad0c9f167d9186f', 'network_id': '1e2861f7-f97f-4dcf-986d-bf67e0d58298', 'ip_version': 4, 'cidr': '54.76.123.128/26', 'allocation_pools': [{'start': '54.76.123.130', 'end': '54.76.123.190'}], 'gateway_ip': '54.76.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.76.123.130', 'tags': [], 'project_id': 'cec961998db24be3bad0c9f167d9186f'}} 2025-07-23 14:57:08,176 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afb0cd80-63b6-4a6a-b24e-93b4be1705e0', 'name': '', 'tenant_id': 'cec961998db24be3bad0c9f167d9186f', 'network_id': '1e2861f7-f97f-4dcf-986d-bf67e0d58298', 'ip_version': 6, 'cidr': '2086:5daf:82a4:eaaa:c89f:b025::/96', 'allocation_pools': [{'start': '2086:5daf:82a4:eaaa:c89f:b025:0:2', 'end': '2086:5daf:82a4:eaaa:c89f:b025:ffff:fffe'}], 'gateway_ip': '2086:5daf:82a4:eaaa:c89f:b025:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2086:5daf:82a4:eaaa:c89f:b025:0:2', 'tags': [], 'project_id': 'cec961998db24be3bad0c9f167d9186f'}} 2025-07-23 14:57:08,196 - INFO - Created VN ctest-vn4-77088259 2025-07-23 14:57:08,249 - DEBUG - VN ctest-vn4-77088259 UUID is 1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:08,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e2861f7-f97f-4dcf-986d-bf67e0d58298', 'name': 'ctest-vn4-77088259', 'tenant_id': 'cec961998db24be3bad0c9f167d9186f', 'project_id': 'cec961998db24be3bad0c9f167d9186f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72c0415c-6362-4599-b86e-72984c9717ab', 'afb0cd80-63b6-4a6a-b24e-93b4be1705e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48333115', 'ctest-vn4-77088259'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48333115', 'ctest-policy1-40896633']], 'subnet_ipam': [{'subnet_cidr': '54.76.123.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2086:5daf:82a4:eaaa:c89f:b025::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 14:57:08,645 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-23 14:57:08,937 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-23 14:57:08,968 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b 2025-07-23 14:57:08,985 - DEBUG - Requesting: http://10.0.0.129:8082/project/cec96199-8db2-4be3-bad0-c9f167d9186f 2025-07-23 14:57:09,064 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,079 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,090 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,099 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,108 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b0a5fc1c-000c-4436-a073-f21af02d25f9 2025-07-23 14:57:09,115 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 14:57:09,116 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,127 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,145 - INFO - Verified VN network id 12 for VN 1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,145 - INFO - Verifications in API Server for VN ctest-vn4-77088259 passed 2025-07-23 14:57:09,145 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,159 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,169 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,177 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/b0a5fc1c-000c-4436-a073-f21af02d25f9 2025-07-23 14:57:09,193 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48333115', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2173094537876950479', 'uuid-lslong': '10983645519101133464'}, 'enable': 'true', 'created': '2025-07-23T14:57:07', 'last-modified': '2025-07-23T14:57:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752584'} 2025-07-23 14:57:09,200 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 14:57:09,200 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77088259 passed 2025-07-23 14:57:09,200 - DEBUG - ====Verifying policy data for ctest-vn4-77088259 in API_Server ====== 2025-07-23 14:57:09,200 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-23 14:57:09,208 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b 2025-07-23 14:57:09,221 - DEBUG - Requesting: http://10.0.0.129:8082/project/cec96199-8db2-4be3-bad0-c9f167d9186f 2025-07-23 14:57:09,301 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/1e2861f7-f97f-4dcf-986d-bf67e0d58298 2025-07-23 14:57:09,312 - DEBUG - ==>Verifying data for policy with id: 1eea5ab5-4f97-47cb-b517-063e6486df62, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48333115', 'ctest-policy1-40896633'] 2025-07-23 14:57:09,312 - INFO - VN ctest-vn4-77088259 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 14:57:09,313 - DEBUG - Verifying the vn in opserver 2025-07-23 14:57:09,313 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259 virtual network link through opserver 10.0.0.129 2025-07-23 14:57:09,313 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-07-23 14:57:09,608 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-07-23 14:57:09,668 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259?flat'} 2025-07-23 14:57:09,668 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48333115:ctest-vn4-77088259 is found in opserver 2025-07-23 14:57:09,679 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 14:57:09,685 - DEBUG - VRF ids for VN ctest-vn4-77088259: {} 2025-07-23 14:57:09,686 - DEBUG - ====Verifying data for ctest-policy1-40896633 in API_Server ====== 2025-07-23 14:57:09,686 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-23 14:57:09,692 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b 2025-07-23 14:57:09,704 - DEBUG - Requesting: http://10.0.0.129:8082/project/cec96199-8db2-4be3-bad0-c9f167d9186f 2025-07-23 14:57:09,774 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/1eea5ab5-4f97-47cb-b517-063e6486df62 2025-07-23 14:57:09,785 - INFO - Verified policy ctest-policy1-40896633 in API Server, Result: True 2025-07-23 14:57:09,785 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 14:57:09,794 - INFO - Deleting VN ctest-vn4-77088259 2025-07-23 14:57:09,917 - DEBUG - Response for deleting network () 2025-07-23 14:57:09,917 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/d801b569-f6db-4ea0-9d60-eb56887da36f 2025-07-23 14:57:09,923 - DEBUG - Response Code: 404 2025-07-23 14:57:09,923 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-07-23 14:57:09,929 - DEBUG - Requesting: http://10.0.0.129:8082/domain/eb013d9f-4d4e-4e11-bece-55bf7e4da03b 2025-07-23 14:57:09,983 - DEBUG - Requesting: http://10.0.0.129:8082/project/cec96199-8db2-4be3-bad0-c9f167d9186f 2025-07-23 14:57:10,064 - INFO - Validated that VN ctest-vn4-77088259 is not found in API Server 2025-07-23 14:57:10,076 - DEBUG - VN ctest-vn4-77088259 is not present in Agent 10.0.0.129 2025-07-23 14:57:10,076 - INFO - Validated that VN ctest-vn4-77088259 is not in any agent 2025-07-23 14:57:10,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77088259 info 2025-07-23 14:57:10,123 - INFO - Deleted policy ctest-policy1-40896633 2025-07-23 14:57:10,293 - DEBUG - policy ctest-policy1-40896633 is not found in API Server 2025-07-23 14:57:10,546 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 14:57:10,547 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 14:57:10,547 - INFO - -------------------------------------------------------------------------------- 2025-07-23 14:57:10,837 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 14:57:10,837 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 14:57:10,837 - INFO - -------------------------------------------------------------------------------- 2025-07-23 14:57:11,534 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48333115, ID : cec96199-8db2-4be3-bad0-c9f167d9186f