2026-07-17 21:57:14,009 - INFO - Domain Default found not creating 2026-07-17 21:57:14,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37993457 not found, creating it 2026-07-17 21:57:14,637 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37993457, ID : c8e20a7f-f6a0-4e10-b362-d41a588fa01b 2026-07-17 21:57:16,155 - INFO - ================================================================================ 2026-07-17 21:57:16,155 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 21:57:16,413 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-17 21:57:16,413 - INFO - Initial checks done. Running the testcase now 2026-07-17 21:57:16,413 - INFO - 2026-07-17 21:57:16,413 - INFO - ================================================================================ 2026-07-17 21:57:16,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 21:57:16,413 - 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-07-17 21:57:16,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-07-17 21:57:16,704 - INFO - Initial checks done. Running the testcase now 2026-07-17 21:57:16,704 - INFO - 2026-07-17 21:57:17,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289, 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-37993457:ctest-vn4-96780289, 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-37993457:ctest-vn4-96780289, 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-37993457:ctest-vn4-96780289, 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-07-17 21:57:17,623 - DEBUG - Response for create_network : {'network': {'id': '6f14f919-7178-4bdc-acaa-fddb14ea7c15', 'name': 'ctest-vn4-96780289', 'tenant_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'project_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37993457', 'ctest-vn4-96780289'], 'port_security_enabled': True, 'description': ''}} 2026-07-17 21:57:17,847 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3c14e4b-2cfb-4387-8eba-618f65f3373f', 'name': '', 'tenant_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'network_id': '6f14f919-7178-4bdc-acaa-fddb14ea7c15', 'ip_version': 4, 'cidr': '22.212.249.64/26', 'allocation_pools': [{'start': '22.212.249.66', 'end': '22.212.249.126'}], 'gateway_ip': '22.212.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.212.249.66', 'tags': [], 'project_id': 'c8e20a7ff6a04e10b362d41a588fa01b'}} 2026-07-17 21:57:18,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bf2e12f-abe9-4811-94fd-f550dc9aa065', 'name': '', 'tenant_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'network_id': '6f14f919-7178-4bdc-acaa-fddb14ea7c15', 'ip_version': 6, 'cidr': '2b96:cdbb:3b9d:9f00:c395:f42c::/96', 'allocation_pools': [{'start': '2b96:cdbb:3b9d:9f00:c395:f42c:0:2', 'end': '2b96:cdbb:3b9d:9f00:c395:f42c:ffff:fffe'}], 'gateway_ip': '2b96:cdbb:3b9d:9f00:c395:f42c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b96:cdbb:3b9d:9f00:c395:f42c:0:2', 'tags': [], 'project_id': 'c8e20a7ff6a04e10b362d41a588fa01b'}} 2026-07-17 21:57:18,046 - INFO - Created VN ctest-vn4-96780289 2026-07-17 21:57:18,102 - DEBUG - VN ctest-vn4-96780289 UUID is 6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:18,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f14f919-7178-4bdc-acaa-fddb14ea7c15', 'name': 'ctest-vn4-96780289', 'tenant_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'project_id': 'c8e20a7ff6a04e10b362d41a588fa01b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3c14e4b-2cfb-4387-8eba-618f65f3373f', '2bf2e12f-abe9-4811-94fd-f550dc9aa065'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37993457', 'ctest-vn4-96780289'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37993457', 'ctest-policy1-89158922']], 'subnet_ipam': [{'subnet_cidr': '22.212.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b96:cdbb:3b9d:9f00:c395:f42c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-17 21:57:18,482 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-17 21:57:18,821 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-17 21:57:18,852 - DEBUG - Requesting: http://10.0.0.242:8082/domain/217e0cdf-de7f-454c-afcb-a4e24371dfad 2026-07-17 21:57:18,865 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8e20a7f-f6a0-4e10-b362-d41a588fa01b 2026-07-17 21:57:18,944 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:18,958 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:18,968 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:18,977 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:18,985 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/1e11b3eb-e3c5-4034-bd85-af70d4393aef 2026-07-17 21:57:18,993 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 21:57:18,993 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:19,002 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:19,018 - INFO - Verified VN network id 11 for VN 6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:19,018 - INFO - Verifications in API Server for VN ctest-vn4-96780289 passed 2026-07-17 21:57:19,018 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:19,027 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:19,036 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:19,043 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/1e11b3eb-e3c5-4034-bd85-af70d4393aef 2026-07-17 21:57:19,055 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37993457', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8004296325417421788', 'uuid-lslong': '12442036037954993173'}, 'enable': 'true', 'created': '2026-07-17T21:57:17', 'last-modified': '2026-07-17T21:57:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780497'} 2026-07-17 21:57:19,061 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 21:57:19,062 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96780289 passed 2026-07-17 21:57:19,062 - DEBUG - ====Verifying policy data for ctest-vn4-96780289 in API_Server ====== 2026-07-17 21:57:19,062 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-17 21:57:19,068 - DEBUG - Requesting: http://10.0.0.242:8082/domain/217e0cdf-de7f-454c-afcb-a4e24371dfad 2026-07-17 21:57:19,079 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8e20a7f-f6a0-4e10-b362-d41a588fa01b 2026-07-17 21:57:19,152 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6f14f919-7178-4bdc-acaa-fddb14ea7c15 2026-07-17 21:57:19,162 - DEBUG - ==>Verifying data for policy with id: 50ce8020-d34d-4ced-9b90-e149e8c8805b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37993457', 'ctest-policy1-89158922'] 2026-07-17 21:57:19,162 - INFO - VN ctest-vn4-96780289 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-17 21:57:19,162 - DEBUG - Verifying the vn in opserver 2026-07-17 21:57:19,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289 virtual network link through opserver 10.0.0.242 2026-07-17 21:57:19,162 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-17 21:57:19,483 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-07-17 21:57:19,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289?flat'} 2026-07-17 21:57:19,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37993457:ctest-vn4-96780289 is found in opserver 2026-07-17 21:57:19,547 - DEBUG - Do not have enough data to verify VN in agent 2026-07-17 21:57:19,553 - DEBUG - VRF ids for VN ctest-vn4-96780289: {} 2026-07-17 21:57:19,554 - DEBUG - ====Verifying data for ctest-policy1-89158922 in API_Server ====== 2026-07-17 21:57:19,554 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-17 21:57:19,560 - DEBUG - Requesting: http://10.0.0.242:8082/domain/217e0cdf-de7f-454c-afcb-a4e24371dfad 2026-07-17 21:57:19,571 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8e20a7f-f6a0-4e10-b362-d41a588fa01b 2026-07-17 21:57:19,642 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/50ce8020-d34d-4ced-9b90-e149e8c8805b 2026-07-17 21:57:19,653 - INFO - Verified policy ctest-policy1-89158922 in API Server, Result: True 2026-07-17 21:57:19,653 - INFO - Done with setup and verification, moving onto test .. 2026-07-17 21:57:19,661 - INFO - Deleting VN ctest-vn4-96780289 2026-07-17 21:57:19,781 - DEBUG - Response for deleting network () 2026-07-17 21:57:19,781 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/adb174aa-0d17-44e1-9927-bd5a82dbc968 2026-07-17 21:57:19,786 - DEBUG - Response Code: 404 2026-07-17 21:57:19,786 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-07-17 21:57:19,791 - DEBUG - Requesting: http://10.0.0.242:8082/domain/217e0cdf-de7f-454c-afcb-a4e24371dfad 2026-07-17 21:57:19,843 - DEBUG - Requesting: http://10.0.0.242:8082/project/c8e20a7f-f6a0-4e10-b362-d41a588fa01b 2026-07-17 21:57:19,913 - INFO - Validated that VN ctest-vn4-96780289 is not found in API Server 2026-07-17 21:57:19,925 - DEBUG - VN ctest-vn4-96780289 is not present in Agent 10.0.0.242 2026-07-17 21:57:19,925 - INFO - Validated that VN ctest-vn4-96780289 is not in any agent 2026-07-17 21:57:19,939 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96780289 info 2026-07-17 21:57:19,964 - INFO - Deleted policy ctest-policy1-89158922 2026-07-17 21:57:20,130 - DEBUG - policy ctest-policy1-89158922 is not found in API Server 2026-07-17 21:57:20,385 - DEBUG - No XMPP flaps were noticed during the test 2026-07-17 21:57:20,386 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-17 21:57:20,386 - INFO - -------------------------------------------------------------------------------- 2026-07-17 21:57:20,681 - DEBUG - No XMPP flaps were noticed during the test 2026-07-17 21:57:20,681 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-17 21:57:20,681 - INFO - -------------------------------------------------------------------------------- 2026-07-17 21:57:21,393 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37993457, ID : c8e20a7f-f6a0-4e10-b362-d41a588fa01b