2026-06-05 16:24:39,234 - INFO - Domain Default found not creating 2026-06-05 16:24:39,418 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03787665 not found, creating it 2026-06-05 16:24:39,919 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03787665, ID : 8e764e8a-5cdc-432a-a6f5-597ce3b40665 2026-06-05 16:24:41,476 - INFO - ================================================================================ 2026-06-05 16:24:41,476 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 16:24:41,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-06-05 16:24:41,731 - INFO - Initial checks done. Running the testcase now 2026-06-05 16:24:41,732 - INFO - 2026-06-05 16:24:41,732 - INFO - ================================================================================ 2026-06-05 16:24:41,732 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 16:24:41,732 - 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-05 16:24:42,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-06-05 16:24:42,026 - INFO - Initial checks done. Running the testcase now 2026-06-05 16:24:42,026 - INFO - 2026-06-05 16:24:42,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730, 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-03787665:ctest-vn4-89005730, 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-03787665:ctest-vn4-89005730, 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-03787665:ctest-vn4-89005730, 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-05 16:24:42,941 - DEBUG - Response for create_network : {'network': {'id': '105db19a-5548-4b57-a5b4-c2da39e67c16', 'name': 'ctest-vn4-89005730', 'tenant_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'project_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03787665', 'ctest-vn4-89005730'], 'port_security_enabled': True, 'description': ''}} 2026-06-05 16:24:43,130 - DEBUG - Response for create_subnet : {'subnet': {'id': '1faf6e1d-ea7e-4fd9-bde1-d9208a5e76e7', 'name': '', 'tenant_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'network_id': '105db19a-5548-4b57-a5b4-c2da39e67c16', 'ip_version': 4, 'cidr': '152.102.218.128/26', 'allocation_pools': [{'start': '152.102.218.130', 'end': '152.102.218.190'}], 'gateway_ip': '152.102.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.102.218.130', 'tags': [], 'project_id': '8e764e8a5cdc432aa6f5597ce3b40665'}} 2026-06-05 16:24:43,281 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b829bd2-d8ec-47b6-893e-3808615755a0', 'name': '', 'tenant_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'network_id': '105db19a-5548-4b57-a5b4-c2da39e67c16', 'ip_version': 6, 'cidr': '39a4:fe05:e4f3:39b5:2f02:9898::/96', 'allocation_pools': [{'start': '39a4:fe05:e4f3:39b5:2f02:9898:0:2', 'end': '39a4:fe05:e4f3:39b5:2f02:9898:ffff:fffe'}], 'gateway_ip': '39a4:fe05:e4f3:39b5:2f02:9898:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39a4:fe05:e4f3:39b5:2f02:9898:0:2', 'tags': [], 'project_id': '8e764e8a5cdc432aa6f5597ce3b40665'}} 2026-06-05 16:24:43,305 - INFO - Created VN ctest-vn4-89005730 2026-06-05 16:24:43,357 - DEBUG - VN ctest-vn4-89005730 UUID is 105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:43,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '105db19a-5548-4b57-a5b4-c2da39e67c16', 'name': 'ctest-vn4-89005730', 'tenant_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'project_id': '8e764e8a5cdc432aa6f5597ce3b40665', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1faf6e1d-ea7e-4fd9-bde1-d9208a5e76e7', '1b829bd2-d8ec-47b6-893e-3808615755a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03787665', 'ctest-vn4-89005730'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03787665', 'ctest-policy1-59584706']], 'subnet_ipam': [{'subnet_cidr': '152.102.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39a4:fe05:e4f3:39b5:2f02:9898::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-05 16:24:43,725 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-05 16:24:44,028 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-05 16:24:44,068 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5f60cd65-8df6-4136-846d-53675938c3e1 2026-06-05 16:24:44,080 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e764e8a-5cdc-432a-a6f5-597ce3b40665 2026-06-05 16:24:44,158 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,172 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,182 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:44,189 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:44,197 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e457761c-31af-4562-889c-87c668f653ee 2026-06-05 16:24:44,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 16:24:44,204 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,212 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:44,230 - INFO - Verified VN network id 11 for VN 105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,230 - INFO - Verifications in API Server for VN ctest-vn4-89005730 passed 2026-06-05 16:24:44,230 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,243 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:44,252 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:44,263 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e457761c-31af-4562-889c-87c668f653ee 2026-06-05 16:24:44,275 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03787665', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1179293953854819159', 'uuid-lslong': '11940382754596092950'}, 'enable': 'true', 'created': '2026-06-05T16:24:42', 'last-modified': '2026-06-05T16:24:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744371'} 2026-06-05 16:24:44,281 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 16:24:44,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89005730 passed 2026-06-05 16:24:44,282 - DEBUG - ====Verifying policy data for ctest-vn4-89005730 in API_Server ====== 2026-06-05 16:24:44,282 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-05 16:24:44,288 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5f60cd65-8df6-4136-846d-53675938c3e1 2026-06-05 16:24:44,299 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e764e8a-5cdc-432a-a6f5-597ce3b40665 2026-06-05 16:24:44,373 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/105db19a-5548-4b57-a5b4-c2da39e67c16 2026-06-05 16:24:44,386 - DEBUG - ==>Verifying data for policy with id: 81bdf2d8-01cb-43b9-a08c-658c46edf795, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03787665', 'ctest-policy1-59584706'] 2026-06-05 16:24:44,386 - INFO - VN ctest-vn4-89005730 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-05 16:24:44,386 - DEBUG - Verifying the vn in opserver 2026-06-05 16:24:44,386 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730 virtual network link through opserver 10.0.0.249 2026-06-05 16:24:44,386 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-05 16:24:44,685 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-05 16:24:44,752 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730?flat'} 2026-06-05 16:24:44,752 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03787665:ctest-vn4-89005730 is found in opserver 2026-06-05 16:24:44,762 - DEBUG - Do not have enough data to verify VN in agent 2026-06-05 16:24:44,768 - DEBUG - VRF ids for VN ctest-vn4-89005730: {} 2026-06-05 16:24:44,768 - DEBUG - ====Verifying data for ctest-policy1-59584706 in API_Server ====== 2026-06-05 16:24:44,768 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-05 16:24:44,774 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5f60cd65-8df6-4136-846d-53675938c3e1 2026-06-05 16:24:44,786 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e764e8a-5cdc-432a-a6f5-597ce3b40665 2026-06-05 16:24:44,861 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/81bdf2d8-01cb-43b9-a08c-658c46edf795 2026-06-05 16:24:44,871 - INFO - Verified policy ctest-policy1-59584706 in API Server, Result: True 2026-06-05 16:24:44,871 - INFO - Done with setup and verification, moving onto test .. 2026-06-05 16:24:44,879 - INFO - Deleting VN ctest-vn4-89005730 2026-06-05 16:24:45,007 - DEBUG - Response for deleting network () 2026-06-05 16:24:45,007 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/8510b201-fc64-49fa-b337-6b849753483d 2026-06-05 16:24:45,012 - DEBUG - Response Code: 404 2026-06-05 16:24:45,012 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-05 16:24:45,017 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5f60cd65-8df6-4136-846d-53675938c3e1 2026-06-05 16:24:45,073 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e764e8a-5cdc-432a-a6f5-597ce3b40665 2026-06-05 16:24:45,155 - INFO - Validated that VN ctest-vn4-89005730 is not found in API Server 2026-06-05 16:24:45,169 - DEBUG - VN ctest-vn4-89005730 is not present in Agent 10.0.0.249 2026-06-05 16:24:45,169 - INFO - Validated that VN ctest-vn4-89005730 is not in any agent 2026-06-05 16:24:45,183 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89005730 info 2026-06-05 16:24:45,210 - INFO - Deleted policy ctest-policy1-59584706 2026-06-05 16:24:45,385 - DEBUG - policy ctest-policy1-59584706 is not found in API Server 2026-06-05 16:24:45,646 - DEBUG - No XMPP flaps were noticed during the test
2026-06-05 16:24:45,646 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-05 16:24:45,646 - INFO - -------------------------------------------------------------------------------- 2026-06-05 16:24:45,948 - DEBUG - No XMPP flaps were noticed during the test
2026-06-05 16:24:45,949 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-05 16:24:45,949 - INFO - -------------------------------------------------------------------------------- 2026-06-05 16:24:46,663 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03787665, ID : 8e764e8a-5cdc-432a-a6f5-597ce3b40665