2026-04-02 02:18:59,117 - INFO - Domain Default found not creating 2026-04-02 02:18:59,271 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63567746 not found, creating it 2026-04-02 02:18:59,724 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63567746, ID : 0e5b6eb8-5418-4dc7-9f94-56d236cb408a 2026-04-02 02:19:01,261 - INFO - ================================================================================ 2026-04-02 02:19:01,261 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 02:19:01,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2026-04-02 02:19:01,518 - INFO - Initial checks done. Running the testcase now 2026-04-02 02:19:01,518 - INFO - 2026-04-02 02:19:01,518 - INFO - ================================================================================ 2026-04-02 02:19:01,518 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-02 02:19:01,518 - 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-04-02 02:19:01,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2026-04-02 02:19:01,806 - INFO - Initial checks done. Running the testcase now 2026-04-02 02:19:01,806 - INFO - 2026-04-02 02:19:02,173 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694, 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-63567746:ctest-vn4-76533694, 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-63567746:ctest-vn4-76533694, 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-63567746:ctest-vn4-76533694, 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-04-02 02:19:02,689 - DEBUG - Response for create_network : {'network': {'id': 'f49a3b95-60a2-4390-a941-a00e5a5735e7', 'name': 'ctest-vn4-76533694', 'tenant_id': '0e5b6eb854184dc79f9456d236cb408a', 'project_id': '0e5b6eb854184dc79f9456d236cb408a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63567746', 'ctest-vn4-76533694'], 'port_security_enabled': True, 'description': ''}} 2026-04-02 02:19:02,873 - DEBUG - Response for create_subnet : {'subnet': {'id': '41a5d2f8-9461-4691-886c-cf567f9738e6', 'name': '', 'tenant_id': '0e5b6eb854184dc79f9456d236cb408a', 'network_id': 'f49a3b95-60a2-4390-a941-a00e5a5735e7', 'ip_version': 4, 'cidr': '182.64.74.64/26', 'allocation_pools': [{'start': '182.64.74.66', 'end': '182.64.74.126'}], 'gateway_ip': '182.64.74.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.64.74.66', 'tags': [], 'project_id': '0e5b6eb854184dc79f9456d236cb408a'}} 2026-04-02 02:19:03,015 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afa0dcbc-6e89-4580-a43b-fd86eee39bc8', 'name': '', 'tenant_id': '0e5b6eb854184dc79f9456d236cb408a', 'network_id': 'f49a3b95-60a2-4390-a941-a00e5a5735e7', 'ip_version': 6, 'cidr': '3cd5:e808:3da8:fb27:730f:be12::/96', 'allocation_pools': [{'start': '3cd5:e808:3da8:fb27:730f:be12:0:2', 'end': '3cd5:e808:3da8:fb27:730f:be12:ffff:fffe'}], 'gateway_ip': '3cd5:e808:3da8:fb27:730f:be12:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cd5:e808:3da8:fb27:730f:be12:0:2', 'tags': [], 'project_id': '0e5b6eb854184dc79f9456d236cb408a'}} 2026-04-02 02:19:03,036 - INFO - Created VN ctest-vn4-76533694 2026-04-02 02:19:03,089 - DEBUG - VN ctest-vn4-76533694 UUID is f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f49a3b95-60a2-4390-a941-a00e5a5735e7', 'name': 'ctest-vn4-76533694', 'tenant_id': '0e5b6eb854184dc79f9456d236cb408a', 'project_id': '0e5b6eb854184dc79f9456d236cb408a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41a5d2f8-9461-4691-886c-cf567f9738e6', 'afa0dcbc-6e89-4580-a43b-fd86eee39bc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63567746', 'ctest-vn4-76533694'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63567746', 'ctest-policy1-43457866']], 'subnet_ipam': [{'subnet_cidr': '182.64.74.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cd5:e808:3da8:fb27:730f:be12::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-02 02:19:03,460 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-02 02:19:03,768 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-02 02:19:03,804 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5 2026-04-02 02:19:03,820 - DEBUG - Requesting: http://10.0.0.23:8082/project/0e5b6eb8-5418-4dc7-9f94-56d236cb408a 2026-04-02 02:19:03,899 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,911 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,922 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:03,929 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:03,937 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/f6434a5c-9518-48f6-8aae-70e98a4ff000 2026-04-02 02:19:03,943 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:19:03,943 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,952 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:03,968 - INFO - Verified VN network id 11 for VN f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,968 - INFO - Verifications in API Server for VN ctest-vn4-76533694 passed 2026-04-02 02:19:03,968 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:03,978 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:03,984 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:03,990 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/f6434a5c-9518-48f6-8aae-70e98a4ff000 2026-04-02 02:19:04,002 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63567746', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17625465604425270160', 'uuid-lslong': '12196205249401664999'}, 'enable': 'true', 'created': '2026-04-02T02:19:02', 'last-modified': '2026-04-02T02:19:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739515'} 2026-04-02 02:19:04,008 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-02 02:19:04,008 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76533694 passed 2026-04-02 02:19:04,008 - DEBUG - ====Verifying policy data for ctest-vn4-76533694 in API_Server ====== 2026-04-02 02:19:04,008 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-02 02:19:04,013 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5 2026-04-02 02:19:04,023 - DEBUG - Requesting: http://10.0.0.23:8082/project/0e5b6eb8-5418-4dc7-9f94-56d236cb408a 2026-04-02 02:19:04,097 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f49a3b95-60a2-4390-a941-a00e5a5735e7 2026-04-02 02:19:04,106 - DEBUG - ==>Verifying data for policy with id: b45cff2e-be66-44a7-96f7-57237ff6ccb2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63567746', 'ctest-policy1-43457866'] 2026-04-02 02:19:04,106 - INFO - VN ctest-vn4-76533694 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-02 02:19:04,106 - DEBUG - Verifying the vn in opserver 2026-04-02 02:19:04,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694 virtual network link through opserver 10.0.0.23 2026-04-02 02:19:04,107 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-02 02:19:04,406 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-02 02:19:04,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694?flat'} 2026-04-02 02:19:04,472 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63567746:ctest-vn4-76533694 is found in opserver 2026-04-02 02:19:04,481 - DEBUG - Do not have enough data to verify VN in agent 2026-04-02 02:19:04,485 - DEBUG - VRF ids for VN ctest-vn4-76533694: {} 2026-04-02 02:19:04,486 - DEBUG - ====Verifying data for ctest-policy1-43457866 in API_Server ====== 2026-04-02 02:19:04,486 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-02 02:19:04,491 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5 2026-04-02 02:19:04,502 - DEBUG - Requesting: http://10.0.0.23:8082/project/0e5b6eb8-5418-4dc7-9f94-56d236cb408a 2026-04-02 02:19:04,571 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/b45cff2e-be66-44a7-96f7-57237ff6ccb2 2026-04-02 02:19:04,582 - INFO - Verified policy ctest-policy1-43457866 in API Server, Result: True 2026-04-02 02:19:04,582 - INFO - Done with setup and verification, moving onto test .. 2026-04-02 02:19:04,590 - INFO - Deleting VN ctest-vn4-76533694 2026-04-02 02:19:04,709 - DEBUG - Response for deleting network () 2026-04-02 02:19:04,709 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/76536ca2-2ce0-4584-b497-bec76c3d08b8 2026-04-02 02:19:04,714 - DEBUG - Response Code: 404 2026-04-02 02:19:04,714 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-02 02:19:04,720 - DEBUG - Requesting: http://10.0.0.23:8082/domain/cb4a4c34-6140-4d55-9cdd-4977c46821f5 2026-04-02 02:19:04,773 - DEBUG - Requesting: http://10.0.0.23:8082/project/0e5b6eb8-5418-4dc7-9f94-56d236cb408a 2026-04-02 02:19:04,850 - INFO - Validated that VN ctest-vn4-76533694 is not found in API Server 2026-04-02 02:19:04,860 - DEBUG - VN ctest-vn4-76533694 is not present in Agent 10.0.0.23 2026-04-02 02:19:04,860 - INFO - Validated that VN ctest-vn4-76533694 is not in any agent 2026-04-02 02:19:04,873 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76533694 info 2026-04-02 02:19:04,897 - INFO - Deleted policy ctest-policy1-43457866 2026-04-02 02:19:05,060 - DEBUG - policy ctest-policy1-43457866 is not found in API Server 2026-04-02 02:19:05,328 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 02:19:05,328 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-02 02:19:05,328 - INFO - -------------------------------------------------------------------------------- 2026-04-02 02:19:05,609 - DEBUG - No XMPP flaps were noticed during the test 2026-04-02 02:19:05,609 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-02 02:19:05,610 - INFO - -------------------------------------------------------------------------------- 2026-04-02 02:19:06,326 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63567746, ID : 0e5b6eb8-5418-4dc7-9f94-56d236cb408a