cloudfoundry / cf-deployment

The canonical open source deployment manifest for Cloud Foundry
Apache License 2.0
294 stars 306 forks source link

Error: Job 'nats-tls' not found in release 'nats' #1149

Closed patrickcrocker closed 10 months ago

patrickcrocker commented 10 months ago

What is this issue about?

Completely new install of cf-deployment v35.2.0 fails with: Error: Job 'nats-tls' not found in release 'nats'

What version of cf-deployment are you using?

cf-deployment v35.2.0

Please include the bosh deploy... command, including all the operations files (plus any experimental operation files you're using):

$ bosh -d cf deploy \
    -v system_domain=system.example.com \
    cf-deployment.yml

Please provide output that helps describe the issue:

$ git clone https://github.com/cloudfoundry/cf-deployment.git
Cloning into 'cf-deployment'...
<omitted for brevity...>

$ cd cf-deployment/

$ git checkout v35.2.0
Note: switching to 'v35.2.0'.

<omitted for brevity...>

HEAD is now at 4ec18551 Update cf-deployment manifest version to v35.2.0

$ bosh --version
version 7.5.1

Succeeded

$ bosh env
Using environment '172.16.1.2' as client 'admin'

Name               bosh
UUID               fd79bdf0-b8bd-4a63-b446-8349d552c3a6
Version            280.0.12 (00000000)
Director Stemcell  ubuntu-22.04.1/1.329
CPI                vsphere_cpi
Features           config_server: enabled
                   local_dns: enabled
                   power_dns: disabled
                   snapshots: disabled
User               admin

Succeeded

$ bosh -d cf deploy -v system_domain=system.example.com cf-deployment.yml -n
Using environment '172.16.1.2' as client 'admin'

Using deployment 'cf'

Release 'cf-smoke-tests/42.0.118' already exists.

<omitted for brevity...>

+ manifest_version: v35.2.0

+ name: cf
Task 10112

Task 10112 | 16:34:11 | Error: Job 'nats-tls' not found in release 'nats'

Task 10112 Started  Wed Dec 20 16:34:11 UTC 2023
Task 10112 Finished Wed Dec 20 16:34:11 UTC 2023
Task 10112 Duration 00:00:00
Task 10112 error

Updating deployment:
  Expected task '10112' to succeed but state is 'error'

Exit code 1

What IaaS is this issue occurring on?

vSphere

Is there anything else unique or special about your setup?

N/A

Tag your pair, your PM, and/or team!

N/A

jochenehret commented 10 months ago

cf-deployment v35.2.0 uses nats-release v56.14.0 which has a "nats-tls" job: https://github.com/cloudfoundry/nats-release/blob/v56.14.0/jobs/nats-tls Can you check with bosh releases which releases are available/in use? You can try bosh upload-release --fix to re-upload the release and fix missing jobs.

patrickcrocker commented 10 months ago

bosh releases showed a lot of unused releases so I ran a bosh clean-up --all and now things are resolved.

Appreciate the help and I learned something new today 👍