error: required environment variable not set for credentials attribute: User

Bug #1178306 reported by Sidnei da Silva
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Low
Unassigned
juju-core
Won't Fix
Low
Unassigned
1.25
Won't Fix
Low
Unassigned

Bug Description

Trying to bootstrap without setting any variables for the openstack provider in the environment results in:

$ juju bootstrap
error: required environment variable not set for credentials attribute: User

The error message does not give any hints to the user as to what he could do to fix the problem.

Tags: ui
Sidnei da Silva (sidnei)
tags: added: ui
Revision history for this message
John A Meinel (jameinel) wrote :

Note that the value could be set in config or in environment variables. So we probably shouldn't be complaining about just env variables. It is true, though, that we give an error without actually giving enough context for a user to fix it.

Changed in juju-core:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Runar Ingebrigtsen (ringe) wrote :

Second that.

Revision history for this message
Runar Ingebrigtsen (ringe) wrote :

How about a suggestion here?

John A Meinel (jameinel)
Changed in juju-core:
status: Confirmed → Triaged
Curtis Hovey (sinzui)
Changed in juju-core:
importance: Medium → Low
Revision history for this message
ugvddm (271025598-9) wrote :

anyone else can tell me how to figure out this issue?

Revision history for this message
Max Brustkern (nuclearbob) wrote :

When I encountered this, I needed to source my novarc file before bootstrapping.

Revision history for this message
Paul Gear (paulgear) wrote :

This affects me even when novarc is already sourced.

Revision history for this message
Paul Gear (paulgear) wrote :

Clarification: it affects me when running 'charm test -e ENVIRONMENT', but not when running juju bootstrap directly.

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

For juju 2.0, users now can add credentials through an interactive `juju add-credential` command. They will be prompted for all the information they need to bootstrap.

Changed in juju-core:
status: Triaged → Fix Released
affects: juju-core → juju
Changed in juju-core:
importance: Undecided → Low
status: New → Won't Fix
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.