Project

General

Profile

Bug #13984

When using image-based provisioning via hammer, the subnet is not inherited from the hostgroup

Added by Ivan Necas over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

1. configure image-based provisioning with dhcp integration
2. try co provision a host via hammer

bundle exec bin/hammer host create --hostgroup=base --compute-resource=libvirt --name test-9 --compute-attributes="start=1" --provision-method image

3. An error is produced:

Could not create the host:
  Ip can't be blank

Expected behaviour: the subnet from the hostgroup is used by default

Workaround: specify the subnet explicitly


Related issues

Related to Foreman - Bug #13507: Creating VMs with hammer requires too many parametersResolved2016-02-01
Copied to Foreman - Bug #14343: When using image-based provisioning via hammer, the subnet is not inherited from the hostgroupClosed2016-03-01

Associated revisions

Revision 17f4ee61 (diff)
Added by Ivan Necas over 3 years ago

Fixes #13984 - inherit subnet from hostgroup even for image-based provisioning

Revision bab7ea36 (diff)
Added by Ivan Necas over 3 years ago

Fixes #13984 - inherit subnet from hostgroup even for image-based provisioning

(cherry picked from commit 17f4ee612bf1308cb51d4644bdd76ba7dc73eea7)

History

#1 Updated by Ivan Necas over 3 years ago

  • Related to Bug #13507: Creating VMs with hammer requires too many parameters added

#2 Updated by The Foreman Bot over 3 years ago

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

#3 Updated by Dominic Cleal over 3 years ago

  • Category set to Host creation

#4 Updated by Ivan Necas over 3 years ago

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

#5 Updated by Dominic Cleal over 3 years ago

  • Legacy Backlogs Release (now unused) set to 141

#6 Updated by Guido Günther over 3 years ago

Ivan Necas wrote:

Applied in changeset 17f4ee612bf1308cb51d4644bdd76ba7dc73eea7.

Could this be fixed on 1.10.x as well? We won't be able to update to 1.11.x in not time so this would be awesome. I'm currently using the original PR to fix this.

#7 Updated by Guido Günther over 3 years ago

Guido Günther wrote:

Ivan Necas wrote:

Applied in changeset 17f4ee612bf1308cb51d4644bdd76ba7dc73eea7.

Could this be fixed on 1.10.x as well? We won't be able to update to 1.11.x in not time so this would be awesome. I'm currently using the original PR to fix this.

...ahh wrong but having this fixed on 1.10.x would be awesome as well.

#8 Updated by Dominic Cleal over 3 years ago

  • Copied to Bug #14343: When using image-based provisioning via hammer, the subnet is not inherited from the hostgroup added

#9 Updated by Dominic Cleal over 3 years ago

Sorry Guido, I messed that up and forgot to do it before 1.10.3. I've put it on the .4 list and it remains due for 1.11.1 too.

Also available in: Atom PDF