KeyError "password" when connecting to shared controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-deployer |
Fix Released
|
Undecided
|
Tim Van Steenburgh |
Bug Description
$ dpkg-query -W juju-deployer python-jujuclient juju-2.0
juju-2.0 2.0-beta18-
juju-deployer 0.9.0~bzr192~
python-jujuclient 0.53.1+
I'm not sure what changed, because this worked a few days ago. But now I cannot connect to a shared controller anymore and deploy applications with juju2:
andreas@nsn7:~$ juju list-controllers
CONTROLLER MODEL USER ACCESS+ CLOUD/REGION MODELS+ MACHINES+ VERSION+
canonistack-
+ these are the last known values, run with --refresh to see the latest information.
andreas@nsn7:~$ juju add-model elk --credential canonistack
Using credential 'canonistack' cached in controller
Added 'elk' model on canonistack/lcy02 with credential 'canonistack' for user 'ahasenack'
andreas@nsn7:~$ juju list-controllers
CONTROLLER MODEL USER ACCESS+ CLOUD/REGION MODELS+ MACHINES+ VERSION+
canonistack-
+ these are the last known values, run with --refresh to see the latest information.
andreas@nsn7:~$ juju list-models
CONTROLLER: canonistack-
MODEL OWNER STATUS ACCESS LAST CONNECTION
elk* ahasenack@external available admin never connected
andreas@nsn7:~$ juju status
MODEL CONTROLLER CLOUD/REGION VERSION
elk canonistack-
APP VERSION STATUS SCALE CHARM STORE REV OS NOTES
UNIT WORKLOAD AGENT MACHINE PUBLIC-ADDRESS PORTS MESSAGE
MACHINE STATE DNS INS-ID SERIES AZ
Now I try to deploy applications:
$ time juju-deployer -Wdv -c landscape-
2016-09-20 10:14:00 [DEBUG] deployer.cli: Using runtime GoEnvironment on canonistack-
2016-09-20 10:14:00 [INFO] deployer.cli: Using deployment landscape-
2016-09-20 10:14:00 [INFO] deployer.cli: Starting deployment of landscape-
2016-09-20 10:14:00 [DEBUG] deployer.import: Getting charms...
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.charm: Cache dir /home/andreas/
2016-09-20 10:14:00 [DEBUG] deployer.deploy: Resolving configuration
2016-09-20 10:14:00 [DEBUG] deployer.env: Connecting to canonistack-
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run()
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
self.client = self.client_
File "/usr/lib/
return connector(
File "/usr/lib/
jhome, data = self.parse_
File "/usr/lib/
'password': account[
KeyError: 'password'
Related branches
- Tim Van Steenburgh (community): Approve
-
Diff: 293 lines (+116/-26)6 files modifiedjujuclient/connector.py (+47/-15)
jujuclient/juju1/connector.py (+5/-2)
jujuclient/juju2/connector.py (+6/-3)
jujuclient/juju2/rpc.py (+53/-5)
jujuclient/rpc.py (+3/-0)
tests/test_juju2.py (+2/-1)
summary: |
- Keyerror "password" when connecting to shared controller + KeyError "password" when connecting to shared controller |
Changed in juju-deployer: | |
assignee: | nobody → Tim Van Steenburgh (tvansteenburgh) |
status: | New → In Progress |
Changed in juju-deployer: | |
status: | In Progress → Fix Committed |
Changed in juju-deployer: | |
status: | Fix Committed → Fix Released |
I also have seen this issue and when I changed the code to run "account. get('password' )" letting it be set to None, the call to connect failed.