Bug 2100801
| Summary: | Upgrade to 6.11 fails if there is a setting "Append domain names to the host = No" | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
| Component: | Settings | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.11.0 | CC: | ahumbe, apatel, ehelms, lstejska, mhulan, mjivraja, shwsingh |
| Target Milestone: | Unspecified | Keywords: | Triaged, Upgrades |
| Target Release: | Unused | Flags: | shwsingh:
needinfo?
(lpramuk) |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
|
Description
Lukas Pramuk
2022-06-24 10:33:24 UTC
comment#0 has output after applying workaround, so the output should be: 2022-06-21 05:13:09 [ERROR ] [configure] Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ 2022-06-21 05:13:09 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_instance_host[foreman-satellite.example.com]/ensure: change from 'absent' to 'present' failed: Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ 2022-06-21 05:14:49 [ERROR ] [configure] Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ 2022-06-21 05:14:49 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-satellite.example.com]/ensure: change from 'absent' to 'present' failed: Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ there is a following workaround: /etc/foreman-installer/custom-hiera.yaml: foreman::register::foreman_host_name: satellite <- hostname w/o domain part After applying you still get 2nd issue: 2022-06-22 06:30:15 [ERROR ] [configure] Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ 2022-06-22 06:30:15 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-satellite.example.com]/ensure: change from 'absent' to 'present' failed: Host satellite.example.com does not exist in Foreman at https://satellite.example.com/ there is another workaround: # satellite-installer --foreman-proxy-registered-name satellite <- hostname w/o domain part and you get a last issue: 2022-06-22 06:58:52 [ERROR ] [configure] Error making POST request to Foreman at https://satellite.example.com/api/v2/smart_proxies: URL Only one declaration of a proxy is allowed 2022-06-22 06:58:52 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite]/ensure: change from 'absent' to 'present' failed: Error making POST request to Foreman at https://satellite.example.com/api/v2/smart_proxies: URL Only one declaration of a proxy is allowed it tries to create new proxy with the url already used, so the last workaround is: # hammer proxy update --name satellite.example.com --new-name satellite <- hostname w/o domain part The discussion seems to be in favor of dropping the setting entirely, keeping the domain appeneded all the time. For users who don't want to see the domain in the host list, this can be implemented on a view layer, the database would though always store the whole name. Moving to the settings component. I will make sure we'll deprecate this setting in the earliest possible Satellite version. Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team. Thank you. |