2026-05-12 13:20:59,627 - INFO - Domain Default found not creating 2026-05-12 13:20:59,881 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65856809 not found, creating it 2026-05-12 13:21:00,501 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65856809, ID : 831f3e9c-6cab-44f1-83e4-d39a96684c3f 2026-05-12 13:21:02,492 - INFO - ================================================================================ 2026-05-12 13:21:02,492 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-12 13:21:02,781 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-05-12 13:21:02,781 - INFO - Initial checks done. Running the testcase now 2026-05-12 13:21:02,781 - INFO - 2026-05-12 13:21:02,781 - INFO - ================================================================================ 2026-05-12 13:21:02,781 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-12 13:21:02,781 - 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-12 13:21:03,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-05-12 13:21:03,081 - INFO - Initial checks done. Running the testcase now 2026-05-12 13:21:03,081 - INFO - 2026-05-12 13:21:03,493 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470, 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-65856809:ctest-vn4-72711470, 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-65856809:ctest-vn4-72711470, 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-65856809:ctest-vn4-72711470, 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-12 13:21:04,119 - DEBUG - Response for create_network : {'network': {'id': 'b3e3996a-f10e-4eb8-8759-af872755dcdf', 'name': 'ctest-vn4-72711470', 'tenant_id': '831f3e9c6cab44f183e4d39a96684c3f', 'project_id': '831f3e9c6cab44f183e4d39a96684c3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65856809', 'ctest-vn4-72711470'], 'port_security_enabled': True, 'description': ''}} 2026-05-12 13:21:04,364 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae65ca13-d09f-47c9-bfa8-97fb6baee9f6', 'name': '', 'tenant_id': '831f3e9c6cab44f183e4d39a96684c3f', 'network_id': 'b3e3996a-f10e-4eb8-8759-af872755dcdf', 'ip_version': 4, 'cidr': '18.147.189.64/26', 'allocation_pools': [{'start': '18.147.189.66', 'end': '18.147.189.126'}], 'gateway_ip': '18.147.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.147.189.66', 'tags': [], 'project_id': '831f3e9c6cab44f183e4d39a96684c3f'}} 2026-05-12 13:21:04,556 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bfb7cac-948d-4b70-83f7-5a71fff6aa70', 'name': '', 'tenant_id': '831f3e9c6cab44f183e4d39a96684c3f', 'network_id': 'b3e3996a-f10e-4eb8-8759-af872755dcdf', 'ip_version': 6, 'cidr': '24a8:7415:66d9:4e3:ea53:af55::/96', 'allocation_pools': [{'start': '24a8:7415:66d9:4e3:ea53:af55:0:2', 'end': '24a8:7415:66d9:4e3:ea53:af55:ffff:fffe'}], 'gateway_ip': '24a8:7415:66d9:4e3:ea53:af55:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24a8:7415:66d9:4e3:ea53:af55:0:2', 'tags': [], 'project_id': '831f3e9c6cab44f183e4d39a96684c3f'}} 2026-05-12 13:21:04,586 - INFO - Created VN ctest-vn4-72711470 2026-05-12 13:21:04,646 - DEBUG - VN ctest-vn4-72711470 UUID is b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:04,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3e3996a-f10e-4eb8-8759-af872755dcdf', 'name': 'ctest-vn4-72711470', 'tenant_id': '831f3e9c6cab44f183e4d39a96684c3f', 'project_id': '831f3e9c6cab44f183e4d39a96684c3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae65ca13-d09f-47c9-bfa8-97fb6baee9f6', '2bfb7cac-948d-4b70-83f7-5a71fff6aa70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65856809', 'ctest-vn4-72711470'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65856809', 'ctest-policy1-66846082']], 'subnet_ipam': [{'subnet_cidr': '18.147.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24a8:7415:66d9:4e3:ea53:af55::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-12 13:21:05,098 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-12 13:21:05,419 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-12 13:21:05,470 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347 2026-05-12 13:21:05,488 - DEBUG - Requesting: http://10.0.0.22:8082/project/831f3e9c-6cab-44f1-83e4-d39a96684c3f 2026-05-12 13:21:05,575 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,596 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,611 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:05,623 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:05,634 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/66ac6ac6-f8dd-4d2d-9475-e4cb1d8247ea 2026-05-12 13:21:05,644 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-12 13:21:05,645 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,660 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:05,684 - INFO - Verified VN network id 11 for VN b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,684 - INFO - Verifications in API Server for VN ctest-vn4-72711470 passed 2026-05-12 13:21:05,685 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,698 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:05,708 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:05,719 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/66ac6ac6-f8dd-4d2d-9475-e4cb1d8247ea 2026-05-12 13:21:05,735 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65856809', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12962372837092249272', 'uuid-lslong': '9753019463062904031'}, 'enable': 'true', 'created': '2026-05-12T13:21:04', 'last-modified': '2026-05-12T13:21:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.851663'} 2026-05-12 13:21:05,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-12 13:21:05,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72711470 passed 2026-05-12 13:21:05,743 - DEBUG - ====Verifying policy data for ctest-vn4-72711470 in API_Server ====== 2026-05-12 13:21:05,743 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-12 13:21:05,752 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347 2026-05-12 13:21:05,770 - DEBUG - Requesting: http://10.0.0.22:8082/project/831f3e9c-6cab-44f1-83e4-d39a96684c3f 2026-05-12 13:21:05,858 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b3e3996a-f10e-4eb8-8759-af872755dcdf 2026-05-12 13:21:05,872 - DEBUG - ==>Verifying data for policy with id: b8f01cf5-842d-4acc-85b1-21d1a3a842dc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65856809', 'ctest-policy1-66846082'] 2026-05-12 13:21:05,872 - INFO - VN ctest-vn4-72711470 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-12 13:21:05,872 - DEBUG - Verifying the vn in opserver 2026-05-12 13:21:05,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470 virtual network link through opserver 10.0.0.22 2026-05-12 13:21:05,873 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-12 13:21:06,183 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-12 13:21:06,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470?flat'} 2026-05-12 13:21:06,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65856809:ctest-vn4-72711470 is found in opserver 2026-05-12 13:21:06,290 - DEBUG - Do not have enough data to verify VN in agent 2026-05-12 13:21:06,296 - DEBUG - VRF ids for VN ctest-vn4-72711470: {} 2026-05-12 13:21:06,296 - DEBUG - ====Verifying data for ctest-policy1-66846082 in API_Server ====== 2026-05-12 13:21:06,296 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-12 13:21:06,304 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347 2026-05-12 13:21:06,320 - DEBUG - Requesting: http://10.0.0.22:8082/project/831f3e9c-6cab-44f1-83e4-d39a96684c3f 2026-05-12 13:21:06,404 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/b8f01cf5-842d-4acc-85b1-21d1a3a842dc 2026-05-12 13:21:06,417 - INFO - Verified policy ctest-policy1-66846082 in API Server, Result: True 2026-05-12 13:21:06,417 - INFO - Done with setup and verification, moving onto test .. 2026-05-12 13:21:06,429 - INFO - Deleting VN ctest-vn4-72711470 2026-05-12 13:21:06,584 - DEBUG - Response for deleting network () 2026-05-12 13:21:06,584 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb07ec2-148c-43c1-9063-c08ef3ba4a97 2026-05-12 13:21:06,592 - DEBUG - Response Code: 404 2026-05-12 13:21:06,592 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-12 13:21:06,601 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a645f060-b705-4e79-b438-276cfc593347 2026-05-12 13:21:06,665 - DEBUG - Requesting: http://10.0.0.22:8082/project/831f3e9c-6cab-44f1-83e4-d39a96684c3f 2026-05-12 13:21:06,751 - INFO - Validated that VN ctest-vn4-72711470 is not found in API Server 2026-05-12 13:21:06,763 - DEBUG - VN ctest-vn4-72711470 is not present in Agent 10.0.0.22 2026-05-12 13:21:06,763 - INFO - Validated that VN ctest-vn4-72711470 is not in any agent 2026-05-12 13:21:06,786 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72711470 info 2026-05-12 13:21:06,831 - INFO - Deleted policy ctest-policy1-66846082 2026-05-12 13:21:07,022 - DEBUG - policy ctest-policy1-66846082 is not found in API Server 2026-05-12 13:21:07,294 - DEBUG - No XMPP flaps were noticed during the test 2026-05-12 13:21:07,294 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-12 13:21:07,294 - INFO - -------------------------------------------------------------------------------- 2026-05-12 13:21:07,612 - DEBUG - No XMPP flaps were noticed during the test 2026-05-12 13:21:07,612 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-12 13:21:07,612 - INFO - -------------------------------------------------------------------------------- 2026-05-12 13:21:08,361 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65856809, ID : 831f3e9c-6cab-44f1-83e4-d39a96684c3f