Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2115462

Summary: extend error message when hitting execnet exception on closed I/O
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Michaela Lang <milang>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Aditya Ramteke <aramteke>
Severity: low Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 5.1CC: adking, akraj, cephqe-warriors, gjose, kdreyer, prprakas, saraut
Target Milestone: ---   
Target Release: 7.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.0-1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-13 15:19:16 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: 2237662    

Description Michaela Lang 2022-08-04 17:35:10 UTC
Description of problem:
Exception reporting to generic

Version-Release number of selected component (if applicable):
5.1


How reproducible:
everytime


Steps to Reproduce:
1. setup a Ceph cluster
2. prepare a host to be added to the cluster
3. do not configure "NOPASSWD" in sudoers file for the cephorch (cephadm configured) user
3.1 echo "${CEPHUSER} ALL=(ALL) ALL" > /etc/sudoers.d/cephorch
4. cephadm shell ceph orch host add node1 127.0.0.1 _admin

Actual results:
Can't communicate with remote host `127.0.0.1`, possibly because python3 is not installed there: cannot send (already closed?)


Expected results:
Added host 'node1' with addr '127.0.0.1'


Additional info:
Reason for the issue is comming from sudo with password closes the I/O and execnet fails which is catched by cephadm/ssh.py only with a generic error message. This leads to difficult debugging even though, the procedure and documentation for setting up is correct and mentioning NOPASSWD in sudoers as only supported way.

I additionally created a pull request upstream as well https://github.com/ceph/ceph/pull/47464.

Comment 1 Adam King 2022-08-08 11:08:08 UTC
I've checked out the posted PR. It looks good other than some stuff with the commit message.

Comment 14 errata-xmlrpc 2023-12-13 15:19:16 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 (Red Hat Ceph Storage 7.0 Bug Fix update), 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-2023:7780