Project

General

Profile

Actions

Bug #13966

closed

Host creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected

Added by Alexandre Barth about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

hammer -u admin -p changeme host create --build false --enabled false --hostgroup ESXi-Prod --model 'IBM 3650 M4' --interface='primary=true,provision=true,ip=192.168.0.1,mac=34:40:b5:9f:fe:64' --parameters ipvmotion1=192.168.0.2,ipvmotion2=192.168.0.3,ipft=192.168.0.4 --name esxi1
Could not create the host:
Error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected

This command used to work in Foreman 1.10 and previsous releases.


Related issues 2 (0 open2 closed)

Related to Hammer CLI - Bug #14312: hammer-cli-foreman-0.6.1 misses dependency on apipie-bindings >=0.0.16ClosedTomáš Strachota03/22/2016Actions
Has duplicate Hammer CLI - Bug #13928: Interface attributes are not parsed correctlyDuplicate02/27/2016Actions
Actions #1

Updated by Dominic Cleal about 8 years ago

  • Project changed from Foreman to Hammer CLI
  • Category set to Foreman commands (obsolete)
  • translation missing: en.field_release set to 71
Actions #2

Updated by Dominic Cleal about 8 years ago

  • Subject changed from Host creation error to Host creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected
Actions #3

Updated by Tomáš Strachota about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
Actions #4

Updated by Tomáš Strachota about 8 years ago

  • Has duplicate Bug #13928: Interface attributes are not parsed correctly added
Actions #5

Updated by Tomáš Strachota about 8 years ago

  • Target version set to hammer-cli 0.6.1
Actions #6

Updated by Dominic Cleal about 8 years ago

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

Updated by Anonymous about 8 years ago

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

Updated by Alexandre Barth about 8 years ago

Using foreman 1.11RC2 with hammer cli 0.6.1 now i get this error for the same command :

Could not create the host:
Error: undefined method `[]' for nil:NilClass

Actions #9

Updated by Dominic Cleal about 8 years ago

Could you file a new bug report please with debug output (hammer -d [..]) and the server-side production.log for the request? Thanks!

Actions #10

Updated by Dominic Cleal about 8 years ago

  • Related to Bug #14312: hammer-cli-foreman-0.6.1 misses dependency on apipie-bindings >=0.0.16 added
Actions #11

Updated by Marek Hulán about 8 years ago

  • Bugzilla link set to 1319079
Actions

Also available in: Atom PDF