Bug #12517
closed
VMWare VM should be created network based if it is selected in the gui
Added by Timo Goebel about 9 years ago.
Updated over 6 years ago.
Category:
Compute resources - VMware
|
Description
When creating a host network based foreman creates the host image based because the image_id is always set.
in app/models/compute_resources/foreman/model/vmware.rb create_vm
if args[:image_id].present?
should be
if args[:provision_method] == 'image'
I think the image_id in the New Host form is disabled for a network build so shouldn't be sent in the form parameters. This might happen if the image_id is stored on a compute profile as it'll get copied in regardless. #10237 reports this too from inside a plugin or the API.
- Related to Bug #10237: Host.new and API disregard provision_method added
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2921 added
- Translation missing: en.field_release set to 104
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Has duplicate Bug #13141: Cloning host discards provisioning method added
- Related to Bug #13986: Provisioning via API without explicitly specifying the provisioning method can lead to using combination of image and build provisioning methods added
Also available in: Atom
PDF