论坛首页 综合技术论坛

Suspend Instance 时报异常,如何处理

浏览 5218 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-11-07  
code: 500
message: libvirtError

internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 177, in decorated_function
    return function(self, context, instance_uuid, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 1550, in suspend_instance
    self.driver.suspend(instance_ref)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/exception.py", line 114, in wrapped
    return f(*args, **kw)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/virt/libvirt/connection.py", line 819, in suspend
    dom.managedSave(0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 789, in managedSave
    if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self)

from COSUG
   发表时间:2012-11-07  
好像是Libvirt的一个bug
https://bugs.launchpad.net/nova/+bug/1005557

from COSUG ben
0 请登录后投票
   发表时间:2012-11-07  
Adela_09 写道
code: 500
message: libvirtError

internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 177, in decorated_function
    return function(self, context, instance_uuid, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 1550, in suspend_instance
    self.driver.suspend(instance_ref)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/exception.py", line 114, in wrapped
    return f(*args, **kw)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/virt/libvirt/connection.py", line 819, in suspend
    dom.managedSave(0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 789, in managedSave
    if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self)

from COSUG

谢谢,我到 google 后也得到了这个答案,是否有其他解决方法?
我基于 centos6.3 做的 openstack,控制节点上的计算节点可以正常 Suspend Instance,但单独的计算节点就不行,同样的版本啊,郁闷!
0 请登录后投票
   发表时间:2012-11-07  
Adela_09 写道
code: 500
message: libvirtError

internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 177, in decorated_function
    return function(self, context, instance_uuid, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 1550, in suspend_instance
    self.driver.suspend(instance_ref)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/exception.py", line 114, in wrapped
    return f(*args, **kw)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/virt/libvirt/connection.py", line 819, in suspend
    dom.managedSave(0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 789, in managedSave
    if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self)

from COSUG

你的计算节点,是否安装nova api?

from COSUG Shake
0 请登录后投票
   发表时间:2012-11-07  
Adela_09 写道
code: 500
message: libvirtError

internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 177, in decorated_function
    return function(self, context, instance_uuid, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/compute/manager.py", line 1550, in suspend_instance
    self.driver.suspend(instance_ref)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/exception.py", line 114, in wrapped
    return f(*args, **kw)
  File "/usr/lib/python2.6/site-packages/nova-2012.1.1-py2.6.egg/nova/virt/libvirt/connection.py", line 819, in suspend
    dom.managedSave(0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 789, in managedSave
    if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self)

from COSUG

谢谢陈老师的回答,^_^
我的计算节点安装的是:  nova-2012.1.1.tar.gz 这个包,安装步骤与控制节点一样,nova api 有单独的安装包吗?
实例都能正常通过 horizon 的 dashboard 来分配到计算节点,实例运行一切正常,只是做不了 Suspend Instance,Snapshot 等操作。

SELECT * FROM instance_faults
可以看到错误信息。
0 请登录后投票
   发表时间:2012-11-07  
贴出libvirt  版本及 libvirt.log

from COSUG heut
0 请登录后投票
   发表时间:2012-11-07  
谢谢,版本及日志如下:
libvirt-0.9.10-21.el6.x86_64

cat /var/log/libvirt/libvirtd.log

2012-09-27 12:03:29.427+0000: 2503: error : qemuMonitorTextSendFileHandle:2178 : internal error unable to send file handle 'migrate': No file descriptor supplied via SCM_RIGHTS

2012-09-27 12:16:34.949+0000: 2502: error : qemuMonitorIO:574 : internal error End of file from monitor
2012-09-27 12:16:35.049+0000: 2507: error : virNetDevGetIndex:657 : Unable to get index for interface vnet0: No such device
2012-09-27 12:17:38.967+0000: 2502: error : virNetSocketReadWire:999 : End of file while reading data: Input/output error
2012-09-27 12:17:38.968+0000: 2502: error : virNetSocketReadWire:999 : End of file while reading data: Input/output error

from COSUG well ben
0 请登录后投票
   发表时间:2012-11-07  
centos 6.3 自带libvirt不存在此bug

from COSUG yz
0 请登录后投票
   发表时间:2012-11-08  
问google妥妥的!
0 请登录后投票
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics