Actions
Bug #10867
closedOpenstack boot from volume always enabled, even if unchecked
Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - OpenStack
Target version:
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.
Actions