Ask Your Question
0

RDO Icehouse: Can't boot from volume

asked 2014-05-23 14:57:27 -0500

netracer gravatar image

I have a configuration with separate machines for compute and controller nodes. RHEL 6.5, RDO Icehouse.

When I try to boot from boot volume (both in dashboard and console), I get the following error:

2014-05-19 12:37:56.491 4145 WARNING nova.virt.libvirt.driver [req-62c6aada-c059-4945-bd5b-95aa6d771c28 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] [instance: 7ca49563-5a88-4f2d-9f59-0cd3ce888e3f] File injection into a boot from volume instance is not supported

Then it waits for 5 minutes, then instance start fails (KVM VM is in 'paused' mode). Cinder works with iSCSI NetApp plugin (C-mode direct), but with the standard LVM the problem remains. Volumes themselves work and get mapped. If I mount boot volume to an already started instance, it has the files.

I tried to boot from RAW volume - same result.

Boot from volume is turned on in nova settings.

What can it be?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-24 17:52:44 -0500

@netracer

The warning was from nova/virt/libvirt/driver.py

elif inject_files and CONF.libvirt.inject_partition != -2:
        if booted_from_volume:
            LOG.warn(_('File injection into a boot from volume '
                       'instance is not supported'), instance=instance)
        self._inject_data(
            instance, network_info, admin_pass, files, suffix)

It will still move on to call self._inject_data though.

Does it generate extra logs in /var/log/nova/compute.log ?

edit flag offensive delete link more

Comments

http://docs.openstack.org/grizzly/ope... Setting should allow to avoid the warning and see what happens then.

dbaxps gravatar imagedbaxps ( 2014-05-25 22:15:12 -0500 )edit

Just added libvirt_inject_partition=-2

The log looks like:

2014-05-26 10:40:27.751 4115 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.202.100.133
2014-05-26 10:40:28.751 4115 INFO nova.virt.libvirt.driver [req-02b91e17-4cb8-4892-9413-44d2226922b9 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] [instance: 0b465a4a-0c19-4fb0-b231-136984957139] Creating image
2014-05-26 10:45:32.880 4115 WARNING nova.virt.libvirt.driver [req-02b91e17-4cb8-4892-9413-44d2226922b9 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] Timeout waiting for vif plugging callback for instance 0b465a4a-0c19-4fb0-b231-136984957139
2014-05-26 10:45:34.603 4115 INFO nova.virt.libvirt.driver [req-02b91e17-4cb8-4892-9413-44d2226922b9 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] [instance: 0b465a4a-0c19-4fb0-b231-136984957139] Deleting instance files /var/lib/nova/instances/0b465a4a-0c19-4fb0-b231-136984957139
2014-05-26 10:45:34.603 4115 INFO nova.virt.libvirt.driver [req-02b91e17-4cb8-4892-9413-44d2226922b9 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] [instance: 0b465a4a-0c19-4fb0-b231-136984957139] Deletion of /var/lib/nova/instances/0b465a4a-0c19-4fb0-b231-136984957139 complete
2014-05-26 10:45:34.756 4115 ERROR nova.compute.manager [req-02b91e17-4cb8-4892-9413-44d2226922b9 995970258750465496fed29039c3f4c9 11fdc52234914c3ebf3f565b8a94339f] [instance: 0b465a4a-0c19-4fb0-b231-136984957139] Instance failed to spawn
2014-05-26 10:45:34.756 4115 TRACE nova.compute.manager [instance: 0b465a4a-0c19-4fb0-b231-136984957139] Traceback (most recent call ...
(more)
netracer gravatar imagenetracer ( 2014-05-26 01:56:29 -0500 )edit

Try update nova.conf :-
vif_plugging_is_fatal=False
vif_plugging_timeout=0 or 10 ( try both numbers with intend to decrease timeout )
Nova services restart.

dbaxps gravatar imagedbaxps ( 2014-05-26 02:31:30 -0500 )edit

vif_plugging_is_fatal=False vif_plugging_timeout=0

This helped, thank you! But does it disable networking on instances? I have not set up Neutron yet, maybe that is the reason?

netracer gravatar imagenetracer ( 2014-05-26 06:03:40 -0500 )edit

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: 2014-05-23 14:57:27 -0500

Seen: 917 times

Last updated: May 24 '14