Project

General

Profile

Actions

Bug #12517

closed

VMWare VM should be created network based if it is selected in the gui

Added by Timo Goebel over 8 years ago. Updated almost 6 years ago.

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

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'


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #10237: Host.new and API disregard provision_methodDuplicate04/22/2015Actions
Related to Foreman - Bug #13986: Provisioning via API without explicitly specifying the provisioning method can lead to using combination of image and build provisioning methodsClosedIvan Necas03/01/2016Actions
Has duplicate Foreman - Bug #13141: Cloning host discards provisioning methodDuplicate01/12/2016Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

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.

Actions #2

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #10237: Host.new and API disregard provision_method added
Actions #3

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2921 added
Actions #4

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 104
Actions #5

Updated by Anonymous over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Dominic Cleal over 8 years ago

  • Has duplicate Bug #13141: Cloning host discards provisioning method added
Actions #7

Updated by Dominic Cleal about 8 years ago

  • 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
Actions

Also available in: Atom PDF