2026-08-03 02:35:03,821 - INFO - Domain Default found not creating 2026-08-03 02:35:03,999 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08991563 not found, creating it 2026-08-03 02:35:04,514 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08991563, ID : 0b6be9ec-c974-4f68-8fa9-7d993492c6a0 2026-08-03 02:35:06,182 - INFO - ================================================================================ 2026-08-03 02:35:06,182 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-03 02:35:06,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-03 02:35:06,443 - INFO - Initial checks done. Running the testcase now 2026-08-03 02:35:06,443 - INFO - 2026-08-03 02:35:06,443 - INFO - ================================================================================ 2026-08-03 02:35:06,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-03 02:35:06,444 - 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-08-03 02:35:06,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-08-03 02:35:06,752 - INFO - Initial checks done. Running the testcase now 2026-08-03 02:35:06,752 - INFO - 2026-08-03 02:35:07,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786, 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-08991563:ctest-vn4-29041786, 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-08991563:ctest-vn4-29041786, 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-08991563:ctest-vn4-29041786, 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-08-03 02:35:07,739 - DEBUG - Response for create_network : {'network': {'id': '49b8c839-672f-42dc-9765-e2e7964b988e', 'name': 'ctest-vn4-29041786', 'tenant_id': '0b6be9ecc9744f688fa97d993492c6a0', 'project_id': '0b6be9ecc9744f688fa97d993492c6a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08991563', 'ctest-vn4-29041786'], 'port_security_enabled': True, 'description': ''}} 2026-08-03 02:35:07,957 - DEBUG - Response for create_subnet : {'subnet': {'id': '383aee6e-226f-4cd5-a52e-41dbe53d92fa', 'name': '', 'tenant_id': '0b6be9ecc9744f688fa97d993492c6a0', 'network_id': '49b8c839-672f-42dc-9765-e2e7964b988e', 'ip_version': 4, 'cidr': '125.242.205.0/26', 'allocation_pools': [{'start': '125.242.205.2', 'end': '125.242.205.62'}], 'gateway_ip': '125.242.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.242.205.2', 'tags': [], 'project_id': '0b6be9ecc9744f688fa97d993492c6a0'}} 2026-08-03 02:35:08,131 - DEBUG - Response for create_subnet : {'subnet': {'id': '847a0171-0c8e-4016-9a1c-bbc606193c8d', 'name': '', 'tenant_id': '0b6be9ecc9744f688fa97d993492c6a0', 'network_id': '49b8c839-672f-42dc-9765-e2e7964b988e', 'ip_version': 6, 'cidr': '23ed:ae17:3470:71e5:5fee:be68::/96', 'allocation_pools': [{'start': '23ed:ae17:3470:71e5:5fee:be68:0:2', 'end': '23ed:ae17:3470:71e5:5fee:be68:ffff:fffe'}], 'gateway_ip': '23ed:ae17:3470:71e5:5fee:be68:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23ed:ae17:3470:71e5:5fee:be68:0:2', 'tags': [], 'project_id': '0b6be9ecc9744f688fa97d993492c6a0'}} 2026-08-03 02:35:08,151 - INFO - Created VN ctest-vn4-29041786 2026-08-03 02:35:08,207 - DEBUG - VN ctest-vn4-29041786 UUID is 49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:08,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49b8c839-672f-42dc-9765-e2e7964b988e', 'name': 'ctest-vn4-29041786', 'tenant_id': '0b6be9ecc9744f688fa97d993492c6a0', 'project_id': '0b6be9ecc9744f688fa97d993492c6a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['383aee6e-226f-4cd5-a52e-41dbe53d92fa', '847a0171-0c8e-4016-9a1c-bbc606193c8d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08991563', 'ctest-vn4-29041786'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08991563', 'ctest-policy1-87938681']], 'subnet_ipam': [{'subnet_cidr': '125.242.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23ed:ae17:3470:71e5:5fee:be68::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-03 02:35:08,579 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-03 02:35:08,936 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-03 02:35:08,966 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fcfe315e-4663-4767-9fd7-8593d2c673fc 2026-08-03 02:35:08,980 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b6be9ec-c974-4f68-8fa9-7d993492c6a0 2026-08-03 02:35:09,062 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,078 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,088 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,097 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,105 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/666e0a88-f07c-4046-b6f6-a5d78061352b 2026-08-03 02:35:09,115 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 02:35:09,115 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,142 - INFO - Verified VN network id 11 for VN 49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,142 - INFO - Verifications in API Server for VN ctest-vn4-29041786 passed 2026-08-03 02:35:09,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,153 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,162 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,170 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/666e0a88-f07c-4046-b6f6-a5d78061352b 2026-08-03 02:35:09,184 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08991563', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5312215909353341660', 'uuid-lslong': '10909375156661753998'}, 'enable': 'true', 'created': '2026-08-03T02:35:07', 'last-modified': '2026-08-03T02:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795787'} 2026-08-03 02:35:09,190 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 02:35:09,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29041786 passed 2026-08-03 02:35:09,191 - DEBUG - ====Verifying policy data for ctest-vn4-29041786 in API_Server ====== 2026-08-03 02:35:09,191 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-03 02:35:09,198 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fcfe315e-4663-4767-9fd7-8593d2c673fc 2026-08-03 02:35:09,215 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b6be9ec-c974-4f68-8fa9-7d993492c6a0 2026-08-03 02:35:09,300 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/49b8c839-672f-42dc-9765-e2e7964b988e 2026-08-03 02:35:09,312 - DEBUG - ==>Verifying data for policy with id: 8b43a07b-d23c-4b76-bd4a-e24a5666d0a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08991563', 'ctest-policy1-87938681'] 2026-08-03 02:35:09,312 - INFO - VN ctest-vn4-29041786 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-03 02:35:09,312 - DEBUG - Verifying the vn in opserver 2026-08-03 02:35:09,312 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786 virtual network link through opserver 10.0.0.33 2026-08-03 02:35:09,313 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-03 02:35:09,650 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-08-03 02:35:09,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786?flat'} 2026-08-03 02:35:09,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08991563:ctest-vn4-29041786 is found in opserver 2026-08-03 02:35:09,723 - DEBUG - Do not have enough data to verify VN in agent 2026-08-03 02:35:09,728 - DEBUG - VRF ids for VN ctest-vn4-29041786: {} 2026-08-03 02:35:09,728 - DEBUG - ====Verifying data for ctest-policy1-87938681 in API_Server ====== 2026-08-03 02:35:09,729 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-03 02:35:09,735 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fcfe315e-4663-4767-9fd7-8593d2c673fc 2026-08-03 02:35:09,746 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b6be9ec-c974-4f68-8fa9-7d993492c6a0 2026-08-03 02:35:09,827 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/8b43a07b-d23c-4b76-bd4a-e24a5666d0a3 2026-08-03 02:35:09,838 - INFO - Verified policy ctest-policy1-87938681 in API Server, Result: True 2026-08-03 02:35:09,838 - INFO - Done with setup and verification, moving onto test .. 2026-08-03 02:35:09,851 - INFO - Deleting VN ctest-vn4-29041786 2026-08-03 02:35:09,988 - DEBUG - Response for deleting network () 2026-08-03 02:35:09,988 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7c632ada-1ba7-491d-8c24-c56ed37abfaf 2026-08-03 02:35:09,994 - DEBUG - Response Code: 404 2026-08-03 02:35:09,995 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-08-03 02:35:10,001 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fcfe315e-4663-4767-9fd7-8593d2c673fc 2026-08-03 02:35:10,056 - DEBUG - Requesting: http://10.0.0.33:8082/project/0b6be9ec-c974-4f68-8fa9-7d993492c6a0 2026-08-03 02:35:10,139 - INFO - Validated that VN ctest-vn4-29041786 is not found in API Server 2026-08-03 02:35:10,150 - DEBUG - VN ctest-vn4-29041786 is not present in Agent 10.0.0.33 2026-08-03 02:35:10,150 - INFO - Validated that VN ctest-vn4-29041786 is not in any agent 2026-08-03 02:35:10,169 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29041786 info 2026-08-03 02:35:10,203 - INFO - Deleted policy ctest-policy1-87938681 2026-08-03 02:35:10,374 - DEBUG - policy ctest-policy1-87938681 is not found in API Server 2026-08-03 02:35:10,637 - DEBUG - No XMPP flaps were noticed during the test
2026-08-03 02:35:10,637 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-03 02:35:10,638 - INFO - -------------------------------------------------------------------------------- 2026-08-03 02:35:10,928 - DEBUG - No XMPP flaps were noticed during the test
2026-08-03 02:35:10,929 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-03 02:35:10,929 - INFO - -------------------------------------------------------------------------------- 2026-08-03 02:35:11,698 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08991563, ID : 0b6be9ec-c974-4f68-8fa9-7d993492c6a0