TypeError: any() takes exactly one argument (3 given)

Bug #1447508 reported by Christoph Dwertmann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Thomas Herve
Kilo
Fix Released
High
Unassigned

Bug Description

When submitting my stack, heat-engine reports:

2015-04-23 19:03:33.351 12427 INFO heat.engine.resource [req-cbe9fbe1-cd84-4474-bd5c-6da186cb7608 cdw Vault] Validating Server "stateless_1"
2015-04-23 19:03:33.577 12427 ERROR heat.engine.stack [req-cbe9fbe1-cd84-4474-bd5c-6da186cb7608 cdw Vault] Exception: any() takes exactly one argument (3 given)
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack Traceback (most recent call last):
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack File "/usr/lib/python2.7/dist-packages/heat/engine/stack.py", line 610, in validate
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack result = res.validate()
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack File "/usr/lib/python2.7/dist-packages/heat/engine/resources/openstack/nova/server.py", line 1209, in validate
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack bootable_vol = self._validate_block_device_mapping()
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack File "/usr/lib/python2.7/dist-packages/heat/engine/resources/openstack/nova/server.py", line 1198, in _validate_block_device_mapping
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack if any(volume_id, snapshot_id, image_id):
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack TypeError: any() takes exactly one argument (3 given)
2015-04-23 19:03:33.577 12427 TRACE heat.engine.stack

# dpkg -l | grep heat
ii heat-api 2015.1~rc1-0ubuntu1~cloud0 all OpenStack orchestration service - ReST API
ii heat-api-cfn 2015.1~rc1-0ubuntu1~cloud0 all OpenStack orchestration service - CFN API
ii heat-common 2015.1~rc1-0ubuntu1~cloud0 all OpenStack orchestration service - common files
ii heat-engine 2015.1~rc1-0ubuntu1~cloud0 all OpenStack orchestration service - engine
ii python-heat 2015.1~rc1-0ubuntu1~cloud0 all OpenStack orchestration service - Python files
ii python-heatclient 0.3.0-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/176673

Changed in heat:
assignee: nobody → Christoph Dwertmann (cdwertmann)
status: New → In Progress
Changed in heat:
assignee: Christoph Dwertmann (cdwertmann) → Thomas Herve (therve)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/176673
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=5f4b86fc64dde62f38b763d70eb9c1a7dda0bf27
Submitter: Jenkins
Branch: master

commit 5f4b86fc64dde62f38b763d70eb9c1a7dda0bf27
Author: Christoph Dwertmann <email address hidden>
Date: Thu Apr 23 19:18:00 2015 +1000

    Fix server creation with block_device_mapping_v2

    The new block_device_mapping_v2 property of OS::Nova::Server didn't
    validate correctly because of an invalid usage of the any() function.
    The patch fixes the usage and adds tests.

    Change-Id: I2c538161d88a51022b91b584f16c1439848e7ada
    Closes-Bug: #1447508

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → liberty-1
status: Fix Committed → Fix Released
tags: added: kilo-backport-potential
Changed in heat:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/215413

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/kilo)

Reviewed: https://review.openstack.org/215413
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=2d5f981c289c0fa547bd70fe022e0404af03cf22
Submitter: Jenkins
Branch: stable/kilo

commit 2d5f981c289c0fa547bd70fe022e0404af03cf22
Author: Christoph Dwertmann <email address hidden>
Date: Thu Apr 23 19:18:00 2015 +1000

    Fix server creation with block_device_mapping_v2

    The new block_device_mapping_v2 property of OS::Nova::Server didn't
    validate correctly because of an invalid usage of the any() function.
    The patch fixes the usage and adds tests.

    Change-Id: I2c538161d88a51022b91b584f16c1439848e7ada
    Closes-Bug: #1447508
    (cherry picked from commit 5f4b86fc64dde62f38b763d70eb9c1a7dda0bf27)

tags: added: in-stable-kilo
removed: kilo-backport-potential
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-1 → 5.0.0
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.