Bug 1501547 - Workflow tripleo.plan_management.v1.publish_ui_logs_to_swift ERRORs
Summary: Workflow tripleo.plan_management.v1.publish_ui_logs_to_swift ERRORs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-ui
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 12.0 (Pike)
Assignee: Honza Pokorny
QA Contact: Ola Pavlenko
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-12 20:04 UTC by Jon Schlueter
Modified: 2018-02-05 19:15 UTC (History)
11 users (show)

Fixed In Version: openstack-tripleo-ui-7.4.3-0.20171023133305.8616195.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 22:13:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1717265 0 None None None 2017-10-12 20:04:17 UTC
OpenStack gerrit 510527 0 'None' 'MERGED' 'Bring the keystone utils up-to-date with Mistral' 2019-11-21 10:26:03 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Jon Schlueter 2017-10-12 20:04:14 UTC
Cloned from launchpad bug 1717265.

Description:

On a fresh environment today (created with quickstart and using devmode) I noticed that the UI log workflow fails to execute.

Details from the Mistral CLI...

(undercloud) [stack@925-heap--undercloud ~]$ mistral execution-get 88c8617c-db9f-4243-b5ea-b03fa79c9a37                                                                                                            
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                                                                                             |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ID                | 88c8617c-db9f-4243-b5ea-b03fa79c9a37                                                                                                                                                                                              |
| Workflow ID       | f655fddf-975a-4bfb-8f07-a350ff47a0ac                                                                                                                                                                                              |
| Workflow name     | tripleo.plan_management.v1.publish_ui_logs_to_swift                                                                                                                                                                               |
| Description       | {"triggered_by": {"type": "cron_trigger", "id": "04197a78-31c7-4f44-a90f-32f41adf9912", "name": "publish-ui-logs-hourly"}, "description": "Workflow execution created by cron trigger '(04197a78-31c7-4f44-a90f-32f41adf9912)'."} |
| Task Execution ID | <none>                                                                                                                                                                                                                            |
| State             | ERROR                                                                                                                                                                                                                             |
| State info        | None                                                                                                                                                                                                                              |
| Created at        | 2017-09-14 12:59:59                                                                                                                                                                                                               |
| Updated at        | 2017-09-14 13:00:06                                                                                                                                                                                                               |
+-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
(undercloud) [stack@925-heap--undercloud ~]$ mistral execution-get-output 88c8617c-db9f-4243-b5ea-b03fa79c9a37                                                                                                     
{
    "status": "FAILED", 
    "message": "Failed to run action [action_ex_id=512304ab-98d1-4b80-9234-338231ac91f5, action_cls='<class 'mistral.actions.action_factory.PublishUILogToSwiftAction'>', attributes='{}', params='{u'logging_data': u'', u'logging_container': u'tripleo-ui-logs'}']\n ", 
    "messages": "", 
    "result": null
}
(undercloud) [stack@925-heap--undercloud ~]$ mistral task-list 88c8617c-db9f-4243-b5ea-b03fa79c9a37                                                                                                                
+--------------------------------------+-----------------------------------+-----------------------------------------------------+--------------------------------------+---------+------------------------------+---------------------+---------------------+
| ID                                   | Name                              | Workflow name                                       | Execution ID                         | State   | State info                   | Created at          | Updated at          |
+--------------------------------------+-----------------------------------+-----------------------------------------------------+--------------------------------------+---------+------------------------------+---------------------+---------------------+
| 37bd933a-603a-439d-9e51-2ee8b9a3f1d1 | get_messages                      | tripleo.plan_management.v1.publish_ui_logs_to_swift | 88c8617c-db9f-4243-b5ea-b03fa79c9a37 | SUCCESS | None                         | 2017-09-14 12:59:59 | 2017-09-14 13:00:02 |
| 55e56760-e01f-448a-8ee9-3ef716e9f837 | upload_to_swift_set_status_failed | tripleo.plan_management.v1.publish_ui_logs_to_swift | 88c8617c-db9f-4243-b5ea-b03fa79c9a37 | SUCCESS | None                         | 2017-09-14 13:00:02 | 2017-09-14 13:00:03 |
| 65c977dd-6c20-457e-a64c-e786e6bf2a03 | format_messages                   | tripleo.plan_management.v1.publish_ui_logs_to_swift | 88c8617c-db9f-4243-b5ea-b03fa79c9a37 | SUCCESS | None                         | 2017-09-14 13:00:02 | 2017-09-14 13:00:02 |
| 6d3becc7-15c3-4ef2-8d4c-6557165ad256 | upload_to_swift                   | tripleo.plan_management.v1.publish_ui_logs_to_swift | 88c8617c-db9f-4243-b5ea-b03fa79c9a37 | ERROR   | Failed to run action [act... | 2017-09-14 13:00:02 | 2017-09-14 13:00:02 |
| 48f02d20-dbcb-4150-a737-91c0da79e39e | notify_zaqar                      | tripleo.plan_management.v1.publish_ui_logs_to_swift | 88c8617c-db9f-4243-b5ea-b03fa79c9a37 | SUCCESS | None                         | 2017-09-14 13:00:03 | 2017-09-14 13:00:06 |
+--------------------------------------+-----------------------------------+-----------------------------------------------------+--------------------------------------+---------+------------------------------+---------------------+---------------------+



And the traceback from the logs...


2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor [req-1f29021f-02f6-4701-a1e3-a04009f8c6c5 f6766a837fd141caab9b9f1b46294f83 b2369236c0e04741a97f3eb99248c8e7 - default default] Failed to run action [action_ex_id=512304ab-98d1-4b80-9234-338231ac91f5, action_cls='<class 'mistral.actions.action_factory.PublishUILogToSwiftAction'>', attributes='{}', params='{u'logging_data': u'', u'logging_container': u'tripleo-ui-logs'}']
 : UnauthorizedException
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor Traceback (most recent call last):
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor   File "/usr/lib/python2.7/site-packages/mistral/executors/default_executor.py", line 109, in run_action
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor     result = action.run(context.ctx())
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor   File "/usr/lib/python2.7/site-packages/tripleo_common/actions/logging_to_swift.py", line 125, in run
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor     swift = self.get_object_client(context)
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor   File "/usr/lib/python2.7/site-packages/tripleo_common/actions/base.py", line 38, in get_object_client
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor     obj_ep = keystone_utils.get_endpoint_for_project(context, 'swift')
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor   File "/usr/lib/python2.7/site-packages/tripleo_common/utils/keystone.py", line 47, in get_endpoint_for_project
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor     service_catalog = obtain_service_catalog(ctx)
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor   File "/usr/lib/python2.7/site-packages/tripleo_common/utils/keystone.py", line 111, in obtain_service_catalog
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor     raise exception.UnauthorizedException()
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor UnauthorizedException
2017-09-14 13:00:02.748 20437 ERROR mistral.executors.default_executor

Specification URL (additional information):

https://bugs.launchpad.net/tripleo/+bug/1717265

Comment 5 Florian Fuchs 2017-11-01 11:53:12 UTC
Tested with openstack-tripleo-common, Version 7.4.2. Release 0.20171022171808

Comment 9 errata-xmlrpc 2017-12-13 22:13:59 UTC
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/RHEA-2017:3462


Note You need to log in before you can comment on or make changes to this bug.