2026-03-30 13:33:57,338 - INFO - Domain Default found not creating 2026-03-30 13:33:57,533 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17810542 not found, creating it 2026-03-30 13:33:58,021 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17810542, ID : ed609faa-7d01-48f4-b057-9d2f9fe24168 2026-03-30 13:33:59,580 - INFO - ================================================================================ 2026-03-30 13:33:59,581 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:33:59,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0'}} with 2026-03-30 13:33:59,841 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:33:59,841 - INFO - 2026-03-30 13:33:59,841 - INFO - ================================================================================ 2026-03-30 13:33:59,841 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 13:33:59,841 - 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-03-30 13:34:00,136 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0'}} with 2026-03-30 13:34:00,136 - INFO - Initial checks done. Running the testcase now 2026-03-30 13:34:00,136 - INFO - 2026-03-30 13:34:00,512 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669, 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-17810542:ctest-vn4-08571669, 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-17810542:ctest-vn4-08571669, 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-17810542:ctest-vn4-08571669, 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-03-30 13:34:01,050 - DEBUG - Response for create_network : {'network': {'id': '7cae1ba5-30ee-415b-acf2-1ddf8d22dc52', 'name': 'ctest-vn4-08571669', 'tenant_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'project_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17810542', 'ctest-vn4-08571669'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:34:01,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b7326cc-a465-4355-9188-3caa40f08ff0', 'name': '', 'tenant_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'network_id': '7cae1ba5-30ee-415b-acf2-1ddf8d22dc52', 'ip_version': 4, 'cidr': '5.186.188.64/26', 'allocation_pools': [{'start': '5.186.188.66', 'end': '5.186.188.126'}], 'gateway_ip': '5.186.188.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.186.188.66', 'tags': [], 'project_id': 'ed609faa7d0148f4b0579d2f9fe24168'}} 2026-03-30 13:34:01,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '58cc1aeb-e4f9-453d-a71c-a5987bb2214b', 'name': '', 'tenant_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'network_id': '7cae1ba5-30ee-415b-acf2-1ddf8d22dc52', 'ip_version': 6, 'cidr': '3c8b:75f0:347f:a9b4:9f07:ae2e::/96', 'allocation_pools': [{'start': '3c8b:75f0:347f:a9b4:9f07:ae2e:0:2', 'end': '3c8b:75f0:347f:a9b4:9f07:ae2e:ffff:fffe'}], 'gateway_ip': '3c8b:75f0:347f:a9b4:9f07:ae2e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c8b:75f0:347f:a9b4:9f07:ae2e:0:2', 'tags': [], 'project_id': 'ed609faa7d0148f4b0579d2f9fe24168'}} 2026-03-30 13:34:01,458 - INFO - Created VN ctest-vn4-08571669 2026-03-30 13:34:01,514 - DEBUG - VN ctest-vn4-08571669 UUID is 7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:01,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7cae1ba5-30ee-415b-acf2-1ddf8d22dc52', 'name': 'ctest-vn4-08571669', 'tenant_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'project_id': 'ed609faa7d0148f4b0579d2f9fe24168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b7326cc-a465-4355-9188-3caa40f08ff0', '58cc1aeb-e4f9-453d-a71c-a5987bb2214b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17810542', 'ctest-vn4-08571669'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17810542', 'ctest-policy1-34033643']], 'subnet_ipam': [{'subnet_cidr': '5.186.188.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c8b:75f0:347f:a9b4:9f07:ae2e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 13:34:01,895 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 13:34:02,197 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 13:34:02,232 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f 2026-03-30 13:34:02,244 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed609faa-7d01-48f4-b057-9d2f9fe24168 2026-03-30 13:34:02,330 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,342 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,355 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:02,364 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:02,372 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2d521078-6049-4a54-b744-c7c94066ff80 2026-03-30 13:34:02,379 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:34:02,379 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,390 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:02,409 - INFO - Verified VN network id 12 for VN 7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,410 - INFO - Verifications in API Server for VN ctest-vn4-08571669 passed 2026-03-30 13:34:02,410 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,419 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:02,427 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:02,435 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2d521078-6049-4a54-b744-c7c94066ff80 2026-03-30 13:34:02,449 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17810542', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8984148702955192667', 'uuid-lslong': '12462055964870368338'}, 'enable': 'true', 'created': '2026-03-30T13:34:01', 'last-modified': '2026-03-30T13:34:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747787'} 2026-03-30 13:34:02,457 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 13:34:02,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08571669 passed 2026-03-30 13:34:02,457 - DEBUG - ====Verifying policy data for ctest-vn4-08571669 in API_Server ====== 2026-03-30 13:34:02,458 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 13:34:02,465 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f 2026-03-30 13:34:02,477 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed609faa-7d01-48f4-b057-9d2f9fe24168 2026-03-30 13:34:02,547 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7cae1ba5-30ee-415b-acf2-1ddf8d22dc52 2026-03-30 13:34:02,557 - DEBUG - ==>Verifying data for policy with id: 1b3872f1-a8e6-4271-8af2-545d39117b5a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17810542', 'ctest-policy1-34033643'] 2026-03-30 13:34:02,557 - INFO - VN ctest-vn4-08571669 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 13:34:02,557 - DEBUG - Verifying the vn in opserver 2026-03-30 13:34:02,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669 virtual network link through opserver 10.0.0.41 2026-03-30 13:34:02,557 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-30 13:34:02,857 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-30 13:34:02,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669?flat'} 2026-03-30 13:34:02,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17810542:ctest-vn4-08571669 is found in opserver 2026-03-30 13:34:02,938 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 13:34:02,942 - DEBUG - VRF ids for VN ctest-vn4-08571669: {} 2026-03-30 13:34:02,943 - DEBUG - ====Verifying data for ctest-policy1-34033643 in API_Server ====== 2026-03-30 13:34:02,943 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 13:34:02,948 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f 2026-03-30 13:34:02,959 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed609faa-7d01-48f4-b057-9d2f9fe24168 2026-03-30 13:34:03,027 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/1b3872f1-a8e6-4271-8af2-545d39117b5a 2026-03-30 13:34:03,037 - INFO - Verified policy ctest-policy1-34033643 in API Server, Result: True 2026-03-30 13:34:03,037 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 13:34:03,046 - INFO - Deleting VN ctest-vn4-08571669 2026-03-30 13:34:03,175 - DEBUG - Response for deleting network () 2026-03-30 13:34:03,175 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9270a2b8-e010-4959-846f-81847380abc9 2026-03-30 13:34:03,179 - DEBUG - Response Code: 404 2026-03-30 13:34:03,179 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 13:34:03,184 - DEBUG - Requesting: http://10.0.0.41:8082/domain/60f5938c-0bef-4b1b-b6de-9bdb7ee5b82f 2026-03-30 13:34:03,236 - DEBUG - Requesting: http://10.0.0.41:8082/project/ed609faa-7d01-48f4-b057-9d2f9fe24168 2026-03-30 13:34:03,306 - INFO - Validated that VN ctest-vn4-08571669 is not found in API Server 2026-03-30 13:34:03,315 - DEBUG - VN ctest-vn4-08571669 is not present in Agent 10.0.0.41 2026-03-30 13:34:03,315 - INFO - Validated that VN ctest-vn4-08571669 is not in any agent 2026-03-30 13:34:03,329 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08571669 info 2026-03-30 13:34:03,354 - INFO - Deleted policy ctest-policy1-34033643 2026-03-30 13:34:03,522 - DEBUG - policy ctest-policy1-34033643 is not found in API Server 2026-03-30 13:34:03,796 - DEBUG - No XMPP flaps were noticed during the test