TypeError: 'NoneType' object is not iterable in jujuclient.py

Bug #1420917 reported by Jason Hobbs
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

This bug shows up when we're running juju-core 1.22beta3, but not when we're running juju-core 1.21.1, with the same version of tools otherwise.

http://pastebin.ubuntu.com/10176461/

Stack trace:
2015-02-11 18:15:13,827 [ERROR] oil_ci.deploy.oil_deployer: Deployment failed: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/oil_ci/deploy/oil_deployer.py", line 140, in deploy
    debug=True, verbose=True)
  File "/usr/lib/python2.7/dist-packages/oil_ci/juju/juju_deployer.py", line 85, in run_deployer
    importer.Importer(env, deploy, options=opts).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 196, in run
    self.deploy_services()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 92, in deploy_services
    env_status = self.env.status()
  File "/usr/lib/python2.7/dist-packages/deployer/env/go.py", line 203, in status
    return self.client.get_stat()
  File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 599, in get_stat
    return StatusTranslator().run(watch)
  File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 999, in run
    self._unit(d)
  File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 1031, in _unit
    for p in ports:

Versions:
ii juju-core 1.22-beta3-0ubuntu1~12.04.1~juju1
ii juju-deployer 0.4.3-0ubuntu1~ubuntu12.04.1~ppa1
ii python-jujuclient 0.18.4-5

This is on precise.

description: updated
no longer affects: juju-deployer
no longer affects: python-jujuclient
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Also hitting this with the local provider from ppa:juju/stable on trusty.
juju-local 1.22-beta3-0ubuntu1~14.04.1~juju1

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I meant to say ppa:juju/devel in my previous coment.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hitting this on ppa:juju/stable now

$ apt-cache policy juju-core
juju-core:
  Installed: 1.21.3-0ubuntu1~14.04.1~juju1
  Candidate: 1.21.3-0ubuntu1~14.04.1~juju1
  Version table:
 *** 1.21.3-0ubuntu1~14.04.1~juju1 0
        500 http://ppa.launchpad.net/juju/stable/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

With 1.22-beta3 it's expected to get the error, as the original fix I did was later improved upon and verified to work with python-jujuclient, but that's not in beta3.

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.