2025-09-25 15:18:15,721 - INFO - Domain Default found not creating 2025-09-25 15:18:15,848 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17646760 not found, creating it 2025-09-25 15:18:16,292 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17646760, ID : bd328175-0b1d-4fcb-a909-b08ad7d39701 2025-09-25 15:18:17,613 - INFO - ================================================================================ 2025-09-25 15:18:17,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 15:18:17,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-25 15:18:17,866 - INFO - Initial checks done. Running the testcase now 2025-09-25 15:18:17,866 - INFO - 2025-09-25 15:18:17,866 - INFO - ================================================================================ 2025-09-25 15:18:17,867 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 15:18:17,867 - 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-09-25 15:18:18,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-25 15:18:18,148 - INFO - Initial checks done. Running the testcase now 2025-09-25 15:18:18,148 - INFO - 2025-09-25 15:18:18,486 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087, 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-17646760:ctest-vn4-81762087, 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-17646760:ctest-vn4-81762087, 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-17646760:ctest-vn4-81762087, 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-09-25 15:18:18,959 - DEBUG - Response for create_network : {'network': {'id': 'ca6f560d-3d33-4b85-bd09-680a49db77f4', 'name': 'ctest-vn4-81762087', 'tenant_id': 'bd3281750b1d4fcba909b08ad7d39701', 'project_id': 'bd3281750b1d4fcba909b08ad7d39701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17646760', 'ctest-vn4-81762087'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 15:18:19,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e25d4f5-f03c-43dd-8042-88693547fcf3', 'name': '', 'tenant_id': 'bd3281750b1d4fcba909b08ad7d39701', 'network_id': 'ca6f560d-3d33-4b85-bd09-680a49db77f4', 'ip_version': 4, 'cidr': '214.194.228.64/26', 'allocation_pools': [{'start': '214.194.228.66', 'end': '214.194.228.126'}], 'gateway_ip': '214.194.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.194.228.66', 'tags': [], 'project_id': 'bd3281750b1d4fcba909b08ad7d39701'}} 2025-09-25 15:18:19,293 - DEBUG - Response for create_subnet : {'subnet': {'id': '39f97859-2b17-41ce-9e69-e7ad0a77eb32', 'name': '', 'tenant_id': 'bd3281750b1d4fcba909b08ad7d39701', 'network_id': 'ca6f560d-3d33-4b85-bd09-680a49db77f4', 'ip_version': 6, 'cidr': '2532:7e64:8787:c5f7:3a6f:7b6c::/96', 'allocation_pools': [{'start': '2532:7e64:8787:c5f7:3a6f:7b6c:0:2', 'end': '2532:7e64:8787:c5f7:3a6f:7b6c:ffff:fffe'}], 'gateway_ip': '2532:7e64:8787:c5f7:3a6f:7b6c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2532:7e64:8787:c5f7:3a6f:7b6c:0:2', 'tags': [], 'project_id': 'bd3281750b1d4fcba909b08ad7d39701'}} 2025-09-25 15:18:19,309 - INFO - Created VN ctest-vn4-81762087 2025-09-25 15:18:19,360 - DEBUG - VN ctest-vn4-81762087 UUID is ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:19,528 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca6f560d-3d33-4b85-bd09-680a49db77f4', 'name': 'ctest-vn4-81762087', 'tenant_id': 'bd3281750b1d4fcba909b08ad7d39701', 'project_id': 'bd3281750b1d4fcba909b08ad7d39701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e25d4f5-f03c-43dd-8042-88693547fcf3', '39f97859-2b17-41ce-9e69-e7ad0a77eb32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17646760', 'ctest-vn4-81762087'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17646760', 'ctest-policy1-61001199']], 'subnet_ipam': [{'subnet_cidr': '214.194.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2532:7e64:8787:c5f7:3a6f:7b6c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 15:18:19,732 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 15:18:20,021 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 15:18:20,045 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e 2025-09-25 15:18:20,056 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd328175-0b1d-4fcb-a909-b08ad7d39701 2025-09-25 15:18:20,124 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,137 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,144 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,149 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,154 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b442288a-3788-4d2b-a687-8e5dbbcc9991 2025-09-25 15:18:20,158 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 15:18:20,158 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,165 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,176 - INFO - Verified VN network id 11 for VN ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,176 - INFO - Verifications in API Server for VN ctest-vn4-81762087 passed 2025-09-25 15:18:20,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,183 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,193 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b442288a-3788-4d2b-a687-8e5dbbcc9991 2025-09-25 15:18:20,202 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17646760', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14586972332937661317', 'uuid-lslong': '13621532941356857332'}, 'enable': 'true', 'created': '2025-09-25T15:18:18', 'last-modified': '2025-09-25T15:18:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696106'} 2025-09-25 15:18:20,207 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 15:18:20,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81762087 passed 2025-09-25 15:18:20,207 - DEBUG - ====Verifying policy data for ctest-vn4-81762087 in API_Server ====== 2025-09-25 15:18:20,207 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 15:18:20,211 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e 2025-09-25 15:18:20,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd328175-0b1d-4fcb-a909-b08ad7d39701 2025-09-25 15:18:20,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca6f560d-3d33-4b85-bd09-680a49db77f4 2025-09-25 15:18:20,290 - DEBUG - ==>Verifying data for policy with id: a0d00a0b-5bbb-4d15-927d-c107adc2d37d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17646760', 'ctest-policy1-61001199'] 2025-09-25 15:18:20,291 - INFO - VN ctest-vn4-81762087 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 15:18:20,291 - DEBUG - Verifying the vn in opserver 2025-09-25 15:18:20,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087 virtual network link through opserver 10.0.0.254 2025-09-25 15:18:20,291 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 15:18:20,577 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-25 15:18:20,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087?flat'} 2025-09-25 15:18:20,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17646760:ctest-vn4-81762087 is found in opserver 2025-09-25 15:18:20,631 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 15:18:20,635 - DEBUG - VRF ids for VN ctest-vn4-81762087: {} 2025-09-25 15:18:20,636 - DEBUG - ====Verifying data for ctest-policy1-61001199 in API_Server ====== 2025-09-25 15:18:20,636 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 15:18:20,640 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e 2025-09-25 15:18:20,649 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd328175-0b1d-4fcb-a909-b08ad7d39701 2025-09-25 15:18:20,715 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a0d00a0b-5bbb-4d15-927d-c107adc2d37d 2025-09-25 15:18:20,725 - INFO - Verified policy ctest-policy1-61001199 in API Server, Result: True 2025-09-25 15:18:20,725 - INFO - Done with setup and verification, moving onto test .. 2025-09-25 15:18:20,732 - INFO - Deleting VN ctest-vn4-81762087 2025-09-25 15:18:20,833 - DEBUG - Response for deleting network () 2025-09-25 15:18:20,833 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33d3aad9-ffb9-480d-84e0-b9dc445d9666 2025-09-25 15:18:20,837 - DEBUG - Response Code: 404 2025-09-25 15:18:20,837 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-25 15:18:20,841 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b3edf19e-3aff-4e77-9a08-54839a041d5e 2025-09-25 15:18:20,892 - DEBUG - Requesting: http://10.0.0.254:8082/project/bd328175-0b1d-4fcb-a909-b08ad7d39701 2025-09-25 15:18:20,968 - INFO - Validated that VN ctest-vn4-81762087 is not found in API Server 2025-09-25 15:18:20,978 - DEBUG - VN ctest-vn4-81762087 is not present in Agent 10.0.0.254 2025-09-25 15:18:20,978 - INFO - Validated that VN ctest-vn4-81762087 is not in any agent 2025-09-25 15:18:20,990 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81762087 info 2025-09-25 15:18:21,013 - INFO - Deleted policy ctest-policy1-61001199 2025-09-25 15:18:21,176 - DEBUG - policy ctest-policy1-61001199 is not found in API Server 2025-09-25 15:18:21,424 - DEBUG - No XMPP flaps were noticed during the test 2025-09-25 15:18:21,424 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-25 15:18:21,424 - INFO - -------------------------------------------------------------------------------- 2025-09-25 15:18:21,708 - DEBUG - No XMPP flaps were noticed during the test 2025-09-25 15:18:21,708 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-25 15:18:21,708 - INFO - -------------------------------------------------------------------------------- 2025-09-25 15:18:22,333 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17646760, ID : bd328175-0b1d-4fcb-a909-b08ad7d39701