2026-10-02 17:05:16,115 - INFO - Domain Default found not creating 2026-10-02 17:05:16,311 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93357983 not found, creating it 2026-10-02 17:05:16,860 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93357983, ID : 42275c7d-4176-4444-bf15-3351986e3d1c 2026-10-02 17:05:18,655 - INFO - ================================================================================ 2026-10-02 17:05:18,655 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 17:05:18,923 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0'}} with 2026-10-02 17:05:18,923 - INFO - Initial checks done. Running the testcase now 2026-10-02 17:05:18,923 - INFO - 2026-10-02 17:05:18,923 - INFO - ================================================================================ 2026-10-02 17:05:18,923 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 17:05:18,923 - 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. 2026-10-02 17:05:19,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.254': '0'}} with 2026-10-02 17:05:19,239 - INFO - Initial checks done. Running the testcase now 2026-10-02 17:05:19,240 - INFO - 2026-10-02 17:05:19,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765, 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-93357983:ctest-vn4-94870765, 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-93357983:ctest-vn4-94870765, 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-93357983:ctest-vn4-94870765, 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] 2026-10-02 17:05:20,299 - DEBUG - Response for create_network : {'network': {'id': '5990377e-201a-4055-9e56-e69e3fc6da17', 'name': 'ctest-vn4-94870765', 'tenant_id': '42275c7d41764444bf153351986e3d1c', 'project_id': '42275c7d41764444bf153351986e3d1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93357983', 'ctest-vn4-94870765'], 'port_security_enabled': True, 'description': ''}} 2026-10-02 17:05:20,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6ec3b40-b96c-4c2b-9e7b-5344c8f31b5c', 'name': '', 'tenant_id': '42275c7d41764444bf153351986e3d1c', 'network_id': '5990377e-201a-4055-9e56-e69e3fc6da17', 'ip_version': 4, 'cidr': '136.151.70.128/26', 'allocation_pools': [{'start': '136.151.70.130', 'end': '136.151.70.190'}], 'gateway_ip': '136.151.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.151.70.130', 'tags': [], 'project_id': '42275c7d41764444bf153351986e3d1c'}} 2026-10-02 17:05:20,749 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be6a7010-5888-45e9-b26b-65f7885df234', 'name': '', 'tenant_id': '42275c7d41764444bf153351986e3d1c', 'network_id': '5990377e-201a-4055-9e56-e69e3fc6da17', 'ip_version': 6, 'cidr': '2d4e:8539:c701:b512:5422:efe9::/96', 'allocation_pools': [{'start': '2d4e:8539:c701:b512:5422:efe9:0:2', 'end': '2d4e:8539:c701:b512:5422:efe9:ffff:fffe'}], 'gateway_ip': '2d4e:8539:c701:b512:5422:efe9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d4e:8539:c701:b512:5422:efe9:0:2', 'tags': [], 'project_id': '42275c7d41764444bf153351986e3d1c'}} 2026-10-02 17:05:20,773 - INFO - Created VN ctest-vn4-94870765 2026-10-02 17:05:20,827 - DEBUG - VN ctest-vn4-94870765 UUID is 5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,063 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5990377e-201a-4055-9e56-e69e3fc6da17', 'name': 'ctest-vn4-94870765', 'tenant_id': '42275c7d41764444bf153351986e3d1c', 'project_id': '42275c7d41764444bf153351986e3d1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e6ec3b40-b96c-4c2b-9e7b-5344c8f31b5c', 'be6a7010-5888-45e9-b26b-65f7885df234'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93357983', 'ctest-vn4-94870765'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93357983', 'ctest-policy1-41685224']], 'subnet_ipam': [{'subnet_cidr': '136.151.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d4e:8539:c701:b512:5422:efe9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-02 17:05:21,239 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-02 17:05:21,611 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-02 17:05:21,644 - DEBUG - Requesting: http://10.0.0.161:8082/domain/688ce411-24d4-4253-b14b-6d0fa6ee3d7d 2026-10-02 17:05:21,663 - DEBUG - Requesting: http://10.0.0.161:8082/project/42275c7d-4176-4444-bf15-3351986e3d1c 2026-10-02 17:05:21,744 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,760 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,773 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:21,782 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:21,792 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3fabc881-a8b4-4e6c-8fcf-84483a41ff8e 2026-10-02 17:05:21,801 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 17:05:21,802 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,814 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:21,833 - INFO - Verified VN network id 12 for VN 5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,833 - INFO - Verifications in API Server for VN ctest-vn4-94870765 passed 2026-10-02 17:05:21,834 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:21,846 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:21,855 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:21,864 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3fabc881-a8b4-4e6c-8fcf-84483a41ff8e 2026-10-02 17:05:21,880 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93357983', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6453719280865919061', 'uuid-lslong': '11409560273338948119'}, 'enable': 'true', 'created': '2026-10-02T17:05:20', 'last-modified': '2026-10-02T17:05:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.854339'} 2026-10-02 17:05:21,888 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 17:05:21,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94870765 passed 2026-10-02 17:05:21,889 - DEBUG - ====Verifying policy data for ctest-vn4-94870765 in API_Server ====== 2026-10-02 17:05:21,889 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-02 17:05:21,896 - DEBUG - Requesting: http://10.0.0.161:8082/domain/688ce411-24d4-4253-b14b-6d0fa6ee3d7d 2026-10-02 17:05:21,910 - DEBUG - Requesting: http://10.0.0.161:8082/project/42275c7d-4176-4444-bf15-3351986e3d1c 2026-10-02 17:05:21,994 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5990377e-201a-4055-9e56-e69e3fc6da17 2026-10-02 17:05:22,006 - DEBUG - ==>Verifying data for policy with id: a172a048-6789-4f4e-b784-6be5b1ec2962, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93357983', 'ctest-policy1-41685224'] 2026-10-02 17:05:22,006 - INFO - VN ctest-vn4-94870765 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-02 17:05:22,006 - DEBUG - Verifying the vn in opserver 2026-10-02 17:05:22,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765 virtual network link through opserver 10.0.0.161 2026-10-02 17:05:22,007 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-02 17:05:22,378 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-02 17:05:22,441 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765?flat'} 2026-10-02 17:05:22,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93357983:ctest-vn4-94870765 is found in opserver 2026-10-02 17:05:22,454 - DEBUG - Do not have enough data to verify VN in agent 2026-10-02 17:05:22,461 - DEBUG - VRF ids for VN ctest-vn4-94870765: {} 2026-10-02 17:05:22,461 - DEBUG - ====Verifying data for ctest-policy1-41685224 in API_Server ====== 2026-10-02 17:05:22,461 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-02 17:05:22,468 - DEBUG - Requesting: http://10.0.0.161:8082/domain/688ce411-24d4-4253-b14b-6d0fa6ee3d7d 2026-10-02 17:05:22,481 - DEBUG - Requesting: http://10.0.0.161:8082/project/42275c7d-4176-4444-bf15-3351986e3d1c 2026-10-02 17:05:22,559 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/a172a048-6789-4f4e-b784-6be5b1ec2962 2026-10-02 17:05:22,571 - INFO - Verified policy ctest-policy1-41685224 in API Server, Result: True 2026-10-02 17:05:22,571 - INFO - Done with setup and verification, moving onto test .. 2026-10-02 17:05:22,581 - INFO - Deleting VN ctest-vn4-94870765 2026-10-02 17:05:22,745 - DEBUG - Response for deleting network () 2026-10-02 17:05:22,745 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7c958b11-e394-4ed2-81f8-ee6bf4827540 2026-10-02 17:05:22,752 - DEBUG - Response Code: 404 2026-10-02 17:05:22,752 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-02 17:05:22,759 - DEBUG - Requesting: http://10.0.0.161:8082/domain/688ce411-24d4-4253-b14b-6d0fa6ee3d7d 2026-10-02 17:05:22,813 - DEBUG - Requesting: http://10.0.0.161:8082/project/42275c7d-4176-4444-bf15-3351986e3d1c 2026-10-02 17:05:22,892 - INFO - Validated that VN ctest-vn4-94870765 is not found in API Server 2026-10-02 17:05:22,904 - DEBUG - VN ctest-vn4-94870765 is not present in Agent 10.0.0.161 2026-10-02 17:05:22,904 - INFO - Validated that VN ctest-vn4-94870765 is not in any agent 2026-10-02 17:05:22,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94870765 info 2026-10-02 17:05:22,951 - INFO - Deleted policy ctest-policy1-41685224 2026-10-02 17:05:23,131 - DEBUG - policy ctest-policy1-41685224 is not found in API Server 2026-10-02 17:05:23,390 - DEBUG - No XMPP flaps were noticed during the test
2026-10-02 17:05:23,390 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-02 17:05:23,390 - INFO - -------------------------------------------------------------------------------- 2026-10-02 17:05:23,682 - DEBUG - No XMPP flaps were noticed during the test
2026-10-02 17:05:23,682 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-02 17:05:23,682 - INFO - -------------------------------------------------------------------------------- 2026-10-02 17:05:24,527 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93357983, ID : 42275c7d-4176-4444-bf15-3351986e3d1c