Bug 1518666 - RHCS upgrade 2.4 - 3.0: Fails with "msg": "file (/var/log/ganesha) is absent, cannot continue"
Summary: RHCS upgrade 2.4 - 3.0: Fails with "msg": "file (/var/log/ganesha) is absent...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: 3.*
Assignee: Sébastien Han
QA Contact: ceph-qe-bugs
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1494421
TreeView+ depends on / blocked
 
Reported: 2017-11-29 12:43 UTC by Parikshith
Modified: 2019-01-10 16:38 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.Ansible fails to upgrade NFS Ganesha nodes Ansible fails to upgrade NFS Ganesha nodes because the `rolling-update.yml` playbook searches for the `/var/log/ganesha/` directory that does not exist. Consequently, the upgrading process terminates with the following error message: ---- "msg": "file (/var/log/ganesha) is absent, cannot continue" ---- To work around this problem, create `/var/log/ganesha/` manually.
Clone Of:
Environment:
Last Closed: 2019-01-10 16:38:33 UTC
Embargoed:


Attachments (Terms of Use)
upgrade log (478.60 KB, text/plain)
2017-11-29 12:43 UTC, Parikshith
no flags Details

Description Parikshith 2017-11-29 12:43:18 UTC
Created attachment 1360291 [details]
upgrade log

Description of problem:
rolling upgrade fails while upgrading nfs client since ceph-ansible searches for /var/log/ganesha, but on the nfs client that particular file will be /var/log/ganesha.log 

Version-Release number of selected component (if applicable):
RHEL - 12.2.1-40

How reproducible:


Steps to Reproduce:
1. Configure 2.4 cluster with nfs(manually). 
2. Upgrade to 3.0.


Actual results:

TASK [ceph-nfs : change ownership on /var/log/ganesha] ************************************************************************************************************************************************************
fatal: [magna067]: FAILED! => {"changed": false, "failed": true, "msg": "file (/var/log/ganesha) is absent, cannot continue", "path": "/var/log/ganesha", "state": "absent"}

Additional info:
I tried two workarounds:

1. Moved the /var/log/ganesha.log file to /var/log/ganesha on the nfs client. Reran the upgrade and it finished successfully.

2. Edited the path to "/var/log/ganesha.log" in "pre_requisite_non_container.yml" in ceph-nfs tasks. Reran the upgrade and it finished successfully.

This bz has to be release noted.

Comment 6 Sébastien Han 2017-12-01 10:11:27 UTC
Just to clarify, ceph-ansible is looking for a directory not a file.
Usually /var/log/ganesha is the directory where ganesha puts its logs in.
The right work around is to create the directory: /var/log/ganesha

It is weird though, I suspect you are running an old version of ganesha.

Bara, I changed the description.


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