Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1766229

Summary: Incorrect log file location in message appear after node _update failed
Product: Red Hat OpenStack Reporter: Paras Babbar <pbabbar>
Component: openstack-tripleo-commonAssignee: mbollo
Status: CLOSED NOTABUG QA Contact: Alexander Chuzhoy <sasha>
Severity: low Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: aschultz, ccamacho, jstransk, mbollo, mburns, mgarciac, rrasouli, slinaber, spower
Target Milestone: ---Keywords: Reopened, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-10.8.3-0.20200321200442.fc66fa3.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1814990 1846337 (view as bug list) Environment:
Last Closed: 2020-12-17 10:30:52 UTC Type: Bug
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:    
Bug Blocks: 1814990, 1846337, 1911633    
Attachments:
Description Flags
/var/log/containers/mistral/package_update.log none

Description Paras Babbar 2019-10-28 15:46:56 UTC
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 8 Ronnie Rasouli 2020-12-13 15:24:06 UTC
The bug still appearing on the attached logs.
Update from OSP16 to OSP16.1 container
overcloud_update_prepare_containers.log

Comment 9 Ronnie Rasouli 2020-12-13 15:24:34 UTC
Created attachment 1738749 [details]
/var/log/containers/mistral/package_update.log