When trying to run Bosh deployment <deployment manifest>
, you get the following error message:
ubuntu@pivotal-ops-manager:~$ bosh deployment /var/tempest/workspaces/default/deployments/cf-2c3ea6cf6f11d78615c3.yml
This manifest references director with UUID ignore.
Please find your director IP or hostname and target it.
The cause for the error is the director_uuid field in the deployment manifest file that doesn't have the UUID as expected.
ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ grep 'uuid' cf-2c3ea6cf6f11d78615c3.yml director_uuid: ignore
Run bosh status --uuid to get the BOSH director's current UUID. Backup and then edit the deployment manifest file. Change the current value to the UUID value. Then, bosh deployment <deployment manifest>
works.
ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ bosh status --uuid 751d0e08-fe1f-4dc1-9575-d8ecc1eb8d4c ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ sudo cp -p cf-2c3ea6cf6f11d78615c3.yml cf-2c3ea6cf6f11d78615c3.yml.bak ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ sudo vi cf-2c3ea6cf6f11d78615c3.yml ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ grep 'uuid' cf-2c3ea6cf6f11d78615c3.yml director_uuid: 751d0e08-fe1f-4dc1-9575-d8ecc1eb8d4c ubuntu@pivotal-ops-manager:/var/tempest/workspaces/default/deployments$ bosh deployment cf-2c3ea6cf6f11d78615c3.yml Deployment set to '/var/tempest/workspaces/default/deployments/cf-2c3ea6cf6f11d78615c3.yml'