TypeError: argument of type 'NoneType' is not iterable

Bug #1463700 reported by Nicolas Thomas
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-deployer
Fix Released
High
Tim Van Steenburgh

Bug Description

On AWS when deploying a very reliable bundle I got this :
--------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/juju-deployer", line 9, in <module>
    load_entry_point('juju-deployer==0.4.3', 'console_scripts', 'juju-deployer')()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 130, in main
    run()
  File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 228, in run
    importer.Importer(env, deployment, options).run()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 188, in run
    self.get_charms()
  File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 67, in get_charms
    self.deployment.resolve(self.options.overrides or ())
  File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 145, in resolve
    self.load_overrides(cli_overides)
  File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 163, in load_overrides
    if k in charm.config:
TypeError: argument of type 'NoneType' is not iterable

--------------------------------------------------------------------------------------------------------------------------------

bundle deploy if I remove sipml5

juju deploy cs:~thomnico/trusty/sipml5 : Works

If I change sipml5 in the bundlefile to a fake one bundle parse and I got the expected not found msg.

Related branches

Revision history for this message
Nicolas Thomas (thomnico) wrote :
Revision history for this message
Samuel Cozannet (samuel-cozannet) wrote :

I have the same error with juju-quickstart with my bundles.
+1.

Dan Poler (l-dan)
tags: added: cpe-sa
Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 1463700] [NEW] TypeError: argument of type 'NoneType' is not iterable

I thought this was fixed in trunk for a few months

On Thursday, June 11, 2015, Dan Poler <email address hidden> wrote:

> ** Tags added: cpe-sa
>
> --
> You received this bug notification because you are subscribed to juju-
> deployer.
> Matching subscriptions: deployer
> https://bugs.launchpad.net/bugs/1463700
>
> Title:
> TypeError: argument of type 'NoneType' is not iterable
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-deployer/+bug/1463700/+subscriptions
>

Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

It would be helpful if someone could paste the contents of a bundle that exhibits this behavior.

Revision history for this message
Nicolas Thomas (thomnico) wrote : Re: [Bug 1463700] Re: TypeError: argument of type 'NoneType' is not iterable

Hello Tim,

Can you use this : https://github.com/thomnico/juju-nfv-clearwater-restcomm ?

Do the git clone and .00-prepare.sh

Then:
 export JUJU_REPOSITORY=$PWD/clearwater-juju/charms
 juju-deployer -c bundle-nfv-demo-sipml5.yaml -c bundle-config.yaml

Using the file attached ..

Fails everytime on AWS at least

I use juju 1.24.2-trusty-amd64

It is a bit of limbo but I need this project to work..

On Fri, Jul 24, 2015 at 12:12 AM, Tim Van Steenburgh
<email address hidden> wrote:
> It would be helpful if someone could paste the contents of a bundle that
> exhibits this behavior.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1463700
>
> Title:
> TypeError: argument of type 'NoneType' is not iterable
>
> Status in juju-deployer:
> New
>
> Bug description:
>
> On AWS when deploying a very reliable bundle I got this :
> --------------------------------------------------------------------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/bin/juju-deployer", line 9, in <module>
> load_entry_point('juju-deployer==0.4.3', 'console_scripts', 'juju-deployer')()
> File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 130, in main
> run()
> File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 228, in run
> importer.Importer(env, deployment, options).run()
> File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 188, in run
> self.get_charms()
> File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 67, in get_charms
> self.deployment.resolve(self.options.overrides or ())
> File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 145, in resolve
> self.load_overrides(cli_overides)
> File "/usr/lib/python2.7/dist-packages/deployer/deployment.py", line 163, in load_overrides
> if k in charm.config:
> TypeError: argument of type 'NoneType' is not iterable
>
> --------------------------------------------------------------------------------------------------------------------------------
>
> bundle deploy if I remove sipml5
>
> juju deploy cs:~thomnico/trusty/sipml5 : Works
>
> If I change sipml5 in the bundlefile to a fake one bundle parse and I
> got the expected not found msg.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-deployer/+bug/1463700/+subscriptions

--
Best Regards,
       Nicolas Thomas
http://insights.ubuntu.com/?p=889
EMEA Solution Architect Canonical
GPG FPR: D592 4185 F099 9031 6590 6292 492F C740 F03A 7EB9

Changed in juju-deployer:
status: New → In Progress
assignee: nobody → Tim Van Steenburgh (tvansteenburgh)
importance: Undecided → High
status: In Progress → Fix Committed
Changed in juju-deployer:
milestone: none → 0.5.2
Changed in juju-deployer:
status: Fix Committed → 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.