Duplicate ‘bosh-dns-aliases’ error while installing PAS 2.1 on GCP
search cancel

Duplicate ‘bosh-dns-aliases’ error while installing PAS 2.1 on GCP

book

Article ID: 293532

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

Symptoms:
Encountered following error while installing PAS 2.1 on GCP using Operations (ops) Manager 2.1 build 304
Task 327 | 21:10:26 | Preparing deployment: Preparing deployment (00:00:01)
                    L Error: Colocated job 'bosh-dns-aliases' is already added to the instance group 'database'.
Task 327 | 21:10:28 | Error: Colocated job 'bosh-dns-aliases' is already added to the instance group 'database'.

Task 327 Started  Tue May 22 21:10:26 UTC 2018
Task 327 Finished Tue May 22 21:10:28 UTC 2018
Task 327 Duration 00:00:02
Task 327 error


===== 2018-05-22 21:10:46 UTC Finished "/usr/local/bin/bosh --no-color --non-interactive --tty --environment=10.0.0.10 --deployment=cf-75cf73706155a111853c deploy /var/tempest/workspaces/default/deployments/cf-75cf73706155a111853c.yml"; Duration: 115s; Exit Status: 1
Exited with 1.

Environment


Cause

BOSH did not clean up the 'bosh-dns-aliases' config for the deleted PAS 2.1 tile. 

Steps to reproduce - 
PCF operator tries to install PAS 2.1 tile for some configuration issues the operator removes the tile and clicks Apply Changes. In this case the Ops Man or BOSH is supposed to clean up all the configuration related to deleted PAS 2.1 tile. However, one config remains to be deleted and that is 'bosh-dns-aliases'. 
Due to this when you try to reinstall the PAS 2.1 tile the Ops Man or BOSH finds the duplicate configuration for 'bosh-dns-aliases' and it fails with the error shown above.

Resolution

  1. Log in to Operations Manager, using credentials from Ops Man Director tile 
    1. Select Credentials tab
    2. Select values for 'Bosh Commandline Credentials' 
    3. Copy the credentials values e.g. BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<your secret> BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=10.0.0.10
    4. Navigate to GCP console, select the Ops Man VM and SSH into the Ops Man VM
    5. run 
      export BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<your secret> BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=10.0.0.10
  2. bosh configs
    this will show the duplicate configs for ‘bosh-dns-aliases’
  3. Find out the older config from above -> that will be the config to delete
  4. bosh delete-config --name <name of the old ‘bosh-dns-aliases’> --type runtime
    this should delete the old config for ‘bosh-dns-aliases’. You can confirm by running 
    bosh configs
  5. Redeploy the tile.