Bootstrapping a local provider first prevents bootstrap on any other environment

Bug #1231724 reported by Kapil Thangavelu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

Bootstrap creates JUJU_HOME/environments.. Local provider needs bootstrap with sudo, which means this directory gets owned by root and is not accessible to the user. Then if a user bootstraps another provider, they'll get perm denied

2013-09-26 22:32:37 ERROR juju supercommand.go:282 cannot create new info for environment "east": open /opt/juju/environments/east.yaml: permission denied

Local provider should check uid vs euid and set ownership on dir appropriately.

Tags: local

Related branches

summary: - Bootstrapping a local provider prevents bootstrap on any other
+ Bootstrapping a local provider first prevents bootstrap on any other
environment
Tim Penhey (thumper)
Changed in juju-core:
importance: Undecided → High
status: New → Triaged
milestone: none → 1.15.0
assignee: nobody → Roger Peppe (rogpeppe)
Tim Penhey (thumper)
Changed in juju-core:
assignee: Roger Peppe (rogpeppe) → Tim Penhey (thumper)
tags: added: local
Tim Penhey (thumper)
Changed in juju-core:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.