2026-01-29 15:42:56,562 - INFO - Reading existing Domain with UUID 15f28af7-a830-475b-bae4-ed3759af0601 2026-01-29 15:42:56,576 - INFO - Using existing domain ['admin_domain'](15f28af7-a830-475b-bae4-ed3759af0601) 2026-01-29 15:42:56,843 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35968520 not found, creating it 2026-01-29 15:42:57,439 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35968520, ID : 5f4062e4-133f-42d5-919c-94ea07b02030 2026-01-29 15:42:59,603 - INFO - ================================================================================ 2026-01-29 15:42:59,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 15:43:00,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2026-01-29 15:43:00,006 - INFO - Initial checks done. Running the testcase now 2026-01-29 15:43:00,007 - INFO - 2026-01-29 15:43:00,007 - INFO - ================================================================================ 2026-01-29 15:43:00,007 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 15:43:00,007 - 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-01-29 15:43:00,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with 2026-01-29 15:43:00,398 - INFO - Initial checks done. Running the testcase now 2026-01-29 15:43:00,398 - INFO - 2026-01-29 15:43:00,853 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852, 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-35968520:ctest-vn4-70326852, 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-35968520:ctest-vn4-70326852, 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-35968520:ctest-vn4-70326852, 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-01-29 15:43:01,730 - DEBUG - Response for create_network : {'network': {'id': '114866b1-8414-4eb6-b1e4-b25c0f9322ff', 'name': 'ctest-vn4-70326852', 'tenant_id': '5f4062e4133f42d5919c94ea07b02030', 'project_id': '5f4062e4133f42d5919c94ea07b02030', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968520', 'ctest-vn4-70326852'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-01-29 15:43:02,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '0853f87e-79db-4070-ad8f-42ebdfbac763', 'name': '', 'tenant_id': '5f4062e4133f42d5919c94ea07b02030', 'network_id': '114866b1-8414-4eb6-b1e4-b25c0f9322ff', 'ip_version': 4, 'cidr': '12.62.154.64/26', 'allocation_pools': [{'start': '12.62.154.66', 'end': '12.62.154.126'}], 'gateway_ip': '12.62.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-01-29T15:43:01.900821', 'updated_at': '2026-01-29T15:43:01.900821', 'dns_server_address': '12.62.154.66', 'tags': [], 'project_id': '5f4062e4133f42d5919c94ea07b02030'}} 2026-01-29 15:43:02,318 - DEBUG - Response for create_subnet : {'subnet': {'id': '592caa3e-206d-4531-b66d-f9488f87736c', 'name': '', 'tenant_id': '5f4062e4133f42d5919c94ea07b02030', 'network_id': '114866b1-8414-4eb6-b1e4-b25c0f9322ff', 'ip_version': 6, 'cidr': '2a33:6d5:b918:6e3e:79d5:2530::/96', 'allocation_pools': [{'start': '2a33:6d5:b918:6e3e:79d5:2530:0:2', 'end': '2a33:6d5:b918:6e3e:79d5:2530:ffff:fffe'}], 'gateway_ip': '2a33:6d5:b918:6e3e:79d5:2530:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-01-29T15:43:02.184409', 'updated_at': '2026-01-29T15:43:02.184409', 'dns_server_address': '2a33:6d5:b918:6e3e:79d5:2530:0:2', 'tags': [], 'project_id': '5f4062e4133f42d5919c94ea07b02030'}} 2026-01-29 15:43:02,395 - INFO - Created VN ctest-vn4-70326852 2026-01-29 15:43:02,452 - DEBUG - VN ctest-vn4-70326852 UUID is 114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:02,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '114866b1-8414-4eb6-b1e4-b25c0f9322ff', 'name': 'ctest-vn4-70326852', 'tenant_id': '5f4062e4133f42d5919c94ea07b02030', 'project_id': '5f4062e4133f42d5919c94ea07b02030', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0853f87e-79db-4070-ad8f-42ebdfbac763', '592caa3e-206d-4531-b66d-f9488f87736c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968520', 'ctest-vn4-70326852'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968520', 'ctest-policy1-63541341']], 'subnet_ipam': [{'subnet_cidr': '12.62.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a33:6d5:b918:6e3e:79d5:2530::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-01-29T15:43:01.633504', 'updated_at': '2026-01-29T15:43:02.207989'}} 2026-01-29 15:43:03,168 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-01-29 15:43:03,556 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-01-29 15:43:03,649 - DEBUG - Requesting: https://10.0.0.23:8082/domain/15f28af7-a830-475b-bae4-ed3759af0601 2026-01-29 15:43:03,714 - DEBUG - Requesting: https://10.0.0.23:8082/project/5f4062e4-133f-42d5-919c-94ea07b02030 2026-01-29 15:43:03,811 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:03,875 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:03,935 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:03,989 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:04,046 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/c9254882-f650-49e1-8d34-331c4aa98619 2026-01-29 15:43:04,102 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 15:43:04,102 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:04,163 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:04,229 - INFO - Verified VN network id 9 for VN 114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:04,230 - INFO - Verifications in API Server for VN ctest-vn4-70326852 passed 2026-01-29 15:43:04,230 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:04,291 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:04,350 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:04,409 - DEBUG - Requesting: https://10.0.0.23:8082/route-target/c9254882-f650-49e1-8d34-331c4aa98619 2026-01-29 15:43:04,518 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35968520', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1245358209579110070', 'uuid-lslong': '12818566547871310591'}, 'enable': 'true', 'created': '2026-01-29T15:43:01', 'last-modified': '2026-01-29T15:43:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.601474'} 2026-01-29 15:43:04,571 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 15:43:04,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70326852 passed 2026-01-29 15:43:04,572 - DEBUG - ====Verifying policy data for ctest-vn4-70326852 in API_Server ====== 2026-01-29 15:43:04,572 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-01-29 15:43:04,629 - DEBUG - Requesting: https://10.0.0.23:8082/domain/15f28af7-a830-475b-bae4-ed3759af0601 2026-01-29 15:43:04,694 - DEBUG - Requesting: https://10.0.0.23:8082/project/5f4062e4-133f-42d5-919c-94ea07b02030 2026-01-29 15:43:04,782 - DEBUG - Requesting: https://10.0.0.23:8082/virtual-network/114866b1-8414-4eb6-b1e4-b25c0f9322ff 2026-01-29 15:43:04,848 - DEBUG - ==>Verifying data for policy with id: ea7a1f97-2333-4a7a-b3b8-16014eda8b13, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968520', 'ctest-policy1-63541341'] 2026-01-29 15:43:04,848 - INFO - VN ctest-vn4-70326852 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 15:43:04,848 - DEBUG - Verifying the vn in opserver 2026-01-29 15:43:04,848 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852 virtual network link through opserver 10.0.0.23 2026-01-29 15:43:04,848 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-29 15:43:05,211 - DEBUG - Requesting: https://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-29 15:43:05,353 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852', 'href': 'https://10.0.0.23:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852?flat'} 2026-01-29 15:43:05,353 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-35968520:ctest-vn4-70326852 is found in opserver 2026-01-29 15:43:05,457 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 15:43:05,509 - DEBUG - VRF ids for VN ctest-vn4-70326852: {} 2026-01-29 15:43:05,510 - DEBUG - ====Verifying data for ctest-policy1-63541341 in API_Server ====== 2026-01-29 15:43:05,510 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-01-29 15:43:05,565 - DEBUG - Requesting: https://10.0.0.23:8082/domain/15f28af7-a830-475b-bae4-ed3759af0601 2026-01-29 15:43:05,626 - DEBUG - Requesting: https://10.0.0.23:8082/project/5f4062e4-133f-42d5-919c-94ea07b02030 2026-01-29 15:43:05,719 - DEBUG - Requesting: https://10.0.0.23:8082/network-policy/ea7a1f97-2333-4a7a-b3b8-16014eda8b13 2026-01-29 15:43:05,784 - INFO - Verified policy ctest-policy1-63541341 in API Server, Result: True 2026-01-29 15:43:05,784 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 15:43:05,797 - INFO - Deleting VN ctest-vn4-70326852 2026-01-29 15:43:06,087 - DEBUG - Response for deleting network () 2026-01-29 15:43:06,087 - DEBUG - Requesting: https://10.0.0.23:8082/routing-instance/00aaf24e-0896-44f3-bcc6-05cb3339a26a 2026-01-29 15:43:06,141 - DEBUG - Response Code: 404 2026-01-29 15:43:06,141 - DEBUG - Requesting: https://10.0.0.23:8082/domains 2026-01-29 15:43:06,197 - DEBUG - Requesting: https://10.0.0.23:8082/domain/15f28af7-a830-475b-bae4-ed3759af0601 2026-01-29 15:43:06,267 - DEBUG - Requesting: https://10.0.0.23:8082/project/5f4062e4-133f-42d5-919c-94ea07b02030 2026-01-29 15:43:06,370 - INFO - Validated that VN ctest-vn4-70326852 is not found in API Server 2026-01-29 15:43:06,486 - DEBUG - VN ctest-vn4-70326852 is not present in Agent 10.0.0.23 2026-01-29 15:43:06,486 - INFO - Validated that VN ctest-vn4-70326852 is not in any agent 2026-01-29 15:43:06,654 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70326852 info 2026-01-29 15:43:06,686 - INFO - Deleted policy ctest-policy1-63541341 2026-01-29 15:43:06,872 - DEBUG - policy ctest-policy1-63541341 is not found in API Server 2026-01-29 15:43:07,286 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 15:43:07,286 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-01-29 15:43:07,286 - INFO - -------------------------------------------------------------------------------- 2026-01-29 15:43:07,682 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 15:43:07,682 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-01-29 15:43:07,682 - INFO - -------------------------------------------------------------------------------- 2026-01-29 15:43:08,569 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35968520, ID : 5f4062e4-133f-42d5-919c-94ea07b02030