dns-name key error race after bootstrap

Bug #1288685 reported by James Page
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-deployer
Fix Released
High
Kapil Thangavelu
juju-deployer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It would appear that sometimes the dns-name key does not appear straight away in the juju status output:

2014-03-06 11:20:03 [DEBUG] deployer.cli: Using runtime GoEnvironment on jamespage-serverstack
2014-03-06 11:20:03 [INFO] deployer.cli: Starting deployment of precise-havana
Traceback (most recent call last):
  File "/usr/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.3.4', 'console_scripts', 'juju-deployer')()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 127, in main
    run()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 225, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 179, in run
    self.env.connect()
  File "/usr/lib/python2.7/dist-packages/deployer/env/go.py", line 67, in connect
    self.get_cli_status()
  File "/usr/lib/python2.7/dist-packages/deployer/env/go.py", line 96, in get_cli_status
    status["machines"]["0"]["dns-name"])
KeyError: 'dns-name'

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in juju-deployer (Ubuntu):
status: New → Confirmed
Changed in juju-deployer:
importance: Undecided → High
Changed in juju-deployer:
status: New → In Progress
assignee: nobody → Kapil Thangavelu (hazmat)
Revision history for this message
Kapil Thangavelu (hazmat) wrote :

This was resolved in 0.4

Changed in juju-deployer:
status: In Progress → Fix Released
milestone: none → 0.4.0
Changed in juju-deployer (Ubuntu):
status: Confirmed → 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.