Bug 1072938 - A project shouldn't be deleted when there are instances running
Summary: A project shouldn't be deleted when there are instances running
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 4.0
Hardware: All
OS: All
medium
high
Target Milestone: ---
: 6.0 (Juno)
Assignee: Ryan Hallisey
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-05 12:35 UTC by Yogev Rabl
Modified: 2019-09-09 14:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-03 13:51:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 967832 0 None None None Never
Launchpad 1280389 0 None None None Never
Launchpad 1288230 0 None None None Never
Red Hat Bugzilla 1083620 0 unspecified CLOSED nova network disassociate and nova delete leads to VM in ERROR state 2021-02-22 00:41:40 UTC

Internal Links: 1083620

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.


Note You need to log in before you can comment on or make changes to this bug.