| Summary: | [gui] jquery breaks if the first cluster_status request provides not enough data | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Radek Steiger <rsteiger> |
| Component: | pcs | Assignee: | Ondrej Mular <omular> |
| Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.3 | CC: | cfeist, cluster-maint, idevat, mlisik, omular, tojeline |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | pcs-0.9.156-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 18:24:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Radek Steiger
2016-11-18 11:42:37 UTC
It looks like the crash occurs on line:
$.each(self.get("group_list"), function(_, group) {
in nodes-ember.js when Pcs.resourcesContainer.group_list is not an array. This should be easy to fix. We can return an empty list from the groups_enum function if we cannot get the groups. But it would be better to fix the issue at its roots instead of where it manifests itself.
Ondrej, can you take a look at this and fix it in the place where the fix fits the best? Thanks!
Upstream patch: https://github.com/ClusterLabs/pcs/commit/51580b1b38745b29e97229a2e938694ac4166b8 TEST: 2-node cluster, nodes: rhel7-node1, rhel7-node2 Open nodes page of tested cluster from web UI of node which is not part of the cluster. Block port 2224 (pcsd) on both cluster nodes: [root@rhel7-node1 ~]# iptables -I OUTPUT -p tcp --dport 2224 -j DROP [root@rhel7-node1 ~]# iptables -I INPUT -p tcp --dport 2224 -j DROP [root@rhel7-node2 ~]# iptables -I OUTPUT -p tcp --dport 2224 -j DROP [root@rhel7-node2 ~]# iptables -I INPUT -p tcp --dport 2224 -j DROP After next update of web UI, cluster nodes are marked as offline and there is no JS error in JS console. After Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.156-1.el7.x86_64 see comment 4 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://access.redhat.com/errata/RHBA-2017:1958 |