Bug 2268551

Summary: Customized grafana-cli script does not support the new CLI in grafana 10
Product: [Fedora] Fedora Reporter: Jan Kurik <jkurik>
Component: grafanaAssignee: sfeifer
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: agerstmayr, go-sig, jkurik, lchilton, nathans, scox, sfeifer
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://artifacts.dev.testing-farm.io/ef2f27c9-155b-4bcd-a44c-fc788350b171/work-gatinguf4_cddw/plans/gating/execute/data/guest/default-0/Regression/bz1916083-grafana-cli-crashes-when-run-from-root-s-home-2/output.txt
Whiteboard:
Fixed In Version: grafana-10.2.3-2.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-23 00:36:30 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:

Description Jan Kurik 2024-03-08 08:04:14 UTC
Grafana's CLI has been reworked in Grafana-10 and the customized grafana-cli script does not reflect this change.

Reproducible: Always

Steps to Reproduce:
1. Install grafana >= 10 (i.e.grafana-10.2.3-1.fc40)
2. Run grafana-cli
# grafana-cli plugins ls
Actual Results:  
Deprecation warning: The standalone 'grafana-cli' program is deprecated and will be removed in the future. Please update all uses of 'grafana-cli' to 'grafana cli'
grafana: 'cli' is not a grafana command. See 'grafana --help'.

Expected Results:  
The grafana-cli shows the deprecation warning and then lists available plugins.

Comment 1 Fedora Update System 2024-03-13 20:46:42 UTC
FEDORA-2024-634bf5b30c (grafana-10.2.3-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-634bf5b30c

Comment 2 Fedora Update System 2024-03-14 01:04:46 UTC
FEDORA-2024-634bf5b30c has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-634bf5b30c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-634bf5b30c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2024-03-23 00:36:30 UTC
FEDORA-2024-634bf5b30c (grafana-10.2.3-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.