← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1694913] [NEW] revert resize and resize again will fail when use rbd

 

Public bug reported:

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/python2.7/site-packages/nova/compute/manager.py", line 3950, in finish_resize
     disk_info, image_meta)
   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3915, in _finish_resize
     old_instance_type)
   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
     self.force_reraise()
   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
     six.reraise(self.type_, self.value, self.tb)
   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3910, in _finish_resize
     block_device_info, power_on)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7223, in finish_migration
     self._ensure_console_log_for_instance(instance)
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2867, in _ensure_console_log_for_instance
     libvirt_utils.file_open(console_file, 'a').close()
   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/utils.py", line 313, in file_open
     return open(*args, **kwargs)
 IOError: [Errno 13] Permission denied: '/var/lib/nova/instances/c1c4847d-0470-4fae-9060-6511a8e2c056/console.log'

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1694913

Title:
  revert resize and resize again will fail when use rbd

Status in OpenStack Compute (nova):
  New

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/python2.7/site-packages/nova/compute/manager.py", line 3950, in finish_resize
       disk_info, image_meta)
     File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3915, in _finish_resize
       old_instance_type)
     File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
       self.force_reraise()
     File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
       six.reraise(self.type_, self.value, self.tb)
     File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3910, in _finish_resize
       block_device_info, power_on)
     File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7223, in finish_migration
       self._ensure_console_log_for_instance(instance)
     File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2867, in _ensure_console_log_for_instance
       libvirt_utils.file_open(console_file, 'a').close()
     File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/utils.py", line 313, in file_open
       return open(*args, **kwargs)
   IOError: [Errno 13] Permission denied: '/var/lib/nova/instances/c1c4847d-0470-4fae-9060-6511a8e2c056/console.log'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1694913/+subscriptions