2026-09-29 17:52:30,621 - INFO - Domain Default found not creating 2026-09-29 17:52:30,769 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36322983 not found, creating it 2026-09-29 17:52:31,261 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36322983, ID : b182e991-b8ba-424c-9418-4b7cf4d227dc 2026-09-29 17:52:32,922 - INFO - ================================================================================ 2026-09-29 17:52:32,922 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 17:52:33,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-29 17:52:33,186 - INFO - Initial checks done. Running the testcase now 2026-09-29 17:52:33,186 - INFO - 2026-09-29 17:52:33,186 - INFO - ================================================================================ 2026-09-29 17:52:33,186 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 17:52:33,186 - 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-09-29 17:52:33,492 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.25': '0'}} with 2026-09-29 17:52:33,492 - INFO - Initial checks done. Running the testcase now 2026-09-29 17:52:33,492 - INFO - 2026-09-29 17:52:33,955 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812, 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-36322983:ctest-vn4-41264812, 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-36322983:ctest-vn4-41264812, 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-36322983:ctest-vn4-41264812, 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-09-29 17:52:34,499 - DEBUG - Response for create_network : {'network': {'id': '9d55da19-48c0-4dd3-891a-7a0cf807c849', 'name': 'ctest-vn4-41264812', 'tenant_id': 'b182e991b8ba424c94184b7cf4d227dc', 'project_id': 'b182e991b8ba424c94184b7cf4d227dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36322983', 'ctest-vn4-41264812'], 'port_security_enabled': True, 'description': ''}} 2026-09-29 17:52:34,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '60a0b788-f0cc-46d2-83a8-e9082694eaa3', 'name': '', 'tenant_id': 'b182e991b8ba424c94184b7cf4d227dc', 'network_id': '9d55da19-48c0-4dd3-891a-7a0cf807c849', 'ip_version': 4, 'cidr': '46.33.221.64/26', 'allocation_pools': [{'start': '46.33.221.66', 'end': '46.33.221.126'}], 'gateway_ip': '46.33.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.33.221.66', 'tags': [], 'project_id': 'b182e991b8ba424c94184b7cf4d227dc'}} 2026-09-29 17:52:34,925 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ef6368a-85a0-432b-8a70-7ee27d59d2c4', 'name': '', 'tenant_id': 'b182e991b8ba424c94184b7cf4d227dc', 'network_id': '9d55da19-48c0-4dd3-891a-7a0cf807c849', 'ip_version': 6, 'cidr': '29e8:4199:6b62:bac6:d7ab:f02d::/96', 'allocation_pools': [{'start': '29e8:4199:6b62:bac6:d7ab:f02d:0:2', 'end': '29e8:4199:6b62:bac6:d7ab:f02d:ffff:fffe'}], 'gateway_ip': '29e8:4199:6b62:bac6:d7ab:f02d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29e8:4199:6b62:bac6:d7ab:f02d:0:2', 'tags': [], 'project_id': 'b182e991b8ba424c94184b7cf4d227dc'}} 2026-09-29 17:52:34,944 - INFO - Created VN ctest-vn4-41264812 2026-09-29 17:52:34,995 - DEBUG - VN ctest-vn4-41264812 UUID is 9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:35,198 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d55da19-48c0-4dd3-891a-7a0cf807c849', 'name': 'ctest-vn4-41264812', 'tenant_id': 'b182e991b8ba424c94184b7cf4d227dc', 'project_id': 'b182e991b8ba424c94184b7cf4d227dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['60a0b788-f0cc-46d2-83a8-e9082694eaa3', '1ef6368a-85a0-432b-8a70-7ee27d59d2c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36322983', 'ctest-vn4-41264812'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36322983', 'ctest-policy1-57554908']], 'subnet_ipam': [{'subnet_cidr': '46.33.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29e8:4199:6b62:bac6:d7ab:f02d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-29 17:52:35,355 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 17:52:35,725 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 17:52:35,753 - DEBUG - Requesting: http://10.0.0.189:8082/domain/13ba8da2-58f4-4cf9-9175-d5a20e4a8c86 2026-09-29 17:52:35,765 - DEBUG - Requesting: http://10.0.0.189:8082/project/b182e991-b8ba-424c-9418-4b7cf4d227dc 2026-09-29 17:52:35,887 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:35,904 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:35,914 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:35,936 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:35,953 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/114ada67-c961-4a80-8181-452f969d3466 2026-09-29 17:52:35,960 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 17:52:35,961 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:35,970 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:35,987 - INFO - Verified VN network id 12 for VN 9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:35,988 - INFO - Verifications in API Server for VN ctest-vn4-41264812 passed 2026-09-29 17:52:35,988 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:36,004 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:36,013 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:36,021 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/114ada67-c961-4a80-8181-452f969d3466 2026-09-29 17:52:36,050 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36322983', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11337207439104691667', 'uuid-lslong': '9879342928710060105'}, 'enable': 'true', 'created': '2026-09-29T17:52:34', 'last-modified': '2026-09-29T17:52:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883866'} 2026-09-29 17:52:36,060 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 17:52:36,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41264812 passed 2026-09-29 17:52:36,061 - DEBUG - ====Verifying policy data for ctest-vn4-41264812 in API_Server ====== 2026-09-29 17:52:36,061 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 17:52:36,066 - DEBUG - Requesting: http://10.0.0.189:8082/domain/13ba8da2-58f4-4cf9-9175-d5a20e4a8c86 2026-09-29 17:52:36,093 - DEBUG - Requesting: http://10.0.0.189:8082/project/b182e991-b8ba-424c-9418-4b7cf4d227dc 2026-09-29 17:52:36,234 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/9d55da19-48c0-4dd3-891a-7a0cf807c849 2026-09-29 17:52:36,252 - DEBUG - ==>Verifying data for policy with id: 02ed0138-e34f-4504-b930-aee5e1262509, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36322983', 'ctest-policy1-57554908'] 2026-09-29 17:52:36,252 - INFO - VN ctest-vn4-41264812 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-29 17:52:36,252 - DEBUG - Verifying the vn in opserver 2026-09-29 17:52:36,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812 virtual network link through opserver 10.0.0.189 2026-09-29 17:52:36,253 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-29 17:52:36,629 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-29 17:52:36,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812?flat'} 2026-09-29 17:52:36,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36322983:ctest-vn4-41264812 is found in opserver 2026-09-29 17:52:36,698 - DEBUG - Do not have enough data to verify VN in agent 2026-09-29 17:52:36,704 - DEBUG - VRF ids for VN ctest-vn4-41264812: {} 2026-09-29 17:52:36,705 - DEBUG - ====Verifying data for ctest-policy1-57554908 in API_Server ====== 2026-09-29 17:52:36,705 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 17:52:36,711 - DEBUG - Requesting: http://10.0.0.189:8082/domain/13ba8da2-58f4-4cf9-9175-d5a20e4a8c86 2026-09-29 17:52:36,728 - DEBUG - Requesting: http://10.0.0.189:8082/project/b182e991-b8ba-424c-9418-4b7cf4d227dc 2026-09-29 17:52:36,806 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/02ed0138-e34f-4504-b930-aee5e1262509 2026-09-29 17:52:36,822 - INFO - Verified policy ctest-policy1-57554908 in API Server, Result: True 2026-09-29 17:52:36,822 - INFO - Done with setup and verification, moving onto test .. 2026-09-29 17:52:36,832 - INFO - Deleting VN ctest-vn4-41264812 2026-09-29 17:52:36,982 - DEBUG - Response for deleting network () 2026-09-29 17:52:36,982 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/b1f3115f-424d-4eca-8b26-770dda9ea7d2 2026-09-29 17:52:36,987 - DEBUG - Response Code: 404 2026-09-29 17:52:36,987 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-29 17:52:36,992 - DEBUG - Requesting: http://10.0.0.189:8082/domain/13ba8da2-58f4-4cf9-9175-d5a20e4a8c86 2026-09-29 17:52:37,049 - DEBUG - Requesting: http://10.0.0.189:8082/project/b182e991-b8ba-424c-9418-4b7cf4d227dc 2026-09-29 17:52:37,125 - INFO - Validated that VN ctest-vn4-41264812 is not found in API Server 2026-09-29 17:52:37,137 - DEBUG - VN ctest-vn4-41264812 is not present in Agent 10.0.0.189 2026-09-29 17:52:37,137 - INFO - Validated that VN ctest-vn4-41264812 is not in any agent 2026-09-29 17:52:37,154 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41264812 info 2026-09-29 17:52:37,177 - INFO - Deleted policy ctest-policy1-57554908 2026-09-29 17:52:37,367 - DEBUG - policy ctest-policy1-57554908 is not found in API Server 2026-09-29 17:52:37,626 - DEBUG - No XMPP flaps were noticed during the test
2026-09-29 17:52:37,626 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-29 17:52:37,627 - INFO - -------------------------------------------------------------------------------- 2026-09-29 17:52:37,940 - DEBUG - No XMPP flaps were noticed during the test
2026-09-29 17:52:37,940 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-29 17:52:37,940 - INFO - -------------------------------------------------------------------------------- 2026-09-29 17:52:38,785 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36322983, ID : b182e991-b8ba-424c-9418-4b7cf4d227dc