Bug 1814990 - Incorrect log file location in message appear after node _update failed
Summary: Incorrect log file location in message appear after node _update failed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: mbollo
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On: 1766229 1846337
Blocks: 1911633
TreeView+ depends on / blocked
 
Reported: 2020-03-19 09:32 UTC by mbollo
Modified: 2020-12-30 13:27 UTC (History)
9 users (show)

Fixed In Version: openstack-tripleo-common-11.3.3-0.20200321092338.da2cc62.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1766229
: 1911633 (view as bug list)
Environment:
Last Closed: 2020-05-14 12:16:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2114 0 None None None 2020-05-14 12:16:36 UTC

Description mbollo 2020-03-19 09:32:13 UTC
+++ This bug was initially created as a clone of Bug #1766229 +++

Description of problem:
While upgrading from 13 to 14 when my node upgrade failed , I got the error message to check the logs from the "ERROR openstack [-] Update failed with: Ansible failed, check log at /var/lib/mistral/a4e50beb-002d-4eab-b34f-2bc9b692c8fe/ansible.log.: RuntimeError: Update failed with: Ansible failed, check log at /var/lib/mistral/a4e50beb-002d-4eab-b34f-2bc9b692c8fe/ansible.log" while there is no ansible.log file present in this directory.
Version-Release number of selected component (if applicable):13->14

How reproducible:
100%

Steps to Reproduce:
1.do the node_update_failed 
2.check the error log location mentioned in error message

Actual results:
There should be ansible.log file for troubleshooting the error

Expected results:
No ansible.log file present in the path mentioned in error message

Additional info:

The fix suppose to be easy like updatein below location yaml file"/usr/share/tripleo-common/workbooks/package_update.yaml":
[Line 166-170]
node_update_failed:
        on-success: send_message
        publish:
          status: FAILED
          message: Ansible failed, check log at <% $.get('work_dir') %>/<% execution().id %>/ansible.log.


which needs to be corrected:

node_update_failed:
        on-success: send_message
        publish:
          status: FAILED
          message: Ansible failed, check log at "/var/log/containers/mistral/package_update.log" or something similar to that.


Impact: Help our customer to point to right direction for checking the logs and definitely help us in getting few calls!

Thanks

Comment 2 Brendan Shephard 2020-03-23 23:52:11 UTC
This one is opened for OSP16, but this issue has been a thing since OSP13. Any progress on this one?

Comment 9 errata-xmlrpc 2020-05-14 12:16:18 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/RHBA-2020:2114


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