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.<
*** Bug 1632495 has been marked as a duplicate of this bug. ***
Comment 7Artem Hrechanychenko
2018-12-13 09:17:16 UTC
openstack-tripleo-common-9.4.1-0.20181012010884.el7ost.noarch
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud status
None
From user perspective side it's still not clear why I get None insted of clear output that there are not deployed overcloud.
So I decided to move it back to assigned state.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2019:3794
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.<