Red Hat Satellite 6 upgrade failed with error change from absent to present failed: Proxy satellite.example.com cannot be registered: URL Only one declaration of a proxy is allowed.
Environment
- Red Hat Satellite 6
Issue
-
While upgrading Red Hat Satellite 6, following error was encountered:
[root@satellite]# satellite-installer --scenario satellite --upgrade /usr/bin/puppet:8:in `<main>' /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[satellite.example.com]/ensure: change from absent to present failed: Proxy satellite.example.com cannot be registered: URL Only one declaration of a proxy is allowed
Resolution
-
Change the name of the internal capsule server (which is the satellite server itself) so that it matches with the URL using below command:
# hammer capsule list //copy the ID of the capsule server # hammer capsule update --name "satellite.example.com" --id 1
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Root Cause
- The name of the internal capsule server (which is the satellite server itself) was changed.
Diagnostic Steps
-
Check if there is any discrepancy present on the satellite server using the below command:
# hammer capsule list
ID | NAME | URL | FEATURES
-|-|-|-
1 | satellite6 | https://satellite.example.com:9090 | Pulp, Puppet, Puppet C...
-|-|-|-
```
Note: The Name and URL for the internal capsule should be the same.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.