2026-03-19 02:25:09,943 - INFO - Domain Default found not creating 2026-03-19 02:25:10,139 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28792100 not found, creating it 2026-03-19 02:25:10,621 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28792100, ID : 93c1e297-02e4-4fc4-b48e-45ee99ca586f 2026-03-19 02:25:12,259 - INFO - ================================================================================ 2026-03-19 02:25:12,259 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:25:12,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-19 02:25:12,527 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:25:12,528 - INFO - 2026-03-19 02:25:12,528 - INFO - ================================================================================ 2026-03-19 02:25:12,528 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:25:12,528 - 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-03-19 02:25:12,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-03-19 02:25:12,828 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:25:12,828 - INFO - 2026-03-19 02:25:13,221 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863, 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-28792100:ctest-vn4-87075863, 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-28792100:ctest-vn4-87075863, 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-28792100:ctest-vn4-87075863, 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-03-19 02:25:13,962 - DEBUG - Response for create_network : {'network': {'id': 'b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422', 'name': 'ctest-vn4-87075863', 'tenant_id': '93c1e29702e44fc4b48e45ee99ca586f', 'project_id': '93c1e29702e44fc4b48e45ee99ca586f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28792100', 'ctest-vn4-87075863'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:25:14,204 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa31f794-53f8-4bdc-9787-b5f0067266ce', 'name': '', 'tenant_id': '93c1e29702e44fc4b48e45ee99ca586f', 'network_id': 'b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422', 'ip_version': 4, 'cidr': '43.144.59.64/26', 'allocation_pools': [{'start': '43.144.59.66', 'end': '43.144.59.126'}], 'gateway_ip': '43.144.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.144.59.66', 'tags': [], 'project_id': '93c1e29702e44fc4b48e45ee99ca586f'}} 2026-03-19 02:25:14,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d97c4ae-d7af-4793-9982-d39b65468f2d', 'name': '', 'tenant_id': '93c1e29702e44fc4b48e45ee99ca586f', 'network_id': 'b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422', 'ip_version': 6, 'cidr': '3519:6ef1:9349:3fe0:74b6:720f::/96', 'allocation_pools': [{'start': '3519:6ef1:9349:3fe0:74b6:720f:0:2', 'end': '3519:6ef1:9349:3fe0:74b6:720f:ffff:fffe'}], 'gateway_ip': '3519:6ef1:9349:3fe0:74b6:720f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3519:6ef1:9349:3fe0:74b6:720f:0:2', 'tags': [], 'project_id': '93c1e29702e44fc4b48e45ee99ca586f'}} 2026-03-19 02:25:14,433 - INFO - Created VN ctest-vn4-87075863 2026-03-19 02:25:14,487 - DEBUG - VN ctest-vn4-87075863 UUID is b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:14,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422', 'name': 'ctest-vn4-87075863', 'tenant_id': '93c1e29702e44fc4b48e45ee99ca586f', 'project_id': '93c1e29702e44fc4b48e45ee99ca586f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa31f794-53f8-4bdc-9787-b5f0067266ce', '7d97c4ae-d7af-4793-9982-d39b65468f2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28792100', 'ctest-vn4-87075863'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28792100', 'ctest-policy1-21563643']], 'subnet_ipam': [{'subnet_cidr': '43.144.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3519:6ef1:9349:3fe0:74b6:720f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:25:14,895 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-19 02:25:15,202 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-19 02:25:15,240 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e 2026-03-19 02:25:15,253 - DEBUG - Requesting: http://10.0.0.50:8082/project/93c1e297-02e4-4fc4-b48e-45ee99ca586f 2026-03-19 02:25:15,326 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,339 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,349 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:15,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:15,364 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdaa4bb4-79bb-4272-8313-cc5727d63871 2026-03-19 02:25:15,371 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:25:15,371 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:15,397 - INFO - Verified VN network id 12 for VN b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,397 - INFO - Verifications in API Server for VN ctest-vn4-87075863 passed 2026-03-19 02:25:15,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,408 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:15,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:15,422 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cdaa4bb4-79bb-4272-8313-cc5727d63871 2026-03-19 02:25:15,434 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28792100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12894171364240478171', 'uuid-lslong': '13671388000423633954'}, 'enable': 'true', 'created': '2026-03-19T02:25:13', 'last-modified': '2026-03-19T02:25:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749211'} 2026-03-19 02:25:15,439 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:25:15,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87075863 passed 2026-03-19 02:25:15,440 - DEBUG - ====Verifying policy data for ctest-vn4-87075863 in API_Server ====== 2026-03-19 02:25:15,440 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-19 02:25:15,448 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e 2026-03-19 02:25:15,458 - DEBUG - Requesting: http://10.0.0.50:8082/project/93c1e297-02e4-4fc4-b48e-45ee99ca586f 2026-03-19 02:25:15,525 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2f14c8a-1e91-4fdb-bdba-86f3c7c9e422 2026-03-19 02:25:15,536 - DEBUG - ==>Verifying data for policy with id: 4b832e5d-e354-48f4-8a2d-1870ef1c1435, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28792100', 'ctest-policy1-21563643'] 2026-03-19 02:25:15,536 - INFO - VN ctest-vn4-87075863 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 02:25:15,536 - DEBUG - Verifying the vn in opserver 2026-03-19 02:25:15,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863 virtual network link through opserver 10.0.0.50 2026-03-19 02:25:15,536 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-19 02:25:15,837 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-19 02:25:15,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863?flat'} 2026-03-19 02:25:15,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28792100:ctest-vn4-87075863 is found in opserver 2026-03-19 02:25:15,912 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 02:25:15,917 - DEBUG - VRF ids for VN ctest-vn4-87075863: {} 2026-03-19 02:25:15,917 - DEBUG - ====Verifying data for ctest-policy1-21563643 in API_Server ====== 2026-03-19 02:25:15,917 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-19 02:25:15,922 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e 2026-03-19 02:25:15,932 - DEBUG - Requesting: http://10.0.0.50:8082/project/93c1e297-02e4-4fc4-b48e-45ee99ca586f 2026-03-19 02:25:16,006 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4b832e5d-e354-48f4-8a2d-1870ef1c1435 2026-03-19 02:25:16,016 - INFO - Verified policy ctest-policy1-21563643 in API Server, Result: True 2026-03-19 02:25:16,016 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 02:25:16,023 - INFO - Deleting VN ctest-vn4-87075863 2026-03-19 02:25:16,140 - DEBUG - Response for deleting network () 2026-03-19 02:25:16,140 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d555eeb-1483-41a8-8c89-012befeed2a8 2026-03-19 02:25:16,145 - DEBUG - Response Code: 404 2026-03-19 02:25:16,145 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-19 02:25:16,150 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0e38e307-e4ed-44db-8467-c997848bb41e 2026-03-19 02:25:16,204 - DEBUG - Requesting: http://10.0.0.50:8082/project/93c1e297-02e4-4fc4-b48e-45ee99ca586f 2026-03-19 02:25:16,276 - INFO - Validated that VN ctest-vn4-87075863 is not found in API Server 2026-03-19 02:25:16,286 - DEBUG - VN ctest-vn4-87075863 is not present in Agent 10.0.0.50 2026-03-19 02:25:16,286 - INFO - Validated that VN ctest-vn4-87075863 is not in any agent 2026-03-19 02:25:16,300 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87075863 info 2026-03-19 02:25:16,324 - INFO - Deleted policy ctest-policy1-21563643 2026-03-19 02:25:16,487 - DEBUG - policy ctest-policy1-21563643 is not found in API Server 2026-03-19 02:25:16,745 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 02:25:16,745 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-19 02:25:16,745 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:25:17,034 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 02:25:17,034 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-19 02:25:17,034 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:25:17,773 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28792100, ID : 93c1e297-02e4-4fc4-b48e-45ee99ca586f