Ask Your Question
0

Can't boot instance on debian, seem libvirt issue

asked 2015-01-20 04:52:24 -0600

iqbal gravatar image

Dear stackers,

I deploy openstack juno on debian wheezy 7.7 and i can't boot instance, i got some error log

nova-compute.log

2015-01-20 17:48:09.736 17207 ERROR nova.compute.manager [-] [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271] Instance failed to spawn
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271] Traceback (most recent call last):
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2243, in _build_resources
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     yield resources
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2113, in _build_and_run_instance
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     block_device_info=block_device_info)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2615, in spawn
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     admin_pass=admin_password)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3005, in _create_image
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     project_id=instance['project_id'])
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 208, in cache
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     *args, **kwargs)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 451, in create_image
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     prepare_template(target=base, max_size=size, *args, **kwargs)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 272, in inner
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     return f(*args, **kwargs)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 198, in fetch_func_sync
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     fetch_func(target=target, *args, **kwargs)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py", line 452, in fetch_image
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     max_size=max_size)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 79, in fetch_to_raw
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]     max_size=max_size)
2015-01-20 17:48:09.736 17207 TRACE nova.compute.manager [instance: 0bef66d1-da41-4dc1-8930-a8d8b93ab271]   File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 73, in ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-20 09:32:40 -0600

iqbal gravatar image

Dear Yashpal,

Thank you for your response,

I think the problem is libvirtd, i already re-install and re-configure but still no luck, this is libvirtd.log

2015-01-20 10:46:35.904+0000: 17045: info : libvirt version: 1.2.9, package: parsechangelog [<option>...]  Options: l<changelog-file>       get per-version info from this file. F<changelog-format>     force changelog format. L<libdir>               look for changelog parsers in <libdir>. ?, --help               show this help message. -version            show the version.  Parser options: -format <output-format>    see man page for list of available                                 output formats, defaults to 'dpkg' dev -since <version>,          include all changes later than version s<version>, -v<version> -until <version>,          include all changes earlier than version u<version> -from <version>,           include all changes equal or later f<version>               than version -to <version>, -t<version> include all changes up to or equal                                 than version -count <number>,           include <number> entries from the top c<number>, -n<number>    (or the tail if <number> is lower than 0) -offset <number>,          change the starting point for --count, o<number>                counted from the top (or the tail if                                 <number> is lower than 0) -all                       include all changes (root 2014-10-28-08:35:12 bogon)
2015-01-20 10:46:35.904+0000: 17045: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types
2015-01-20 10:46:35.904+0000: 17045: warning : virQEMUCapsInit:991 : Failed to get host power management capabilities
2015-01-20 10:46:36.326+0000: 17045: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types
2015-01-20 10:46:36.326+0000: 17045: warning : virLXCDriverCapsInit:86 : Failed to get host power management capabilities
2015-01-20 10:46:36.329+0000: 17045: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types
2015-01-20 10:46:36.329+0000: 17045: warning : umlCapsInit:74 : Failed to get host power management capabilities
2015-01-20 10:47:38.115+0000: 17034: error : virNetSocketReadWire:1571 : End of file while reading data: Input/output error
2015-01-20 10:47:38.945+0000: 17037: error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types
2015-01-20 10:47:38.945+0000: 17037: warning : virQEMUCapsInit:991 : Failed to get host power management capabilities

Thank you

edit flag offensive delete link more
0

answered 2015-01-21 03:23:56 -0600

updated 2015-01-21 03:30:48 -0600

Dear Iqbal, from the log file you posted, it is sure that the line error : virNodeSuspendSupportsTarget:332 : internal error: Cannot probe for supported suspend types is the culprit. I checked the source code(virnodesuspend) from which i believe that you are stuck because of missing modules.

Install the following packages.

apt-get install pm-utils

This may resolve your problem. Let me know if the above worked.

edit flag offensive delete link more

Comments

Dear Yashpal,

pm-utils already installed when install nova-compute, but I already re-install it too, but still no luck..

I try googling, but did'nt find the answer

Is this a bug??

Thank you

iqbal gravatar imageiqbal ( 2015-01-22 01:01:44 -0600 )edit

Hey Iqbal, I went to my brother www.google.com and found this. According to this report, the error you have encountered is a bug.

Yashpal Beppurana gravatar imageYashpal Beppurana ( 2015-01-22 02:14:22 -0600 )edit

Dear Yashpal,

Thank you so much...I will migrate to ubuntu for compute node and debian for management,

I have on more question if you don't mind about neutron network,

please follow https://ask.openstack.org/en/question...

Many thanks..

iqbal gravatar imageiqbal ( 2015-01-22 02:44:54 -0600 )edit
0

answered 2015-01-20 06:45:09 -0600

Hey Iqbal, from the log file you posted, i can only see that your instance has failed to produce. So, can you post more of the log file. Take a thorough look into the log files, chances are there that you can extract more error info. Look into these log files.

/var/log/nova/nova-compute.log
/var/log/libvirt/libvirtd.log
/var/log/nova/nova-api.log

Also check for these files

etc/libvirt/qemu/*.xml
/var/lib/nova/instances/*

If at all an instance has created then, there should be an appropriate *.xml file generated. You can check using the id of your instance.

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-01-20 04:52:24 -0600

Seen: 1,152 times

Last updated: Jan 21 '15