Permission Denied While Starting instance in Openstack

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

(: August 12, 2018)

As I was building Openstack Lab, I happen to encounter error message as it was seen on a log file from.tail -f /var/log/nova/nova-compute.log

[[email protected] ~(keystone)]# tail -f /var/log/nova/nova-compute.log 

2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher     rv = meth(*args, **kwargs)
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1059, in createWithFlags
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2016-03-21 22:05:34.283 1228 ERROR oslo_messaging.rpc.dispatcher libvirtError: internal error: process exited while connecting to monitor: 2016-03-22T02:05:33.427711Z qemu-kvm: -chardev file,id=charserial0,path=/var/lib/nova/instances/0b79cc65-c530-4e55-99b8-157524033d14/console.log: Could not open '/var/lib/nova/instances/0b79cc65-c530-4e55-99b8-157524033d14/console.log': Permission denied

This error came up when tried to start an instance that has been created earlier.

.td_uid_2_5d90a35a8f783_rand.td-a-rec-img{text-align:left}.td_uid_2_5d90a35a8f783_rand.td-a-rec-img img{margin:0 auto 0 0}
nova start 0b79cc65-c530-4e55-99b8-157524033d14

Apparently, I had had some issues manually starting kvm machines so I had played around with this file /etc/libvirt/qemu.conf

user="qemu"
group="qemu"
dynamic_ownership =0

To prevent this error revert the changes to:

systemctl stop libvirtd

Edit qemu.conf file:

sudo vim /etc/libvirt/qemu.conf

Set the following

user="nova"
group="nova"
dynamic_ownership =1

Save the file then restart the libvirt daemon

systemctl restart libvirtd

You should now be able to start Openstack Instance on your compute nodes.

 

.td_uid_4_5d90a35a8f971_rand.td-a-rec-img{text-align:left}.td_uid_4_5d90a35a8f971_rand.td-a-rec-img img{margin:0 auto 0 0}

Related posts

How To List Which Apache Modules are Enabled on Fedora 23

SXI ADMIN

Could deflation cause problems for bitcoin?

SXI ADMIN

Healthy Pullback? Bitcoin Price Dips Back Below $5,300

SXI ADMIN

ConsenSys Is Seeking $200 Million in New Funding: Report

SXI ADMIN

Whale Club: The Trading Room That Loves Bitcoin Price Declines

SXI ADMIN

Media Producer Launches Blockchain Initiative with Government Backing

SXI ADMIN

Pantera, Binary and SecondMarket Emerge as Silk Road Bitcoin Bidders

SXI ADMIN

Solaris UNIX Case-Insensitive Find File Search

SXI ADMIN

Crypto’s King Midas: Backstage With CZ, the CEO Who Can’t Be Stopped

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More