Bug 1380321

Summary: [RFE] Display a warning message at the time of flavor deletion
Product: Red Hat OpenStack Reporter: Chaitanya Shastri <cshastri>
Component: openstack-novaAssignee: Eoghan Glynn <eglynn>
Status: CLOSED WONTFIX QA Contact: Prasanth Anbalagan <panbalag>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: berrange, dasmith, eglynn, kchamart, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-12 12:42:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chaitanya Shastri 2016-09-29 09:49:26 UTC
Description of problem:
We cannot offline migrate an instance (nova migrate) that has its flavor deleted. It throws the error 'FlavorNotFound' which is an expected behavior.

How about adding a warning message that takes a confirmation from the user that does he really wants to delete the flavor and display its consequences? 

Version-Release number of selected component (if applicable):
RHOS 7,8,9

How reproducible:
Always

Steps to Reproduce:
1.Spawn an instance A with a flavor X.

2.Delete the flavor X.

3.Try to migrate the instance A(nova migrate): It will fail with 'FlavorNotFound' error.

4.Even if we create a flavor with same name, same ID, the instance would not be able to migrate with same error.
 
Actual results:
Nova Flavor gets deleted without any confirmation from user

Expected results:
While deleting a flavor, it should ask the user if he really wants to delete the flavor.

Comment 1 Stephen Gordon 2017-07-12 12:41:26 UTC
This type of workflow (as used in resize) has typically been pretty problematic. I don't think this level of protection belongs in the Nova client or API.

Comment 2 RHEL Program Management 2017-07-12 12:42:39 UTC
Product Management has reviewed and declined this request.
You may appeal this decision by reopening this request.