Project

General

Profile

Bug #25584

Unclear error when not specifying the 'path' under --compute-attributes section

Added by Shira Maximov over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Hammer
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When not specifying the 'path' under --compute-attributes section when trying to create a host in vmware and provision it by image,
then you will get the following error:

Could not create the host:
Failed to create a compute vmware (VMware) instance test.tlv.redhat.com: undefined method `sub' for nil:NilClass

The command line to reproduce:
hammer host create --name test --environment-id 1 --organization-id 2 --location-id 1 --hostgroup-id 1 --operatingsystem-id 1 --architecture "x86_64" --domain-id 1 --subnet-id 1 --compute-resource-id 14 --provision-method 'image' --compute-attributes "cpus=1, corespersocket=2, memory_mb=4096, cluster=Compute_Cluster, image_id=XXXXX" --interface "compute_network=XXXX, type=interface , managed=1, primary=1, provision=1, type=interface" --ip XXX.XXX.XXX.XXX --volume "datastore=XXXX, size_gb=1, thin=true"


Related issues

Related to Hammer CLI - Tracker #26990: Tracker for VMware issuesClosed

Related to Hammer CLI - Bug #28541: [Hammer] host creation using hostgroup fails Closed

Associated revisions

Revision 0ad0bd12 (diff)
Added by Oleh Fedorenko 11 months ago

Fixes #25584 - Improve help for compute resources

Revision 2f3b422c
Added by Shira Maximov 11 months ago

Merge pull request #427 from ofedoren/bug-25584-path-comp-attr

Fixes #25584 - Improve help for compute resources

History

#1 Updated by Oleh Fedorenko about 1 year ago

#2 Updated by Oleh Fedorenko about 1 year ago

  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned

#3 Updated by The Foreman Bot 12 months ago

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

#4 Updated by Martin Bacovsky 12 months ago

  • Triaged changed from No to Yes

#5 Updated by Martin Bacovsky 11 months ago

  • Team Backlog Hammer added

#6 Updated by The Foreman Bot 11 months ago

  • Fixed in Releases hammer-cli-foreman-0.19.0 added

#7 Updated by Oleh Fedorenko 11 months ago

  • Status changed from Ready For Testing to Closed

#8 Updated by Kavita Gaikwad 7 months ago

  • Related to Bug #28541: [Hammer] host creation using hostgroup fails added

Also available in: Atom PDF