Bug 2243795

Summary: [Bluewash] Add more information to the output of CLI command "ceph callhome show"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sayalee <saraut>
Component: Call-Home-AgentAssignee: Juan Miguel Olmo <jolmomar>
Status: VERIFIED --- QA Contact: Sayalee <saraut>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: adking, cblum, cephqe-warriors, jolmomar, kdreyer, nia, nojha, pegonzal, rpollack, saraut, tserlin, vdas, vereddy, yhatuka
Target Milestone: ---Keywords: External
Target Release: 7.0z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-18.2.0-144.el9cp Doc Type: Deprecated Functionality
Doc Text:
. `ceph callhome show` command is no longer used for showing user information. Previously, the Call Home `ceph callhome show` command was used for both printing reports and showing user information. The `ceph callhome show user info` command is now replaced by `ceph callhome get user info`. The `ceph callhome show` command is now only used to print reports. For more information, see Using Call Home.
Story Points: ---
Clone Of:
: 2265490 (view as bug list) Environment:
Last Closed: 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: 2260311, 2265490    

Description Sayalee 2023-10-13 06:53:42 UTC
Description of problem:
=======================
On running the "ceph callhome show" command, the user should get an option of reports that are available for checking.

# ceph callhome show
no valid command found; 2 closest matches:
callhome show <report_type>
callhome show user info
Error EINVAL: invalid command


Version-Release number of selected component (if applicable):
=============================================================
# dnf info cephadm
Updating Subscription Management repositories.
Last metadata expiration check: 3:18:32 ago on Thu Oct 12 23:32:29 2023.
Installed Packages
Name         : cephadm
Epoch        : 2
Version      : 18.2.0
Release      : 69.el9cp
Architecture : noarch
Size         : 231 k
Source       : cephadm-18.2.0-69.el9cp.src.rpm
Repository   : @System
From repo    : IBM-CEPH-7.0-20231002.ci.0
Summary      : Utility to bootstrap Ceph clusters
URL          : https://ceph.io
License      : LGPL-2.1
Description  : Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed
             : with systemd and podman.


How reproducible:
================
Always


Steps to Reproduce:
==================
1. Deploy a IBM Ceph Storage 7 cluster
2. Enable call_home_agent on the cluster
3. From CLI, run the "ceph callhome show" commnad


Actual results:
===============
If no key is passed to the command, it returns output as -
# ceph callhome show
no valid command found; 2 closest matches:
callhome show <report_type>
callhome show user info
Error EINVAL: invalid command


Expected results:
=================
The ceph callhome show command does not provide any info on the available report options 

Whereas, the ceph callhome send command does that-
# ceph callhome send
Invalid command: missing required parameter report_type(<string>)
callhome send <report_type> :  Command for sending the report requested. Available reports: inventory, status, last_contact Example:     ceph callhome send inventory
Error EINVAL: invalid command

We should add similar info to the "show" command as well.