Hide Forgot
Description of problem: Running bootstrap.py to register an existing RHEL6 host fails with the following error: Error: The following error occured while talking to the API: url: https://satellite.example.com:8443/api/v2/hosts/ code: 422 data: { "host": { "managed": "true", "name": "sec_test", "hostgroup_id": 1, "organization_id": 1, "mac": "00:50:56:95:67:67", "architecture_id": 1, "location_id": 3, "domain_id": 1 } } error: { "error": { "errors": { "interfaces.name": [ "is invalid" ], "interfaces.ip": [ "can't be blank" ], "name": [ "is invalid" ] }, "id": null, "full_messages": [ "Ip can't be blank", "Name is invalid", "Name is invalid" ] } } Version-Release number of selected component (if applicable): katello-client-bootstrap-1.1.0-2.el7sat.noarch satellite-6.2.1-1.2.el7sat.noarch How reproducible: Always Additional info: Also tried the script at https://github.com/Katello/katello-client-bootstrap. This one fails with the following error: FATAL Error - local variable 'e' referenced before assignment
Using a suggestion from a comment in https://github.com/Katello/katello-client-bootstrap, I added "--unmanaged" to the options and that seems to work. The client registers to the Satellite, installs katello and puppet, etc. Not sure if there is any functionality missing by using this option.
What were the specs of this host? (output from subscription-manager facts & facter would be useful here as a reproducer)
Sorry, no longer have access to this customer's systems to retry. Workaround "--unmanaged" worked fine, though. Thanks
I am closing this out per comment 4.