2026-01-29 11:45:58,035 - INFO - Domain Default found not creating 2026-01-29 11:45:58,221 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24927069 not found, creating it 2026-01-29 11:45:58,707 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24927069, ID : e01ba2d8-0e2f-4ee9-bfec-a98584f42a69 2026-01-29 11:46:00,312 - INFO - ================================================================================ 2026-01-29 11:46:00,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 11:46:00,574 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-29 11:46:00,574 - INFO - Initial checks done. Running the testcase now 2026-01-29 11:46:00,575 - INFO - 2026-01-29 11:46:00,575 - INFO - ================================================================================ 2026-01-29 11:46:00,575 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 11:46:00,575 - 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-01-29 11:46:00,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-29 11:46:00,867 - INFO - Initial checks done. Running the testcase now 2026-01-29 11:46:00,867 - INFO - 2026-01-29 11:46:01,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625, 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-24927069:ctest-vn4-43717625, 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-24927069:ctest-vn4-43717625, 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-24927069:ctest-vn4-43717625, 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-01-29 11:46:01,798 - DEBUG - Response for create_network : {'network': {'id': 'b9fd6b7d-80a3-4629-b746-573fd72e63a9', 'name': 'ctest-vn4-43717625', 'tenant_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'project_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24927069', 'ctest-vn4-43717625'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 11:46:01,979 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a94fcc0-6261-4669-8748-57d97815386b', 'name': '', 'tenant_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'network_id': 'b9fd6b7d-80a3-4629-b746-573fd72e63a9', 'ip_version': 4, 'cidr': '212.131.1.192/26', 'allocation_pools': [{'start': '212.131.1.194', 'end': '212.131.1.254'}], 'gateway_ip': '212.131.1.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.131.1.194', 'tags': [], 'project_id': 'e01ba2d80e2f4ee9bfeca98584f42a69'}} 2026-01-29 11:46:02,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b0030e1-3b7f-4390-9fb1-794657d02258', 'name': '', 'tenant_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'network_id': 'b9fd6b7d-80a3-4629-b746-573fd72e63a9', 'ip_version': 6, 'cidr': '2a04:ec67:17e9:7927:d125:2473::/96', 'allocation_pools': [{'start': '2a04:ec67:17e9:7927:d125:2473:0:2', 'end': '2a04:ec67:17e9:7927:d125:2473:ffff:fffe'}], 'gateway_ip': '2a04:ec67:17e9:7927:d125:2473:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a04:ec67:17e9:7927:d125:2473:0:2', 'tags': [], 'project_id': 'e01ba2d80e2f4ee9bfeca98584f42a69'}} 2026-01-29 11:46:02,192 - INFO - Created VN ctest-vn4-43717625 2026-01-29 11:46:02,244 - DEBUG - VN ctest-vn4-43717625 UUID is b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:02,520 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9fd6b7d-80a3-4629-b746-573fd72e63a9', 'name': 'ctest-vn4-43717625', 'tenant_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'project_id': 'e01ba2d80e2f4ee9bfeca98584f42a69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a94fcc0-6261-4669-8748-57d97815386b', '8b0030e1-3b7f-4390-9fb1-794657d02258'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24927069', 'ctest-vn4-43717625'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24927069', 'ctest-policy1-79725874']], 'subnet_ipam': [{'subnet_cidr': '212.131.1.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a04:ec67:17e9:7927:d125:2473::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 11:46:02,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 11:46:02,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 11:46:03,015 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16b31a3a-2437-4367-ad33-aa630821d7a4 2026-01-29 11:46:03,028 - DEBUG - Requesting: http://10.0.0.38:8082/project/e01ba2d8-0e2f-4ee9-bfec-a98584f42a69 2026-01-29 11:46:03,109 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,120 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,136 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,143 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/626facf6-9df3-49a8-8c17-e90039961a61 2026-01-29 11:46:03,150 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 11:46:03,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,177 - INFO - Verified VN network id 11 for VN b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,177 - INFO - Verifications in API Server for VN ctest-vn4-43717625 passed 2026-01-29 11:46:03,177 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,189 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,206 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/626facf6-9df3-49a8-8c17-e90039961a61 2026-01-29 11:46:03,219 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24927069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13401986252897732137', 'uuid-lslong': '13206338889015255977'}, 'enable': 'true', 'created': '2026-01-29T11:46:01', 'last-modified': '2026-01-29T11:46:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.797556'} 2026-01-29 11:46:03,225 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 11:46:03,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43717625 passed 2026-01-29 11:46:03,225 - DEBUG - ====Verifying policy data for ctest-vn4-43717625 in API_Server ====== 2026-01-29 11:46:03,226 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 11:46:03,232 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16b31a3a-2437-4367-ad33-aa630821d7a4 2026-01-29 11:46:03,242 - DEBUG - Requesting: http://10.0.0.38:8082/project/e01ba2d8-0e2f-4ee9-bfec-a98584f42a69 2026-01-29 11:46:03,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9fd6b7d-80a3-4629-b746-573fd72e63a9 2026-01-29 11:46:03,326 - DEBUG - ==>Verifying data for policy with id: 91b1bb5d-9272-4e9d-9a49-b0f1ce3f5524, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24927069', 'ctest-policy1-79725874'] 2026-01-29 11:46:03,326 - INFO - VN ctest-vn4-43717625 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 11:46:03,326 - DEBUG - Verifying the vn in opserver 2026-01-29 11:46:03,326 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625 virtual network link through opserver 10.0.0.38 2026-01-29 11:46:03,327 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-29 11:46:03,623 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-29 11:46:03,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625?flat'} 2026-01-29 11:46:03,691 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24927069:ctest-vn4-43717625 is found in opserver 2026-01-29 11:46:03,701 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 11:46:03,705 - DEBUG - VRF ids for VN ctest-vn4-43717625: {} 2026-01-29 11:46:03,706 - DEBUG - ====Verifying data for ctest-policy1-79725874 in API_Server ====== 2026-01-29 11:46:03,706 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 11:46:03,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16b31a3a-2437-4367-ad33-aa630821d7a4 2026-01-29 11:46:03,724 - DEBUG - Requesting: http://10.0.0.38:8082/project/e01ba2d8-0e2f-4ee9-bfec-a98584f42a69 2026-01-29 11:46:03,797 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/91b1bb5d-9272-4e9d-9a49-b0f1ce3f5524 2026-01-29 11:46:03,810 - INFO - Verified policy ctest-policy1-79725874 in API Server, Result: True 2026-01-29 11:46:03,811 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 11:46:03,821 - INFO - Deleting VN ctest-vn4-43717625 2026-01-29 11:46:03,941 - DEBUG - Response for deleting network () 2026-01-29 11:46:03,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6b433469-1cd6-48ba-83c8-79ae06b5bdda 2026-01-29 11:46:03,946 - DEBUG - Response Code: 404 2026-01-29 11:46:03,946 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 11:46:03,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/16b31a3a-2437-4367-ad33-aa630821d7a4 2026-01-29 11:46:04,005 - DEBUG - Requesting: http://10.0.0.38:8082/project/e01ba2d8-0e2f-4ee9-bfec-a98584f42a69 2026-01-29 11:46:04,071 - INFO - Validated that VN ctest-vn4-43717625 is not found in API Server 2026-01-29 11:46:04,080 - DEBUG - VN ctest-vn4-43717625 is not present in Agent 10.0.0.38 2026-01-29 11:46:04,080 - INFO - Validated that VN ctest-vn4-43717625 is not in any agent 2026-01-29 11:46:04,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43717625 info 2026-01-29 11:46:04,117 - INFO - Deleted policy ctest-policy1-79725874 2026-01-29 11:46:04,279 - DEBUG - policy ctest-policy1-79725874 is not found in API Server 2026-01-29 11:46:04,534 - DEBUG - No XMPP flaps were noticed during the test