2026-08-17 02:28:11,820 - INFO - Domain Default found not creating 2026-08-17 02:28:11,972 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16246592 not found, creating it 2026-08-17 02:28:12,433 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16246592, ID : 548e9896-1872-4428-b040-4fb3731f0639 2026-08-17 02:28:13,833 - INFO - ================================================================================ 2026-08-17 02:28:13,833 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 02:28:14,095 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-08-17 02:28:14,095 - INFO - Initial checks done. Running the testcase now 2026-08-17 02:28:14,095 - INFO - 2026-08-17 02:28:14,095 - INFO - ================================================================================ 2026-08-17 02:28:14,095 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 02:28:14,095 - 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-17 02:28:14,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-08-17 02:28:14,392 - INFO - Initial checks done. Running the testcase now 2026-08-17 02:28:14,392 - INFO - 2026-08-17 02:28:14,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853, 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-16246592:ctest-vn4-54238853, 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-16246592:ctest-vn4-54238853, 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-16246592:ctest-vn4-54238853, 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-17 02:28:15,306 - DEBUG - Response for create_network : {'network': {'id': 'f7d63585-9136-44a1-8e5e-792e19d6add8', 'name': 'ctest-vn4-54238853', 'tenant_id': '548e989618724428b0404fb3731f0639', 'project_id': '548e989618724428b0404fb3731f0639', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16246592', 'ctest-vn4-54238853'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 02:28:15,509 - DEBUG - Response for create_subnet : {'subnet': {'id': '82e4fa2f-ba67-4470-b577-29abb3556221', 'name': '', 'tenant_id': '548e989618724428b0404fb3731f0639', 'network_id': 'f7d63585-9136-44a1-8e5e-792e19d6add8', 'ip_version': 4, 'cidr': '54.236.216.128/26', 'allocation_pools': [{'start': '54.236.216.130', 'end': '54.236.216.190'}], 'gateway_ip': '54.236.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.236.216.130', 'tags': [], 'project_id': '548e989618724428b0404fb3731f0639'}} 2026-08-17 02:28:15,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d15540d-a542-46d3-8300-24fe4d9e1d33', 'name': '', 'tenant_id': '548e989618724428b0404fb3731f0639', 'network_id': 'f7d63585-9136-44a1-8e5e-792e19d6add8', 'ip_version': 6, 'cidr': '30b2:9d5:d9b9:e2e0:29ed:55ee::/96', 'allocation_pools': [{'start': '30b2:9d5:d9b9:e2e0:29ed:55ee:0:2', 'end': '30b2:9d5:d9b9:e2e0:29ed:55ee:ffff:fffe'}], 'gateway_ip': '30b2:9d5:d9b9:e2e0:29ed:55ee:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30b2:9d5:d9b9:e2e0:29ed:55ee:0:2', 'tags': [], 'project_id': '548e989618724428b0404fb3731f0639'}} 2026-08-17 02:28:15,720 - INFO - Created VN ctest-vn4-54238853 2026-08-17 02:28:15,772 - DEBUG - VN ctest-vn4-54238853 UUID is f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:15,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7d63585-9136-44a1-8e5e-792e19d6add8', 'name': 'ctest-vn4-54238853', 'tenant_id': '548e989618724428b0404fb3731f0639', 'project_id': '548e989618724428b0404fb3731f0639', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82e4fa2f-ba67-4470-b577-29abb3556221', '8d15540d-a542-46d3-8300-24fe4d9e1d33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16246592', 'ctest-vn4-54238853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16246592', 'ctest-policy1-42296802']], 'subnet_ipam': [{'subnet_cidr': '54.236.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30b2:9d5:d9b9:e2e0:29ed:55ee::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 02:28:16,112 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-17 02:28:16,448 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-17 02:28:16,476 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2 2026-08-17 02:28:16,486 - DEBUG - Requesting: http://10.0.0.189:8082/project/548e9896-1872-4428-b040-4fb3731f0639 2026-08-17 02:28:16,557 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,567 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,576 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:16,582 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:16,587 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/26929005-a96f-47f8-af78-8a3879c892b4 2026-08-17 02:28:16,592 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:28:16,592 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,599 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:16,610 - INFO - Verified VN network id 11 for VN f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,610 - INFO - Verifications in API Server for VN ctest-vn4-54238853 passed 2026-08-17 02:28:16,610 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,618 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:16,623 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:16,628 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/26929005-a96f-47f8-af78-8a3879c892b4 2026-08-17 02:28:16,639 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16246592', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17858520220167455905', 'uuid-lslong': '10258770240105524696'}, 'enable': 'true', 'created': '2026-08-17T02:28:15', 'last-modified': '2026-08-17T02:28:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714472'} 2026-08-17 02:28:16,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:28:16,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54238853 passed 2026-08-17 02:28:16,645 - DEBUG - ====Verifying policy data for ctest-vn4-54238853 in API_Server ====== 2026-08-17 02:28:16,645 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-17 02:28:16,649 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2 2026-08-17 02:28:16,659 - DEBUG - Requesting: http://10.0.0.189:8082/project/548e9896-1872-4428-b040-4fb3731f0639 2026-08-17 02:28:16,732 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/f7d63585-9136-44a1-8e5e-792e19d6add8 2026-08-17 02:28:16,742 - DEBUG - ==>Verifying data for policy with id: 7ae6e434-d3b6-460c-b5c5-408173ff9252, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16246592', 'ctest-policy1-42296802'] 2026-08-17 02:28:16,742 - INFO - VN ctest-vn4-54238853 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 02:28:16,742 - DEBUG - Verifying the vn in opserver 2026-08-17 02:28:16,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853 virtual network link through opserver 10.0.0.189 2026-08-17 02:28:16,742 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-17 02:28:17,060 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-17 02:28:17,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853?flat'} 2026-08-17 02:28:17,108 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16246592:ctest-vn4-54238853 is found in opserver 2026-08-17 02:28:17,120 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 02:28:17,125 - DEBUG - VRF ids for VN ctest-vn4-54238853: {} 2026-08-17 02:28:17,126 - DEBUG - ====Verifying data for ctest-policy1-42296802 in API_Server ====== 2026-08-17 02:28:17,126 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-17 02:28:17,131 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2 2026-08-17 02:28:17,140 - DEBUG - Requesting: http://10.0.0.189:8082/project/548e9896-1872-4428-b040-4fb3731f0639 2026-08-17 02:28:17,213 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/7ae6e434-d3b6-460c-b5c5-408173ff9252 2026-08-17 02:28:17,224 - INFO - Verified policy ctest-policy1-42296802 in API Server, Result: True 2026-08-17 02:28:17,224 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 02:28:17,233 - INFO - Deleting VN ctest-vn4-54238853 2026-08-17 02:28:17,352 - DEBUG - Response for deleting network () 2026-08-17 02:28:17,352 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/1cc6a4c9-5a17-4a6b-9ea9-343566e0fb4d 2026-08-17 02:28:17,359 - DEBUG - Response Code: 404 2026-08-17 02:28:17,359 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-17 02:28:17,363 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2 2026-08-17 02:28:17,417 - DEBUG - Requesting: http://10.0.0.189:8082/project/548e9896-1872-4428-b040-4fb3731f0639 2026-08-17 02:28:17,486 - INFO - Validated that VN ctest-vn4-54238853 is not found in API Server 2026-08-17 02:28:17,497 - DEBUG - VN ctest-vn4-54238853 is not present in Agent 10.0.0.189 2026-08-17 02:28:17,497 - INFO - Validated that VN ctest-vn4-54238853 is not in any agent 2026-08-17 02:28:17,511 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54238853 info 2026-08-17 02:28:17,538 - INFO - Deleted policy ctest-policy1-42296802 2026-08-17 02:28:17,708 - DEBUG - policy ctest-policy1-42296802 is not found in API Server 2026-08-17 02:28:17,960 - DEBUG - No XMPP flaps were noticed during the test