DescriptionImplement Storage and PublicStorage for local.
In the restructuring of the directories, I realized that we
should just have a configurable root directory for the
environment, and have other directories off that.
The local config now just has a root-dir.
The namespace takes into consideration the root user, and
will look for the SUDO_USER environment variable if set
to identify the user calling sudo.
I also renamed the storage to "storage" and "sharedStorage"
based on email conversations.
The directories are no longer created when the config is
validated as the config may be being parsed and created
when the user isn't root, especially when the default directory
is in a restricted area.
There are now two tests in the config_local.go file that are
only run when run as root. To run these locally I had to make
sure that the GOPATH was set:
sudo GOPATH=/home/tim/go go test -gocheck.f configRootTest
https://code.launchpad.net/~thumper/juju-core/local-provider-storage/+merge/173386
Requires: https://code.launchpad.net/~thumper/juju-core/upstart-services/+merge/173121
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 10
Patch Set 2 : Implement Storage and PublicStorage for local. #
Total comments: 7
MessagesTotal messages: 6
|