lxc bug blocks 1.17.1 release.

Tim Penhey tim.penhey at canonical.com
Sun Jan 26 19:13:57 UTC 2014


On 26/01/14 19:28, Andrew Wilkins wrote:
> On Sat, Jan 25, 2014 at 11:17 PM, Curtis Hovey-Canonical
> <curtis at canonical.com <mailto:curtis at canonical.com>> wrote:
>     CI sees this on when is uses 1.17.1 juju to boostrap:
> 
>     juju --debug bootstrap -e local --constraints mem=2G 2>&1 | tee
>     bootstrap.log
>     2014-01-25 14:51:09 DEBUG juju.environs.configstore disk.go:77 Making
>     /var/lib/jenkins/juju-ci/environments
>     2014-01-25 14:51:09 DEBUG juju.environs.configstore disk.go:67 Making
>     /var/lib/jenkins/juju-ci/environments/local.jenv owned by 1000:1000
>     2014-01-25 14:51:09 ERROR juju.cmd supercommand.go:294 cannot create
>     new info for environment "local": chown
>     /var/lib/jenkins/juju-ci/environments/local.jenv: operation not
>     permitted
> 
> 
> This looks like it's still running under sudo. Is that the case? (I see
> it's not in the command line, but is this a script that is run under sudo?)
> The "Making ... owned by 1000:1000" line shouldn't be there.

Looking at the code a little more, and poking the command line, if the
script uses sudo to run something as another user, we would see
something like this, as the SUDO_UID and SUDO_GID are set but we are not
running as root, so if the current user would not be able to chown to a
different user.

As mentioned before, this really isn't needed any more with the changes
that landed last week.

Tim




More information about the Juju-dev mailing list