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.
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 theservice-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.