Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPI job name is incompatible with multi-CPI #1

Open
bgandon opened this issue Jan 29, 2024 · 1 comment
Open

CPI job name is incompatible with multi-CPI #1

bgandon opened this issue Jan 29, 2024 · 1 comment

Comments

@bgandon
Copy link
Member

bgandon commented Jan 29, 2024

The job name is currently shadow-cpi in this Bosh release, whereas Bosh expects it to be shadow_cpi as per the multi-CPI docs: “Director will add _cpi suffix to the end of the type when calling the CPI binary”.

@bgandon
Copy link
Member Author

bgandon commented Jan 29, 2024

A possible workaround is to create a symbolic link for providing the shadow_cpi job as an alias of shadow-cpi with such YAML patch:

- path: /instance_groups/name=bosh/jobs/name=pre-start-script?
  type: replace
  value:
    name: pre-start-script
    release: os-conf
    properties:
      script: |
        #!/usr/bin/env bash
        set -ex
        cd /var/vcap/jobs
        ln -sfn shadow-cpi shadow_cpi

And this requires the os-conf release in the deployment manifest. It that may already be there, but can also be added with such YAML patch:

- path: /releases/name=os-conf?
  type: replace
  value:
    name: os-conf
    version: ((os_conf_version))
    url: https://bosh.io/d/github.com/cloudfoundry/os-conf-release?v=((os_conf_version))
    sha1: ((os_conf_sha1))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant