Bug 2166688

Summary: [dashboard] block/rbd : tab:images : Disable promote option to images which are not mirroring enabled
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-DashboardAssignee: Pedro González Gómez <pegonzal>
Status: ON_QA --- QA Contact: Sunil Angadi <sangadi>
Severity: low Docs Contact: Anjana Suparna Sriram <asriram>
Priority: unspecified    
Version: 6.0CC: aasharma, ceph-eng-bugs, cephqe-warriors, kdreyer, sangadi, tserlin
Target Milestone: ---   
Target Release: 6.1z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-105.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 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:

Description Vasishta 2023-02-02 16:21:14 UTC
Description of problem:
promote option in dropdown is enabled for images which are not enabled with mirroring.
(promote toggles to demote for which are enabled and are primary which is expected)

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

How reproducible:
Always

Steps to Reproduce:
1. open ceph dashboard and explore options provided to a rbd image

Actual results:
promote option in dropdown is enabled for image without mirroring configured.

Expected results:
Disable promote option to rbd image

Additional info: