Red Hat Bugzilla – Bug 1264360
pcs Web UI doesn't indicate unmanaged resources
Last modified: 2016-11-03 16:55:16 EDT
Description of problem: You can't see whether resource is unamanged from Web UI. Version-Release number of selected component (if applicable): pcs-0.9.143-9.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Create resource with meta attribute "is-managed" set to "false". [root@virt-028 ~]# pcs resource create dummy Dummy meta is-managed=false 2. Look at the Web UI dashboard page or resources page. Actual results: You don't see difference between managed and unmanaged resources. Expected results: Somehow indicate that resource is not managed.
Just a related observation - when deleting a running unmanaged from within the GUI, the resource is only switched to disabled but stays in place. This is because pcs tries to stop it first, which obviously fails, but there's no indication what happened and why.
proposed fix: https://github.com/ClusterLabs/pcs/commit/08b0d1e307f804e7fcac82cb8091dc4e2d5d Test: Unamanaged resources are shown correctly with status 'unamanaged'. Also there are new buttons for manage/unmanage resource.
Before Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.152-5.el7.x86_64 Look of unmanaged resources do not differ from managed. After Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.152-6.el7.x86_64 Unamanaged resources are shown correctly with status 'unamanaged'. Also there are new buttons for manage/unmanage resource.
additional fix: https://github.com/ClusterLabs/pcs/commit/28c79e44207ca36c520b6aae0348982c29f Information that resource is unmanaged is displayed independently of its status. Test: Create dummy resource and make it unmanaged. Displayed status will be: "running (unmanaged)" in orange color.
Before Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.152-7.el7.x86_64 Create dummy resource and make it unmanaged. Displayed status will be: "unmanaged" in orange color. After Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.152-8.el7.x86_64 Create dummy resource and make it unmanaged. Displayed status will be: "running (unmanaged)" in orange color.
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, 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://rhn.redhat.com/errata/RHSA-2016-2596.html