cloudfoundry / bpm-release

isolated bosh jobs
Apache License 2.0
34 stars 28 forks source link

Mount filtering handles job prefix names #174

Closed aramprice closed 4 months ago

aramprice commented 4 months ago

Check to see whether the "directory parts" of the volume are a sub-set of and existing BPM-default directory (that will already be mounted) so that we do not accidentally filter out mounts which have a name that is a sub-string of the existing job. For example the job service-metrics should be able to have an unrestricted volume mount of the service-metrics-adapter job directory.

Specifically a job located at /var/vcap/jobs/service-metrics was unable to access an "unrestricted volume" located at /var/vcap/jobs/service-metrics-adapter because the job being instantiated alreay had default mount which was a (string) prefix of the job directory it was attempting to mount.

MirahImage commented 4 months ago

The RabbitMQ tile team have tested this branch in a tile build and it solves the problem for us. Thanks!