Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1136080

Summary: Nova scrub doesn't "Delete data associated with the project."
Product: Red Hat OpenStack Reporter: Tzach Shefi <tshefi>
Component: openstack-novaAssignee: Russell Bryant <rbryant>
Status: CLOSED NOTABUG QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 6)CC: ndipanov, sgordon, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-08 19:23:00 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:
Attachments:
Description Flags
Nova logs none

Description Tzach Shefi 2014-09-01 15:34:27 UTC
Created attachment 933473 [details]
Nova logs

Description of problem: Using nova scrub <projectID> doesn't delete data associated with project. Created new project under it new image/instance/volume and network none of these were deleted after running scrub command.

Version-Release number of selected component (if applicable):
RHEL6.5
openstack-nova-compute-2014.1.2-1.el6ost.noarch
openstack-nova-console-2014.1.2-1.el6ost.noarch
python-novaclient-2.17.0-2.el6ost.noarch
python-nova-2014.1.2-1.el6ost.noarch
openstack-nova-api-2014.1.2-1.el6ost.noarch

How reproducible:
Tested twice same result.

Steps to Reproduce:
1. Create a new project/user 
2. Login to new project, create new images volumes and instances.
3. Logout of project , with admin user run #nova scrub <newProject'sID>
4. Nova list -> still see new project listed
5. Login with new project's user still see image/volumes and instances. 

Actual results:
Project associated data remains intact, when it should be deleted.

Expected results:
From what I understand running nova scrub <projectID> related project data should be deleted including instances images volumes and network, maybe even project it self plus related user (not sure about last ones). 

Additional info:
Related bz https://bugzilla.redhat.com/show_bug.cgi?id=1076100

Comment 2 Russell Bryant 2014-10-08 15:36:31 UTC
"nova scrub" is a very limited command.  All it tries to do is delete networks and security groups.  It doesn't try to delete instances (by design).

I'll update the help text of the command to make its scope more clear.

Comment 3 Russell Bryant 2014-10-16 15:07:00 UTC
"nova scrub" is a very limited command.  All it tries to do is delete networks and security groups.  It doesn't try to delete instances (by design).

I updated the command help text to try to make this more clear:

https://review.openstack.org/#/c/126975/