openstack overcloud status run on overcloud not deployed output needs cleanup (

Bug #1792637 reported by James Slagle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
James Slagle

Bug Description

openstack overcloud status run on overcloud not deployed output needs cleanup

It seems in the case we know that their is no overcloud deployed we should suppress
these types of errors to something clean to the end user

Steps to reproduce

1. install undercloud
2. source /home/stack/stackrc
2. openstack overcloud status
  <obviously no overcloud yet deployed in this case>

Environment:
python2-mistralclient-3.7.0-0.20180731011525.f0ee48f.el7ost.noarch
python2-mistral-lib-1.0.0-0.20180730234322.d1ccfd0.el7ost.noarch
puppet-mistral-13.2.0-0.20180731214249.7dd767e.el7ost.noarch
instack-undercloud-9.2.1-0.20180803181448.be5fa97.el7ost.noarch
python-openstackclient-lang-3.16.0-0.20180801103525.f77ca68.el7ost.noarch
python2-openstackclient-3.16.0-0.20180801103525.f77ca68.el7ost.noarch

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud status
Failed to run action [action_ex_id=e9827031-2cd1-4fe2-b50f-9765146b325d, action_cls='<class 'mistral.actions.action_factory.SwiftAction'>', attributes='{u'client_method_name': u'get_object'}', params='{u'obj': u'deployment_status.yaml', u'container': u'overcloud-messages'}']
 SwiftAction.get_object failed: Object GET failed: https://192.168.24.2:13808/v1/AUTH_008d17161a1c4e0ab1cb70e55dc31244/overcloud-messages/deployment_status.yaml 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Exception getting deployment status: Failed to run action [action_ex_id=e9827031-2cd1-4fe2-b50f-9765146b325d, action_cls='<class 'mistral.actions.action_factory.SwiftAction'>', attributes='{u'client_method_name': u'get_object'}', params='{u'obj': u'deployment_status.yaml', u'container': u'overcloud-messages'}']
 SwiftAction.get_object failed: Object GET failed: https://192.168.24.2:13808/v1/AUTH_008d17161a1c4e0ab1cb70e55dc31244/overcloud-messages/deployment_status.yaml 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<

Changed in tripleo:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → James Slagle (james-slagle)
milestone: none → stein-1
tags: added: config-download
tags: added: rocky-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/602753
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=1e13e461cd4e5a1187cd8182ec74e8a5eb576e59
Submitter: Zuul
Branch: master

commit 1e13e461cd4e5a1187cd8182ec74e8a5eb576e59
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:01:26 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of failing the workflow when requesting the deployment status of
    a non-existant plan, return a useful message instead.

    Change-Id: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Partial-Bug: #1792637

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

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/606039

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/rocky)

Reviewed: https://review.openstack.org/606039
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=00e776dea75ee5511792bfa136265e3cce022688
Submitter: Zuul
Branch: stable/rocky

commit 00e776dea75ee5511792bfa136265e3cce022688
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:01:26 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of failing the workflow when requesting the deployment status of
    a non-existant plan, return a useful message instead.

    Change-Id: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Partial-Bug: #1792637
    (cherry picked from commit 1e13e461cd4e5a1187cd8182ec74e8a5eb576e59)

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

Reviewed: https://review.openstack.org/602754
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=0b14fd10fd4c48da27837053057a10d591ccb152
Submitter: Zuul
Branch: master

commit 0b14fd10fd4c48da27837053057a10d591ccb152
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:03:52 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of showing a traceback when requesting the deployment status of
    a non-existant plan, show a useful message instead.

    Change-Id: I3b10361fd17e1068e46a219b8081451f5c7ed035
    Depends-On: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Closes-Bug: #1792637

Changed in tripleo:
status: In Progress → Fix Released
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.openstack.org/609020

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

Reviewed: https://review.openstack.org/609020
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=559365aaaec3207060db23d38da1494808bbe155
Submitter: Zuul
Branch: stable/rocky

commit 559365aaaec3207060db23d38da1494808bbe155
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:03:52 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of showing a traceback when requesting the deployment status of
    a non-existant plan, show a useful message instead.

    Change-Id: I3b10361fd17e1068e46a219b8081451f5c7ed035
    Depends-On: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Closes-Bug: #1792637
    (cherry picked from commit 0b14fd10fd4c48da27837053057a10d591ccb152)

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

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

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

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

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

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

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/679374

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/queens)

Reviewed: https://review.opendev.org/679373
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=ce0b276f8d1422fd57ee04aaf4c7524b1e464b46
Submitter: Zuul
Branch: stable/queens

commit ce0b276f8d1422fd57ee04aaf4c7524b1e464b46
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:01:26 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of failing the workflow when requesting the deployment status of
    a non-existant plan, return a useful message instead.

    Change-Id: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Partial-Bug: #1792637
    (cherry picked from commit 1e13e461cd4e5a1187cd8182ec74e8a5eb576e59)
    (cherry picked from commit 00e776dea75ee5511792bfa136265e3cce022688)

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/679374
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=f650c81ac881586b4e0121a396e50d67df5c83d7
Submitter: Zuul
Branch: stable/queens

commit f650c81ac881586b4e0121a396e50d67df5c83d7
Author: James Slagle <email address hidden>
Date: Fri Sep 14 17:03:52 2018 -0400

    Handle non-existant plan when getting deployment status

    Instead of showing a traceback when requesting the deployment status of
    a non-existant plan, show a useful message instead.

    Change-Id: I3b10361fd17e1068e46a219b8081451f5c7ed035
    Depends-On: Ic0333c0726b16d284a7cc54bc68e16ea1c9ebc4d
    Closes-Bug: #1792637
    (cherry picked from commit 0b14fd10fd4c48da27837053057a10d591ccb152)
    (cherry picked from commit 559365aaaec3207060db23d38da1494808bbe155)

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

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