← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1254667] Re: host state get error

 

** Changed in: nova
       Status: Incomplete => Won't Fix

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

Title:
  host state get error

Status in OpenStack Compute (Nova):
  Won't Fix

Bug description:
  When I lanuch the openstack-nova-compute service, the service break on
  updating the status.  When the service try to get the disk's size, it
  read a file which is not exist now, so get the Error. I moved the file
  '/root/folsom/iso/win7.img' to another directory before I install the
  openstack.

   the compute.log is here.

  2013-11-25 18:25:52.015 9557 DEBUG nova.virt.libvirt.driver [-] Updating host stats update_status /usr/lib/python2.6/site-p     ackages/nova/virt/libvirt/driver.py:4803
  2068 2013-11-25 18:25:52.016 9557 DEBUG qpid.messaging.io.raw [-] SENT[43c5dd0]: '\x0f\x01\x00\x19\x00\x01\x00\x00\x00\x00\x00\x     00\x04\n\x01\x00\x07\x00\x010\x00\x00\x00\x00\x01\x0f\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x02\n\x01\x00\x00\x08\x00     \x00\x00\x00\x00\x00\x00\t' writeable /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:480
  2013-11-25 18:25:52.054 9557 ERROR nova.openstack.common.threadgroup [-] [Errno 13] Permission denied: '/root/folsom/iso/wi     n7.img'
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/openstac     k/common/threadgroup.py", line 117, in wait
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     x.wait()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/openstac     k/common/threadgroup.py", line 49, in wait
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return self.thread.wait()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/eventlet/gree     nthread.py", line 166, in wait
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return self._exit_event.wait()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/eventlet/even     t.py", line 116, in wait
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return hubs.get_hub().switch()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/eventlet/hubs     /hub.py", line 177, in switch
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/eventlet/gree     nthread.py", line 192, in main
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return self.greenlet.switch()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     result = function(*args, **kwargs)
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/openstac     k/common/service.py", line 65, in run_service
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     service.start()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/service.     py", line 164, in start
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     self.manager.pre_start_hook()
   2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/compute/     manager.py", line 796, in pre_start_hook
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     self.update_available_resource(nova.context.get_ad     min_context())
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/compute/     manager.py", line 4860, in update_available_resource
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     nodenames = set(self.driver.get_available_nodes())
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/dri     ver.py", line 956, in get_available_nodes
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     stats = self.get_host_stats(refresh=refresh)
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4373, in get_host_stats
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return self.host_state.get_host_stats(refresh=refr     esh)
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 386, in host_state
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     self._host_state = HostState(self)
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4773, in __init__
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     self.update_status()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4824, in update_status
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     data['disk_available_least'] = _get_disk_available     _least()
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4797, in _get_disk_available_least
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     disk_over_committed = (self.driver.
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4346, in get_disk_over_committed_size_total
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     self.get_instance_disk_info(i_name))
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib/python2.6/site-packages/nova/virt/lib     virt/driver.py", line 4318, in get_instance_disk_info
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     dk_size = int(os.path.getsize(path))
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup   File "/usr/lib64/python2.6/genericpath.py", line 49,      in getsize
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup     return os.stat(filename).st_size
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup OSError: [Errno 13] Permission denied: '/root/folsom/i     so/win7.img'
  2013-11-25 18:25:52.054 9557 TRACE nova.openstack.common.threadgroup

  There are also no domains in the host. I used virsh list command, no
  result!

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