2026-05-07 13:35:55,140 - INFO - Domain Default found not creating 2026-05-07 13:35:55,360 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03609066 not found, creating it 2026-05-07 13:35:55,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03609066, ID : 37af3a9d-b9a3-4a51-b288-ca065ea1ca20 2026-05-07 13:35:57,640 - INFO - ================================================================================ 2026-05-07 13:35:57,640 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 13:35:57,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-07 13:35:57,904 - INFO - Initial checks done. Running the testcase now 2026-05-07 13:35:57,904 - INFO - 2026-05-07 13:35:57,904 - INFO - ================================================================================ 2026-05-07 13:35:57,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 13:35:57,904 - 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-05-07 13:35:58,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-07 13:35:58,200 - INFO - Initial checks done. Running the testcase now 2026-05-07 13:35:58,200 - INFO - 2026-05-07 13:35:58,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419, 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-03609066:ctest-vn4-14228419, 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-03609066:ctest-vn4-14228419, 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-03609066:ctest-vn4-14228419, 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-05-07 13:35:59,190 - DEBUG - Response for create_network : {'network': {'id': '58fc7e15-b0db-4444-b7b6-306a967ce8e4', 'name': 'ctest-vn4-14228419', 'tenant_id': '37af3a9db9a34a51b288ca065ea1ca20', 'project_id': '37af3a9db9a34a51b288ca065ea1ca20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03609066', 'ctest-vn4-14228419'], 'port_security_enabled': True, 'description': ''}} 2026-05-07 13:35:59,368 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4001d05-bdc4-4148-a641-a22b1d7f6439', 'name': '', 'tenant_id': '37af3a9db9a34a51b288ca065ea1ca20', 'network_id': '58fc7e15-b0db-4444-b7b6-306a967ce8e4', 'ip_version': 4, 'cidr': '218.169.57.192/26', 'allocation_pools': [{'start': '218.169.57.194', 'end': '218.169.57.254'}], 'gateway_ip': '218.169.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.169.57.194', 'tags': [], 'project_id': '37af3a9db9a34a51b288ca065ea1ca20'}} 2026-05-07 13:35:59,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bc8ca85-4d65-44d0-a57a-c0c9b8a4cb4a', 'name': '', 'tenant_id': '37af3a9db9a34a51b288ca065ea1ca20', 'network_id': '58fc7e15-b0db-4444-b7b6-306a967ce8e4', 'ip_version': 6, 'cidr': '23ba:b139:7683:67b0:8d53:b37a::/96', 'allocation_pools': [{'start': '23ba:b139:7683:67b0:8d53:b37a:0:2', 'end': '23ba:b139:7683:67b0:8d53:b37a:ffff:fffe'}], 'gateway_ip': '23ba:b139:7683:67b0:8d53:b37a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23ba:b139:7683:67b0:8d53:b37a:0:2', 'tags': [], 'project_id': '37af3a9db9a34a51b288ca065ea1ca20'}} 2026-05-07 13:35:59,544 - INFO - Created VN ctest-vn4-14228419 2026-05-07 13:35:59,598 - DEBUG - VN ctest-vn4-14228419 UUID is 58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:35:59,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58fc7e15-b0db-4444-b7b6-306a967ce8e4', 'name': 'ctest-vn4-14228419', 'tenant_id': '37af3a9db9a34a51b288ca065ea1ca20', 'project_id': '37af3a9db9a34a51b288ca065ea1ca20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4001d05-bdc4-4148-a641-a22b1d7f6439', '8bc8ca85-4d65-44d0-a57a-c0c9b8a4cb4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03609066', 'ctest-vn4-14228419'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03609066', 'ctest-policy1-06321427']], 'subnet_ipam': [{'subnet_cidr': '218.169.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23ba:b139:7683:67b0:8d53:b37a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-07 13:36:00,007 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 13:36:00,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 13:36:00,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc 2026-05-07 13:36:00,401 - DEBUG - Requesting: http://10.0.0.50:8082/project/37af3a9d-b9a3-4a51-b288-ca065ea1ca20 2026-05-07 13:36:00,477 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,492 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,504 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:00,512 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:00,520 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aa70cac-477a-42ce-9247-0c58ae33801b 2026-05-07 13:36:00,528 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 13:36:00,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:00,559 - INFO - Verified VN network id 12 for VN 58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,560 - INFO - Verifications in API Server for VN ctest-vn4-14228419 passed 2026-05-07 13:36:00,560 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,571 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:00,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:00,592 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aa70cac-477a-42ce-9247-0c58ae33801b 2026-05-07 13:36:00,609 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03609066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6412138601095316548', 'uuid-lslong': '13237821389051586788'}, 'enable': 'true', 'created': '2026-05-07T13:35:59', 'last-modified': '2026-05-07T13:35:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.809312'} 2026-05-07 13:36:00,618 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 13:36:00,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14228419 passed 2026-05-07 13:36:00,618 - DEBUG - ====Verifying policy data for ctest-vn4-14228419 in API_Server ====== 2026-05-07 13:36:00,619 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 13:36:00,626 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc 2026-05-07 13:36:00,641 - DEBUG - Requesting: http://10.0.0.50:8082/project/37af3a9d-b9a3-4a51-b288-ca065ea1ca20 2026-05-07 13:36:00,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58fc7e15-b0db-4444-b7b6-306a967ce8e4 2026-05-07 13:36:00,728 - DEBUG - ==>Verifying data for policy with id: 56471eda-70c9-4539-a0c3-3af30bfc77fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03609066', 'ctest-policy1-06321427'] 2026-05-07 13:36:00,728 - INFO - VN ctest-vn4-14228419 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-07 13:36:00,728 - DEBUG - Verifying the vn in opserver 2026-05-07 13:36:00,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419 virtual network link through opserver 10.0.0.50 2026-05-07 13:36:00,729 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-07 13:36:01,084 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-07 13:36:01,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419?flat'} 2026-05-07 13:36:01,159 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03609066:ctest-vn4-14228419 is found in opserver 2026-05-07 13:36:01,170 - DEBUG - Do not have enough data to verify VN in agent 2026-05-07 13:36:01,176 - DEBUG - VRF ids for VN ctest-vn4-14228419: {} 2026-05-07 13:36:01,177 - DEBUG - ====Verifying data for ctest-policy1-06321427 in API_Server ====== 2026-05-07 13:36:01,177 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 13:36:01,184 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc 2026-05-07 13:36:01,202 - DEBUG - Requesting: http://10.0.0.50:8082/project/37af3a9d-b9a3-4a51-b288-ca065ea1ca20 2026-05-07 13:36:01,279 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/56471eda-70c9-4539-a0c3-3af30bfc77fe 2026-05-07 13:36:01,292 - INFO - Verified policy ctest-policy1-06321427 in API Server, Result: True 2026-05-07 13:36:01,293 - INFO - Done with setup and verification, moving onto test .. 2026-05-07 13:36:01,302 - INFO - Deleting VN ctest-vn4-14228419 2026-05-07 13:36:01,492 - DEBUG - Response for deleting network () 2026-05-07 13:36:01,492 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f493e2e5-449a-4111-81e9-b942890fc3bd 2026-05-07 13:36:01,499 - DEBUG - Response Code: 404 2026-05-07 13:36:01,500 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 13:36:01,507 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc 2026-05-07 13:36:01,560 - DEBUG - Requesting: http://10.0.0.50:8082/project/37af3a9d-b9a3-4a51-b288-ca065ea1ca20 2026-05-07 13:36:01,639 - INFO - Validated that VN ctest-vn4-14228419 is not found in API Server 2026-05-07 13:36:01,650 - DEBUG - VN ctest-vn4-14228419 is not present in Agent 10.0.0.50 2026-05-07 13:36:01,650 - INFO - Validated that VN ctest-vn4-14228419 is not in any agent 2026-05-07 13:36:01,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14228419 info 2026-05-07 13:36:01,698 - INFO - Deleted policy ctest-policy1-06321427 2026-05-07 13:36:01,878 - DEBUG - policy ctest-policy1-06321427 is not found in API Server 2026-05-07 13:36:02,141 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 13:36:02,142 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-07 13:36:02,142 - INFO - -------------------------------------------------------------------------------- 2026-05-07 13:36:02,459 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 13:36:02,459 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-07 13:36:02,460 - INFO - -------------------------------------------------------------------------------- 2026-05-07 13:36:03,495 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03609066, ID : 37af3a9d-b9a3-4a51-b288-ca065ea1ca20