2025-11-27 02:08:50,945 - INFO - Domain Default found not creating 2025-11-27 02:08:51,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10773193 not found, creating it 2025-11-27 02:08:51,559 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10773193, ID : ce9aa202-2435-4659-ad7e-e36ce324cbe6 2025-11-27 02:08:53,189 - INFO - ================================================================================ 2025-11-27 02:08:53,189 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:08:53,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-27 02:08:53,449 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:08:53,450 - INFO - 2025-11-27 02:08:53,450 - INFO - ================================================================================ 2025-11-27 02:08:53,450 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:08:53,450 - 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. 2025-11-27 02:08:53,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-27 02:08:53,745 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:08:53,745 - INFO - 2025-11-27 02:08:54,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874, 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-10773193:ctest-vn4-58201874, 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-10773193:ctest-vn4-58201874, 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-10773193:ctest-vn4-58201874, 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] 2025-11-27 02:08:54,678 - DEBUG - Response for create_network : {'network': {'id': 'e8caa047-559d-479d-9698-af85f105644e', 'name': 'ctest-vn4-58201874', 'tenant_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'project_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10773193', 'ctest-vn4-58201874'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:54,817 - DEBUG - Response for create_subnet : {'subnet': {'id': '72905067-9ad9-4bb9-8f30-1fffd599e838', 'name': '', 'tenant_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'network_id': 'e8caa047-559d-479d-9698-af85f105644e', 'ip_version': 4, 'cidr': '48.26.200.128/26', 'allocation_pools': [{'start': '48.26.200.130', 'end': '48.26.200.190'}], 'gateway_ip': '48.26.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.26.200.130', 'tags': [], 'project_id': 'ce9aa20224354659ad7ee36ce324cbe6'}} 2025-11-27 02:08:55,015 - DEBUG - Response for create_subnet : {'subnet': {'id': '524fa2e3-d20a-49db-8298-6e4d3a64ea83', 'name': '', 'tenant_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'network_id': 'e8caa047-559d-479d-9698-af85f105644e', 'ip_version': 6, 'cidr': '378d:e6da:871:ec02:ab78:352::/96', 'allocation_pools': [{'start': '378d:e6da:871:ec02:ab78:352:0:2', 'end': '378d:e6da:871:ec02:ab78:352:ffff:fffe'}], 'gateway_ip': '378d:e6da:871:ec02:ab78:352:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '378d:e6da:871:ec02:ab78:352:0:2', 'tags': [], 'project_id': 'ce9aa20224354659ad7ee36ce324cbe6'}} 2025-11-27 02:08:55,036 - INFO - Created VN ctest-vn4-58201874 2025-11-27 02:08:55,088 - DEBUG - VN ctest-vn4-58201874 UUID is e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,290 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8caa047-559d-479d-9698-af85f105644e', 'name': 'ctest-vn4-58201874', 'tenant_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'project_id': 'ce9aa20224354659ad7ee36ce324cbe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72905067-9ad9-4bb9-8f30-1fffd599e838', '524fa2e3-d20a-49db-8298-6e4d3a64ea83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10773193', 'ctest-vn4-58201874'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10773193', 'ctest-policy1-93294644']], 'subnet_ipam': [{'subnet_cidr': '48.26.200.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '378d:e6da:871:ec02:ab78:352::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:55,456 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:08:55,792 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:08:55,824 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:08:55,836 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce9aa202-2435-4659-ad7e-e36ce324cbe6 2025-11-27 02:08:55,908 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,922 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,933 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:55,941 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:55,948 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fbbd1778-ef6d-4f87-82c6-f9b9d0a06643 2025-11-27 02:08:55,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:08:55,955 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,965 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:55,979 - INFO - Verified VN network id 11 for VN e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,980 - INFO - Verifications in API Server for VN ctest-vn4-58201874 passed 2025-11-27 02:08:55,980 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:55,989 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:55,996 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:56,005 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fbbd1778-ef6d-4f87-82c6-f9b9d0a06643 2025-11-27 02:08:56,017 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10773193', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16774395990334326685', 'uuid-lslong': '10851616291958383694'}, 'enable': 'true', 'created': '2025-11-27T02:08:54', 'last-modified': '2025-11-27T02:08:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753263'} 2025-11-27 02:08:56,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:08:56,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58201874 passed 2025-11-27 02:08:56,023 - DEBUG - ====Verifying policy data for ctest-vn4-58201874 in API_Server ====== 2025-11-27 02:08:56,023 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:08:56,028 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:08:56,039 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce9aa202-2435-4659-ad7e-e36ce324cbe6 2025-11-27 02:08:56,112 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e8caa047-559d-479d-9698-af85f105644e 2025-11-27 02:08:56,121 - DEBUG - ==>Verifying data for policy with id: d1841615-0ef3-41d5-af2f-23b56d32bc87, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10773193', 'ctest-policy1-93294644'] 2025-11-27 02:08:56,121 - INFO - VN ctest-vn4-58201874 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:08:56,121 - DEBUG - Verifying the vn in opserver 2025-11-27 02:08:56,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874 virtual network link through opserver 10.0.0.22 2025-11-27 02:08:56,122 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-27 02:08:56,454 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-27 02:08:56,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874?flat'} 2025-11-27 02:08:56,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10773193:ctest-vn4-58201874 is found in opserver 2025-11-27 02:08:56,528 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:08:56,533 - DEBUG - VRF ids for VN ctest-vn4-58201874: {} 2025-11-27 02:08:56,533 - DEBUG - ====Verifying data for ctest-policy1-93294644 in API_Server ====== 2025-11-27 02:08:56,533 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:08:56,539 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:08:56,552 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce9aa202-2435-4659-ad7e-e36ce324cbe6 2025-11-27 02:08:56,623 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d1841615-0ef3-41d5-af2f-23b56d32bc87 2025-11-27 02:08:56,633 - INFO - Verified policy ctest-policy1-93294644 in API Server, Result: True 2025-11-27 02:08:56,633 - INFO - Done with setup and verification, moving onto test .. 2025-11-27 02:08:56,640 - INFO - Deleting VN ctest-vn4-58201874 2025-11-27 02:08:56,747 - DEBUG - Response for deleting network () 2025-11-27 02:08:56,747 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/97612d8f-1282-40d3-ac83-e99697341830 2025-11-27 02:08:56,753 - DEBUG - Response Code: 404 2025-11-27 02:08:56,753 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-27 02:08:56,759 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9 2025-11-27 02:08:56,813 - DEBUG - Requesting: http://10.0.0.22:8082/project/ce9aa202-2435-4659-ad7e-e36ce324cbe6 2025-11-27 02:08:56,884 - INFO - Validated that VN ctest-vn4-58201874 is not found in API Server 2025-11-27 02:08:56,893 - DEBUG - VN ctest-vn4-58201874 is not present in Agent 10.0.0.22 2025-11-27 02:08:56,893 - INFO - Validated that VN ctest-vn4-58201874 is not in any agent 2025-11-27 02:08:56,906 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58201874 info 2025-11-27 02:08:56,931 - INFO - Deleted policy ctest-policy1-93294644 2025-11-27 02:08:57,096 - DEBUG - policy ctest-policy1-93294644 is not found in API Server 2025-11-27 02:08:57,349 - DEBUG - No XMPP flaps were noticed during the test