revert a resize task and resize again or live migration will fail when use rbd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
赵明俊 |
Bug Description
Description
===========
I resize an instance and revert it, it works correctly, but when I resize this instance again, the instance set to error, and I check the compute log like below.
I use the rbd backend, I think the reason should be like this, If instance use shared storage, revert resize will not delete the instance dir and files on destination host, this files owner is root, if resize the instance again and migrate to the same destination host, the IOError exception will be thrown.
Logs
==============
Traceback (most recent call last):
File "/usr/lib/
disk_info, image_meta)
File "/usr/lib/
old_
File "/usr/lib/
self.
File "/usr/lib/
six.
File "/usr/lib/
block_
File "/usr/lib/
self.
File "/usr/lib/
libvirt_
File "/usr/lib/
return open(*args, **kwargs)
IOError: [Errno 13] Permission denied: '/var/lib/
Changed in nova: | |
assignee: | nobody → 赵明俊 (falseuser) |
Changed in nova: | |
status: | New → In Progress |
status: | In Progress → New |
summary: |
- revert resize and resize again will fail when use rbd + revert a resize task and resize again or live migration will fail when + use rbd |
tags: | added: live-migration |
Changed in nova: | |
status: | Incomplete → In Progress |
On which release is this happening? I believe the console.log ownership issue has been fixed in newer releases.