创建nova实例 nova-compute报错:`libvirtError: internal error: process exited while connecting to monitor`

这篇具有很好参考价值的文章主要介绍了创建nova实例 nova-compute报错:`libvirtError: internal error: process exited while connecting to monitor`。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

创建nova实例 nova-compute报错:libvirtError: internal error: process exited while connecting to monitor

在vmware嵌套的虚拟化环境中,部署多节点,对接多套后端ceph存储的时候,发现创建nova实例总是error:

  • 根据卷类型和镜像创建卷
cinder create --image-id 2bc3e25e-d6fc-4b61-96c9-d24075ec05fd --name test-bus-22 --volume-type ceph-bus 10
  • 启动一个nova实例
nova boot --flavor 1C1G --boot-volume 4602fd51-ceba-4e11-9bf7-07ab59fbc4cb  --availability-zone business --nic net-id=ef6e073d-be57-48d0-8a6d-c0aeb566f3c3 --nic net-id=56f13591-b4ba-4cd8-8ec6-1cebad6438dc bus-test122
2023-02-23 18:10:36.579 7 INFO os_vif [req-8a7516dd-217b-4e09-abd6-94261ae08d0d 905596397631479db0e5d5cfa3ceec90 7b651f4b9ecc4cd3bd400a2084084cb9 - default default] Successfully unplugged vif VIFBridge(active=False,address=fa:16:3e:6b:50:28,bridge_name='qbr78f1d0e3-6d',has_traffic_filtering=True,id=78f1d0e3-6d65-4bbb-ae90-1ab8654e521c,network=Network(56f13591-b4ba-4cd8-8ec6-1cebad6438dc),plugin='ovs',port_profile=VIFPortProfileOpenVSwitch,preserve_on_delete=False,vif_name='tap78f1d0e3-6d')
:
ting to monitor: 2023-02-23T10:10:26.924633Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log: Permission denied
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c] Traceback (most recent call last):
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2357, in _build_resources
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     yield resources
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2121, in _build_and_run_instance
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     block_device_info=block_device_info)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3080, in spawn
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     destroy_disks_on_failure=True)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5647, in _create_domain_and_network
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     destroy_disks_on_failure)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self.force_reraise()
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5616, in _create_domain_and_network
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     post_xml_callback=post_xml_callback)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5550, in _create_domain
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     guest.launch(pause=pause)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 144, in launch
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self._encoded_xml, errors='ignore')
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self.force_reraise()
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 139, in launch
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     return self._domain.createWithFlags(flags)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     rv = execute(f, *args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(c, e, tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     rv = meth(*args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1099, in createWithFlags
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c] libvirtError: internal error: process exited while connecting to monitor: :
ting to monitor: 2023-02-23T10:10:26.924633Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log: Permission denied
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c] Traceback (most recent call last):
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2357, in _build_resources
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     yield resources
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2121, in _build_and_run_instance
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     block_device_info=block_device_info)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3080, in spawn
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     destroy_disks_on_failure=True)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5647, in _create_domain_and_network
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     destroy_disks_on_failure)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self.force_reraise()
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5616, in _create_domain_and_network
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     post_xml_callback=post_xml_callback)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5550, in _create_domain
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     guest.launch(pause=pause)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 144, in launch
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self._encoded_xml, errors='ignore')
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     self.force_reraise()
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 139, in launch
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     return self._domain.createWithFlags(flags)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     rv = execute(f, *args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     six.reraise(c, e, tb)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     rv = meth(*args, **kwargs)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1099, in createWithFlags
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c] libvirtError: internal error: process exited while connecting to monitor: 2023-02-23T10:10:26.924633Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b3a6bd51-4d91-42b7-a698-119fbda9c11c/console.log: Permission denied
2023-02-23 18:10:35.151 7 ERROR nova.compute.manager [instance: b3a6bd51-4d91-42b7-a698-119fbda9c11c] 

qemu.conf配置文件中修改了user 和group后导致上面的报错,一开始写xml报错,还真以为是权限的问题,都改为root,重启了nova_libvirt容器问题依旧。后来又将user和group改回到nova

stdio_handler = "file"
user = "nova"
group = "nova"

nova-compute报错:libvirtError: internal error: process exited while connecting to monitor

2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [req-ea83bece-2dfc-4ad4-a79b-c9eff763f4ef 905596397631479db0e5d5cfa3ceec90 7b651f4b9ecc4cd3bd400a2084084cb9 - default default] [instance: df810251-9c80-4dbf-8255-bac437a012cc] Instance failed to spawn: libvirtError: internal error: process exited while connecting to monitor: 2023-02-23T08:10:10.312021Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/df810251-9c80-4dbf-8255-bac437a012cc/console.log,logappend=off: Failed to create PTY: No such file or directory
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc] Traceback (most recent call last):
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2357, in _build_resources
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     yield resources
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2121, in _build_and_run_instance
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     block_device_info=block_device_info)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3080, in spawn
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     destroy_disks_on_failure=True)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5646, in _create_domain_and_network
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     destroy_disks_on_failure)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     self.force_reraise()
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5615, in _create_domain_and_network
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     post_xml_callback=post_xml_callback)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5550, in _create_domain
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     guest.launch(pause=pause)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 144, in launch
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     self._encoded_xml, errors='ignore')
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     self.force_reraise()
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     six.reraise(self.type_, self.value, self.tb)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 139, in launch
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     return self._domain.createWithFlags(flags)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     rv = execute(f, *args, **kwargs)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     six.reraise(c, e, tb)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     rv = meth(*args, **kwargs)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1099, in createWithFlags
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2023-02-23 16:10:18.520 7 ERROR nova.compute.manager [instance: df810251-9c80-4dbf-8255-bac437a012cc] libvirtError: internal error: process exited while connecting to monitor: 2023-02-23T08:10:10.312021Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/df810251-9c80-4dbf-8255-bac437a012cc/console.log,logappend=off: Failed to create PTY: No such file or directory

经过pdb调试代码,发现跟踪到了libvirt驱动去创建xml的 报错
代码位置:/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/drivert.py

    def _create_domain(self, xml=None, domain=None,
                       power_on=True, pause=False, post_xml_callback=None):
        """Create a domain.

        Either domain or xml must be passed in. If both are passed, then
        the domain definition is overwritten from the xml.

        :returns guest.Guest: Guest just created
        """
        if xml:
            guest = libvirt_guest.Guest.create(xml, self._host)
            if post_xml_callback is not None:
                post_xml_callback()
        else:
            guest = libvirt_guest.Guest(domain)

        if power_on or pause:
            guest.launch(pause=pause)

        if not utils.is_neutron():
            guest.enable_hairpin()

        return guest

最终在guest.launch的时候报Libvirt Error
解决:
qemu.conf配置文件中添加namespaces = []后,重启libvirt服务正常工作。

stdio_handler = "file"
namespaces = []
user = "nova"
group = "nova"

查到是一个bug导致,至于详细原因没有仔细继续往下追究,参考如下链接:
https://bugzilla.redhat.com/show_bug.cgi?id=1427804文章来源地址https://www.toymoban.com/news/detail-762682.html

到了这里,关于创建nova实例 nova-compute报错:`libvirtError: internal error: process exited while connecting to monitor`的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 数据库——报错:无法创建链接服务器 “(null)“ 的 OLE DB 访问接口 “Microsoft.Ace.OLEDB.12.0“ 的实例。

    安装完 AccessDatabaseEngine_X64 (2012).exe 后,准备在从Excel导入数据时: 输入如下代码 报错一: SQLServer阻止了对组件’AdHocDistributedQueries’的STATEMENT’OpenRowset/OpenDatasource’的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用。sp_configure启用’

    2024年02月12日
    浏览(39)
  • Azure ML 机器学习: Compute Instance, Computer Cluster, Inference Cluster的创建以及获取

    解释如何在 Azure ML Python SDK 以及 Azure Portal 上创建与获取Compute Instance, Computer Cluster, Inference Cluster。 Azure Compute Instance ,官方的中文翻译是 Azure 机器学习计算实例 。其实就是虚拟机,我们平时的代码都可以在上面跑。 在Azure Portal上,我们需要登录进Azure Machine Learning Studio,然

    2024年02月07日
    浏览(42)
  • OpenStack介绍说明、OpenStack架构说明、OpenStack核心服务详细说明【keystone,nova,cinder,neutron...】、OpenStack创建VM,服务间交互示例

    2006年亚马逊推出AWS,正式开启云计算的新纪元 2010年7月美国国家航空航天局(NASA)与Rackspace合作,共同宣布OpenStack开放源码计划,由此开启了属于OpenStack的时代 OpenStack从诞生之初对标AWS,一直在向AWS学习,同时开放接口去兼容各种AWS服务 OpenStack是什么? OpenStack是一种云操

    2024年01月15日
    浏览(56)
  • VS2022默认创建类的访问修饰符为internal问题

    由于创建类是根据模板文件生成的,所里这里我们需要修改以下vs自带的模板 找到模板位置 通常情况位于C:Program FilesMicrosoft Visual Studio2022{安装的版本:比如(Preview,Professional等)}Common7IDEItemTemplatesCSharpCode2052 找到你要修改的类型模板 进入文件夹 修改.cs文件 如: 在class前加入

    2024年02月06日
    浏览(49)
  • 【bsc】 报错 ‘code‘: -32603, ‘message‘: ‘internal error‘

    ____tz_zs 10月7日,bsc链从6点多开始,报错 valueerror: {\\\'code\\\': -32603, \\\'message\\\': \\\'internal error\\\'} 。原因是因为bsc链关闭了。 如下,10:23的截图 事情起因 黑客利用跨链桥BSC Token Hub,盗取了大量BNB。 Binance智能链因担心“潜在的漏洞”而被暂停。 相关信息 BNB 区块链因漏洞被黑?BNB下跌,

    2024年02月12日
    浏览(44)
  • 并发请求gitlab接口报错500 Internal Server Error

    Gitalb 14.9 由docker搭建,使用的数据库是内置的postgresql 近期发现自研系统在请求调用 gitlab 的 api 接口时,尤其是 并发请求同一资源 时, 我这里是并发创建subgroup这个资源 ,会得到500的报错,起初以为是自己研发的系统代码在处理过程中由于数据不准确导致的500错误,没有太

    2024年02月16日
    浏览(52)
  • 报错解决:jupyter notebook打开显示500 : Internal Server Error

    jupyter notebook打开某一ipynb文件后显示报错: 500 : Internal Server Error 示意图如下: Terminal中的报错: 问题报错的原因在于nbconvert版本不匹配,导致不兼容,需要进行更新。 进入conda环境,输入以下指令: 注:一般上述代码即可解决问题,若 上述方法不可行 ,可尝试输入以下指

    2024年02月12日
    浏览(49)
  • mac 安装cnpm报错internal/modules/cjs/loader.js:905

    mac 安装cnpm报错 internal/modules/cjs/loader.js:905 throw err; ^ Error: Cannot find module \\\'node:util\\\' 安装cnpm npm install -g cnpm 运行cnpm cnpm 报错如下 解决方式 降低cnpm版本 1.先卸载cnpm 2.通过上边的报错能知道当前cnpm是安装到了这里 然后可以运行命令打开这个文件夹 此时能看到cnpm文件夹,把这个

    2024年02月14日
    浏览(43)
  • nginx部署vue前端项目,访问报错500 Internal Server Error

    描述:当我配置好全部之后,通过 服务器 ip 地址访问,遇到报错信息: 500 Internal Server Error 。 情况说明 前提:我是通过Docker启动nginx容器,通过-v 绑定数据卷,将html文件和nginx.conf通过挂载的方式启动。 我将vue项目打包放在 html路径下。通过启动命令启动nginx容器,命令如下

    2024年02月07日
    浏览(55)
  • 关于ST-Link V2 报错internal commend error的处理办法

            确定接线没有问题:Vcc        接         Vcc                                         GND      接          GND                                         SWCLK  接         SWCLK                                         SWDIO   接        SWDIO      

    2024年02月12日
    浏览(46)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包