2025-12-05 08:24:50,374 - INFO - Domain Default found not creating 2025-12-05 08:24:50,535 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40165508 not found, creating it 2025-12-05 08:24:51,024 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40165508, ID : 20bf645e-d5ed-4c57-9673-594bfc107db2 2025-12-05 08:24:52,610 - INFO - ================================================================================ 2025-12-05 08:24:52,610 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-05 08:24:52,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-12-05 08:24:52,863 - INFO - Initial checks done. Running the testcase now 2025-12-05 08:24:52,863 - INFO - 2025-12-05 08:24:52,863 - INFO - ================================================================================ 2025-12-05 08:24:52,863 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-05 08:24:52,863 - 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-12-05 08:24:53,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-12-05 08:24:53,150 - INFO - Initial checks done. Running the testcase now 2025-12-05 08:24:53,150 - INFO - 2025-12-05 08:24:53,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250, 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-40165508:ctest-vn4-32970250, 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-40165508:ctest-vn4-32970250, 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-40165508:ctest-vn4-32970250, 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-12-05 08:24:54,049 - DEBUG - Response for create_network : {'network': {'id': '0366940c-1da8-43dc-9b31-20a2abb44bd1', 'name': 'ctest-vn4-32970250', 'tenant_id': '20bf645ed5ed4c579673594bfc107db2', 'project_id': '20bf645ed5ed4c579673594bfc107db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40165508', 'ctest-vn4-32970250'], 'port_security_enabled': True, 'description': ''}} 2025-12-05 08:24:54,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '778e1fe5-6555-4044-9d66-8bc0f4a5d45b', 'name': '', 'tenant_id': '20bf645ed5ed4c579673594bfc107db2', 'network_id': '0366940c-1da8-43dc-9b31-20a2abb44bd1', 'ip_version': 4, 'cidr': '98.138.146.0/26', 'allocation_pools': [{'start': '98.138.146.2', 'end': '98.138.146.62'}], 'gateway_ip': '98.138.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.138.146.2', 'tags': [], 'project_id': '20bf645ed5ed4c579673594bfc107db2'}} 2025-12-05 08:24:54,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '132c5dcd-e428-4771-b43a-6d715b73942a', 'name': '', 'tenant_id': '20bf645ed5ed4c579673594bfc107db2', 'network_id': '0366940c-1da8-43dc-9b31-20a2abb44bd1', 'ip_version': 6, 'cidr': '39ff:eee7:37c0:b59:3208:143e::/96', 'allocation_pools': [{'start': '39ff:eee7:37c0:b59:3208:143e:0:2', 'end': '39ff:eee7:37c0:b59:3208:143e:ffff:fffe'}], 'gateway_ip': '39ff:eee7:37c0:b59:3208:143e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39ff:eee7:37c0:b59:3208:143e:0:2', 'tags': [], 'project_id': '20bf645ed5ed4c579673594bfc107db2'}} 2025-12-05 08:24:54,453 - INFO - Created VN ctest-vn4-32970250 2025-12-05 08:24:54,506 - DEBUG - VN ctest-vn4-32970250 UUID is 0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:54,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0366940c-1da8-43dc-9b31-20a2abb44bd1', 'name': 'ctest-vn4-32970250', 'tenant_id': '20bf645ed5ed4c579673594bfc107db2', 'project_id': '20bf645ed5ed4c579673594bfc107db2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['778e1fe5-6555-4044-9d66-8bc0f4a5d45b', '132c5dcd-e428-4771-b43a-6d715b73942a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40165508', 'ctest-vn4-32970250'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40165508', 'ctest-policy1-29263295']], 'subnet_ipam': [{'subnet_cidr': '98.138.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39ff:eee7:37c0:b59:3208:143e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-05 08:24:54,870 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-05 08:24:55,162 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-05 08:24:55,191 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b642a707-c47c-480e-9045-aa3b0427c9f3 2025-12-05 08:24:55,202 - DEBUG - Requesting: http://10.0.0.249:8082/project/20bf645e-d5ed-4c57-9673-594bfc107db2 2025-12-05 08:24:55,272 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,282 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,290 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:55,296 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:55,303 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/173ac576-eef3-4c81-976b-1d6026a72949 2025-12-05 08:24:55,308 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-05 08:24:55,308 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,318 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:55,332 - INFO - Verified VN network id 11 for VN 0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,332 - INFO - Verifications in API Server for VN ctest-vn4-32970250 passed 2025-12-05 08:24:55,332 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,341 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:55,349 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:55,357 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/173ac576-eef3-4c81-976b-1d6026a72949 2025-12-05 08:24:55,369 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40165508', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '245046009496355804', 'uuid-lslong': '11182755232775162833'}, 'enable': 'true', 'created': '2025-12-05T08:24:54', 'last-modified': '2025-12-05T08:24:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685671'} 2025-12-05 08:24:55,376 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-05 08:24:55,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32970250 passed 2025-12-05 08:24:55,376 - DEBUG - ====Verifying policy data for ctest-vn4-32970250 in API_Server ====== 2025-12-05 08:24:55,376 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-05 08:24:55,381 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b642a707-c47c-480e-9045-aa3b0427c9f3 2025-12-05 08:24:55,391 - DEBUG - Requesting: http://10.0.0.249:8082/project/20bf645e-d5ed-4c57-9673-594bfc107db2 2025-12-05 08:24:55,460 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0366940c-1da8-43dc-9b31-20a2abb44bd1 2025-12-05 08:24:55,469 - DEBUG - ==>Verifying data for policy with id: 3098a8d1-c638-4abe-9654-b0abba82683e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40165508', 'ctest-policy1-29263295'] 2025-12-05 08:24:55,469 - INFO - VN ctest-vn4-32970250 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-05 08:24:55,469 - DEBUG - Verifying the vn in opserver 2025-12-05 08:24:55,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250 virtual network link through opserver 10.0.0.249 2025-12-05 08:24:55,469 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-05 08:24:55,763 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-05 08:24:55,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250?flat'} 2025-12-05 08:24:55,824 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40165508:ctest-vn4-32970250 is found in opserver 2025-12-05 08:24:55,833 - DEBUG - Do not have enough data to verify VN in agent 2025-12-05 08:24:55,838 - DEBUG - VRF ids for VN ctest-vn4-32970250: {} 2025-12-05 08:24:55,838 - DEBUG - ====Verifying data for ctest-policy1-29263295 in API_Server ====== 2025-12-05 08:24:55,838 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-05 08:24:55,843 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b642a707-c47c-480e-9045-aa3b0427c9f3 2025-12-05 08:24:55,854 - DEBUG - Requesting: http://10.0.0.249:8082/project/20bf645e-d5ed-4c57-9673-594bfc107db2 2025-12-05 08:24:55,928 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/3098a8d1-c638-4abe-9654-b0abba82683e 2025-12-05 08:24:55,937 - INFO - Verified policy ctest-policy1-29263295 in API Server, Result: True 2025-12-05 08:24:55,938 - INFO - Done with setup and verification, moving onto test .. 2025-12-05 08:24:55,946 - INFO - Deleting VN ctest-vn4-32970250 2025-12-05 08:24:56,057 - DEBUG - Response for deleting network () 2025-12-05 08:24:56,058 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00d151c9-aae6-49ee-8a80-02f82742d80b 2025-12-05 08:24:56,062 - DEBUG - Response Code: 404 2025-12-05 08:24:56,063 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-05 08:24:56,068 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b642a707-c47c-480e-9045-aa3b0427c9f3 2025-12-05 08:24:56,118 - DEBUG - Requesting: http://10.0.0.249:8082/project/20bf645e-d5ed-4c57-9673-594bfc107db2 2025-12-05 08:24:56,194 - INFO - Validated that VN ctest-vn4-32970250 is not found in API Server 2025-12-05 08:24:56,202 - DEBUG - VN ctest-vn4-32970250 is not present in Agent 10.0.0.249 2025-12-05 08:24:56,203 - INFO - Validated that VN ctest-vn4-32970250 is not in any agent 2025-12-05 08:24:56,216 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32970250 info 2025-12-05 08:24:56,244 - INFO - Deleted policy ctest-policy1-29263295 2025-12-05 08:24:56,418 - DEBUG - policy ctest-policy1-29263295 is not found in API Server 2025-12-05 08:24:56,676 - DEBUG - No XMPP flaps were noticed during the test 2025-12-05 08:24:56,676 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-05 08:24:56,676 - INFO - -------------------------------------------------------------------------------- 2025-12-05 08:24:56,963 - DEBUG - No XMPP flaps were noticed during the test 2025-12-05 08:24:56,963 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-05 08:24:56,963 - INFO - -------------------------------------------------------------------------------- 2025-12-05 08:24:57,656 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40165508, ID : 20bf645e-d5ed-4c57-9673-594bfc107db2