'juju bootstrap' with no arguments gives confusing message

Bug #956000 reported by Jamie Strandboge
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Triaged
Low
Unassigned
juju (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Under https://juju.ubuntu.com/docs/getting-started.html it status "Run the command-line utility with no arguments to create a sample environment:

$ juju

This will create the file ~/.juju/environments.yaml"...

While it does create ~/.juju/environments.yaml, it also output an error. Eg:
$ rm -rf ./.juju
$ juju
error: No environments configured. Please edit: /home/jamie/.juju/environments.yaml
$ ls -l ./.juju/environments.yaml
-rw------- 1 jamie jamie 175 Mar 15 08:25 ./.juju/environments.yaml

The error message make my think something went wrong even though I was instructed to do this. This is at best an 'info' message. Eg, this would be less confusing:
$ juju
info: /home/jamie/.juju/environments.yaml does not exist, creating one. Please edit: /home/jamie/.juju/environments.yaml for your environment.

Related branches

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Thanks Jamie, agreed, this is not an error and the message should be changed to be more informational.

Changed in juju:
status: New → Confirmed
importance: Undecided → Medium
tags: added: bitesize
Changed in juju (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
tags: added: upstream
Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

@Clint: Is there a proposed change or who would be the person to make a decision on what we should change the string to?

Changed in juju:
milestone: none → galapagos
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Only 'juju bootstrap' prints the message now, which I think is less confusing since you actually asked it to do something.

summary: - 'juju' with no arguments gives confusing message
+ 'juju bootstrap' with no arguments gives confusing message
Changed in juju:
importance: Medium → Low
Changed in juju (Ubuntu):
importance: Medium → Low
Changed in juju:
milestone: galapagos → none
Revision history for this message
Alessandro Losavio (alo21) wrote :

I take care about this bug

Changed in juju (Ubuntu):
assignee: nobody → Alessandro Losavio (alo21)
status: Triaged → In Progress
Revision history for this message
Martin Erik Werner (arand) wrote :

I tested the patch you, Allesandro Losavio, suggested on IRC, and in that version it's not good, since it makes juju fail to build from source.

It's worth noting that currently juju also FTBFS in Quantal due to failing test cases, see Bug #1017113, however, applying this patch makes it fail earlier in the process, so I'm assuming that it creates a separate issue.

I've attached the build log for this patch.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

alo, I'd suggest submitting this as a merge proposal against juju itself... To do that:

bzr branch lp:juju
cd juju
<edit>
./test
bzr commit -m 'Useful commit message' --fixes lp:956000
bzr push lp:~alo21/juju/fix-lp95600
bzr lp-propose

It makes no sense for this to land in Ubuntu first with Juju and Ubuntu being so closely related.

Revision history for this message
Alessandro Losavio (alo21) wrote :

I pushed my branch as required. You can find it here: https://code.launchpad.net/~alo21/juju/fix-lp956000/

Changed in juju:
status: Confirmed → In Progress
assignee: nobody → Alessandro Losavio (alo21)
Changed in juju (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

I don't feel like this is a huge issue, but please note that if this is changed, the message should only be touched in the very specific case where "juju" is executed without any other arguments. It is really an error to interrupt whatever juju was going to do and stop to print that message.

Revision history for this message
Alessandro Losavio (alo21) wrote :

After some days, I still do not understand why I cannot try my package on my PC. I received some errors. So I decide to freeing this bug to other contributors.

Changed in juju:
assignee: Alessandro Losavio (alo21) → nobody
status: In Progress → Confirmed
Changed in juju (Ubuntu):
assignee: Alessandro Losavio (alo21) → nobody
Curtis Hovey (sinzui)
Changed in juju:
status: Confirmed → Triaged
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.