2025-10-21 18:43:50,744 - INFO - Domain Default found not creating 2025-10-21 18:43:50,892 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22665864 not found, creating it 2025-10-21 18:43:51,346 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22665864, ID : 17721dc5-66b7-448b-9ea6-6eda48fb9484 2025-10-21 18:43:52,859 - INFO - ================================================================================ 2025-10-21 18:43:52,859 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 18:43:53,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 18:43:53,122 - INFO - Initial checks done. Running the testcase now 2025-10-21 18:43:53,122 - INFO - 2025-10-21 18:43:53,122 - INFO - ================================================================================ 2025-10-21 18:43:53,122 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 18:43:53,122 - 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-10-21 18:43:53,406 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 18:43:53,406 - INFO - Initial checks done. Running the testcase now 2025-10-21 18:43:53,406 - INFO - 2025-10-21 18:43:53,764 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052, 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-22665864:ctest-vn4-74210052, 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-22665864:ctest-vn4-74210052, 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-22665864:ctest-vn4-74210052, 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-10-21 18:43:54,267 - DEBUG - Response for create_network : {'network': {'id': 'f2922e35-a759-41c3-acb8-e0569714d8ff', 'name': 'ctest-vn4-74210052', 'tenant_id': '17721dc566b7448b9ea66eda48fb9484', 'project_id': '17721dc566b7448b9ea66eda48fb9484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665864', 'ctest-vn4-74210052'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 18:43:54,442 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1fc62b1-04cf-4016-905d-c83022f6c26c', 'name': '', 'tenant_id': '17721dc566b7448b9ea66eda48fb9484', 'network_id': 'f2922e35-a759-41c3-acb8-e0569714d8ff', 'ip_version': 4, 'cidr': '38.241.163.0/26', 'allocation_pools': [{'start': '38.241.163.2', 'end': '38.241.163.62'}], 'gateway_ip': '38.241.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.241.163.2', 'tags': [], 'project_id': '17721dc566b7448b9ea66eda48fb9484'}} 2025-10-21 18:43:54,656 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c24184b-4f31-4d74-8a41-803b0e5da5ee', 'name': '', 'tenant_id': '17721dc566b7448b9ea66eda48fb9484', 'network_id': 'f2922e35-a759-41c3-acb8-e0569714d8ff', 'ip_version': 6, 'cidr': '3125:cdbc:76be:968a:d394:2d45::/96', 'allocation_pools': [{'start': '3125:cdbc:76be:968a:d394:2d45:0:2', 'end': '3125:cdbc:76be:968a:d394:2d45:ffff:fffe'}], 'gateway_ip': '3125:cdbc:76be:968a:d394:2d45:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3125:cdbc:76be:968a:d394:2d45:0:2', 'tags': [], 'project_id': '17721dc566b7448b9ea66eda48fb9484'}} 2025-10-21 18:43:54,680 - INFO - Created VN ctest-vn4-74210052 2025-10-21 18:43:54,734 - DEBUG - VN ctest-vn4-74210052 UUID is f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:54,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f2922e35-a759-41c3-acb8-e0569714d8ff', 'name': 'ctest-vn4-74210052', 'tenant_id': '17721dc566b7448b9ea66eda48fb9484', 'project_id': '17721dc566b7448b9ea66eda48fb9484', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1fc62b1-04cf-4016-905d-c83022f6c26c', '3c24184b-4f31-4d74-8a41-803b0e5da5ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665864', 'ctest-vn4-74210052'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665864', 'ctest-policy1-98577979']], 'subnet_ipam': [{'subnet_cidr': '38.241.163.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3125:cdbc:76be:968a:d394:2d45::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 18:43:55,106 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 18:43:55,398 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 18:43:55,426 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8 2025-10-21 18:43:55,437 - DEBUG - Requesting: http://10.0.0.141:8082/project/17721dc5-66b7-448b-9ea6-6eda48fb9484 2025-10-21 18:43:55,509 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,521 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,530 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:55,537 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:55,544 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9fbc2705-dc0c-4667-8744-50d7b6011caf 2025-10-21 18:43:55,550 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 18:43:55,550 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,559 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:55,572 - INFO - Verified VN network id 11 for VN f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,572 - INFO - Verifications in API Server for VN ctest-vn4-74210052 passed 2025-10-21 18:43:55,573 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,581 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:55,587 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:55,593 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9fbc2705-dc0c-4667-8744-50d7b6011caf 2025-10-21 18:43:55,604 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22665864', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17479083911754105283', 'uuid-lslong': '12445944232744900863'}, 'enable': 'true', 'created': '2025-10-21T18:43:54', 'last-modified': '2025-10-21T18:43:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686623'} 2025-10-21 18:43:55,611 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 18:43:55,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74210052 passed 2025-10-21 18:43:55,611 - DEBUG - ====Verifying policy data for ctest-vn4-74210052 in API_Server ====== 2025-10-21 18:43:55,611 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 18:43:55,617 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8 2025-10-21 18:43:55,629 - DEBUG - Requesting: http://10.0.0.141:8082/project/17721dc5-66b7-448b-9ea6-6eda48fb9484 2025-10-21 18:43:55,707 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f2922e35-a759-41c3-acb8-e0569714d8ff 2025-10-21 18:43:55,718 - DEBUG - ==>Verifying data for policy with id: 71e70011-09a6-4e1e-877a-36aebf842b49, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665864', 'ctest-policy1-98577979'] 2025-10-21 18:43:55,718 - INFO - VN ctest-vn4-74210052 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 18:43:55,718 - DEBUG - Verifying the vn in opserver 2025-10-21 18:43:55,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052 virtual network link through opserver 10.0.0.141 2025-10-21 18:43:55,718 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 18:43:56,014 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 18:43:56,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052?flat'} 2025-10-21 18:43:56,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665864:ctest-vn4-74210052 is found in opserver 2025-10-21 18:43:56,143 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 18:43:56,148 - DEBUG - VRF ids for VN ctest-vn4-74210052: {} 2025-10-21 18:43:56,148 - DEBUG - ====Verifying data for ctest-policy1-98577979 in API_Server ====== 2025-10-21 18:43:56,148 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 18:43:56,155 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8 2025-10-21 18:43:56,165 - DEBUG - Requesting: http://10.0.0.141:8082/project/17721dc5-66b7-448b-9ea6-6eda48fb9484 2025-10-21 18:43:56,242 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/71e70011-09a6-4e1e-877a-36aebf842b49 2025-10-21 18:43:56,251 - INFO - Verified policy ctest-policy1-98577979 in API Server, Result: True 2025-10-21 18:43:56,251 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 18:43:56,258 - INFO - Deleting VN ctest-vn4-74210052 2025-10-21 18:43:56,371 - DEBUG - Response for deleting network () 2025-10-21 18:43:56,371 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d8f3ee5f-0d21-4676-8c5d-2952180f9a5a 2025-10-21 18:43:56,376 - DEBUG - Response Code: 404 2025-10-21 18:43:56,377 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 18:43:56,383 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b545ca9b-a7ee-4b6c-ba99-749b252af2f8 2025-10-21 18:43:56,434 - DEBUG - Requesting: http://10.0.0.141:8082/project/17721dc5-66b7-448b-9ea6-6eda48fb9484 2025-10-21 18:43:56,504 - INFO - Validated that VN ctest-vn4-74210052 is not found in API Server 2025-10-21 18:43:56,513 - DEBUG - VN ctest-vn4-74210052 is not present in Agent 10.0.0.141 2025-10-21 18:43:56,513 - INFO - Validated that VN ctest-vn4-74210052 is not in any agent 2025-10-21 18:43:56,526 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74210052 info 2025-10-21 18:43:56,551 - INFO - Deleted policy ctest-policy1-98577979 2025-10-21 18:43:56,713 - DEBUG - policy ctest-policy1-98577979 is not found in API Server 2025-10-21 18:43:56,967 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 18:43:56,967 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-21 18:43:56,967 - INFO - -------------------------------------------------------------------------------- 2025-10-21 18:43:57,254 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 18:43:57,254 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-21 18:43:57,254 - INFO - -------------------------------------------------------------------------------- 2025-10-21 18:43:58,001 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22665864, ID : 17721dc5-66b7-448b-9ea6-6eda48fb9484