VMware VM's vmdk files can't be deleted if in different datastore than VM

Bug #1498752 reported by Man Li Qi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

Detail description and steps:
1. Configure vmware as the compute_driver in nova.conf, restart nova-compute service.
2. Create a VM with command with "nova boot..."
3. Add a disk for VM to another datastore (the VM doesn't locate in this datastore) in vcenter
4. Delete the VM with "nova delete...."
5. Current result: only the disk files(vmdk file) in the VM datastore path got deleted, while the disk files in another datastore(which the VM doesn't locate in) couldn't be deleted

Expected result:
All the disk files for the VM should be deleted along with VM deletion

tags: added: termination vmware
Revision history for this message
Matt Riedemann (mriedem) wrote :

What's the git hash of the version of nova you're running? Are you on kilo? liberty? And if liberty, how new is the code?

Do you have the nova compute log? Are there errors?

Changed in nova:
status: New → Incomplete
Revision history for this message
Man Li Qi (qimanli) wrote :

I'm using the latest liberty code, and this problem could be recreated on all the versions below liberty including liberty.
Since the problem is that disk files couldn't be cleaned up in vcenter, so there isn't error log in nova compute.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/228285

Changed in nova:
assignee: nobody → Man Li Qi (qimanli)
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/228285
Reason: This patch has been idle for a long time, so I am abandoning it to keep the review clean sane. If you're interested in still working on this patch, then please unabandon it and upload a new patchset.

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Cleanup
=======

There are no open reviews for this bug report since more than 2 weeks.
To signal that to other contributors which might provide patches for
this bug, I switch the status from "In Progress" to "Confirmed" and
remove the assignee.
Feel free to add yourself as assignee and to push a review for it.

Changed in nova:
status: In Progress → Confirmed
assignee: Man Li Qi (qimanli) → nobody
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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