Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2039883

Summary: Web ui: add possibility to update fence device arguments
Product: Red Hat Enterprise Linux 9 Reporter: Ivan Devat <idevat>
Component: pcsAssignee: Ivan Devat <idevat>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: cluster-maint, idevat, mlisik, mmazoure, mpospisi, omular, tojeline
Target Milestone: rcKeywords: Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.11.1-8.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:19:34 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Devat 2022-01-12 16:29:16 UTC
Previous web ui included feature for updating fence device arguments. The new web ui should also include this basic functionality.

Comment 1 Miroslav Lisik 2022-01-14 17:46:18 UTC
DevTestResults:

[root@r90-node-01 ~]# rpm -q pcs
pcs-0.11.1-8.el9.x86_64

1. On cluster management page click on "Fence Devices" tab
2. Choose a fence device from a list and click on it, detail of the agent will show up on the right side
3. Click on the "Arguments" tab in the fence device detail
4. Click on the "Edit arguments" button
5. Edit fence device in the "Edit fence device arguments" modal window and click "Save arguments" button
6. Check the "Arguments" tab for the edited arguments

Comment 5 Michal Mazourek 2022-02-14 14:52:58 UTC
AFTER:
======

[root@virt-516 ~]# rpm -q pcs
pcs-0.11.1-10.el9.x86_64


## Basic cluster setup

[root@virt-516 ~]# pcs status
Cluster name: STSRHTS28904
Cluster Summary:
  * Stack: corosync
  * Current DC: virt-517 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum
  * Last updated: Mon Feb 14 14:54:34 2022
  * Last change:  Mon Feb 14 11:17:30 2022 by root via cibadmin on virt-516
  * 2 nodes configured
  * 6 resource instances configured

Node List:
  * Online: [ virt-516 virt-517 ]

Full List of Resources:
  * fence-virt-516	(stonith:fence_xvm):	 Started virt-516
  * fence-virt-517	(stonith:fence_xvm):	 Started virt-517
  * Clone Set: locking-clone [locking]:
    * Started: [ virt-516 virt-517 ]

Daemon Status:
  corosync: active/disabled
  pacemaker: active/disabled
  pcsd: active/enabled


## in web UI

- open new web UI (https://nodename:2224/)
- log in
- Click 'Add existing cluster' button and proceed with the wizard
- Click on the added cluster
- Click on 'Fence Devices'
- Click on one of the fence devices (fence-virt-516 in this case)
- Click on 'Arguments' in the detail of the device
- Click on 'Edit arguments'
	> A window will appear with the devices arguments to be updated, the arguments can be searched and filtered by importance. There is a help message with every argument


- Trying to edit 'delay' argument from 5 to 6 and click 'Save arguments' 
	> Fence device arguments updated sucessfully
before: 
'delay 5'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

after:
'delay 6'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=6 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

> OK


- Trying to edit multiple arguments at once (delay to 5 and auth to sha1)
> Fence device arguments updated sucessfully
before:
'auth
    sha256
    Default value
delay 6'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=6 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

after:
'auth sha1
delay 5'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: auth=sha1 delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

> OK


- Trying to change argument to its default value (leaving empty space at auth)
> Fence device arguments updated sucessfully
before:
'auth sha1'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: auth=sha1 delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

after:
'auth
    sha256
    Default value'
[root@virt-516 ~]# pcs stonith config fence-virt-516
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

> OK: Tried also as multiple arguments change with one argument changing to default


- Trying to change one of the advanced argument (pcmk_status_timeout)
> Fence device arguments updated sucessfully
before:
'pcmk_status_timeout
    60s
    Default value'
[root@virt-516 ~]# pcs stonith config fence-virt-516 
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

after:
'pcmk_status_timeout 61s'
[root@virt-516 ~]# pcs stonith config fence-virt-516 
 Resource: fence-virt-516 (class=stonith type=fence_xvm)
  Attributes: delay=5 pcmk_host_check=static-list pcmk_host_list=virt-516 pcmk_host_map=virt-516:virt-516.cluster-qe.lab.eng.brq.redhat.com pcmk_status_timeout=61s
  Operations: monitor interval=60s (fence-virt-516-monitor-interval-60s)

> OK


Marking as VERIFIED for pcs-0.11.1-10.el9

Comment 7 errata-xmlrpc 2022-05-17 12:19:34 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 (new packages: pcs), 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-2022:2290