Bug 1072938

Summary: A project shouldn't be deleted when there are instances running
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: openstack-novaAssignee: Ryan Hallisey <rhallise>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: jhenner, ndipanov, sgordon, yeylon
Target Milestone: ---   
Target Release: 6.0 (Juno)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-03 13:51:24 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:
Embargoed:

Description Yogev Rabl 2014-03-05 12:35:00 UTC
Description of problem:
currently, a project that has an instance (or instances) can be deleted without even a warning message in the Horizon by a user with an administrative permissions. An active project (meaning a project that has instances running) should have the protection from deletion. If the administrator would like to delete it he should delete the instances first. 

Version-Release number of selected component (if applicable):
openstack-nova-cert-2013.2.2-2.el6ost.noarch
python-novaclient-2.15.0-2.el6ost.noarch
openstack-nova-common-2013.2.2-2.el6ost.noarch
openstack-nova-api-2013.2.2-2.el6ost.noarch
openstack-nova-compute-2013.2.2-2.el6ost.noarch
openstack-nova-conductor-2013.2.2-2.el6ost.noarch
openstack-nova-novncproxy-2013.2.2-2.el6ost.noarch
openstack-nova-scheduler-2013.2.2-2.el6ost.noarch
python-nova-2013.2.2-2.el6ost.noarch
openstack-nova-console-2013.2.2-2.el6ost.noarch
openstack-nova-network-2013.2.2-2.el6ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create an new project.
2. Launch one (or more) instances. 
3. Try to delete the project with the admin.

Actual results:
The instances are still running, but they are accessible only through the admin -> intances tab.

Expected results:
The administrator shouldn't be able to delete the project as long as there are instances running.

Additional info:

Comment 2 Ryan Hallisey 2014-09-03 13:51:24 UTC
All the resources will be cleaned by doing a nova scrub.