Bug #13966
closedHost creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected
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.
Updated by Dominic Cleal over 8 years ago
- Project changed from Foreman to Hammer CLI
- Category set to Foreman commands (obsolete)
- Translation missing: en.field_release set to 71
Updated by Dominic Cleal over 8 years ago
- Subject changed from Host creation error to Host creation error: ApipieBindings::InvalidArgumentTypesError: host[interfaces_attributes][0] - Hash was expected
Updated by Tomáš Strachota over 8 years ago
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
Updated by Tomáš Strachota over 8 years ago
- Has duplicate Bug #13928: Interface attributes are not parsed correctly added
Updated by Tomáš Strachota over 8 years ago
- Target version set to hammer-cli 0.6.1
Updated by Dominic Cleal over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/hammer-cli-foreman/pull/221 added
Updated by Anonymous over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|14756817abeec6762c3ad8577e858ca66ac109af.
Updated by Alexandre Barth over 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
Updated by Dominic Cleal over 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!
Updated by Dominic Cleal over 8 years ago
- Related to Bug #14312: hammer-cli-foreman-0.6.1 misses dependency on apipie-bindings >=0.0.16 added