Bug 1343585
Summary: | Bootstrap script assumes that host's domain is created prior to running bootstrap.py. | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> | |
Component: | Bootstrap | Assignee: | Rich Jerrido <rjerrido> | |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.2.0 | CC: | bbuckingham, bkearney, dmoessne, egolov, greartes, johan.bergstrom, sanichol, zhunting | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | katello-client-bootstrap-1.2.0-4 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1394380 (view as bug list) | Environment: | ||
Last Closed: | 2016-12-12 17:11:39 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1394380 |
Description
Lukas Pramuk
2016-06-07 13:55:01 UTC
There is a PR upstream to solve this: https://github.com/Katello/katello-client-bootstrap/pull/85 The current $SUBJECT of this BZ is a bit inaccurate. current bootstrap assumes the domain of the host that is being registered exists prior to invocation of the script. On a Satellite with a single domain, these are the same, but may not always be the case. Updating $SUBJECT appropriately. Upstream code is merged, moving to POST. VERIFIED. @satellite-6.2.5-1.0.el6sat.noarch katello-client-bootstrap-1.2.0-4.el6sat.noarch # ./bootstrap.py -l admin -p changeme -s <SAT_FQDN> -o 'Default Organization' -L 'Default Location' -g 'My Hostgroup' -a 'My AK' ... [NOTIFICATION], [2016-12-05 09:15:29], [Domain khw.example.com doesn't exist in Foreman, consider using the --add-domain option.] # ./bootstrap.py -l admin -p changeme -s <SAT_FQDN> -o 'Default Organization' -L 'Default Location' -g 'My Hostgroup' -a 'My AK' --add-domain ... [RUNNING], [2016-12-05 09:19:10], [Calling Foreman API to create domain khw.example.com associated with the org & location] [RUNNING], [2016-12-05 09:19:10], [Calling Foreman API to create a host entry associated with the group & org] [SUCCESS], [2016-12-05 09:19:10], [Successfully created host host.khw.example.com], completed successfully. ... >>> when a host has different domain than Satellite script offers to add '--add-domain' option >>> with '--add-domain' option host is created successfully (and its domain too) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:2940 |