nova scrub doesn't remove a vm

Bug #1280389 reported by Jaroslav Henner
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Ryan Hallisey
python-novaclient
Invalid
Medium
Unassigned

Bug Description

Checking the code, nova scrub should disassociate the network associated with the given tenant, but it fails to do so. There is no error in log.

openstack-nova-api.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-cert.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-common.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-compute.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-conductor.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-console.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-network.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-novncproxy.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-objectstore.noarch 2013.2.1-1.el6ost @puddle
openstack-nova-scheduler.noarch 2013.2.1-1.el6ost @puddle

nova-manage --nodebug network list | head
keystone tenant-create --name foo
keystone user-role-add --user admin --role Member --tenant foo
OS_TENANT_NAME=foo nova boot --image cirros-0.3.1-x86_64-disk.vmdk --flavor m1.tiny foo_vm

nova list --all-tenants
nova-manage network list | head

nova scrub foo
nova list --all-tenants
nova-manage --nodebug network list | head

######## The network is still associated in this point.

keystone tenant-delete foo
nova-manage --nodebug network list | head
nova list --all-tenants

######## Here as well

Tags: network
Revision history for this message
Jaroslav Henner (jhenner) wrote :

I have found that not-disassociating the network is caused by leftover VMs in that network. I think nova scrub should remove the VMs first, then it should disassociate the network.

summary: - nova scrub doesn't disasociate nova-network
+ nova scrub doesn't remove a vm
Tracy Jones (tjones-i)
tags: added: network
Revision history for this message
Jaroslav Henner (jhenner) wrote :
Revision history for this message
Aaron Rosen (arosen) wrote :

I don't see that nova scrub even does anything to my instance

Revision history for this message
Aaron Rosen (arosen) wrote :

Not quite sure what: Delete data associated with the project means exactly either. What is scrub supposed to do?

Ryan Hallisey (rthall14)
Changed in nova:
assignee: nobody → Ryan Hallisey (rthall14)
Ryan Hallisey (rthall14)
Changed in nova:
assignee: Ryan Hallisey (rthall14) → nobody
assignee: nobody → Ryan Hallisey (rthall14)
Sean Dague (sdague)
Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Changed in python-novaclient:
status: New → Confirmed
importance: Undecided → Medium
Changed in nova:
status: Confirmed → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/118636
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Ryan Selden (ryanx-seldon) wrote :

Accordig to http://docs.openstack.org/cli-reference/nova.html, nova scrub isn't supposed to remove a vm, only "Delete networks and security groups associated with a project". This bug doesn't seem valid.

Changed in python-novaclient:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.