2025-11-12 14:38:18,492 - INFO - Domain Default found not creating 2025-11-12 14:38:18,648 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69233167 not found, creating it 2025-11-12 14:38:19,103 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69233167, ID : 63a75334-03fc-4476-b8bf-0056613f1226 2025-11-12 14:38:20,629 - INFO - ================================================================================ 2025-11-12 14:38:20,629 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 14:38:20,899 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2025-11-12 14:38:20,899 - INFO - Initial checks done. Running the testcase now 2025-11-12 14:38:20,899 - INFO - 2025-11-12 14:38:20,899 - INFO - ================================================================================ 2025-11-12 14:38:20,899 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 14:38:20,899 - 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-12 14:38:21,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2025-11-12 14:38:21,189 - INFO - Initial checks done. Running the testcase now 2025-11-12 14:38:21,189 - INFO - 2025-11-12 14:38:21,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562, 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-69233167:ctest-vn4-02225562, 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-69233167:ctest-vn4-02225562, 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-69233167:ctest-vn4-02225562, 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-12 14:38:22,172 - DEBUG - Response for create_network : {'network': {'id': '4e15b7a8-bf54-40d5-88b3-d1df1c241d7e', 'name': 'ctest-vn4-02225562', 'tenant_id': '63a7533403fc4476b8bf0056613f1226', 'project_id': '63a7533403fc4476b8bf0056613f1226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69233167', 'ctest-vn4-02225562'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 14:38:22,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f87ce23-10ef-498b-82bd-9822f2033c7b', 'name': '', 'tenant_id': '63a7533403fc4476b8bf0056613f1226', 'network_id': '4e15b7a8-bf54-40d5-88b3-d1df1c241d7e', 'ip_version': 4, 'cidr': '209.24.186.192/26', 'allocation_pools': [{'start': '209.24.186.194', 'end': '209.24.186.254'}], 'gateway_ip': '209.24.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.24.186.194', 'tags': [], 'project_id': '63a7533403fc4476b8bf0056613f1226'}} 2025-11-12 14:38:22,594 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e903e348-f04e-42d8-a380-64519d94fd8d', 'name': '', 'tenant_id': '63a7533403fc4476b8bf0056613f1226', 'network_id': '4e15b7a8-bf54-40d5-88b3-d1df1c241d7e', 'ip_version': 6, 'cidr': '3d6e:e693:97d2:f2c8:35e0:3650::/96', 'allocation_pools': [{'start': '3d6e:e693:97d2:f2c8:35e0:3650:0:2', 'end': '3d6e:e693:97d2:f2c8:35e0:3650:ffff:fffe'}], 'gateway_ip': '3d6e:e693:97d2:f2c8:35e0:3650:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d6e:e693:97d2:f2c8:35e0:3650:0:2', 'tags': [], 'project_id': '63a7533403fc4476b8bf0056613f1226'}} 2025-11-12 14:38:22,616 - INFO - Created VN ctest-vn4-02225562 2025-11-12 14:38:22,670 - DEBUG - VN ctest-vn4-02225562 UUID is 4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:22,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e15b7a8-bf54-40d5-88b3-d1df1c241d7e', 'name': 'ctest-vn4-02225562', 'tenant_id': '63a7533403fc4476b8bf0056613f1226', 'project_id': '63a7533403fc4476b8bf0056613f1226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f87ce23-10ef-498b-82bd-9822f2033c7b', 'e903e348-f04e-42d8-a380-64519d94fd8d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69233167', 'ctest-vn4-02225562'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69233167', 'ctest-policy1-61906721']], 'subnet_ipam': [{'subnet_cidr': '209.24.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d6e:e693:97d2:f2c8:35e0:3650::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 14:38:23,082 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 14:38:23,410 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 14:38:23,442 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86 2025-11-12 14:38:23,458 - DEBUG - Requesting: http://10.0.0.129:8082/project/63a75334-03fc-4476-b8bf-0056613f1226 2025-11-12 14:38:23,539 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,551 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,561 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:23,567 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:23,573 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/660dc98d-ce9d-4ed3-9367-6d1bd0b773bb 2025-11-12 14:38:23,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 14:38:23,580 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,589 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:23,603 - INFO - Verified VN network id 10 for VN 4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,603 - INFO - Verifications in API Server for VN ctest-vn4-02225562 passed 2025-11-12 14:38:23,603 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,613 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:23,622 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:23,630 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/660dc98d-ce9d-4ed3-9367-6d1bd0b773bb 2025-11-12 14:38:23,645 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69233167', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5626605244861661397', 'uuid-lslong': '9850447566169447806'}, 'enable': 'true', 'created': '2025-11-12T14:38:22', 'last-modified': '2025-11-12T14:38:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782052'} 2025-11-12 14:38:23,652 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 14:38:23,652 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02225562 passed 2025-11-12 14:38:23,652 - DEBUG - ====Verifying policy data for ctest-vn4-02225562 in API_Server ====== 2025-11-12 14:38:23,653 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 14:38:23,659 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86 2025-11-12 14:38:23,674 - DEBUG - Requesting: http://10.0.0.129:8082/project/63a75334-03fc-4476-b8bf-0056613f1226 2025-11-12 14:38:23,756 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4e15b7a8-bf54-40d5-88b3-d1df1c241d7e 2025-11-12 14:38:23,767 - DEBUG - ==>Verifying data for policy with id: d3177059-b0a5-4a5a-9b0c-e1f551a92e9d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69233167', 'ctest-policy1-61906721'] 2025-11-12 14:38:23,767 - INFO - VN ctest-vn4-02225562 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 14:38:23,768 - DEBUG - Verifying the vn in opserver 2025-11-12 14:38:23,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562 virtual network link through opserver 10.0.0.129 2025-11-12 14:38:23,768 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-12 14:38:24,101 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-11-12 14:38:24,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562?flat'} 2025-11-12 14:38:24,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69233167:ctest-vn4-02225562 is found in opserver 2025-11-12 14:38:24,178 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 14:38:24,183 - DEBUG - VRF ids for VN ctest-vn4-02225562: {} 2025-11-12 14:38:24,184 - DEBUG - ====Verifying data for ctest-policy1-61906721 in API_Server ====== 2025-11-12 14:38:24,184 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 14:38:24,190 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86 2025-11-12 14:38:24,201 - DEBUG - Requesting: http://10.0.0.129:8082/project/63a75334-03fc-4476-b8bf-0056613f1226 2025-11-12 14:38:24,288 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/d3177059-b0a5-4a5a-9b0c-e1f551a92e9d 2025-11-12 14:38:24,300 - INFO - Verified policy ctest-policy1-61906721 in API Server, Result: True 2025-11-12 14:38:24,301 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 14:38:24,310 - INFO - Deleting VN ctest-vn4-02225562 2025-11-12 14:38:24,462 - DEBUG - Response for deleting network () 2025-11-12 14:38:24,462 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6b887d8-91ae-4480-ab60-9929832e8bb1 2025-11-12 14:38:24,467 - DEBUG - Response Code: 404 2025-11-12 14:38:24,468 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-11-12 14:38:24,474 - DEBUG - Requesting: http://10.0.0.129:8082/domain/6cbe8c8f-1bbc-4b1c-bd55-796431beaf86 2025-11-12 14:38:24,532 - DEBUG - Requesting: http://10.0.0.129:8082/project/63a75334-03fc-4476-b8bf-0056613f1226 2025-11-12 14:38:24,609 - INFO - Validated that VN ctest-vn4-02225562 is not found in API Server 2025-11-12 14:38:24,620 - DEBUG - VN ctest-vn4-02225562 is not present in Agent 10.0.0.129 2025-11-12 14:38:24,620 - INFO - Validated that VN ctest-vn4-02225562 is not in any agent 2025-11-12 14:38:24,633 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02225562 info 2025-11-12 14:38:24,656 - INFO - Deleted policy ctest-policy1-61906721 2025-11-12 14:38:24,822 - DEBUG - policy ctest-policy1-61906721 is not found in API Server 2025-11-12 14:38:25,083 - DEBUG - No XMPP flaps were noticed during the test 2025-11-12 14:38:25,083 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-12 14:38:25,083 - INFO - -------------------------------------------------------------------------------- 2025-11-12 14:38:25,372 - DEBUG - No XMPP flaps were noticed during the test 2025-11-12 14:38:25,372 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-12 14:38:25,372 - INFO - -------------------------------------------------------------------------------- 2025-11-12 14:38:26,080 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69233167, ID : 63a75334-03fc-4476-b8bf-0056613f1226