'openstack overcloud status' fails with KeyError: 'execution'

Bug #1832511 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Rabi Mishra

Bug Description

Looks like it's broken by https://review.opendev.org/#/c/630291/

traceback:

Started Mistral Workflow tripleo.deployment.v1.get_deployment_status. Execution ID: 3696b2a1-41c0-4ba1-955b-3240abf9c795
{u'body': {u'type': u'tripleo.deployment.v1.get_deployment_status', u'payload': {u'status': u'SUCCESS', u'root_execution_id': None, u'message': None, u'plan_name': None, u'execution_id': u'3696b2a1-41c0-4ba1-955b-3240abf9c795', u'deployment_status': {u'deployment_status': u'DEPLOY_SUCCESS', u'workflow_status': {u'type': u'tripleo.deployment.v1.config_download_deploy', u'payload': {u'root_execution_id': None, u'status': u'SUCCESS', u'message': u'Ansible passed.', u'plan_name': u'overcloud', u'execution_id': u'56751d9a-562a-49ff-b93d-2845cebc56e9', u'deployment_status': u'DEPLOY_SUCCESS'}}}}}, u'queue_name': u'tripleo', u'Message_Type': u'Notification', u'ttl': 3600}
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tripleoclient/command.py", line 32, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 1032, in take_action
    execution = payload['execution']
KeyError: 'execution'

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

Fix proposed to branch: master
Review: https://review.opendev.org/664871

Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/664871
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=7bd6a5206612f6d4818c891860e58d2281d0f27a
Submitter: Zuul
Branch: master

commit 7bd6a5206612f6d4818c891860e58d2281d0f27a
Author: Rabi Mishra <email address hidden>
Date: Wed Jun 12 17:40:23 2019 +0530

    Don't look for execution in payload

    We don't seem to send the execution object anymore after
    https://review.opendev.org/#/c/630291/. Though we've
    execution_id, it probably does not make sense to make
    mistral api call to get the created/updated timestamps.

    Change-Id: I11f500165026455d8d41fd07901357fc91d8a359
    Closes-Bug: #1832511

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 12.1.0

This issue was fixed in the openstack/python-tripleoclient 12.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/687089

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/687090

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/687091

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/stein)

Reviewed: https://review.opendev.org/687089
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=952c9072625dda0373d42ee254520f40ad5254fd
Submitter: Zuul
Branch: stable/stein

commit 952c9072625dda0373d42ee254520f40ad5254fd
Author: Rabi Mishra <email address hidden>
Date: Wed Jun 12 17:40:23 2019 +0530

    Don't look for execution in payload

    We don't seem to send the execution object anymore after
    https://review.opendev.org/#/c/630291/. Though we've
    execution_id, it probably does not make sense to make
    mistral api call to get the created/updated timestamps.

    Change-Id: I11f500165026455d8d41fd07901357fc91d8a359
    Closes-Bug: #1832511
    (cherry picked from commit 7bd6a5206612f6d4818c891860e58d2281d0f27a)

tags: added: in-stable-stein
tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/rocky)

Reviewed: https://review.opendev.org/687090
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=820357082ae2eb69f4397af683c041bb29d1d407
Submitter: Zuul
Branch: stable/rocky

commit 820357082ae2eb69f4397af683c041bb29d1d407
Author: Rabi Mishra <email address hidden>
Date: Wed Jun 12 17:40:23 2019 +0530

    Don't look for execution in payload

    We don't seem to send the execution object anymore after
    https://review.opendev.org/#/c/630291/. Though we've
    execution_id, it probably does not make sense to make
    mistral api call to get the created/updated timestamps.

    Change-Id: I11f500165026455d8d41fd07901357fc91d8a359
    Closes-Bug: #1832511
    (cherry picked from commit 7bd6a5206612f6d4818c891860e58d2281d0f27a)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/queens)

Reviewed: https://review.opendev.org/687091
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=128cc56a33d2f8be913cef2bb65fb866cd9e70fe
Submitter: Zuul
Branch: stable/queens

commit 128cc56a33d2f8be913cef2bb65fb866cd9e70fe
Author: Rabi Mishra <email address hidden>
Date: Wed Jun 12 17:40:23 2019 +0530

    Don't look for execution in payload

    We don't seem to send the execution object anymore after
    https://review.opendev.org/#/c/630291/. Though we've
    execution_id, it probably does not make sense to make
    mistral api call to get the created/updated timestamps.

    Change-Id: I11f500165026455d8d41fd07901357fc91d8a359
    Closes-Bug: #1832511
    (cherry picked from commit 7bd6a5206612f6d4818c891860e58d2281d0f27a)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.5.2

This issue was fixed in the openstack/python-tripleoclient 11.5.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient rocky-eol

This issue was fixed in the openstack/python-tripleoclient rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient queens-eol

This issue was fixed in the openstack/python-tripleoclient queens-eol 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.