Project

General

Profile

Actions

Bug #10867

closed

Openstack boot from volume always enabled, even if unchecked

Added by Andy Taylor over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Compute resources - OpenStack
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We've just upgraded our Foreman installation to 1.8.2 and found that our Openstack provisioning stopped working. We've narrowed the issue down to the new Openstack boot from volume code (see http://projects.theforeman.org/issues/4521).

It seems that even if the "Boot from volume" button is unchecked, Foreman still fires the boot_from_volume function in /usr/share/foreman/app/models/compute_resources/foreman/model/openstack.rb. In our infrastructure this broke our provisioning as we don't use Ceph/block device volumes on Openstack.

On line 76 of openstack.rb:

    def create_vm(args = {})
      boot_from_volume(args) if args[:boot_from_volume]
....

When I create a new Openstack VM, boot_from_volume always gets called, even though I can see '"boot_from_volume"=>"false"' in the Foreman logs for the new host.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #4521: Openstack boot from volumeClosedDaniel Lobato Garcia03/03/2014Actions
Actions

Also available in: Atom PDF