← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1364656] [NEW] nova start always fails with ephemeral disk

 

Public bug reported:

nova start command always fails for instance which has been attached an ephemeral disk.
The following are the details.

compute.log: 'No such file or directory: */disk.local'

2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4766, in get_instance_disk_info
2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher     dk_size = int(os.path.getsize(path))
2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib64/python2.6/genericpath.py", line 49, in getsize
2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher     return os.stat(filename).st_size
2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.local'
2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher
2014-09-02 12:22:24.177 3360 ERROR oslo.messaging._drivers.common [-] Returning exception [Errno 2] No such file or directory: '/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.local' to caller

I examine actual ephemeral disk name. That is below '*/disk.eph0'. so it
inconsistent.

[root@localhost ~(keystone_demo)]# find /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.eph0
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/libvirt.xml
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/console.log
/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.info

** Affects: nova
     Importance: Undecided
         Status: New

** Attachment added: "compute.log"
   https://bugs.launchpad.net/bugs/1364656/+attachment/4193679/+files/compute.log

-- 
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/1364656

Title:
  nova start always fails with ephemeral disk

Status in OpenStack Compute (Nova):
  New

Bug description:
  nova start command always fails for instance which has been attached an ephemeral disk.
  The following are the details.

  compute.log: 'No such file or directory: */disk.local'

  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 4766, in get_instance_disk_info
  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher     dk_size = int(os.path.getsize(path))
  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib64/python2.6/genericpath.py", line 49, in getsize
  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher     return os.stat(filename).st_size
  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.local'
  2014-09-02 12:22:24.157 3360 TRACE oslo.messaging.rpc.dispatcher
  2014-09-02 12:22:24.177 3360 ERROR oslo.messaging._drivers.common [-] Returning exception [Errno 2] No such file or directory: '/var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.local' to caller

  I examine actual ephemeral disk name. That is below '*/disk.eph0'. so
  it inconsistent.

  [root@localhost ~(keystone_demo)]# find /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.eph0
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/libvirt.xml
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/console.log
  /var/lib/nova/instances/deb5467b-3bfb-48ee-bb1b-730c527153bf/disk.info

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


Follow ups

References