Pivotal Cloud Foundry® Being Associated with Internal IP Rather than FQDN
search cancel

Pivotal Cloud Foundry® Being Associated with Internal IP Rather than FQDN

book

Article ID: 293601

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Symptoms:

Operations Manager should always be accessed via its Fully Qualified Domain Name (FQDN). (This is to prevent any issues if its IP address changes).

If you are unable to access Operations Manager via its FQDN after first connecting to it via its internal IP, please carry out the following resolution.

Logging into Operations Manager UI using FQDN gets the error:

Invalid redirect https://<FQDN address>/auth/cloudfoundry/callback did not match one of the registered values

 

Environment


Cause

When it is accessed via its internal IP after an initial install, this IP will be saved to the internal database rather than the FQDN.

When accessing Operations Manager for the first time, this address gets stored in the database as the default location for accessing Operations Manager.

 

Resolution

The database needs to be updated with Operations Manager FQDN rather than its IP address.

1. Log on to Operations Manager VM via Secure SHell (SSH).
2. Connect to the postgres database and list the current settings.

sudo -u postgres psql -d tempest_production -c "SELECT id, hostname from uaa_configs"
 id |       hostname
----+----------------------
  1 | <ops manager  IP address>
(1 row)

3. Replace FQDN with the one that is bound to your IP address.

$ sudo -u postgres psql -d tempest_production -c "UPDATE uaa_configs set hostname='<Ops Manager FQDN>' where id=1"

4. Check again that it has updated correctly.

$ sudo -u postgres psql -d tempest_production -c "SELECT id, hostname from uaa_configs"
 id |       hostname
----+----------------------
  1 | <ops manager FQDN>
(1 row)

5. Reboot the Operations Manager VM. 

$ sudo shutdown -r now

After rebooting, try to access your Operations Manager via its FQDN.