Bug 1910022

Summary: [RFE] add button to switch the master storage domain role
Product: [oVirt] ovirt-engine Reporter: Eyal Shenitzky <eshenitz>
Component: BLL.StorageAssignee: shani <sleviim>
Status: CLOSED CURRENTRELEASE QA Contact: sshmulev
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.4CC: bugs, dfodor, sfishbai, sleviim
Target Milestone: ovirt-4.4.5Keywords: FutureFeature
Target Release: ---Flags: pm-rhel: planning_ack?
pm-rhel: devel_ack?
pm-rhel: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Add a button to switch the master storage domain role from UI. Reason: The ability to switch the master domain role is currently available only from SDK. Result: The master storage domain role can be switched by pressing the 'Set as master storage domain' button on the Storage Domain sidebar menu.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-18 15:14:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eyal Shenitzky 2020-12-22 11:15:33 UTC
Description of problem:

Switching the master storage domain role already supported since bug 1576923
was fixed.

Currently, the only way to use it is via the REST-API - 

POST /ovirt-engine/api/datacenters/123/setmaster

 With a request body like this:

  <action>
    <storage_domain id="456"/>
  </action>

It will be very useful to add this functionality to the UI also.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Shir Fishbain 2021-03-07 17:22:38 UTC
QE doesn't have enough capacity to verify this bug in the 4.4.5 release.

Comment 2 Eyal Shenitzky 2021-03-08 09:17:20 UTC
Shani, can you assist here and verify this bug?
Please add the verification steps if all works well and move to 'verified'.

Comment 3 shani 2021-03-08 11:05:42 UTC
This button was already shown on the recent RHV Demos, and the demo is available here: https://imgur.com/a/XWquCeh
In order to verify, the same conditions for the SDK should apply:
- Both new and exists master domains should be active.
- Currently, the operation doesn't available for gluster domains: https://bugzilla.redhat.com/show_bug.cgi?id=1911597

Is this one enough for validating the operation?

Comment 4 Eyal Shenitzky 2021-03-08 11:53:35 UTC
(In reply to shani from comment #3)
> This button was already shown on the recent RHV Demos, and the demo is
> available here: https://imgur.com/a/XWquCeh
> In order to verify, the same conditions for the SDK should apply:
> - Both new and exists master domains should be active.
> - Currently, the operation doesn't available for gluster domains:
> https://bugzilla.redhat.com/show_bug.cgi?id=1911597
> 
> Is this one enough for validating the operation?

Yes.

Comment 5 Sandro Bonazzola 2021-03-18 15:14:13 UTC
This bugzilla is included in oVirt 4.4.5 release, published on March 18th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.