2026-07-29 18:14:30,399 - INFO - Domain Default found not creating 2026-07-29 18:14:30,594 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05714304 not found, creating it 2026-07-29 18:14:31,128 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05714304, ID : 8a186606-755e-4c87-a42a-6b099685d3b9 2026-07-29 18:14:33,087 - INFO - ================================================================================ 2026-07-29 18:14:33,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 18:14:33,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-29 18:14:33,369 - INFO - Initial checks done. Running the testcase now 2026-07-29 18:14:33,369 - INFO - 2026-07-29 18:14:33,369 - INFO - ================================================================================ 2026-07-29 18:14:33,369 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 18:14:33,369 - 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-07-29 18:14:33,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-29 18:14:33,673 - INFO - Initial checks done. Running the testcase now 2026-07-29 18:14:33,673 - INFO - 2026-07-29 18:14:34,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827, 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-05714304:ctest-vn4-14858827, 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-05714304:ctest-vn4-14858827, 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-05714304:ctest-vn4-14858827, 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-07-29 18:14:34,728 - DEBUG - Response for create_network : {'network': {'id': 'f46978ba-5403-45a6-9885-36cb5ee3ece4', 'name': 'ctest-vn4-14858827', 'tenant_id': '8a186606755e4c87a42a6b099685d3b9', 'project_id': '8a186606755e4c87a42a6b099685d3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05714304', 'ctest-vn4-14858827'], 'port_security_enabled': True, 'description': ''}} 2026-07-29 18:14:34,950 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f39d713c-07ec-4d6f-a031-665b00beb662', 'name': '', 'tenant_id': '8a186606755e4c87a42a6b099685d3b9', 'network_id': 'f46978ba-5403-45a6-9885-36cb5ee3ece4', 'ip_version': 4, 'cidr': '194.14.122.0/26', 'allocation_pools': [{'start': '194.14.122.2', 'end': '194.14.122.62'}], 'gateway_ip': '194.14.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.14.122.2', 'tags': [], 'project_id': '8a186606755e4c87a42a6b099685d3b9'}} 2026-07-29 18:14:35,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c0e8da7-8565-497d-aee0-2dad8bd4b64a', 'name': '', 'tenant_id': '8a186606755e4c87a42a6b099685d3b9', 'network_id': 'f46978ba-5403-45a6-9885-36cb5ee3ece4', 'ip_version': 6, 'cidr': '3acc:96bd:2821:7a23:7d2d:6581::/96', 'allocation_pools': [{'start': '3acc:96bd:2821:7a23:7d2d:6581:0:2', 'end': '3acc:96bd:2821:7a23:7d2d:6581:ffff:fffe'}], 'gateway_ip': '3acc:96bd:2821:7a23:7d2d:6581:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3acc:96bd:2821:7a23:7d2d:6581:0:2', 'tags': [], 'project_id': '8a186606755e4c87a42a6b099685d3b9'}} 2026-07-29 18:14:35,206 - INFO - Created VN ctest-vn4-14858827 2026-07-29 18:14:35,259 - DEBUG - VN ctest-vn4-14858827 UUID is f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:35,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f46978ba-5403-45a6-9885-36cb5ee3ece4', 'name': 'ctest-vn4-14858827', 'tenant_id': '8a186606755e4c87a42a6b099685d3b9', 'project_id': '8a186606755e4c87a42a6b099685d3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f39d713c-07ec-4d6f-a031-665b00beb662', '6c0e8da7-8565-497d-aee0-2dad8bd4b64a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05714304', 'ctest-vn4-14858827'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05714304', 'ctest-policy1-99186441']], 'subnet_ipam': [{'subnet_cidr': '194.14.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3acc:96bd:2821:7a23:7d2d:6581::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-29 18:14:35,695 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-29 18:14:36,085 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-29 18:14:36,122 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543 2026-07-29 18:14:36,138 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a186606-755e-4c87-a42a-6b099685d3b9 2026-07-29 18:14:36,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,244 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,257 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:36,266 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:36,278 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58289b81-20a4-467d-80fb-cae562652e8d 2026-07-29 18:14:36,287 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 18:14:36,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,301 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:36,323 - INFO - Verified VN network id 11 for VN f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,323 - INFO - Verifications in API Server for VN ctest-vn4-14858827 passed 2026-07-29 18:14:36,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,336 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:36,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:36,355 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/58289b81-20a4-467d-80fb-cae562652e8d 2026-07-29 18:14:36,372 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05714304', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17611740559477786022', 'uuid-lslong': '10990250712765820132'}, 'enable': 'true', 'created': '2026-07-29T18:14:34', 'last-modified': '2026-07-29T18:14:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890703'} 2026-07-29 18:14:36,381 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 18:14:36,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14858827 passed 2026-07-29 18:14:36,382 - DEBUG - ====Verifying policy data for ctest-vn4-14858827 in API_Server ====== 2026-07-29 18:14:36,382 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-29 18:14:36,389 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543 2026-07-29 18:14:36,403 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a186606-755e-4c87-a42a-6b099685d3b9 2026-07-29 18:14:36,494 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f46978ba-5403-45a6-9885-36cb5ee3ece4 2026-07-29 18:14:36,507 - DEBUG - ==>Verifying data for policy with id: f4791170-b22f-49c4-bc32-abf15349e158, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05714304', 'ctest-policy1-99186441'] 2026-07-29 18:14:36,507 - INFO - VN ctest-vn4-14858827 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-29 18:14:36,507 - DEBUG - Verifying the vn in opserver 2026-07-29 18:14:36,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827 virtual network link through opserver 10.0.0.38 2026-07-29 18:14:36,507 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-29 18:14:36,923 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-29 18:14:37,000 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827?flat'} 2026-07-29 18:14:37,000 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05714304:ctest-vn4-14858827 is found in opserver 2026-07-29 18:14:37,015 - DEBUG - Do not have enough data to verify VN in agent 2026-07-29 18:14:37,021 - DEBUG - VRF ids for VN ctest-vn4-14858827: {} 2026-07-29 18:14:37,022 - DEBUG - ====Verifying data for ctest-policy1-99186441 in API_Server ====== 2026-07-29 18:14:37,022 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-29 18:14:37,030 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543 2026-07-29 18:14:37,044 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a186606-755e-4c87-a42a-6b099685d3b9 2026-07-29 18:14:37,123 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f4791170-b22f-49c4-bc32-abf15349e158 2026-07-29 18:14:37,137 - INFO - Verified policy ctest-policy1-99186441 in API Server, Result: True 2026-07-29 18:14:37,138 - INFO - Done with setup and verification, moving onto test .. 2026-07-29 18:14:37,151 - INFO - Deleting VN ctest-vn4-14858827 2026-07-29 18:14:37,318 - DEBUG - Response for deleting network () 2026-07-29 18:14:37,318 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/951c8c69-9432-4975-9cca-208387340b70 2026-07-29 18:14:37,326 - DEBUG - Response Code: 404 2026-07-29 18:14:37,326 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-29 18:14:37,334 - DEBUG - Requesting: http://10.0.0.38:8082/domain/51df176c-7518-49ab-bf9a-a2bbc457b543 2026-07-29 18:14:37,398 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a186606-755e-4c87-a42a-6b099685d3b9 2026-07-29 18:14:37,477 - INFO - Validated that VN ctest-vn4-14858827 is not found in API Server 2026-07-29 18:14:37,492 - DEBUG - VN ctest-vn4-14858827 is not present in Agent 10.0.0.38 2026-07-29 18:14:37,492 - INFO - Validated that VN ctest-vn4-14858827 is not in any agent 2026-07-29 18:14:37,512 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14858827 info 2026-07-29 18:14:37,549 - INFO - Deleted policy ctest-policy1-99186441 2026-07-29 18:14:37,731 - DEBUG - policy ctest-policy1-99186441 is not found in API Server 2026-07-29 18:14:38,007 - DEBUG - No XMPP flaps were noticed during the test
2026-07-29 18:14:38,007 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-29 18:14:38,007 - INFO - -------------------------------------------------------------------------------- 2026-07-29 18:14:38,310 - DEBUG - No XMPP flaps were noticed during the test
2026-07-29 18:14:38,310 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-29 18:14:38,310 - INFO - -------------------------------------------------------------------------------- 2026-07-29 18:14:39,142 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05714304, ID : 8a186606-755e-4c87-a42a-6b099685d3b9