2026-06-01 03:00:59,517 - INFO - Domain Default found not creating 2026-06-01 03:00:59,783 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25827797 not found, creating it 2026-06-01 03:01:00,388 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25827797, ID : dc48ac10-863e-49b4-a490-d18a9d64fafd 2026-06-01 03:01:02,459 - INFO - ================================================================================ 2026-06-01 03:01:02,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 03:01:02,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-01 03:01:02,741 - INFO - Initial checks done. Running the testcase now 2026-06-01 03:01:02,741 - INFO - 2026-06-01 03:01:02,741 - INFO - ================================================================================ 2026-06-01 03:01:02,741 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 03:01:02,741 - 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-06-01 03:01:03,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-01 03:01:03,049 - INFO - Initial checks done. Running the testcase now 2026-06-01 03:01:03,049 - INFO - 2026-06-01 03:01:03,458 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670, 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-25827797:ctest-vn4-40664670, 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-25827797:ctest-vn4-40664670, 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-25827797:ctest-vn4-40664670, 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-06-01 03:01:04,067 - DEBUG - Response for create_network : {'network': {'id': 'ef564c0d-0172-442f-a21c-6d934662b866', 'name': 'ctest-vn4-40664670', 'tenant_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'project_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25827797', 'ctest-vn4-40664670'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 03:01:04,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '6eb05ad5-c956-418a-83e0-18baf7938c0b', 'name': '', 'tenant_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'network_id': 'ef564c0d-0172-442f-a21c-6d934662b866', 'ip_version': 4, 'cidr': '152.212.36.192/26', 'allocation_pools': [{'start': '152.212.36.194', 'end': '152.212.36.254'}], 'gateway_ip': '152.212.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.212.36.194', 'tags': [], 'project_id': 'dc48ac10863e49b4a490d18a9d64fafd'}} 2026-06-01 03:01:04,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '28474c99-fce7-459d-acfd-6142dbe7d3cb', 'name': '', 'tenant_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'network_id': 'ef564c0d-0172-442f-a21c-6d934662b866', 'ip_version': 6, 'cidr': '3b8f:3431:7cbb:e8bf:2018:bdb2::/96', 'allocation_pools': [{'start': '3b8f:3431:7cbb:e8bf:2018:bdb2:0:2', 'end': '3b8f:3431:7cbb:e8bf:2018:bdb2:ffff:fffe'}], 'gateway_ip': '3b8f:3431:7cbb:e8bf:2018:bdb2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b8f:3431:7cbb:e8bf:2018:bdb2:0:2', 'tags': [], 'project_id': 'dc48ac10863e49b4a490d18a9d64fafd'}} 2026-06-01 03:01:04,523 - INFO - Created VN ctest-vn4-40664670 2026-06-01 03:01:04,579 - DEBUG - VN ctest-vn4-40664670 UUID is ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:04,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef564c0d-0172-442f-a21c-6d934662b866', 'name': 'ctest-vn4-40664670', 'tenant_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'project_id': 'dc48ac10863e49b4a490d18a9d64fafd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6eb05ad5-c956-418a-83e0-18baf7938c0b', '28474c99-fce7-459d-acfd-6142dbe7d3cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25827797', 'ctest-vn4-40664670'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25827797', 'ctest-policy1-49691407']], 'subnet_ipam': [{'subnet_cidr': '152.212.36.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b8f:3431:7cbb:e8bf:2018:bdb2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 03:01:05,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 03:01:05,340 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 03:01:05,378 - DEBUG - Requesting: http://10.0.0.38:8082/domain/22450c7e-77f4-484e-8b9f-a3508b9b2d4e 2026-06-01 03:01:05,391 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc48ac10-863e-49b4-a490-d18a9d64fafd 2026-06-01 03:01:05,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,493 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:05,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:05,512 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b869338-a442-4c1e-bd3c-3a8b7d004653 2026-06-01 03:01:05,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 03:01:05,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,535 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:05,556 - INFO - Verified VN network id 11 for VN ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,556 - INFO - Verifications in API Server for VN ctest-vn4-40664670 passed 2026-06-01 03:01:05,556 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,570 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:05,582 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:05,593 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b869338-a442-4c1e-bd3c-3a8b7d004653 2026-06-01 03:01:05,611 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25827797', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17246055441804444719', 'uuid-lslong': '11681332012800718950'}, 'enable': 'true', 'created': '2026-06-01T03:01:04', 'last-modified': '2026-06-01T03:01:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805114'} 2026-06-01 03:01:05,619 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 03:01:05,619 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40664670 passed 2026-06-01 03:01:05,619 - DEBUG - ====Verifying policy data for ctest-vn4-40664670 in API_Server ====== 2026-06-01 03:01:05,619 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 03:01:05,626 - DEBUG - Requesting: http://10.0.0.38:8082/domain/22450c7e-77f4-484e-8b9f-a3508b9b2d4e 2026-06-01 03:01:05,640 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc48ac10-863e-49b4-a490-d18a9d64fafd 2026-06-01 03:01:05,723 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef564c0d-0172-442f-a21c-6d934662b866 2026-06-01 03:01:05,737 - DEBUG - ==>Verifying data for policy with id: 09403c93-cda4-4c92-84bd-7bf70a568dc4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25827797', 'ctest-policy1-49691407'] 2026-06-01 03:01:05,737 - INFO - VN ctest-vn4-40664670 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 03:01:05,737 - DEBUG - Verifying the vn in opserver 2026-06-01 03:01:05,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670 virtual network link through opserver 10.0.0.38 2026-06-01 03:01:05,738 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 03:01:06,062 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-01 03:01:06,158 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670?flat'} 2026-06-01 03:01:06,158 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25827797:ctest-vn4-40664670 is found in opserver 2026-06-01 03:01:06,169 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 03:01:06,175 - DEBUG - VRF ids for VN ctest-vn4-40664670: {} 2026-06-01 03:01:06,176 - DEBUG - ====Verifying data for ctest-policy1-49691407 in API_Server ====== 2026-06-01 03:01:06,176 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 03:01:06,186 - DEBUG - Requesting: http://10.0.0.38:8082/domain/22450c7e-77f4-484e-8b9f-a3508b9b2d4e 2026-06-01 03:01:06,203 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc48ac10-863e-49b4-a490-d18a9d64fafd 2026-06-01 03:01:06,292 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/09403c93-cda4-4c92-84bd-7bf70a568dc4 2026-06-01 03:01:06,306 - INFO - Verified policy ctest-policy1-49691407 in API Server, Result: True 2026-06-01 03:01:06,306 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 03:01:06,321 - INFO - Deleting VN ctest-vn4-40664670 2026-06-01 03:01:06,506 - DEBUG - Response for deleting network () 2026-06-01 03:01:06,506 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/71b5fb11-406d-433a-a64e-5922f7ca8bd9 2026-06-01 03:01:06,515 - DEBUG - Response Code: 404 2026-06-01 03:01:06,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-01 03:01:06,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/22450c7e-77f4-484e-8b9f-a3508b9b2d4e 2026-06-01 03:01:06,586 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc48ac10-863e-49b4-a490-d18a9d64fafd 2026-06-01 03:01:06,672 - INFO - Validated that VN ctest-vn4-40664670 is not found in API Server 2026-06-01 03:01:06,683 - DEBUG - VN ctest-vn4-40664670 is not present in Agent 10.0.0.38 2026-06-01 03:01:06,683 - INFO - Validated that VN ctest-vn4-40664670 is not in any agent 2026-06-01 03:01:06,700 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40664670 info 2026-06-01 03:01:06,728 - INFO - Deleted policy ctest-policy1-49691407 2026-06-01 03:01:06,899 - DEBUG - policy ctest-policy1-49691407 is not found in API Server 2026-06-01 03:01:07,175 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 03:01:07,175 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-01 03:01:07,175 - INFO - -------------------------------------------------------------------------------- 2026-06-01 03:01:07,478 - DEBUG - No XMPP flaps were noticed during the test
2026-06-01 03:01:07,479 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-01 03:01:07,479 - INFO - -------------------------------------------------------------------------------- 2026-06-01 03:01:08,260 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25827797, ID : dc48ac10-863e-49b4-a490-d18a9d64fafd