Project

General

Profile

Bug #13986

Provisioning via API without explicitly specifying the provisioning method can lead to using combination of image and build provisioning methods

Added by Ivan Necas over 4 years ago. Updated almost 2 years ago.

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

Description

1. create a compute profile with an image assigned
2. assign the compute profile to a host group (not needed, but it makes the hammer command shorter, inheriting other required host attrs)
3. `host create --hostgroup=base --compute-resource=libvirt --name test-9 --location Default_Location --organization Default_Organization1 --compute-attributes="start=1" --subnet libvirt)

As a result, new host is created, with sending the image id to the compute resource, while expecting the the pxe boot to happen the machine,
which doesn't happen, because the host is created using the base image.


Related issues

Related to Foreman - Bug #12517: VMWare VM should be created network based if it is selected in the guiClosed2015-11-18

Associated revisions

Revision 4c512942 (diff)
Added by Ivan Necas about 4 years ago

Fixes #13986 - don't use image unless in image provisioning method

Revision a782b917 (diff)
Added by Ivan Necas about 4 years ago

Fixes #13986 - don't use image unless in image provisioning method

(cherry picked from commit 4c512942c3921cf8be696ed12cc588b1716b29d7)

History

#1 Updated by Dominic Cleal over 4 years ago

  • Related to Bug #12517: VMWare VM should be created network based if it is selected in the gui added

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3265 added

#3 Updated by Ivan Necas about 4 years ago

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

#4 Updated by Dominic Cleal about 4 years ago

  • Category set to Compute resources
  • Legacy Backlogs Release (now unused) set to 141

Also available in: Atom PDF