2026-05-28 02:05:57,231 - INFO - Domain Default found not creating 2026-05-28 02:05:57,735 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45195447 not found, creating it 2026-05-28 02:05:58,190 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45195447, ID : 64e88ec1-1c61-40ad-9a80-f9d703c770d5 2026-05-28 02:05:59,650 - INFO - ================================================================================ 2026-05-28 02:05:59,650 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:05:59,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0'}} with 2026-05-28 02:05:59,909 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:05:59,909 - INFO - 2026-05-28 02:05:59,909 - INFO - ================================================================================ 2026-05-28 02:05:59,909 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:05:59,909 - 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-05-28 02:06:00,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0'}} with 2026-05-28 02:06:00,199 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:06:00,200 - INFO - 2026-05-28 02:06:00,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588, 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-45195447:ctest-vn4-71437588, 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-45195447:ctest-vn4-71437588, 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-45195447:ctest-vn4-71437588, 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-05-28 02:06:01,065 - DEBUG - Response for create_network : {'network': {'id': '06b20487-a682-44c9-8eaa-06116156fd7d', 'name': 'ctest-vn4-71437588', 'tenant_id': '64e88ec11c6140ad9a80f9d703c770d5', 'project_id': '64e88ec11c6140ad9a80f9d703c770d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45195447', 'ctest-vn4-71437588'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:06:01,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '9235c372-0494-4132-a646-19d0c3789789', 'name': '', 'tenant_id': '64e88ec11c6140ad9a80f9d703c770d5', 'network_id': '06b20487-a682-44c9-8eaa-06116156fd7d', 'ip_version': 4, 'cidr': '32.83.41.64/26', 'allocation_pools': [{'start': '32.83.41.66', 'end': '32.83.41.126'}], 'gateway_ip': '32.83.41.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.83.41.66', 'tags': [], 'project_id': '64e88ec11c6140ad9a80f9d703c770d5'}} 2026-05-28 02:06:01,404 - DEBUG - Response for create_subnet : {'subnet': {'id': '160c72bb-7cb1-4800-8002-dcc790f06483', 'name': '', 'tenant_id': '64e88ec11c6140ad9a80f9d703c770d5', 'network_id': '06b20487-a682-44c9-8eaa-06116156fd7d', 'ip_version': 6, 'cidr': '226d:715c:411d:f046:9028:8817::/96', 'allocation_pools': [{'start': '226d:715c:411d:f046:9028:8817:0:2', 'end': '226d:715c:411d:f046:9028:8817:ffff:fffe'}], 'gateway_ip': '226d:715c:411d:f046:9028:8817:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '226d:715c:411d:f046:9028:8817:0:2', 'tags': [], 'project_id': '64e88ec11c6140ad9a80f9d703c770d5'}} 2026-05-28 02:06:01,421 - INFO - Created VN ctest-vn4-71437588 2026-05-28 02:06:01,471 - DEBUG - VN ctest-vn4-71437588 UUID is 06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:01,661 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06b20487-a682-44c9-8eaa-06116156fd7d', 'name': 'ctest-vn4-71437588', 'tenant_id': '64e88ec11c6140ad9a80f9d703c770d5', 'project_id': '64e88ec11c6140ad9a80f9d703c770d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9235c372-0494-4132-a646-19d0c3789789', '160c72bb-7cb1-4800-8002-dcc790f06483'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45195447', 'ctest-vn4-71437588'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45195447', 'ctest-policy1-68158502']], 'subnet_ipam': [{'subnet_cidr': '32.83.41.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '226d:715c:411d:f046:9028:8817::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:06:01,823 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-28 02:06:02,115 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-28 02:06:02,143 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e6ce87d3-0673-4d59-8833-edc88ea47cbf 2026-05-28 02:06:02,154 - DEBUG - Requesting: http://10.0.0.73:8082/project/64e88ec1-1c61-40ad-9a80-f9d703c770d5 2026-05-28 02:06:02,219 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,230 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,239 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,245 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,251 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/ead2f357-170f-435c-8af0-d2643f3b80e3 2026-05-28 02:06:02,256 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:06:02,256 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,264 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,277 - INFO - Verified VN network id 11 for VN 06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,277 - INFO - Verifications in API Server for VN ctest-vn4-71437588 passed 2026-05-28 02:06:02,277 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,287 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,293 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,299 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/ead2f357-170f-435c-8af0-d2643f3b80e3 2026-05-28 02:06:02,309 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45195447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '482453090742715593', 'uuid-lslong': '10280035771143880061'}, 'enable': 'true', 'created': '2026-05-28T02:06:01', 'last-modified': '2026-05-28T02:06:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674279'} 2026-05-28 02:06:02,314 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:06:02,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71437588 passed 2026-05-28 02:06:02,314 - DEBUG - ====Verifying policy data for ctest-vn4-71437588 in API_Server ====== 2026-05-28 02:06:02,314 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-28 02:06:02,319 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e6ce87d3-0673-4d59-8833-edc88ea47cbf 2026-05-28 02:06:02,330 - DEBUG - Requesting: http://10.0.0.73:8082/project/64e88ec1-1c61-40ad-9a80-f9d703c770d5 2026-05-28 02:06:02,396 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/06b20487-a682-44c9-8eaa-06116156fd7d 2026-05-28 02:06:02,406 - DEBUG - ==>Verifying data for policy with id: 19745844-1a42-49b0-b167-6149710307ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45195447', 'ctest-policy1-68158502'] 2026-05-28 02:06:02,406 - INFO - VN ctest-vn4-71437588 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:06:02,406 - DEBUG - Verifying the vn in opserver 2026-05-28 02:06:02,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588 virtual network link through opserver 10.0.0.73 2026-05-28 02:06:02,406 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-05-28 02:06:02,700 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-05-28 02:06:02,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588?flat'} 2026-05-28 02:06:02,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45195447:ctest-vn4-71437588 is found in opserver 2026-05-28 02:06:02,766 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:06:02,770 - DEBUG - VRF ids for VN ctest-vn4-71437588: {} 2026-05-28 02:06:02,771 - DEBUG - ====Verifying data for ctest-policy1-68158502 in API_Server ====== 2026-05-28 02:06:02,771 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-28 02:06:02,775 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e6ce87d3-0673-4d59-8833-edc88ea47cbf 2026-05-28 02:06:02,784 - DEBUG - Requesting: http://10.0.0.73:8082/project/64e88ec1-1c61-40ad-9a80-f9d703c770d5 2026-05-28 02:06:02,853 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/19745844-1a42-49b0-b167-6149710307ae 2026-05-28 02:06:02,862 - INFO - Verified policy ctest-policy1-68158502 in API Server, Result: True 2026-05-28 02:06:02,862 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 02:06:02,869 - INFO - Deleting VN ctest-vn4-71437588 2026-05-28 02:06:02,977 - DEBUG - Response for deleting network () 2026-05-28 02:06:02,977 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c620537d-0d3c-45e9-886b-8966224c490b 2026-05-28 02:06:02,981 - DEBUG - Response Code: 404 2026-05-28 02:06:02,981 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-05-28 02:06:02,986 - DEBUG - Requesting: http://10.0.0.73:8082/domain/e6ce87d3-0673-4d59-8833-edc88ea47cbf 2026-05-28 02:06:03,036 - DEBUG - Requesting: http://10.0.0.73:8082/project/64e88ec1-1c61-40ad-9a80-f9d703c770d5 2026-05-28 02:06:03,102 - INFO - Validated that VN ctest-vn4-71437588 is not found in API Server 2026-05-28 02:06:03,110 - DEBUG - VN ctest-vn4-71437588 is not present in Agent 10.0.0.73 2026-05-28 02:06:03,110 - INFO - Validated that VN ctest-vn4-71437588 is not in any agent 2026-05-28 02:06:03,122 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71437588 info 2026-05-28 02:06:03,143 - INFO - Deleted policy ctest-policy1-68158502 2026-05-28 02:06:03,311 - DEBUG - policy ctest-policy1-68158502 is not found in API Server 2026-05-28 02:06:03,573 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 02:06:03,573 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-28 02:06:03,573 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:06:03,860 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 02:06:03,860 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-28 02:06:03,861 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:06:04,582 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45195447, ID : 64e88ec1-1c61-40ad-9a80-f9d703c770d5