Bug #13966
closed
Host creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected
Added by Alexandre Barth over 8 years ago.
Updated over 6 years ago.
Category:
Foreman commands (obsolete)
|
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.
- Project changed from Foreman to Hammer CLI
- Category set to Foreman commands (obsolete)
- Translation missing: en.field_release set to 71
- Subject changed from Host creation error to Host creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
- Has duplicate Bug #13928: Interface attributes are not parsed correctly added
- Target version set to hammer-cli 0.6.1
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/221 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
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
Could you file a new bug report please with debug output (hammer -d [..]) and the server-side production.log for the request? Thanks!
- Related to Bug #14312: hammer-cli-foreman-0.6.1 misses dependency on apipie-bindings >=0.0.16 added
- Bugzilla link set to 1319079
Also available in: Atom
PDF