2026-05-25 02:08:23,576 - INFO - Domain Default found not creating 2026-05-25 02:08:23,783 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66489632 not found, creating it 2026-05-25 02:08:24,272 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66489632, ID : 7f1b0515-b5dd-405c-9add-c318c57930a3 2026-05-25 02:08:25,875 - INFO - ================================================================================ 2026-05-25 02:08:25,875 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:08:26,137 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.200': '0'}} with 2026-05-25 02:08:26,137 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:08:26,137 - INFO - 2026-05-25 02:08:26,137 - INFO - ================================================================================ 2026-05-25 02:08:26,137 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:08:26,137 - 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-25 02:08:26,445 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.200': '0'}} with 2026-05-25 02:08:26,445 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:08:26,445 - INFO - 2026-05-25 02:08:26,827 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936, 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-66489632:ctest-vn4-00077936, 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-66489632:ctest-vn4-00077936, 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-66489632:ctest-vn4-00077936, 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-25 02:08:27,376 - DEBUG - Response for create_network : {'network': {'id': 'e5d40c63-07d1-4a37-8fc9-d695dd4eaba4', 'name': 'ctest-vn4-00077936', 'tenant_id': '7f1b0515b5dd405c9addc318c57930a3', 'project_id': '7f1b0515b5dd405c9addc318c57930a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66489632', 'ctest-vn4-00077936'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:08:27,559 - DEBUG - Response for create_subnet : {'subnet': {'id': '35ceb97f-1d8f-4c92-9c2b-5bc2dbce7049', 'name': '', 'tenant_id': '7f1b0515b5dd405c9addc318c57930a3', 'network_id': 'e5d40c63-07d1-4a37-8fc9-d695dd4eaba4', 'ip_version': 4, 'cidr': '25.147.133.64/26', 'allocation_pools': [{'start': '25.147.133.66', 'end': '25.147.133.126'}], 'gateway_ip': '25.147.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.147.133.66', 'tags': [], 'project_id': '7f1b0515b5dd405c9addc318c57930a3'}} 2026-05-25 02:08:27,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a624a97-a1d7-4710-80da-0aadda857426', 'name': '', 'tenant_id': '7f1b0515b5dd405c9addc318c57930a3', 'network_id': 'e5d40c63-07d1-4a37-8fc9-d695dd4eaba4', 'ip_version': 6, 'cidr': '3f51:e8f4:b41c:205f:5976:443e::/96', 'allocation_pools': [{'start': '3f51:e8f4:b41c:205f:5976:443e:0:2', 'end': '3f51:e8f4:b41c:205f:5976:443e:ffff:fffe'}], 'gateway_ip': '3f51:e8f4:b41c:205f:5976:443e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f51:e8f4:b41c:205f:5976:443e:0:2', 'tags': [], 'project_id': '7f1b0515b5dd405c9addc318c57930a3'}} 2026-05-25 02:08:27,789 - INFO - Created VN ctest-vn4-00077936 2026-05-25 02:08:27,842 - DEBUG - VN ctest-vn4-00077936 UUID is e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5d40c63-07d1-4a37-8fc9-d695dd4eaba4', 'name': 'ctest-vn4-00077936', 'tenant_id': '7f1b0515b5dd405c9addc318c57930a3', 'project_id': '7f1b0515b5dd405c9addc318c57930a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35ceb97f-1d8f-4c92-9c2b-5bc2dbce7049', '9a624a97-a1d7-4710-80da-0aadda857426'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66489632', 'ctest-vn4-00077936'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66489632', 'ctest-policy1-47861378']], 'subnet_ipam': [{'subnet_cidr': '25.147.133.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f51:e8f4:b41c:205f:5976:443e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:08:28,237 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-25 02:08:28,544 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-25 02:08:28,581 - DEBUG - Requesting: http://10.0.0.33:8082/domain/71c98a6f-b90c-45e9-b9fd-a6f90aa6e6b9 2026-05-25 02:08:28,593 - DEBUG - Requesting: http://10.0.0.33:8082/project/7f1b0515-b5dd-405c-9add-c318c57930a3 2026-05-25 02:08:28,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,680 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,694 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:28,702 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:28,710 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6163d84f-0767-414f-bf07-5d034b152642 2026-05-25 02:08:28,718 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:08:28,718 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,728 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:28,747 - INFO - Verified VN network id 11 for VN e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,748 - INFO - Verifications in API Server for VN ctest-vn4-00077936 passed 2026-05-25 02:08:28,748 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,757 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:28,767 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:28,775 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6163d84f-0767-414f-bf07-5d034b152642 2026-05-25 02:08:28,786 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66489632', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16560875349220608567', 'uuid-lslong': '10361048356893928356'}, 'enable': 'true', 'created': '2026-05-25T02:08:27', 'last-modified': '2026-05-25T02:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744313'} 2026-05-25 02:08:28,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:08:28,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00077936 passed 2026-05-25 02:08:28,792 - DEBUG - ====Verifying policy data for ctest-vn4-00077936 in API_Server ====== 2026-05-25 02:08:28,792 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-25 02:08:28,798 - DEBUG - Requesting: http://10.0.0.33:8082/domain/71c98a6f-b90c-45e9-b9fd-a6f90aa6e6b9 2026-05-25 02:08:28,809 - DEBUG - Requesting: http://10.0.0.33:8082/project/7f1b0515-b5dd-405c-9add-c318c57930a3 2026-05-25 02:08:28,888 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e5d40c63-07d1-4a37-8fc9-d695dd4eaba4 2026-05-25 02:08:28,898 - DEBUG - ==>Verifying data for policy with id: a26fe1a5-b67d-4a09-8694-1c6a7520bdf1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66489632', 'ctest-policy1-47861378'] 2026-05-25 02:08:28,898 - INFO - VN ctest-vn4-00077936 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 02:08:28,898 - DEBUG - Verifying the vn in opserver 2026-05-25 02:08:28,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936 virtual network link through opserver 10.0.0.33 2026-05-25 02:08:28,898 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-25 02:08:29,198 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-25 02:08:29,270 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936?flat'} 2026-05-25 02:08:29,270 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66489632:ctest-vn4-00077936 is found in opserver 2026-05-25 02:08:29,279 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 02:08:29,285 - DEBUG - VRF ids for VN ctest-vn4-00077936: {} 2026-05-25 02:08:29,285 - DEBUG - ====Verifying data for ctest-policy1-47861378 in API_Server ====== 2026-05-25 02:08:29,285 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-25 02:08:29,291 - DEBUG - Requesting: http://10.0.0.33:8082/domain/71c98a6f-b90c-45e9-b9fd-a6f90aa6e6b9 2026-05-25 02:08:29,304 - DEBUG - Requesting: http://10.0.0.33:8082/project/7f1b0515-b5dd-405c-9add-c318c57930a3 2026-05-25 02:08:29,384 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a26fe1a5-b67d-4a09-8694-1c6a7520bdf1 2026-05-25 02:08:29,395 - INFO - Verified policy ctest-policy1-47861378 in API Server, Result: True 2026-05-25 02:08:29,395 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 02:08:29,404 - INFO - Deleting VN ctest-vn4-00077936 2026-05-25 02:08:29,533 - DEBUG - Response for deleting network () 2026-05-25 02:08:29,533 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d6a8a830-9c8a-4276-97e2-f0f4fce83fe9 2026-05-25 02:08:29,541 - DEBUG - Response Code: 404 2026-05-25 02:08:29,541 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-25 02:08:29,546 - DEBUG - Requesting: http://10.0.0.33:8082/domain/71c98a6f-b90c-45e9-b9fd-a6f90aa6e6b9 2026-05-25 02:08:29,604 - DEBUG - Requesting: http://10.0.0.33:8082/project/7f1b0515-b5dd-405c-9add-c318c57930a3 2026-05-25 02:08:29,677 - INFO - Validated that VN ctest-vn4-00077936 is not found in API Server 2026-05-25 02:08:29,686 - DEBUG - VN ctest-vn4-00077936 is not present in Agent 10.0.0.33 2026-05-25 02:08:29,686 - INFO - Validated that VN ctest-vn4-00077936 is not in any agent 2026-05-25 02:08:29,702 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00077936 info 2026-05-25 02:08:29,727 - INFO - Deleted policy ctest-policy1-47861378 2026-05-25 02:08:29,897 - DEBUG - policy ctest-policy1-47861378 is not found in API Server 2026-05-25 02:08:30,159 - DEBUG - No XMPP flaps were noticed during the test
2026-05-25 02:08:30,159 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-25 02:08:30,159 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:08:30,453 - DEBUG - No XMPP flaps were noticed during the test
2026-05-25 02:08:30,453 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-25 02:08:30,453 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:08:31,164 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66489632, ID : 7f1b0515-b5dd-405c-9add-c318c57930a3