Bug 1814990

Summary: Incorrect log file location in message appear after node _update failed
Product: Red Hat OpenStack Reporter: mbollo
Component: openstack-tripleo-commonAssignee: mbollo
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: apetrich, aschultz, bshephar, jstransk, mburns, mgarciac, pbabbar, sasha, slinaber
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-11.3.3-0.20200321092338.da2cc62.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1766229
: 1911633 (view as bug list) Environment:
Last Closed: 2020-05-14 12:16:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1766229, 1846337    
Bug Blocks: 1911633    

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