Revision history [back]

click to hide/show revision 1
initial version

Openstack server after power outage and restart, Instance cannot start

Below is the error message

2019-11-20 09:04:27.052 4333 ERROR oslo.messaging.rpc.dispatcher [req-77a6043b-7df6-4422-907a-43b6b4bb446b ] Exception during message handling: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, *new_args) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher payload) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, *kw) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 298, in decorated_function 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher pass 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 284, in decorated_function 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher return function(self, context, args, *kwargs) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 348, in decorated_function 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher return function(self, context, args, *kwargs) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 326, in decorated_function 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info()) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__ 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 314, in decorated_function 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher return function(self, context, args, *kwargs) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2580, in start_instance 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher self._power_on(context, instance) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2568, in _power_on 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher block_device_info) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2487, in power_on 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher self._hard_reboot(context, instance, network_info, block_device_info) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2361, in _hard_reboot 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher write_to_disk=True) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4151, in _get_guest_xml 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher xml = conf.to_xml() 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 78, in to_xml 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher root = self.format_dom() 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1680, in format_dom 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher self._format_basic_props(root) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1619, in _format_basic_props 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher metadata.append(m.format_dom()) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1909, in format_dom 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher meta.append(self._text_node("name", self.name)) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 62, in _text_node 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher child.text = str(value) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "lxml.etree.pyx", line 921, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:41344) 2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher File "apihelpers.pxi", line 652, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:18835)

Openstack server after power outage and restart, Instance cannot start

Below is the error message

2019-11-20 09:04:27.052 4333 ERROR oslo.messaging.rpc.dispatcher [req-77a6043b-7df6-4422-907a-43b6b4bb446b ] Exception during message handling: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, *new_args)
**new_args)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     payload)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, *kw)
**kw)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 298, in decorated_function
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     pass
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 284, in decorated_function
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, args, *kwargs)
*args, **kwargs)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 348, in decorated_function
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, args, *kwargs)
*args, **kwargs)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 326, in decorated_function
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 314, in decorated_function
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, args, *kwargs)
*args, **kwargs)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2580, in start_instance
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     self._power_on(context, instance)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2568, in _power_on
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     block_device_info)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2487, in power_on
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     self._hard_reboot(context, instance, network_info, block_device_info)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2361, in _hard_reboot
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     write_to_disk=True)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4151, in _get_guest_xml
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     xml = conf.to_xml()
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 78, in to_xml
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     root = self.format_dom()
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1680, in format_dom
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     self._format_basic_props(root)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1619, in _format_basic_props
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     metadata.append(m.format_dom())
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 1909, in format_dom
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     meta.append(self._text_node("name", self.name))
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/config.py", line 62, in _text_node
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher     child.text = str(value)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "lxml.etree.pyx", line 921, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:41344)
2019-11-20 09:04:27.052 4333 TRACE oslo.messaging.rpc.dispatcher   File "apihelpers.pxi", line 652, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:18835)

(src/lxml/lxml.etree.c:18835)