int cast error when deploying whole disk image

Bug #1626544 reported by Martin André
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-lib
Fix Released
High
Dmitry Tantsur

Bug Description

I get a cast error when deploying a whole disk image: http://paste.openstack.org/show/582545/

2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor [req-0b1b58b6-db9a-4b65-a989-35d8b7d045e6 - - - - -] Asynchronous exception for node 14510c8a-3bc6-4a07-9f5a-b4fd20461fe2: Node failed to get image for deploy. Exception: Deploy failed for instance a4f0f9e8-c0dd-4892-a07f-c68bd9b039d8. Error: int() argument must be a string or a number, not 'tuple'
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor Traceback (most recent call last):
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/agent_base_vendor.py", line 482, in heartbeat
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor self.continue_deploy(task)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 138, in wrapper
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor return f(*args, **kwargs)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 381, in continue_deploy
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = do_agent_iscsi_deploy(task, self._client)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 313, in do_agent_iscsi_deploy
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor uuid_dict_returned = continue_deploy(task, iqn=iqn, address=address)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic_lib/metrics.py", line 61, in wrapped
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor result = f(*args, **kwargs)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 250, in continue_deploy
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor _fail_deploy(task, msg)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor File "/usr/lib/python2.7/site-packages/ironic/drivers/modules/iscsi_deploy.py", line 227, in _fail_deploy
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor raise exception.InstanceDeployFailure(msg)
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor InstanceDeployFailure: Deploy failed for instance a4f0f9e8-c0dd-4892-a07f-c68bd9b039d8. Error: int() argument must be a string or a number, not 'tuple'
2016-09-22 09:03:45.966 1302 ERROR ironic.drivers.modules.agent_base_vendor

Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → High
assignee: nobody → Dmitry Tantsur (divius)
Dmitry Tantsur (divius)
affects: ironic → ironic-lib
Changed in ironic-lib:
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-lib (master)

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

Changed in ironic-lib:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-lib (master)

Reviewed: https://review.openstack.org/374832
Committed: https://git.openstack.org/cgit/openstack/ironic-lib/commit/?id=33af42c96556ec66087954f115697d79967efe91
Submitter: Jenkins
Branch: master

commit 33af42c96556ec66087954f115697d79967efe91
Author: Dmitry Tantsur <email address hidden>
Date: Thu Sep 22 15:51:22 2016 +0200

    Fix creating config drive for whole disk images

    The execute utility returns (out, err), not just out.

    Change-Id: I322ddae8026493eed2d1ac3c8d446e870b09e711
    Closes-Bug: #1626544

Changed in ironic-lib:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-lib (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/374897

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-lib (stable/newton)

Reviewed: https://review.openstack.org/374897
Committed: https://git.openstack.org/cgit/openstack/ironic-lib/commit/?id=7323bf50e60383fb05f0655062cb4b830174888f
Submitter: Jenkins
Branch: stable/newton

commit 7323bf50e60383fb05f0655062cb4b830174888f
Author: Dmitry Tantsur <email address hidden>
Date: Thu Sep 22 15:51:22 2016 +0200

    Fix creating config drive for whole disk images

    The execute utility returns (out, err), not just out.

    Change-Id: I322ddae8026493eed2d1ac3c8d446e870b09e711
    Closes-Bug: #1626544
    (cherry picked from commit 33af42c96556ec66087954f115697d79967efe91)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic-lib 2.2.0

This issue was fixed in the openstack/ironic-lib 2.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic-lib 2.1.1

This issue was fixed in the openstack/ironic-lib 2.1.1 release.

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.