2026-06-18 13:02:00,919 - INFO - Domain Default found not creating 2026-06-18 13:02:01,082 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93402389 not found, creating it 2026-06-18 13:02:01,562 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93402389, ID : 89cab589-6c0c-47aa-a27e-f165f35d18c3 2026-06-18 13:02:03,121 - INFO - ================================================================================ 2026-06-18 13:02:03,121 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 13:02:03,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with 2026-06-18 13:02:03,379 - INFO - Initial checks done. Running the testcase now 2026-06-18 13:02:03,379 - INFO - 2026-06-18 13:02:03,379 - INFO - ================================================================================ 2026-06-18 13:02:03,379 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 13:02:03,379 - 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-06-18 13:02:03,674 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.129': '0'}} with 2026-06-18 13:02:03,674 - INFO - Initial checks done. Running the testcase now 2026-06-18 13:02:03,674 - INFO - 2026-06-18 13:02:04,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596, 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-93402389:ctest-vn4-92675596, 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-93402389:ctest-vn4-92675596, 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-93402389:ctest-vn4-92675596, 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-06-18 13:02:04,568 - DEBUG - Response for create_network : {'network': {'id': 'ca81de39-9b0c-49b9-a636-0792ef847bce', 'name': 'ctest-vn4-92675596', 'tenant_id': '89cab5896c0c47aaa27ef165f35d18c3', 'project_id': '89cab5896c0c47aaa27ef165f35d18c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93402389', 'ctest-vn4-92675596'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 13:02:04,712 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccfc64c2-7a60-42d1-bad0-3a9cdca05838', 'name': '', 'tenant_id': '89cab5896c0c47aaa27ef165f35d18c3', 'network_id': 'ca81de39-9b0c-49b9-a636-0792ef847bce', 'ip_version': 4, 'cidr': '1.162.158.64/26', 'allocation_pools': [{'start': '1.162.158.66', 'end': '1.162.158.126'}], 'gateway_ip': '1.162.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.162.158.66', 'tags': [], 'project_id': '89cab5896c0c47aaa27ef165f35d18c3'}} 2026-06-18 13:02:04,895 - DEBUG - Response for create_subnet : {'subnet': {'id': '241a4c4d-4c70-462c-9801-d4cf368d2449', 'name': '', 'tenant_id': '89cab5896c0c47aaa27ef165f35d18c3', 'network_id': 'ca81de39-9b0c-49b9-a636-0792ef847bce', 'ip_version': 6, 'cidr': '324e:7a20:3083:fd04:2590:e315::/96', 'allocation_pools': [{'start': '324e:7a20:3083:fd04:2590:e315:0:2', 'end': '324e:7a20:3083:fd04:2590:e315:ffff:fffe'}], 'gateway_ip': '324e:7a20:3083:fd04:2590:e315:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '324e:7a20:3083:fd04:2590:e315:0:2', 'tags': [], 'project_id': '89cab5896c0c47aaa27ef165f35d18c3'}} 2026-06-18 13:02:04,914 - INFO - Created VN ctest-vn4-92675596 2026-06-18 13:02:04,970 - DEBUG - VN ctest-vn4-92675596 UUID is ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca81de39-9b0c-49b9-a636-0792ef847bce', 'name': 'ctest-vn4-92675596', 'tenant_id': '89cab5896c0c47aaa27ef165f35d18c3', 'project_id': '89cab5896c0c47aaa27ef165f35d18c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccfc64c2-7a60-42d1-bad0-3a9cdca05838', '241a4c4d-4c70-462c-9801-d4cf368d2449'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93402389', 'ctest-vn4-92675596'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93402389', 'ctest-policy1-73977746']], 'subnet_ipam': [{'subnet_cidr': '1.162.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '324e:7a20:3083:fd04:2590:e315::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 13:02:05,342 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-06-18 13:02:05,673 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-06-18 13:02:05,701 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507 2026-06-18 13:02:05,712 - DEBUG - Requesting: http://10.0.0.130:8082/project/89cab589-6c0c-47aa-a27e-f165f35d18c3 2026-06-18 13:02:05,782 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,793 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,802 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:05,809 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:05,816 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2c5a28cf-e5b3-41a6-9da1-84b17e15a4f6 2026-06-18 13:02:05,823 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:02:05,823 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,832 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:05,845 - INFO - Verified VN network id 11 for VN ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,845 - INFO - Verifications in API Server for VN ctest-vn4-92675596 passed 2026-06-18 13:02:05,846 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,855 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:05,862 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:05,869 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2c5a28cf-e5b3-41a6-9da1-84b17e15a4f6 2026-06-18 13:02:05,881 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93402389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14592188606652893625', 'uuid-lslong': '11976768586703469518'}, 'enable': 'true', 'created': '2026-06-18T13:02:04', 'last-modified': '2026-06-18T13:02:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732658'} 2026-06-18 13:02:05,888 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:02:05,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92675596 passed 2026-06-18 13:02:05,888 - DEBUG - ====Verifying policy data for ctest-vn4-92675596 in API_Server ====== 2026-06-18 13:02:05,888 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-06-18 13:02:05,893 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507 2026-06-18 13:02:05,905 - DEBUG - Requesting: http://10.0.0.130:8082/project/89cab589-6c0c-47aa-a27e-f165f35d18c3 2026-06-18 13:02:05,979 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ca81de39-9b0c-49b9-a636-0792ef847bce 2026-06-18 13:02:05,988 - DEBUG - ==>Verifying data for policy with id: 7a1ab0c6-880b-45db-ad55-3f1ae801bc81, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93402389', 'ctest-policy1-73977746'] 2026-06-18 13:02:05,988 - INFO - VN ctest-vn4-92675596 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 13:02:05,988 - DEBUG - Verifying the vn in opserver 2026-06-18 13:02:05,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596 virtual network link through opserver 10.0.0.130 2026-06-18 13:02:05,988 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-06-18 13:02:06,314 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-06-18 13:02:06,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596?flat'} 2026-06-18 13:02:06,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93402389:ctest-vn4-92675596 is found in opserver 2026-06-18 13:02:06,381 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 13:02:06,386 - DEBUG - VRF ids for VN ctest-vn4-92675596: {} 2026-06-18 13:02:06,387 - DEBUG - ====Verifying data for ctest-policy1-73977746 in API_Server ====== 2026-06-18 13:02:06,387 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-06-18 13:02:06,394 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507 2026-06-18 13:02:06,404 - DEBUG - Requesting: http://10.0.0.130:8082/project/89cab589-6c0c-47aa-a27e-f165f35d18c3 2026-06-18 13:02:06,473 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/7a1ab0c6-880b-45db-ad55-3f1ae801bc81 2026-06-18 13:02:06,483 - INFO - Verified policy ctest-policy1-73977746 in API Server, Result: True 2026-06-18 13:02:06,483 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 13:02:06,491 - INFO - Deleting VN ctest-vn4-92675596 2026-06-18 13:02:06,616 - DEBUG - Response for deleting network () 2026-06-18 13:02:06,616 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7f543b93-4bba-4069-b9de-e1e34f8c17d4 2026-06-18 13:02:06,622 - DEBUG - Response Code: 404 2026-06-18 13:02:06,623 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-06-18 13:02:06,629 - DEBUG - Requesting: http://10.0.0.130:8082/domain/78c6e090-d7e6-46b5-b5ad-3d0f153b1507 2026-06-18 13:02:06,683 - DEBUG - Requesting: http://10.0.0.130:8082/project/89cab589-6c0c-47aa-a27e-f165f35d18c3 2026-06-18 13:02:06,756 - INFO - Validated that VN ctest-vn4-92675596 is not found in API Server 2026-06-18 13:02:06,764 - DEBUG - VN ctest-vn4-92675596 is not present in Agent 10.0.0.130 2026-06-18 13:02:06,764 - INFO - Validated that VN ctest-vn4-92675596 is not in any agent 2026-06-18 13:02:06,777 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92675596 info 2026-06-18 13:02:06,801 - INFO - Deleted policy ctest-policy1-73977746 2026-06-18 13:02:06,966 - DEBUG - policy ctest-policy1-73977746 is not found in API Server 2026-06-18 13:02:07,224 - DEBUG - No XMPP flaps were noticed during the test