Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to launch instance libvirtError Unable to open logfile Permission denied

I a pip install of kolla 5.0.0 and kolla-ansible 5.0.0 and successfully deployed openstack using one control node and one compute node. Both node are running Centos 7.

I can not launch any instances and I these errors whenever I try to launch. I went ahead and just put all the log errors I get on both nodes below:

Control Node nova-conductor.log

2017-11-17 10:33:31.962 24 ERROR nova.scheduler.utils [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Error from last host: openstackcompute.glv.internal (node openstackcompute.glv.internal): [u'Traceback (most recent call last):\n', u'  File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1826, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2056, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance b54e0fe7-d1d8-4546-826e-9e1d99047fde was re-scheduled: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied\n']

Compute Node libvirt.log:

2017-11-17 15:33:31.018+0000: 100084: error : qemuMonitorOpenUnix:369 : failed to connect to monitor socket: No such process
2017-11-17 15:33:31.018+0000: 100084: error : qemuProcessReportLogError:1862 : internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied

Compute Node nova-compute.log:

2017-11-17 10:33:31.025 7 ERROR nova.virt.libvirt.driver [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Failed to start libvirt guest: libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Instance failed to spawn: libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     self._encoded_xml, errors='ignore')
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied



2017-11-17 10:33:31.024 7 ERROR nova.virt.libvirt.guest [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] Error launching a defined domain with XML: <domain type='kvm'>
2017-11-17 10:33:31.025 7 ERROR nova.virt.libvirt.driver [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Failed to start libvirt guest: libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [req-3fe7af7e-d999-42c7-87ff-2dc771c3968f bb6703dadfa44cb790e9564bc8337ffc 3e9758b5569f4b389f13799968bfb5f3 - default default] [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Instance failed to spawn: libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] Traceback (most recent call last):
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2162, in _build_resources
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     yield resources
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1977, in _build_and_run_instance
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     block_device_info=block_device_info)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2805, in spawn
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     destroy_disks_on_failure=True)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5274, in _create_domain_and_network
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     destroy_disks_on_failure)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     self.force_reraise()
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     six.reraise(self.type_, self.value, self.tb)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5244, in _create_domain_and_network
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     post_xml_callback=post_xml_callback)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5162, in _create_domain
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     guest.launch(pause=pause)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 144, in launch
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     self._encoded_xml, errors='ignore')
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     self.force_reraise()
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     six.reraise(self.type_, self.value, self.tb)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 139, in launch
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     return self._domain.createWithFlags(flags)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     rv = execute(f, *args, **kwargs)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     six.reraise(c, e, tb)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     rv = meth(*args, **kwargs)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in createWithFlags
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde] libvirtError: internal error: process exited while connecting to monitor: 2017-11-17T15:33:30.932554Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/b54e0fe7-d1d8-4546-826e-9e1d99047fde/console.log: Permission denied
2017-11-17 10:33:31.330 7 ERROR nova.compute.manager [instance: b54e0fe7-d1d8-4546-826e-9e1d99047fde]