2026-04-23 01:47:53,086 - INFO - Reading existing Domain with UUID 463c1a7f-4575-42ba-bd06-1a9f36cbf244 2026-04-23 01:47:53,097 - INFO - Using existing domain ['admin_domain'](463c1a7f-4575-42ba-bd06-1a9f36cbf244) 2026-04-23 01:47:53,303 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25515057 not found, creating it 2026-04-23 01:47:53,805 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25515057, ID : ad50d424-5090-4080-9c86-dd5499bbcee3 2026-04-23 01:47:55,564 - INFO - ================================================================================ 2026-04-23 01:47:55,564 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 01:47:55,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-23 01:47:55,952 - INFO - Initial checks done. Running the testcase now 2026-04-23 01:47:55,952 - INFO - 2026-04-23 01:47:55,952 - INFO - ================================================================================ 2026-04-23 01:47:55,952 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 01:47:55,952 - 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-04-23 01:47:56,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-23 01:47:56,340 - INFO - Initial checks done. Running the testcase now 2026-04-23 01:47:56,340 - INFO - 2026-04-23 01:47:56,723 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068, 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-04-23 01:47:57,411 - DEBUG - Response for create_network : {'network': {'id': '729447d8-f540-4c17-a984-d118ac791a1f', 'name': 'ctest-vn4-88488068', 'tenant_id': 'ad50d424509040809c86dd5499bbcee3', 'project_id': 'ad50d424509040809c86dd5499bbcee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25515057', 'ctest-vn4-88488068'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-04-23 01:47:57,635 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2197e08-2330-4626-9a2d-4ddfeba3087c', 'name': '', 'tenant_id': 'ad50d424509040809c86dd5499bbcee3', 'network_id': '729447d8-f540-4c17-a984-d118ac791a1f', 'ip_version': 4, 'cidr': '77.93.191.128/26', 'allocation_pools': [{'start': '77.93.191.130', 'end': '77.93.191.190'}], 'gateway_ip': '77.93.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-23T01:47:57.535755', 'updated_at': '2026-04-23T01:47:57.535755', 'dns_server_address': '77.93.191.130', 'tags': [], 'project_id': 'ad50d424509040809c86dd5499bbcee3'}} 2026-04-23 01:47:57,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a9d15fc-4b2a-4a79-a501-4ba6266e5dc5', 'name': '', 'tenant_id': 'ad50d424509040809c86dd5499bbcee3', 'network_id': '729447d8-f540-4c17-a984-d118ac791a1f', 'ip_version': 6, 'cidr': '3e7d:9491:6130:1cab:46ec:8a3a::/96', 'allocation_pools': [{'start': '3e7d:9491:6130:1cab:46ec:8a3a:0:2', 'end': '3e7d:9491:6130:1cab:46ec:8a3a:ffff:fffe'}], 'gateway_ip': '3e7d:9491:6130:1cab:46ec:8a3a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-23T01:47:57.745661', 'updated_at': '2026-04-23T01:47:57.745661', 'dns_server_address': '3e7d:9491:6130:1cab:46ec:8a3a:0:2', 'tags': [], 'project_id': 'ad50d424509040809c86dd5499bbcee3'}} 2026-04-23 01:47:57,913 - INFO - Created VN ctest-vn4-88488068 2026-04-23 01:47:57,966 - DEBUG - VN ctest-vn4-88488068 UUID is 729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:58,419 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '729447d8-f540-4c17-a984-d118ac791a1f', 'name': 'ctest-vn4-88488068', 'tenant_id': 'ad50d424509040809c86dd5499bbcee3', 'project_id': 'ad50d424509040809c86dd5499bbcee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2197e08-2330-4626-9a2d-4ddfeba3087c', '6a9d15fc-4b2a-4a79-a501-4ba6266e5dc5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25515057', 'ctest-vn4-88488068'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25515057', 'ctest-policy1-53376260']], 'subnet_ipam': [{'subnet_cidr': '77.93.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e7d:9491:6130:1cab:46ec:8a3a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-23T01:47:57.334485', 'updated_at': '2026-04-23T01:47:57.759287'}} 2026-04-23 01:47:58,614 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-23 01:47:58,987 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-23 01:47:59,087 - DEBUG - Requesting: https://10.0.0.129:8082/domain/463c1a7f-4575-42ba-bd06-1a9f36cbf244 2026-04-23 01:47:59,147 - DEBUG - Requesting: https://10.0.0.129:8082/project/ad50d424-5090-4080-9c86-dd5499bbcee3 2026-04-23 01:47:59,236 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:59,302 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:59,371 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:47:59,431 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:47:59,483 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/c3863365-7ac3-4dc9-af4c-27334d6f3812 2026-04-23 01:47:59,539 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 01:47:59,539 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:59,597 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:47:59,660 - INFO - Verified VN network id 11 for VN 729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:59,661 - INFO - Verifications in API Server for VN ctest-vn4-88488068 passed 2026-04-23 01:47:59,661 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:47:59,717 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:47:59,771 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:47:59,823 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/c3863365-7ac3-4dc9-af4c-27334d6f3812 2026-04-23 01:47:59,923 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25515057', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8256303014030101527', 'uuid-lslong': '12215117993238665759'}, 'enable': 'true', 'created': '2026-04-23T01:47:57', 'last-modified': '2026-04-23T01:47:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536936'} 2026-04-23 01:47:59,973 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 01:47:59,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88488068 passed 2026-04-23 01:47:59,973 - DEBUG - ====Verifying policy data for ctest-vn4-88488068 in API_Server ====== 2026-04-23 01:47:59,973 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-23 01:48:00,027 - DEBUG - Requesting: https://10.0.0.129:8082/domain/463c1a7f-4575-42ba-bd06-1a9f36cbf244 2026-04-23 01:48:00,087 - DEBUG - Requesting: https://10.0.0.129:8082/project/ad50d424-5090-4080-9c86-dd5499bbcee3 2026-04-23 01:48:00,159 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/729447d8-f540-4c17-a984-d118ac791a1f 2026-04-23 01:48:00,217 - DEBUG - ==>Verifying data for policy with id: 0266a284-489f-4d00-97a4-7c424f494e7a, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25515057', 'ctest-policy1-53376260'] 2026-04-23 01:48:00,217 - INFO - VN ctest-vn4-88488068 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 01:48:00,217 - DEBUG - Verifying the vn in opserver 2026-04-23 01:48:00,217 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068 virtual network link through opserver 10.0.0.129 2026-04-23 01:48:00,217 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-23 01:48:00,572 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-23 01:48:00,695 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068?flat'} 2026-04-23 01:48:00,695 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-25515057:ctest-vn4-88488068 is found in opserver 2026-04-23 01:48:00,799 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 01:48:00,847 - DEBUG - VRF ids for VN ctest-vn4-88488068: {} 2026-04-23 01:48:00,848 - DEBUG - ====Verifying data for ctest-policy1-53376260 in API_Server ====== 2026-04-23 01:48:00,848 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-23 01:48:00,903 - DEBUG - Requesting: https://10.0.0.129:8082/domain/463c1a7f-4575-42ba-bd06-1a9f36cbf244 2026-04-23 01:48:00,963 - DEBUG - Requesting: https://10.0.0.129:8082/project/ad50d424-5090-4080-9c86-dd5499bbcee3 2026-04-23 01:48:01,051 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/0266a284-489f-4d00-97a4-7c424f494e7a 2026-04-23 01:48:01,109 - INFO - Verified policy ctest-policy1-53376260 in API Server, Result: True 2026-04-23 01:48:01,109 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 01:48:01,120 - INFO - Deleting VN ctest-vn4-88488068 2026-04-23 01:48:01,307 - DEBUG - Response for deleting network () 2026-04-23 01:48:01,307 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/06ea03f0-ff17-4589-8de9-cc32abdb4061 2026-04-23 01:48:01,360 - DEBUG - Response Code: 404 2026-04-23 01:48:01,361 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-23 01:48:01,415 - DEBUG - Requesting: https://10.0.0.129:8082/domain/463c1a7f-4575-42ba-bd06-1a9f36cbf244 2026-04-23 01:48:01,471 - DEBUG - Requesting: https://10.0.0.129:8082/project/ad50d424-5090-4080-9c86-dd5499bbcee3 2026-04-23 01:48:01,556 - INFO - Validated that VN ctest-vn4-88488068 is not found in API Server 2026-04-23 01:48:01,651 - DEBUG - VN ctest-vn4-88488068 is not present in Agent 10.0.0.129 2026-04-23 01:48:01,651 - INFO - Validated that VN ctest-vn4-88488068 is not in any agent 2026-04-23 01:48:01,803 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88488068 info 2026-04-23 01:48:01,832 - INFO - Deleted policy ctest-policy1-53376260 2026-04-23 01:48:01,999 - DEBUG - policy ctest-policy1-53376260 is not found in API Server 2026-04-23 01:48:02,387 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 01:48:02,387 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-23 01:48:02,387 - INFO - -------------------------------------------------------------------------------- 2026-04-23 01:48:02,775 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 01:48:02,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-23 01:48:02,775 - INFO - -------------------------------------------------------------------------------- 2026-04-23 01:48:03,538 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25515057, ID : ad50d424-5090-4080-9c86-dd5499bbcee3