2026-05-14 02:12:04,053 - INFO - Reading existing Domain with UUID d251bbb1-a677-4b52-8c85-ab79c9809042 2026-05-14 02:12:04,068 - INFO - Using existing domain ['admin_domain'](d251bbb1-a677-4b52-8c85-ab79c9809042) 2026-05-14 02:12:04,359 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05508903 not found, creating it 2026-05-14 02:12:04,947 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05508903, ID : b2700477-d883-4238-b34d-be50c909b254 2026-05-14 02:12:06,750 - INFO - ================================================================================ 2026-05-14 02:12:06,750 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:12:07,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-05-14 02:12:07,144 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:12:07,144 - INFO - 2026-05-14 02:12:07,144 - INFO - ================================================================================ 2026-05-14 02:12:07,144 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:12:07,144 - 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-14 02:12:07,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-05-14 02:12:07,543 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:12:07,543 - INFO - 2026-05-14 02:12:07,937 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158, 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-05508903:ctest-vn4-17896158, 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-05508903:ctest-vn4-17896158, 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-05508903:ctest-vn4-17896158, 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-14 02:12:08,688 - DEBUG - Response for create_network : {'network': {'id': '818dc7e2-0f7e-47f3-9981-cdae3b730a0a', 'name': 'ctest-vn4-17896158', 'tenant_id': 'b2700477d8834238b34dbe50c909b254', 'project_id': 'b2700477d8834238b34dbe50c909b254', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05508903', 'ctest-vn4-17896158'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-05-14 02:12:08,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '13c2d406-d67c-4860-9504-d7c83dfbf832', 'name': '', 'tenant_id': 'b2700477d8834238b34dbe50c909b254', 'network_id': '818dc7e2-0f7e-47f3-9981-cdae3b730a0a', 'ip_version': 4, 'cidr': '203.96.2.192/26', 'allocation_pools': [{'start': '203.96.2.194', 'end': '203.96.2.254'}], 'gateway_ip': '203.96.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-14T02:12:08.857065', 'updated_at': '2026-05-14T02:12:08.857065', 'dns_server_address': '203.96.2.194', 'tags': [], 'project_id': 'b2700477d8834238b34dbe50c909b254'}} 2026-05-14 02:12:09,232 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b58b47b2-389f-492a-8be0-756649b9ff1c', 'name': '', 'tenant_id': 'b2700477d8834238b34dbe50c909b254', 'network_id': '818dc7e2-0f7e-47f3-9981-cdae3b730a0a', 'ip_version': 6, 'cidr': '21e6:3eae:2f34:fdcd:9035:cd10::/96', 'allocation_pools': [{'start': '21e6:3eae:2f34:fdcd:9035:cd10:0:2', 'end': '21e6:3eae:2f34:fdcd:9035:cd10:ffff:fffe'}], 'gateway_ip': '21e6:3eae:2f34:fdcd:9035:cd10:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-05-14T02:12:09.103743', 'updated_at': '2026-05-14T02:12:09.103743', 'dns_server_address': '21e6:3eae:2f34:fdcd:9035:cd10:0:2', 'tags': [], 'project_id': 'b2700477d8834238b34dbe50c909b254'}} 2026-05-14 02:12:09,309 - INFO - Created VN ctest-vn4-17896158 2026-05-14 02:12:09,366 - DEBUG - VN ctest-vn4-17896158 UUID is 818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:09,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '818dc7e2-0f7e-47f3-9981-cdae3b730a0a', 'name': 'ctest-vn4-17896158', 'tenant_id': 'b2700477d8834238b34dbe50c909b254', 'project_id': 'b2700477d8834238b34dbe50c909b254', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13c2d406-d67c-4860-9504-d7c83dfbf832', 'b58b47b2-389f-492a-8be0-756649b9ff1c'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05508903', 'ctest-vn4-17896158'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05508903', 'ctest-policy1-64004747']], 'subnet_ipam': [{'subnet_cidr': '203.96.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21e6:3eae:2f34:fdcd:9035:cd10::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-05-14T02:12:08.601867', 'updated_at': '2026-05-14T02:12:09.122502'}} 2026-05-14 02:12:10,050 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-14 02:12:10,402 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-14 02:12:10,495 - DEBUG - Requesting: https://10.0.0.241:8082/domain/d251bbb1-a677-4b52-8c85-ab79c9809042 2026-05-14 02:12:10,555 - DEBUG - Requesting: https://10.0.0.241:8082/project/b2700477-d883-4238-b34d-be50c909b254 2026-05-14 02:12:10,655 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:10,716 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:10,772 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:10,827 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:10,879 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/c4095bb2-e89e-4124-8b69-22adc58689be 2026-05-14 02:12:10,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:12:10,935 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:10,992 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:11,057 - INFO - Verified VN network id 11 for VN 818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:11,058 - INFO - Verifications in API Server for VN ctest-vn4-17896158 passed 2026-05-14 02:12:11,058 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:11,116 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:11,171 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:11,227 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/c4095bb2-e89e-4124-8b69-22adc58689be 2026-05-14 02:12:11,331 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05508903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9335337376345376755', 'uuid-lslong': '11061348308004047370'}, 'enable': 'true', 'created': '2026-05-14T02:12:08', 'last-modified': '2026-05-14T02:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518305'} 2026-05-14 02:12:11,384 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:12:11,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17896158 passed 2026-05-14 02:12:11,385 - DEBUG - ====Verifying policy data for ctest-vn4-17896158 in API_Server ====== 2026-05-14 02:12:11,385 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-14 02:12:11,438 - DEBUG - Requesting: https://10.0.0.241:8082/domain/d251bbb1-a677-4b52-8c85-ab79c9809042 2026-05-14 02:12:11,495 - DEBUG - Requesting: https://10.0.0.241:8082/project/b2700477-d883-4238-b34d-be50c909b254 2026-05-14 02:12:11,571 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/818dc7e2-0f7e-47f3-9981-cdae3b730a0a 2026-05-14 02:12:11,628 - DEBUG - ==>Verifying data for policy with id: 0f4746f2-2638-4685-afee-5aa19980dcac, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05508903', 'ctest-policy1-64004747'] 2026-05-14 02:12:11,628 - INFO - VN ctest-vn4-17896158 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 02:12:11,628 - DEBUG - Verifying the vn in opserver 2026-05-14 02:12:11,628 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158 virtual network link through opserver 10.0.0.241 2026-05-14 02:12:11,628 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-14 02:12:11,985 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-05-14 02:12:12,103 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158?flat'} 2026-05-14 02:12:12,103 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-05508903:ctest-vn4-17896158 is found in opserver 2026-05-14 02:12:12,198 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 02:12:12,247 - DEBUG - VRF ids for VN ctest-vn4-17896158: {} 2026-05-14 02:12:12,248 - DEBUG - ====Verifying data for ctest-policy1-64004747 in API_Server ====== 2026-05-14 02:12:12,248 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-14 02:12:12,298 - DEBUG - Requesting: https://10.0.0.241:8082/domain/d251bbb1-a677-4b52-8c85-ab79c9809042 2026-05-14 02:12:12,359 - DEBUG - Requesting: https://10.0.0.241:8082/project/b2700477-d883-4238-b34d-be50c909b254 2026-05-14 02:12:12,439 - DEBUG - Requesting: https://10.0.0.241:8082/network-policy/0f4746f2-2638-4685-afee-5aa19980dcac 2026-05-14 02:12:12,496 - INFO - Verified policy ctest-policy1-64004747 in API Server, Result: True 2026-05-14 02:12:12,497 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 02:12:12,506 - INFO - Deleting VN ctest-vn4-17896158 2026-05-14 02:12:12,967 - DEBUG - Response for deleting network () 2026-05-14 02:12:12,967 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/ef45d170-5cdd-4d46-adae-e85821c67a64 2026-05-14 02:12:13,070 - DEBUG - Response Code: 404 2026-05-14 02:12:13,070 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-05-14 02:12:13,172 - DEBUG - Requesting: https://10.0.0.241:8082/domain/d251bbb1-a677-4b52-8c85-ab79c9809042 2026-05-14 02:12:13,308 - DEBUG - Requesting: https://10.0.0.241:8082/project/b2700477-d883-4238-b34d-be50c909b254 2026-05-14 02:12:13,607 - INFO - Validated that VN ctest-vn4-17896158 is not found in API Server 2026-05-14 02:12:13,780 - DEBUG - VN ctest-vn4-17896158 is not present in Agent 10.0.0.241 2026-05-14 02:12:13,780 - INFO - Validated that VN ctest-vn4-17896158 is not in any agent 2026-05-14 02:12:14,064 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17896158 info 2026-05-14 02:12:14,220 - INFO - Deleted policy ctest-policy1-64004747 2026-05-14 02:12:14,759 - DEBUG - policy ctest-policy1-64004747 is not found in API Server 2026-05-14 02:12:15,268 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 02:12:15,268 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-05-14 02:12:15,271 - INFO - -------------------------------------------------------------------------------- 2026-05-14 02:12:15,761 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 02:12:15,761 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2026-05-14 02:12:15,761 - INFO - -------------------------------------------------------------------------------- 2026-05-14 02:12:17,123 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05508903, ID : b2700477-d883-4238-b34d-be50c909b254