2026-03-05 17:17:12,844 - INFO - Domain Default found not creating 2026-03-05 17:17:13,050 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71697181 not found, creating it 2026-03-05 17:17:13,513 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71697181, ID : a09a3902-0263-4daa-8ad2-1de978277b36 2026-03-05 17:17:15,157 - INFO - ================================================================================ 2026-03-05 17:17:15,157 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 17:17:15,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-05 17:17:15,416 - INFO - Initial checks done. Running the testcase now 2026-03-05 17:17:15,416 - INFO - 2026-03-05 17:17:15,416 - INFO - ================================================================================ 2026-03-05 17:17:15,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 17:17:15,416 - 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-05 17:17:15,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-05 17:17:15,717 - INFO - Initial checks done. Running the testcase now 2026-03-05 17:17:15,718 - INFO - 2026-03-05 17:17:16,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290, 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-71697181:ctest-vn4-02879290, 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-71697181:ctest-vn4-02879290, 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-71697181:ctest-vn4-02879290, 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-05 17:17:16,707 - DEBUG - Response for create_network : {'network': {'id': '30930ed2-d4fc-459b-867e-61ac5289d8c0', 'name': 'ctest-vn4-02879290', 'tenant_id': 'a09a390202634daa8ad21de978277b36', 'project_id': 'a09a390202634daa8ad21de978277b36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71697181', 'ctest-vn4-02879290'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 17:17:16,874 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c96c2413-1c55-4e8d-af78-c6872612022a', 'name': '', 'tenant_id': 'a09a390202634daa8ad21de978277b36', 'network_id': '30930ed2-d4fc-459b-867e-61ac5289d8c0', 'ip_version': 4, 'cidr': '8.231.96.64/26', 'allocation_pools': [{'start': '8.231.96.66', 'end': '8.231.96.126'}], 'gateway_ip': '8.231.96.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.231.96.66', 'tags': [], 'project_id': 'a09a390202634daa8ad21de978277b36'}} 2026-03-05 17:17:17,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '89f2d4b0-7750-4f8a-a58f-9c9ee90ce50a', 'name': '', 'tenant_id': 'a09a390202634daa8ad21de978277b36', 'network_id': '30930ed2-d4fc-459b-867e-61ac5289d8c0', 'ip_version': 6, 'cidr': '3841:e1e7:c2e6:391:3c57:a106::/96', 'allocation_pools': [{'start': '3841:e1e7:c2e6:391:3c57:a106:0:2', 'end': '3841:e1e7:c2e6:391:3c57:a106:ffff:fffe'}], 'gateway_ip': '3841:e1e7:c2e6:391:3c57:a106:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3841:e1e7:c2e6:391:3c57:a106:0:2', 'tags': [], 'project_id': 'a09a390202634daa8ad21de978277b36'}} 2026-03-05 17:17:17,132 - INFO - Created VN ctest-vn4-02879290 2026-03-05 17:17:17,186 - DEBUG - VN ctest-vn4-02879290 UUID is 30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:17,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30930ed2-d4fc-459b-867e-61ac5289d8c0', 'name': 'ctest-vn4-02879290', 'tenant_id': 'a09a390202634daa8ad21de978277b36', 'project_id': 'a09a390202634daa8ad21de978277b36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c96c2413-1c55-4e8d-af78-c6872612022a', '89f2d4b0-7750-4f8a-a58f-9c9ee90ce50a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71697181', 'ctest-vn4-02879290'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71697181', 'ctest-policy1-98373387']], 'subnet_ipam': [{'subnet_cidr': '8.231.96.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3841:e1e7:c2e6:391:3c57:a106::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 17:17:17,590 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 17:17:17,890 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 17:17:17,924 - DEBUG - Requesting: http://10.0.0.38:8082/domain/453f30e1-a17a-4f59-938c-af4084213e13 2026-03-05 17:17:17,938 - DEBUG - Requesting: http://10.0.0.38:8082/project/a09a3902-0263-4daa-8ad2-1de978277b36 2026-03-05 17:17:18,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,032 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,043 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,056 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,066 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/441f8ef0-9718-4c3b-92f1-39fafd1ba1ac 2026-03-05 17:17:18,074 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 17:17:18,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,100 - INFO - Verified VN network id 11 for VN 30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,100 - INFO - Verifications in API Server for VN ctest-vn4-02879290 passed 2026-03-05 17:17:18,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,112 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,128 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/441f8ef0-9718-4c3b-92f1-39fafd1ba1ac 2026-03-05 17:17:18,142 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71697181', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3500157634076231067', 'uuid-lslong': '9691290840894920896'}, 'enable': 'true', 'created': '2026-03-05T17:17:16', 'last-modified': '2026-03-05T17:17:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748693'} 2026-03-05 17:17:18,153 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 17:17:18,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02879290 passed 2026-03-05 17:17:18,153 - DEBUG - ====Verifying policy data for ctest-vn4-02879290 in API_Server ====== 2026-03-05 17:17:18,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 17:17:18,160 - DEBUG - Requesting: http://10.0.0.38:8082/domain/453f30e1-a17a-4f59-938c-af4084213e13 2026-03-05 17:17:18,173 - DEBUG - Requesting: http://10.0.0.38:8082/project/a09a3902-0263-4daa-8ad2-1de978277b36 2026-03-05 17:17:18,249 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/30930ed2-d4fc-459b-867e-61ac5289d8c0 2026-03-05 17:17:18,262 - DEBUG - ==>Verifying data for policy with id: 2344f8ff-c021-4acb-831f-2ae92706b32e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71697181', 'ctest-policy1-98373387'] 2026-03-05 17:17:18,262 - INFO - VN ctest-vn4-02879290 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 17:17:18,262 - DEBUG - Verifying the vn in opserver 2026-03-05 17:17:18,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290 virtual network link through opserver 10.0.0.38 2026-03-05 17:17:18,263 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-05 17:17:18,571 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-05 17:17:18,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290?flat'} 2026-03-05 17:17:18,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71697181:ctest-vn4-02879290 is found in opserver 2026-03-05 17:17:18,658 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 17:17:18,664 - DEBUG - VRF ids for VN ctest-vn4-02879290: {} 2026-03-05 17:17:18,665 - DEBUG - ====Verifying data for ctest-policy1-98373387 in API_Server ====== 2026-03-05 17:17:18,665 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 17:17:18,670 - DEBUG - Requesting: http://10.0.0.38:8082/domain/453f30e1-a17a-4f59-938c-af4084213e13 2026-03-05 17:17:18,681 - DEBUG - Requesting: http://10.0.0.38:8082/project/a09a3902-0263-4daa-8ad2-1de978277b36 2026-03-05 17:17:18,756 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2344f8ff-c021-4acb-831f-2ae92706b32e 2026-03-05 17:17:18,766 - INFO - Verified policy ctest-policy1-98373387 in API Server, Result: True 2026-03-05 17:17:18,766 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 17:17:18,775 - INFO - Deleting VN ctest-vn4-02879290 2026-03-05 17:17:18,895 - DEBUG - Response for deleting network () 2026-03-05 17:17:18,895 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a8f74619-c5a7-4214-9b15-a95dd0a7bb24 2026-03-05 17:17:18,900 - DEBUG - Response Code: 404 2026-03-05 17:17:18,901 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-05 17:17:18,906 - DEBUG - Requesting: http://10.0.0.38:8082/domain/453f30e1-a17a-4f59-938c-af4084213e13 2026-03-05 17:17:18,962 - DEBUG - Requesting: http://10.0.0.38:8082/project/a09a3902-0263-4daa-8ad2-1de978277b36 2026-03-05 17:17:19,053 - INFO - Validated that VN ctest-vn4-02879290 is not found in API Server 2026-03-05 17:17:19,064 - DEBUG - VN ctest-vn4-02879290 is not present in Agent 10.0.0.38 2026-03-05 17:17:19,064 - INFO - Validated that VN ctest-vn4-02879290 is not in any agent 2026-03-05 17:17:19,079 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02879290 info 2026-03-05 17:17:19,108 - INFO - Deleted policy ctest-policy1-98373387 2026-03-05 17:17:19,286 - DEBUG - policy ctest-policy1-98373387 is not found in API Server 2026-03-05 17:17:19,567 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 17:17:19,567 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-05 17:17:19,567 - INFO - -------------------------------------------------------------------------------- 2026-03-05 17:17:19,878 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 17:17:19,878 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-05 17:17:19,878 - INFO - -------------------------------------------------------------------------------- 2026-03-05 17:17:20,592 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71697181, ID : a09a3902-0263-4daa-8ad2-1de978277b36