2026-05-28 02:39:59,754 - INFO - Domain Default found not creating 2026-05-28 02:39:59,995 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30731511 not found, creating it 2026-05-28 02:40:00,618 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30731511, ID : 20d028f7-4391-499f-8a9a-8b8e0c8b5cae 2026-05-28 02:40:02,496 - INFO - ================================================================================ 2026-05-28 02:40:02,497 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:40:03,849 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.49': {'10.20.0.249': '0', '10.20.0.19': '0'}} with 2026-05-28 02:40:03,849 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:40:03,849 - INFO - 2026-05-28 02:40:03,850 - INFO - ================================================================================ 2026-05-28 02:40:03,850 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:40:03,850 - 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-28 02:40:05,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.49': {'10.20.0.249': '0', '10.20.0.19': '0'}} with 2026-05-28 02:40:05,210 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:40:05,210 - INFO - 2026-05-28 02:40:05,619 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085, 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-30731511:ctest-vn4-41414085, 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-30731511:ctest-vn4-41414085, 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-30731511:ctest-vn4-41414085, 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-28 02:40:06,419 - DEBUG - Response for create_network : {'network': {'id': 'f7dbe48e-5787-4199-a7b8-72361e8d6c6d', 'name': 'ctest-vn4-41414085', 'tenant_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'project_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'ctest-vn4-41414085'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:40:06,958 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd92ae0c3-9a86-4431-bdab-bc84ca182e5c', 'name': '', 'tenant_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'network_id': 'f7dbe48e-5787-4199-a7b8-72361e8d6c6d', 'ip_version': 4, 'cidr': '48.232.41.128/26', 'allocation_pools': [{'start': '48.232.41.130', 'end': '48.232.41.190'}], 'gateway_ip': '48.232.41.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.232.41.130', 'tags': [], 'project_id': '20d028f74391499f8a9a8b8e0c8b5cae'}} 2026-05-28 02:40:07,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ce38e8d-893f-4761-97ab-bfdd42d080ce', 'name': '', 'tenant_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'network_id': 'f7dbe48e-5787-4199-a7b8-72361e8d6c6d', 'ip_version': 6, 'cidr': '3d65:f741:65a3:bd58:47dc:d11c::/96', 'allocation_pools': [{'start': '3d65:f741:65a3:bd58:47dc:d11c:0:2', 'end': '3d65:f741:65a3:bd58:47dc:d11c:ffff:fffe'}], 'gateway_ip': '3d65:f741:65a3:bd58:47dc:d11c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d65:f741:65a3:bd58:47dc:d11c:0:2', 'tags': [], 'project_id': '20d028f74391499f8a9a8b8e0c8b5cae'}} 2026-05-28 02:40:07,259 - INFO - Created VN ctest-vn4-41414085 2026-05-28 02:40:07,273 - DEBUG - VN ctest-vn4-41414085 UUID is f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:07,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7dbe48e-5787-4199-a7b8-72361e8d6c6d', 'name': 'ctest-vn4-41414085', 'tenant_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'project_id': '20d028f74391499f8a9a8b8e0c8b5cae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d92ae0c3-9a86-4431-bdab-bc84ca182e5c', '1ce38e8d-893f-4761-97ab-bfdd42d080ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'ctest-vn4-41414085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'ctest-policy1-59522037']], 'subnet_ipam': [{'subnet_cidr': '48.232.41.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d65:f741:65a3:bd58:47dc:d11c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:40:07,718 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:40:08,042 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:40:08,093 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:40:08,126 - DEBUG - Requesting: http://10.0.0.133:8082/project/20d028f7-4391-499f-8a9a-8b8e0c8b5cae 2026-05-28 02:40:08,231 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,254 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,267 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:08,281 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:08,291 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/670fab6b-b330-4b99-9544-aa2db6a71f60 2026-05-28 02:40:08,300 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:40:08,300 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,312 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:08,335 - INFO - Verified VN network id 11 for VN f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,336 - INFO - Verifications in API Server for VN ctest-vn4-41414085 passed 2026-05-28 02:40:08,336 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,352 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:08,361 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:08,373 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/670fab6b-b330-4b99-9544-aa2db6a71f60 2026-05-28 02:40:08,394 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17860120047272804761', 'uuid-lslong': '12085535176815111277'}, 'enable': 'true', 'created': '2026-05-28T02:40:06', 'last-modified': '2026-05-28T02:40:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.861635'} 2026-05-28 02:40:08,404 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:40:08,412 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17860120047272804761', 'uuid-lslong': '12085535176815111277'}, 'enable': 'true', 'created': '2026-05-28T02:40:06', 'last-modified': '2026-05-28T02:40:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891034'} 2026-05-28 02:40:08,419 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:40:08,426 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17860120047272804761', 'uuid-lslong': '12085535176815111277'}, 'enable': 'true', 'created': '2026-05-28T02:40:06', 'last-modified': '2026-05-28T02:40:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906409'} 2026-05-28 02:40:08,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:40:08,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41414085 passed 2026-05-28 02:40:08,434 - DEBUG - ====Verifying policy data for ctest-vn4-41414085 in API_Server ====== 2026-05-28 02:40:08,434 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:40:08,442 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:40:08,457 - DEBUG - Requesting: http://10.0.0.133:8082/project/20d028f7-4391-499f-8a9a-8b8e0c8b5cae 2026-05-28 02:40:08,588 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/f7dbe48e-5787-4199-a7b8-72361e8d6c6d 2026-05-28 02:40:08,603 - DEBUG - ==>Verifying data for policy with id: cd741af2-5013-49fb-b376-2dedb3802819, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30731511', 'ctest-policy1-59522037'] 2026-05-28 02:40:08,603 - INFO - VN ctest-vn4-41414085 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:40:08,603 - DEBUG - Verifying the vn in opserver 2026-05-28 02:40:08,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085 virtual network link through opserver 10.0.0.133 2026-05-28 02:40:08,604 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-05-28 02:40:08,911 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-05-28 02:40:08,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085?flat'} 2026-05-28 02:40:08,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085 virtual network link through opserver 10.0.0.41 2026-05-28 02:40:08,995 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-28 02:40:09,315 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-28 02:40:09,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085?flat'} 2026-05-28 02:40:09,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085 virtual network link through opserver 10.0.0.131 2026-05-28 02:40:09,412 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-28 02:40:09,725 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-28 02:40:09,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085?flat'} 2026-05-28 02:40:09,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30731511:ctest-vn4-41414085 is found in opserver 2026-05-28 02:40:09,847 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:40:09,871 - DEBUG - VRF ids for VN ctest-vn4-41414085: {} 2026-05-28 02:40:09,872 - DEBUG - ====Verifying data for ctest-policy1-59522037 in API_Server ====== 2026-05-28 02:40:09,872 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:40:09,883 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:40:09,903 - DEBUG - Requesting: http://10.0.0.133:8082/project/20d028f7-4391-499f-8a9a-8b8e0c8b5cae 2026-05-28 02:40:10,022 - DEBUG - Requesting: http://10.0.0.133:8082/network-policy/cd741af2-5013-49fb-b376-2dedb3802819 2026-05-28 02:40:10,035 - INFO - Verified policy ctest-policy1-59522037 in API Server, Result: True 2026-05-28 02:40:10,035 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 02:40:10,051 - INFO - Deleting VN ctest-vn4-41414085 2026-05-28 02:40:10,279 - DEBUG - Response for deleting network () 2026-05-28 02:40:10,279 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/aa94d3a9-272d-4725-8256-f1c132bf0d64 2026-05-28 02:40:10,290 - DEBUG - Response Code: 404 2026-05-28 02:40:10,290 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:40:10,305 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:40:10,338 - DEBUG - Requesting: http://10.0.0.133:8082/project/20d028f7-4391-499f-8a9a-8b8e0c8b5cae 2026-05-28 02:40:10,451 - INFO - Validated that VN ctest-vn4-41414085 is not found in API Server 2026-05-28 02:40:10,467 - DEBUG - VN ctest-vn4-41414085 is not present in Agent 10.0.0.48 2026-05-28 02:40:10,482 - DEBUG - VN ctest-vn4-41414085 is not present in Agent 10.0.0.49 2026-05-28 02:40:10,483 - INFO - Validated that VN ctest-vn4-41414085 is not in any agent 2026-05-28 02:40:10,528 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41414085 info 2026-05-28 02:40:10,598 - INFO - Deleted policy ctest-policy1-59522037 2026-05-28 02:40:10,830 - DEBUG - policy ctest-policy1-59522037 is not found in API Server 2026-05-28 02:40:12,164 - DEBUG - No XMPP flaps were noticed during the test
2026-05-28 02:40:12,165 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2026-05-28 02:40:12,165 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:40:13,483 - DEBUG - No XMPP flaps were noticed during the test
2026-05-28 02:40:13,483 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2026-05-28 02:40:13,483 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:40:14,287 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30731511, ID : 20d028f7-4391-499f-8a9a-8b8e0c8b5cae