Comment 30 for bug 1800940

Revision history for this message
Ian Booth (wallyworld) wrote :

The directory "/tmp/juju-juju-vsphere-bionic" is used to guard against multiple bootstraps done simultaneously on a client from trying to access the image cache at the same time. ie I could have 2 client terminals open and run bootstrap in each.

We can't delete it at the end of a bootstrap because there could be another bootstrap running. But we do change the ownership of the directory to the current user rather than leaving it as root.

It is created in the (os specific) temp dir, so one option is to have a "bootstrap" script which sets the TMPDIR env var to something other than /tmp, eg a subdir under /tmp