2025-10-30 18:20:35,929 - INFO - Domain Default found not creating 2025-10-30 18:20:36,061 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39775620 not found, creating it 2025-10-30 18:20:36,482 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39775620, ID : fb6daccf-95a8-46c5-a4de-28abe18c39fc 2025-10-30 18:20:37,846 - INFO - ================================================================================ 2025-10-30 18:20:37,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 18:20:38,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-30 18:20:38,100 - INFO - Initial checks done. Running the testcase now 2025-10-30 18:20:38,100 - INFO - 2025-10-30 18:20:38,100 - INFO - ================================================================================ 2025-10-30 18:20:38,100 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 18:20:38,100 - 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-30 18:20:38,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-30 18:20:38,387 - INFO - Initial checks done. Running the testcase now 2025-10-30 18:20:38,387 - INFO - 2025-10-30 18:20:38,724 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238, 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-39775620:ctest-vn4-78629238, 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-39775620:ctest-vn4-78629238, 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-39775620:ctest-vn4-78629238, 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-30 18:20:39,267 - DEBUG - Response for create_network : {'network': {'id': '13695fb8-851e-451c-becd-cf841b1637d1', 'name': 'ctest-vn4-78629238', 'tenant_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'project_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39775620', 'ctest-vn4-78629238'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 18:20:39,440 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cca4a044-6da7-4e15-b3e2-db8ce782e30a', 'name': '', 'tenant_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'network_id': '13695fb8-851e-451c-becd-cf841b1637d1', 'ip_version': 4, 'cidr': '3.90.195.64/26', 'allocation_pools': [{'start': '3.90.195.66', 'end': '3.90.195.126'}], 'gateway_ip': '3.90.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.90.195.66', 'tags': [], 'project_id': 'fb6daccf95a846c5a4de28abe18c39fc'}} 2025-10-30 18:20:39,608 - DEBUG - Response for create_subnet : {'subnet': {'id': '603afab2-a2c6-4fd6-b1cf-462ce0f2934a', 'name': '', 'tenant_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'network_id': '13695fb8-851e-451c-becd-cf841b1637d1', 'ip_version': 6, 'cidr': '3c73:845d:e3e0:a21c:cf8a:8e93::/96', 'allocation_pools': [{'start': '3c73:845d:e3e0:a21c:cf8a:8e93:0:2', 'end': '3c73:845d:e3e0:a21c:cf8a:8e93:ffff:fffe'}], 'gateway_ip': '3c73:845d:e3e0:a21c:cf8a:8e93:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c73:845d:e3e0:a21c:cf8a:8e93:0:2', 'tags': [], 'project_id': 'fb6daccf95a846c5a4de28abe18c39fc'}} 2025-10-30 18:20:39,626 - INFO - Created VN ctest-vn4-78629238 2025-10-30 18:20:39,678 - DEBUG - VN ctest-vn4-78629238 UUID is 13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:39,868 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13695fb8-851e-451c-becd-cf841b1637d1', 'name': 'ctest-vn4-78629238', 'tenant_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'project_id': 'fb6daccf95a846c5a4de28abe18c39fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cca4a044-6da7-4e15-b3e2-db8ce782e30a', '603afab2-a2c6-4fd6-b1cf-462ce0f2934a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39775620', 'ctest-vn4-78629238'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39775620', 'ctest-policy1-78257682']], 'subnet_ipam': [{'subnet_cidr': '3.90.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c73:845d:e3e0:a21c:cf8a:8e93::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 18:20:40,034 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 18:20:40,328 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 18:20:40,354 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4fe1609f-3bd1-4c50-a134-0955a7894b24 2025-10-30 18:20:40,365 - DEBUG - Requesting: http://10.0.0.254:8082/project/fb6daccf-95a8-46c5-a4de-28abe18c39fc 2025-10-30 18:20:40,435 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,447 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,455 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:40,462 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:40,468 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/013f04a5-cf77-43c1-8d1e-15ee45e8501a 2025-10-30 18:20:40,473 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 18:20:40,473 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,482 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:40,494 - INFO - Verified VN network id 12 for VN 13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,494 - INFO - Verifications in API Server for VN ctest-vn4-78629238 passed 2025-10-30 18:20:40,494 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,502 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:40,507 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:40,513 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/013f04a5-cf77-43c1-8d1e-15ee45e8501a 2025-10-30 18:20:40,522 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39775620', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1398754405387224348', 'uuid-lslong': '13748873403729065937'}, 'enable': 'true', 'created': '2025-10-30T18:20:39', 'last-modified': '2025-10-30T18:20:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681044'} 2025-10-30 18:20:40,528 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 18:20:40,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78629238 passed 2025-10-30 18:20:40,528 - DEBUG - ====Verifying policy data for ctest-vn4-78629238 in API_Server ====== 2025-10-30 18:20:40,528 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 18:20:40,533 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4fe1609f-3bd1-4c50-a134-0955a7894b24 2025-10-30 18:20:40,543 - DEBUG - Requesting: http://10.0.0.254:8082/project/fb6daccf-95a8-46c5-a4de-28abe18c39fc 2025-10-30 18:20:40,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/13695fb8-851e-451c-becd-cf841b1637d1 2025-10-30 18:20:40,624 - DEBUG - ==>Verifying data for policy with id: aec91b54-2ec9-46d5-a3d1-721507cfe101, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39775620', 'ctest-policy1-78257682'] 2025-10-30 18:20:40,624 - INFO - VN ctest-vn4-78629238 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 18:20:40,624 - DEBUG - Verifying the vn in opserver 2025-10-30 18:20:40,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238 virtual network link through opserver 10.0.0.254 2025-10-30 18:20:40,624 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 18:20:40,915 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-30 18:20:40,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238?flat'} 2025-10-30 18:20:40,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39775620:ctest-vn4-78629238 is found in opserver 2025-10-30 18:20:40,972 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 18:20:40,977 - DEBUG - VRF ids for VN ctest-vn4-78629238: {} 2025-10-30 18:20:40,977 - DEBUG - ====Verifying data for ctest-policy1-78257682 in API_Server ====== 2025-10-30 18:20:40,977 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 18:20:40,982 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4fe1609f-3bd1-4c50-a134-0955a7894b24 2025-10-30 18:20:40,992 - DEBUG - Requesting: http://10.0.0.254:8082/project/fb6daccf-95a8-46c5-a4de-28abe18c39fc 2025-10-30 18:20:41,060 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/aec91b54-2ec9-46d5-a3d1-721507cfe101 2025-10-30 18:20:41,068 - INFO - Verified policy ctest-policy1-78257682 in API Server, Result: True 2025-10-30 18:20:41,069 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 18:20:41,077 - INFO - Deleting VN ctest-vn4-78629238 2025-10-30 18:20:41,187 - DEBUG - Response for deleting network () 2025-10-30 18:20:41,187 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/24c26add-2d96-4f71-9a82-6221ebc363ff 2025-10-30 18:20:41,193 - DEBUG - Response Code: 404 2025-10-30 18:20:41,193 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-30 18:20:41,198 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4fe1609f-3bd1-4c50-a134-0955a7894b24 2025-10-30 18:20:41,250 - DEBUG - Requesting: http://10.0.0.254:8082/project/fb6daccf-95a8-46c5-a4de-28abe18c39fc 2025-10-30 18:20:41,320 - INFO - Validated that VN ctest-vn4-78629238 is not found in API Server 2025-10-30 18:20:41,329 - DEBUG - VN ctest-vn4-78629238 is not present in Agent 10.0.0.254 2025-10-30 18:20:41,329 - INFO - Validated that VN ctest-vn4-78629238 is not in any agent 2025-10-30 18:20:41,342 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78629238 info 2025-10-30 18:20:41,363 - INFO - Deleted policy ctest-policy1-78257682 2025-10-30 18:20:41,534 - DEBUG - policy ctest-policy1-78257682 is not found in API Server 2025-10-30 18:20:41,787 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 18:20:41,787 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-30 18:20:41,787 - INFO - -------------------------------------------------------------------------------- 2025-10-30 18:20:42,074 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 18:20:42,074 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-30 18:20:42,074 - INFO - -------------------------------------------------------------------------------- 2025-10-30 18:20:42,716 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39775620, ID : fb6daccf-95a8-46c5-a4de-28abe18c39fc