2025-11-24 14:34:52,606 - INFO - Domain Default found not creating 2025-11-24 14:34:52,806 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84005514 not found, creating it 2025-11-24 14:34:53,290 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84005514, ID : 7b9c31f3-72f6-4ff4-9534-ec3009d4eafe 2025-11-24 14:34:55,080 - INFO - ================================================================================ 2025-11-24 14:34:55,080 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 14:34:55,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-11-24 14:34:55,365 - INFO - Initial checks done. Running the testcase now 2025-11-24 14:34:55,365 - INFO - 2025-11-24 14:34:55,365 - INFO - ================================================================================ 2025-11-24 14:34:55,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 14:34:55,365 - 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-11-24 14:34:55,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-11-24 14:34:55,663 - INFO - Initial checks done. Running the testcase now 2025-11-24 14:34:55,663 - INFO - 2025-11-24 14:34:56,100 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889, 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-84005514:ctest-vn4-26730889, 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-84005514:ctest-vn4-26730889, 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-84005514:ctest-vn4-26730889, 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-11-24 14:34:56,702 - DEBUG - Response for create_network : {'network': {'id': 'bfc4608d-a27d-484d-943b-bfdf56024018', 'name': 'ctest-vn4-26730889', 'tenant_id': '7b9c31f372f64ff49534ec3009d4eafe', 'project_id': '7b9c31f372f64ff49534ec3009d4eafe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84005514', 'ctest-vn4-26730889'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 14:34:56,936 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4730a2d-8131-42fd-87c3-55be63db9aae', 'name': '', 'tenant_id': '7b9c31f372f64ff49534ec3009d4eafe', 'network_id': 'bfc4608d-a27d-484d-943b-bfdf56024018', 'ip_version': 4, 'cidr': '218.1.73.64/26', 'allocation_pools': [{'start': '218.1.73.66', 'end': '218.1.73.126'}], 'gateway_ip': '218.1.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.1.73.66', 'tags': [], 'project_id': '7b9c31f372f64ff49534ec3009d4eafe'}} 2025-11-24 14:34:57,152 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c51a9e0-8d0b-4f41-9a3d-d57c81b9ee16', 'name': '', 'tenant_id': '7b9c31f372f64ff49534ec3009d4eafe', 'network_id': 'bfc4608d-a27d-484d-943b-bfdf56024018', 'ip_version': 6, 'cidr': '3910:d6fe:cec8:6ae:6572:32e::/96', 'allocation_pools': [{'start': '3910:d6fe:cec8:6ae:6572:32e:0:2', 'end': '3910:d6fe:cec8:6ae:6572:32e:ffff:fffe'}], 'gateway_ip': '3910:d6fe:cec8:6ae:6572:32e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3910:d6fe:cec8:6ae:6572:32e:0:2', 'tags': [], 'project_id': '7b9c31f372f64ff49534ec3009d4eafe'}} 2025-11-24 14:34:57,180 - INFO - Created VN ctest-vn4-26730889 2025-11-24 14:34:57,238 - DEBUG - VN ctest-vn4-26730889 UUID is bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:57,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfc4608d-a27d-484d-943b-bfdf56024018', 'name': 'ctest-vn4-26730889', 'tenant_id': '7b9c31f372f64ff49534ec3009d4eafe', 'project_id': '7b9c31f372f64ff49534ec3009d4eafe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4730a2d-8131-42fd-87c3-55be63db9aae', '3c51a9e0-8d0b-4f41-9a3d-d57c81b9ee16'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84005514', 'ctest-vn4-26730889'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84005514', 'ctest-policy1-18989353']], 'subnet_ipam': [{'subnet_cidr': '218.1.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3910:d6fe:cec8:6ae:6572:32e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 14:34:57,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-24 14:34:58,014 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-24 14:34:58,051 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd 2025-11-24 14:34:58,066 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b9c31f3-72f6-4ff4-9534-ec3009d4eafe 2025-11-24 14:34:58,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,168 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:58,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:58,188 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3234430f-a75b-46b3-9497-fb7b6567911a 2025-11-24 14:34:58,196 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 14:34:58,197 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,208 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:58,225 - INFO - Verified VN network id 10 for VN bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,225 - INFO - Verifications in API Server for VN ctest-vn4-26730889 passed 2025-11-24 14:34:58,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:58,246 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:58,257 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3234430f-a75b-46b3-9497-fb7b6567911a 2025-11-24 14:34:58,272 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84005514', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13818275718112299085', 'uuid-lslong': '10681341907180863512'}, 'enable': 'true', 'created': '2025-11-24T14:34:56', 'last-modified': '2025-11-24T14:34:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.817225'} 2025-11-24 14:34:58,281 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 14:34:58,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26730889 passed 2025-11-24 14:34:58,281 - DEBUG - ====Verifying policy data for ctest-vn4-26730889 in API_Server ====== 2025-11-24 14:34:58,281 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-24 14:34:58,289 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd 2025-11-24 14:34:58,304 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b9c31f3-72f6-4ff4-9534-ec3009d4eafe 2025-11-24 14:34:58,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bfc4608d-a27d-484d-943b-bfdf56024018 2025-11-24 14:34:58,391 - DEBUG - ==>Verifying data for policy with id: ce86f9be-f5e8-4734-8a14-025d20637380, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84005514', 'ctest-policy1-18989353'] 2025-11-24 14:34:58,391 - INFO - VN ctest-vn4-26730889 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 14:34:58,391 - DEBUG - Verifying the vn in opserver 2025-11-24 14:34:58,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889 virtual network link through opserver 10.0.0.38 2025-11-24 14:34:58,391 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-24 14:34:58,737 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-24 14:34:58,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889?flat'} 2025-11-24 14:34:58,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84005514:ctest-vn4-26730889 is found in opserver 2025-11-24 14:34:58,882 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 14:34:58,890 - DEBUG - VRF ids for VN ctest-vn4-26730889: {} 2025-11-24 14:34:58,891 - DEBUG - ====Verifying data for ctest-policy1-18989353 in API_Server ====== 2025-11-24 14:34:58,891 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-24 14:34:58,901 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd 2025-11-24 14:34:58,965 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b9c31f3-72f6-4ff4-9534-ec3009d4eafe 2025-11-24 14:34:59,083 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ce86f9be-f5e8-4734-8a14-025d20637380 2025-11-24 14:34:59,103 - INFO - Verified policy ctest-policy1-18989353 in API Server, Result: True 2025-11-24 14:34:59,103 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 14:34:59,126 - INFO - Deleting VN ctest-vn4-26730889 2025-11-24 14:34:59,463 - DEBUG - Response for deleting network () 2025-11-24 14:34:59,463 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77e890dc-6925-4642-9f64-3acc0ff3a244 2025-11-24 14:34:59,473 - DEBUG - Response Code: 404 2025-11-24 14:34:59,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-24 14:34:59,482 - DEBUG - Requesting: http://10.0.0.38:8082/domain/249d3145-6f8d-4194-953d-eeaf68fdf1bd 2025-11-24 14:34:59,537 - DEBUG - Requesting: http://10.0.0.38:8082/project/7b9c31f3-72f6-4ff4-9534-ec3009d4eafe 2025-11-24 14:34:59,619 - INFO - Validated that VN ctest-vn4-26730889 is not found in API Server 2025-11-24 14:34:59,631 - DEBUG - VN ctest-vn4-26730889 is not present in Agent 10.0.0.38 2025-11-24 14:34:59,631 - INFO - Validated that VN ctest-vn4-26730889 is not in any agent 2025-11-24 14:34:59,646 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26730889 info 2025-11-24 14:34:59,676 - INFO - Deleted policy ctest-policy1-18989353 2025-11-24 14:34:59,850 - DEBUG - policy ctest-policy1-18989353 is not found in API Server 2025-11-24 14:35:00,108 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 14:35:00,108 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-24 14:35:00,109 - INFO - -------------------------------------------------------------------------------- 2025-11-24 14:35:00,401 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 14:35:00,402 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-24 14:35:00,402 - INFO - -------------------------------------------------------------------------------- 2025-11-24 14:35:01,220 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84005514, ID : 7b9c31f3-72f6-4ff4-9534-ec3009d4eafe