juju switch doesn't work without an environments.yaml file

Bug #1476918 reported by Tim Penhey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Cheryl Jennings
1.25
Fix Released
High
Cheryl Jennings

Bug Description

In the situation of someone being emailed a server file and them logging in, they may well not have an environments.yaml file.

Curtis Hovey (sinzui)
tags: added: switch tech-debt
Changed in juju-core:
milestone: 1.25.0 → 1.25.1
Changed in juju-core:
assignee: nobody → Cheryl Jennings (cherylj)
Revision history for this message
Cheryl Jennings (cherylj) wrote :

A couple comments / questions around how all this should work:

I was playing around more with the multi-user / multi-environment experience and thinking about how we would modify switch to work without an environments.yaml file and realized that we could get naming collisions if we tried to have switch -l display a union of what's in the cache and what's in environments.yaml.

If we have an environment (or system) that isn't in the cache (or has a jenv file), but has a definition in environments.yaml, we could login to a server and give it the same name as something already defined in environments.yaml. If we allow this, how would we display this?

Also, would we want switch -l to display only environments that the user has in their cache / environments.yaml? Or would we want it to also show environments on systems we have access to, but haven't used yet?

When displaying hosted environments, should we use some sort of tree format to indicate which belong to which system?

Revision history for this message
Cheryl Jennings (cherylj) wrote :

Review request: http://reviews.vapour.ws/r/2657/

This PR just fixes switch to work with environments.yaml. Enhancements to list system / environments structure are not included.

Changed in juju-core:
milestone: 1.25.1 → 1.26-alpha1
status: Triaged → 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.