2025-08-13 18:44:23,421 - INFO - Domain Default found not creating 2025-08-13 18:44:23,572 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27090052 not found, creating it 2025-08-13 18:44:24,021 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27090052, ID : a297db2e-cc17-4b1f-a652-9521306fa811 2025-08-13 18:44:25,350 - INFO - ================================================================================ 2025-08-13 18:44:25,350 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 18:44:25,605 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-08-13 18:44:25,605 - INFO - Initial checks done. Running the testcase now 2025-08-13 18:44:25,605 - INFO - 2025-08-13 18:44:25,605 - INFO - ================================================================================ 2025-08-13 18:44:25,605 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 18:44:25,605 - 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-13 18:44:25,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-08-13 18:44:25,891 - INFO - Initial checks done. Running the testcase now 2025-08-13 18:44:25,892 - INFO - 2025-08-13 18:44:26,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012, 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-27090052:ctest-vn4-99573012, 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-27090052:ctest-vn4-99573012, 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-27090052:ctest-vn4-99573012, 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-13 18:44:26,724 - DEBUG - Response for create_network : {'network': {'id': '2f003d6f-784e-4357-a704-5af688347153', 'name': 'ctest-vn4-99573012', 'tenant_id': 'a297db2ecc174b1fa6529521306fa811', 'project_id': 'a297db2ecc174b1fa6529521306fa811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27090052', 'ctest-vn4-99573012'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 18:44:26,947 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7bd12f4-490d-47b6-84b1-2a041366d59d', 'name': '', 'tenant_id': 'a297db2ecc174b1fa6529521306fa811', 'network_id': '2f003d6f-784e-4357-a704-5af688347153', 'ip_version': 4, 'cidr': '121.216.245.192/26', 'allocation_pools': [{'start': '121.216.245.194', 'end': '121.216.245.254'}], 'gateway_ip': '121.216.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.216.245.194', 'tags': [], 'project_id': 'a297db2ecc174b1fa6529521306fa811'}} 2025-08-13 18:44:27,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e0a897d-4991-4fcb-899d-bcf09c2b232f', 'name': '', 'tenant_id': 'a297db2ecc174b1fa6529521306fa811', 'network_id': '2f003d6f-784e-4357-a704-5af688347153', 'ip_version': 6, 'cidr': '27a9:bd:10cb:d1f7:8209:8e3c::/96', 'allocation_pools': [{'start': '27a9:bd:10cb:d1f7:8209:8e3c:0:2', 'end': '27a9:bd:10cb:d1f7:8209:8e3c:ffff:fffe'}], 'gateway_ip': '27a9:bd:10cb:d1f7:8209:8e3c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27a9:bd:10cb:d1f7:8209:8e3c:0:2', 'tags': [], 'project_id': 'a297db2ecc174b1fa6529521306fa811'}} 2025-08-13 18:44:27,167 - INFO - Created VN ctest-vn4-99573012 2025-08-13 18:44:27,219 - DEBUG - VN ctest-vn4-99573012 UUID is 2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:27,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f003d6f-784e-4357-a704-5af688347153', 'name': 'ctest-vn4-99573012', 'tenant_id': 'a297db2ecc174b1fa6529521306fa811', 'project_id': 'a297db2ecc174b1fa6529521306fa811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7bd12f4-490d-47b6-84b1-2a041366d59d', '3e0a897d-4991-4fcb-899d-bcf09c2b232f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27090052', 'ctest-vn4-99573012'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27090052', 'ctest-policy1-53456225']], 'subnet_ipam': [{'subnet_cidr': '121.216.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27a9:bd:10cb:d1f7:8209:8e3c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 18:44:27,567 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-13 18:44:27,859 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-13 18:44:27,890 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e 2025-08-13 18:44:27,902 - DEBUG - Requesting: http://10.0.0.19:8082/project/a297db2e-cc17-4b1f-a652-9521306fa811 2025-08-13 18:44:27,978 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:27,991 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:28,001 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,008 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,014 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7b6318eb-7224-4444-87bb-6b55f790954e 2025-08-13 18:44:28,020 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 18:44:28,020 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:28,030 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,045 - INFO - Verified VN network id 11 for VN 2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:28,046 - INFO - Verifications in API Server for VN ctest-vn4-99573012 passed 2025-08-13 18:44:28,046 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:28,056 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,063 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,070 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7b6318eb-7224-4444-87bb-6b55f790954e 2025-08-13 18:44:28,082 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27090052', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3386774468751672151', 'uuid-lslong': '12034844119134400851'}, 'enable': 'true', 'created': '2025-08-13T18:44:26', 'last-modified': '2025-08-13T18:44:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710653'} 2025-08-13 18:44:28,088 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 18:44:28,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99573012 passed 2025-08-13 18:44:28,088 - DEBUG - ====Verifying policy data for ctest-vn4-99573012 in API_Server ====== 2025-08-13 18:44:28,088 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-13 18:44:28,093 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e 2025-08-13 18:44:28,104 - DEBUG - Requesting: http://10.0.0.19:8082/project/a297db2e-cc17-4b1f-a652-9521306fa811 2025-08-13 18:44:28,178 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2f003d6f-784e-4357-a704-5af688347153 2025-08-13 18:44:28,189 - DEBUG - ==>Verifying data for policy with id: f6c39fb7-467d-497d-bf89-f2866e632871, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27090052', 'ctest-policy1-53456225'] 2025-08-13 18:44:28,189 - INFO - VN ctest-vn4-99573012 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 18:44:28,189 - DEBUG - Verifying the vn in opserver 2025-08-13 18:44:28,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012 virtual network link through opserver 10.0.0.19 2025-08-13 18:44:28,190 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-13 18:44:28,477 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-13 18:44:28,526 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012?flat'} 2025-08-13 18:44:28,526 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27090052:ctest-vn4-99573012 is found in opserver 2025-08-13 18:44:28,536 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 18:44:28,540 - DEBUG - VRF ids for VN ctest-vn4-99573012: {} 2025-08-13 18:44:28,541 - DEBUG - ====Verifying data for ctest-policy1-53456225 in API_Server ====== 2025-08-13 18:44:28,541 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-13 18:44:28,546 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e 2025-08-13 18:44:28,556 - DEBUG - Requesting: http://10.0.0.19:8082/project/a297db2e-cc17-4b1f-a652-9521306fa811 2025-08-13 18:44:28,623 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/f6c39fb7-467d-497d-bf89-f2866e632871 2025-08-13 18:44:28,635 - INFO - Verified policy ctest-policy1-53456225 in API Server, Result: True 2025-08-13 18:44:28,635 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 18:44:28,643 - INFO - Deleting VN ctest-vn4-99573012 2025-08-13 18:44:28,770 - DEBUG - Response for deleting network () 2025-08-13 18:44:28,771 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/89d98b82-a8b8-4760-a573-86ff4ea92d91 2025-08-13 18:44:28,776 - DEBUG - Response Code: 404 2025-08-13 18:44:28,776 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-13 18:44:28,780 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e 2025-08-13 18:44:28,835 - DEBUG - Requesting: http://10.0.0.19:8082/project/a297db2e-cc17-4b1f-a652-9521306fa811 2025-08-13 18:44:28,903 - INFO - Validated that VN ctest-vn4-99573012 is not found in API Server 2025-08-13 18:44:28,913 - DEBUG - VN ctest-vn4-99573012 is not present in Agent 10.0.0.19 2025-08-13 18:44:28,913 - INFO - Validated that VN ctest-vn4-99573012 is not in any agent 2025-08-13 18:44:28,928 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99573012 info 2025-08-13 18:44:28,951 - INFO - Deleted policy ctest-policy1-53456225 2025-08-13 18:44:29,119 - DEBUG - policy ctest-policy1-53456225 is not found in API Server 2025-08-13 18:44:29,372 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 18:44:29,372 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 18:44:29,372 - INFO - -------------------------------------------------------------------------------- 2025-08-13 18:44:29,660 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 18:44:29,660 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 18:44:29,660 - INFO - -------------------------------------------------------------------------------- 2025-08-13 18:44:30,328 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-27090052, ID : a297db2e-cc17-4b1f-a652-9521306fa811