This BOSH Release provides a shadow CPI to be deployed by a BOSH Director.
A shadow CPI is the local view of a remote CPI, that actually is located on another distant host.
A CPI is usually just an executable binary. The shadow CPI uses an SSH connection to transmit requests to the actual distant CPI and output responses back to the caller.
This was designed in order to allow BOSH to control a distant warden_cpi
that has the requirement to reside on the exact same host as the Garden-runC
backend it is using.
When the shadow-cpi
job is properly configured and deployed on a BOSH-
managed node, then this call should return something:
/var/vcap/jobs/shadow-cpi/bin/cpi <<< '{ "method": "info", "arguments": [], "context": { "director_uuid": "39129ed5-ffb7-4eb9-9b6e-3ec49205e57c" } }'; echo
You should obtain something like this:
{"result":{"stemcell_formats":["warden-tar","general-tar"]},"error":null,"log":""}