Ask Your Question
0

Instance failed to spawn - Kilo/CentOS 7

asked 2015-06-11 03:38:15 -0500

DanielK gravatar image

Hello

After some previous success with Juno, I have built a new openstack environment with Kilo and CentOS7, everything fine so far, however, when I try to start a test VM, it almost immediately ends up in the ERROR state. If I look through my nova-compute log I see the following:

TRACE nova.compute.manager [instance: dbef4afc-0f4a-4725-8106-db0b6cca69e3] libvirtError: Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin /etc/libvirt/hooks/qemu instance-00000008 prepare begin -) unexpected exit status 1: Traceback (most recent call last): TRACE nova.compute.manager [instance: dbef4afc-0f4a-4725-8106-db0b6cca69e3] File "/etc/libvirt/hooks/qemu", line 20, in <module> TRACE nova.compute.manager [instance: dbef4afc-0f4a-4725-8106-db0b6cca69e3] from cloudutils.configFileOps import configFileOps TRACE nova.compute.manager [instance: dbef4afc-0f4a-4725-8106-db0b6cca69e3] ImportError: No module named cloudutils.configFileOps

It looks to me like I am missing some python module, but I am pretty sure I installed all packages according to the Openstack Kilo Redhat/CentOS installation manual.

Does anybody have an idea what I could have done wrong there or what I might have forgotten?

Thanks in advance for any help.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-09-27 04:24:36 -0500

Note - for me I had a cloudstack installed before and this might be a package issue or configuration issue with libvirt etc. I did completely uninstall first before installing openstack however.

Creating the instance works but spawning does not.

openstack server create --flavor m1.tiny --image 3b024287-54dd-4528-a8c8-ca336f67c130 --key-name demo --nic net-id=5599cd2e-87a2-4036-8982-1ac76e0a42fe instance01 --debug

Looks to run fine - however when the VM spawns I'm having a similar problem, new user using the latest release -

/var/log/nova/nova-compute.log

2018-09-27 10:08:31.301 8334 ERROR nova.compute.manager [instance: 4d48e9e3-5403-4a66-9dac-9c222894ca96] Traceback (most recent call last):
...
2018-09-27 10:08:31.301 8334 ERROR nova.compute.manager [instance: 4d48e9e3-5403-4a66-9dac-9c222894ca96] libvirtError: Hook script execution failed: internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin /etc/libvirt/hooks/qemu instance-00000006 prepare begin -) unexpected exit status 1: Traceback (most recent call last):
2018-09-27 10:08:31.301 8334 ERROR nova.compute.manager [instance: 4d48e9e3-5403-4a66-9dac-9c222894ca96]   File "/etc/libvirt/hooks/qemu", line 23, in <module>
2018-09-27 10:08:31.301 8334 ERROR nova.compute.manager [instance: 4d48e9e3-5403-4a66-9dac-9c222894ca96]     from cloudutils.configFileOps import configFileOps
2018-09-27 10:08:31.301 8334 ERROR nova.compute.manager [instance: 4d48e9e3-5403-4a66-9dac-9c222894ca96] ImportError: No module named cloudutils.configFileOps

Now cloudutils sounds like it might be missing from the cloud-utils package, which i installed from yum -

yum install cloud-utils

Reboot problem still there - I'm going to start again with a fresh install of CentOS7 / packstack to test again as my issue may be that this was installed on a "used" install. Will post again if that fixes, PITA as otherwise everything appears to be running....

edit flag offensive delete link more
0

answered 2016-06-07 05:11:48 -0500

vishmule gravatar image

Create new instance with --debug option you will get exact error during instance creation. you can try installing all the required packages again using yum reinstall command.

edit flag offensive delete link more
0

answered 2016-06-06 18:22:26 -0500

Ali Solangi gravatar image

did you find the solution of this issue?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-11 03:38:15 -0500

Seen: 496 times

Last updated: Sep 27 '18