2026-10-02 02:36:07,504 - INFO - Domain Default found not creating 2026-10-02 02:36:07,689 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35738207 not found, creating it 2026-10-02 02:36:08,194 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35738207, ID : 9b051337-c956-4f1e-bc24-f51f79af0598 2026-10-02 02:36:09,818 - INFO - ================================================================================ 2026-10-02 02:36:09,818 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 02:36:10,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-10-02 02:36:10,075 - INFO - Initial checks done. Running the testcase now 2026-10-02 02:36:10,075 - INFO - 2026-10-02 02:36:10,075 - INFO - ================================================================================ 2026-10-02 02:36:10,075 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-02 02:36:10,075 - 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-10-02 02:36:10,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-10-02 02:36:10,367 - INFO - Initial checks done. Running the testcase now 2026-10-02 02:36:10,367 - INFO - 2026-10-02 02:36:10,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097, 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-35738207:ctest-vn4-17620097, 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-35738207:ctest-vn4-17620097, 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-35738207:ctest-vn4-17620097, 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-10-02 02:36:11,328 - DEBUG - Response for create_network : {'network': {'id': 'e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f', 'name': 'ctest-vn4-17620097', 'tenant_id': '9b051337c9564f1ebc24f51f79af0598', 'project_id': '9b051337c9564f1ebc24f51f79af0598', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35738207', 'ctest-vn4-17620097'], 'port_security_enabled': True, 'description': ''}} 2026-10-02 02:36:11,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '0dcd70b4-7ccb-4f53-9b25-59dc98428c09', 'name': '', 'tenant_id': '9b051337c9564f1ebc24f51f79af0598', 'network_id': 'e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f', 'ip_version': 4, 'cidr': '67.146.147.128/26', 'allocation_pools': [{'start': '67.146.147.130', 'end': '67.146.147.190'}], 'gateway_ip': '67.146.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.146.147.130', 'tags': [], 'project_id': '9b051337c9564f1ebc24f51f79af0598'}} 2026-10-02 02:36:11,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '05853aa5-6733-40dd-be0d-43be829c1a9f', 'name': '', 'tenant_id': '9b051337c9564f1ebc24f51f79af0598', 'network_id': 'e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f', 'ip_version': 6, 'cidr': '3fc8:e832:960a:2d10:63:b01f::/96', 'allocation_pools': [{'start': '3fc8:e832:960a:2d10:63:b01f:0:2', 'end': '3fc8:e832:960a:2d10:63:b01f:ffff:fffe'}], 'gateway_ip': '3fc8:e832:960a:2d10:63:b01f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fc8:e832:960a:2d10:63:b01f:0:2', 'tags': [], 'project_id': '9b051337c9564f1ebc24f51f79af0598'}} 2026-10-02 02:36:11,727 - INFO - Created VN ctest-vn4-17620097 2026-10-02 02:36:11,785 - DEBUG - VN ctest-vn4-17620097 UUID is e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f', 'name': 'ctest-vn4-17620097', 'tenant_id': '9b051337c9564f1ebc24f51f79af0598', 'project_id': '9b051337c9564f1ebc24f51f79af0598', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0dcd70b4-7ccb-4f53-9b25-59dc98428c09', '05853aa5-6733-40dd-be0d-43be829c1a9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35738207', 'ctest-vn4-17620097'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35738207', 'ctest-policy1-46730459']], 'subnet_ipam': [{'subnet_cidr': '67.146.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fc8:e832:960a:2d10:63:b01f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-02 02:36:12,201 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-02 02:36:12,539 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-02 02:36:12,570 - DEBUG - Requesting: http://10.0.0.177:8082/domain/09c71005-d826-46b8-8d64-a282424254b9 2026-10-02 02:36:12,586 - DEBUG - Requesting: http://10.0.0.177:8082/project/9b051337-c956-4f1e-bc24-f51f79af0598 2026-10-02 02:36:12,677 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,692 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,704 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:12,713 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:12,722 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/5df6c7d1-26b2-4277-aa7c-6e0b51070454 2026-10-02 02:36:12,730 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 02:36:12,730 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,741 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:12,758 - INFO - Verified VN network id 12 for VN e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,758 - INFO - Verifications in API Server for VN ctest-vn4-17620097 passed 2026-10-02 02:36:12,758 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,770 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:12,778 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:12,786 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/5df6c7d1-26b2-4277-aa7c-6e0b51070454 2026-10-02 02:36:12,802 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35738207', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16847612114506305401', 'uuid-lslong': '13048894256861448991'}, 'enable': 'true', 'created': '2026-10-02T02:36:11', 'last-modified': '2026-10-02T02:36:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810641'} 2026-10-02 02:36:12,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-02 02:36:12,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17620097 passed 2026-10-02 02:36:12,810 - DEBUG - ====Verifying policy data for ctest-vn4-17620097 in API_Server ====== 2026-10-02 02:36:12,810 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-02 02:36:12,817 - DEBUG - Requesting: http://10.0.0.177:8082/domain/09c71005-d826-46b8-8d64-a282424254b9 2026-10-02 02:36:12,831 - DEBUG - Requesting: http://10.0.0.177:8082/project/9b051337-c956-4f1e-bc24-f51f79af0598 2026-10-02 02:36:12,905 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e9cebdf4-a6b7-4f79-b516-fc30cbdc8b1f 2026-10-02 02:36:12,917 - DEBUG - ==>Verifying data for policy with id: 6cda9cad-61fb-4af4-bd50-5dd4c48942cc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35738207', 'ctest-policy1-46730459'] 2026-10-02 02:36:12,917 - INFO - VN ctest-vn4-17620097 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-02 02:36:12,917 - DEBUG - Verifying the vn in opserver 2026-10-02 02:36:12,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097 virtual network link through opserver 10.0.0.177 2026-10-02 02:36:12,917 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-02 02:36:13,247 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-02 02:36:13,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097?flat'} 2026-10-02 02:36:13,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35738207:ctest-vn4-17620097 is found in opserver 2026-10-02 02:36:13,324 - DEBUG - Do not have enough data to verify VN in agent 2026-10-02 02:36:13,330 - DEBUG - VRF ids for VN ctest-vn4-17620097: {} 2026-10-02 02:36:13,331 - DEBUG - ====Verifying data for ctest-policy1-46730459 in API_Server ====== 2026-10-02 02:36:13,331 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-02 02:36:13,338 - DEBUG - Requesting: http://10.0.0.177:8082/domain/09c71005-d826-46b8-8d64-a282424254b9 2026-10-02 02:36:13,354 - DEBUG - Requesting: http://10.0.0.177:8082/project/9b051337-c956-4f1e-bc24-f51f79af0598 2026-10-02 02:36:13,435 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/6cda9cad-61fb-4af4-bd50-5dd4c48942cc 2026-10-02 02:36:13,447 - INFO - Verified policy ctest-policy1-46730459 in API Server, Result: True 2026-10-02 02:36:13,447 - INFO - Done with setup and verification, moving onto test .. 2026-10-02 02:36:13,460 - INFO - Deleting VN ctest-vn4-17620097 2026-10-02 02:36:13,605 - DEBUG - Response for deleting network () 2026-10-02 02:36:13,605 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/340f0d35-1265-47de-8cc2-44232bac3ffb 2026-10-02 02:36:13,612 - DEBUG - Response Code: 404 2026-10-02 02:36:13,612 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-02 02:36:13,618 - DEBUG - Requesting: http://10.0.0.177:8082/domain/09c71005-d826-46b8-8d64-a282424254b9 2026-10-02 02:36:13,674 - DEBUG - Requesting: http://10.0.0.177:8082/project/9b051337-c956-4f1e-bc24-f51f79af0598 2026-10-02 02:36:13,760 - INFO - Validated that VN ctest-vn4-17620097 is not found in API Server 2026-10-02 02:36:13,771 - DEBUG - VN ctest-vn4-17620097 is not present in Agent 10.0.0.177 2026-10-02 02:36:13,771 - INFO - Validated that VN ctest-vn4-17620097 is not in any agent 2026-10-02 02:36:13,791 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17620097 info 2026-10-02 02:36:13,825 - INFO - Deleted policy ctest-policy1-46730459 2026-10-02 02:36:14,004 - DEBUG - policy ctest-policy1-46730459 is not found in API Server 2026-10-02 02:36:14,267 - DEBUG - No XMPP flaps were noticed during the test