Bug 1026431
Summary: | pcs incorrectly detects RHEL6 variants | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Tuomo Soini <tis> | ||||
Component: | pcs | Assignee: | Chris Feist <cfeist> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.4 | CC: | cluster-maint, fdinitto, gbeshers, jharriga, lmiksik, nyewale, peterm, redhat-bugzilla, riehecky, rja, robert.scheck, rsteiger, salmy, slevine, trevor.hemsley | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.9.123-9.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-10-14 07:21:29 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: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 996235 | ||||||
Attachments: |
|
Description
Tuomo Soini
2013-11-04 15:59:51 UTC
PCS version is 0.9.90-1.el6_4 Can you post the output you get when you run 'pcs status' and the output you get what you run 'pcs cluster status'. # pcs cluster status Cluster Status: Last updated: Tue Nov 5 20:55:37 2013 Last change: Tue Nov 5 20:07:50 2013 via cibadmin on test1.foobar.fi Stack: cman Current DC: test1.foobar.fi - partition with quorum Version: 1.1.10-1.el6_4.4-368c726 2 Nodes configured 4 Resources configured PCSD Status: Error: no nodes found in corosync.conf # pcs status Cluster name: Last updated: Tue Nov 5 20:55:30 2013 Last change: Tue Nov 5 20:07:50 2013 via cibadmin on test1.foobar.fi Stack: cman Current DC: test1.foobar.fi - partition with quorum Version: 1.1.10-1.el6_4.4-368c726 2 Nodes configured 4 Resources configured Online: [ test1.foobar.fi test2.foobar.fi ] Full list of resources: Resource Group: services ClusterIP (ocf::heartbeat:IPaddr2): Started test1.foobar.fi ldirectord (lsb:ldirectord): Started test1.foobar.fi Clone Set: cl-Connectivity [Connectivity] Started: [ test1.foobar.fi test2.foobar.fi ] PCSD Status: Error: no nodes found in corosync.conf everything else is output to stdout but Error: line is stderr. Can you post the output of this command: 'cat /etc/issue' You could just ask if this is real rhel or not - it's not - but the problems I described are rhel specific with unmodified software. ldirctord is our own package. ah - I understand - is_rhel6() doesn't work with any rhel clones. I'll patch to suppot our linux variant. I inform which problems are left behind when os is correctly detected - and I'll inform Centos folks about need for patching. Created attachment 820054 [details]
Proposed patch to cater for 3 most popular el6 variants
One liner patch to work on RHEL6, CentOS 6 and SL6
Yes, just wanted to see if that was the issue. Thanks for that patch, I'll be applying that patch upstream ASAP. There is also one other issue (that is fixed upstream) which causes the pcsd checks to happen when running 'pcs cluster status' ('pcs status' is fine). Those messages should be harmless (so you can ignore them). However, there are a few other situations where is_rhel6 does things differently, so if you're running CentOS or Scientific Linux you'll want to apply that patch on your installs. Note: the patch to fix this issue is here: https://github.com/feist/pcs/commit/eed5198ea20cbad4be100990a6cca8a101296358 *** Bug 1073584 has been marked as a duplicate of this bug. *** Status check. This BZ is marked POST but no indication that the fix is in. Is this problem fixed? Or what needs to be done to fix it? Thanks, This fix has been committed upstream, but is not yet released in RHEL. Updated summary to reflect that this bug is for fixing issues with pcs detecting RHEL 6 variants. pcsd should be working upstream with RHEL 6 systems so 'pcs cluster status' should be printing out this information. This fix is in the latest pcs build, I'll find an easy way to test this. Before Fix: [root@bid-06 pcs]# rpm -q pcs pcs-0.9.123-6.el6.x86_64 [root@bid-06 pcs]# echo "Red Hat Enterprise Linux Client release 6.5 (Santiago)" > /etc/system-release [root@bid-06 pcs]# python -c'import utils; print utils.is_rhel6()' False After Fix: [root@bid-05 pcs]# rpm -q pcs pcs-0.9.123-9.el6.x86_64 [root@bid-05 pcs]# echo "Red Hat Enterprise Linux Client release 6.5 (Santiago)" > /etc/system-release [root@bid-05 pcs]# python -c'import utils; print utils.is_rhel6()' True [root@bid-05 pcs]# echo "Red Hat Enterprise Linux ComputeNode release 6.6 Beta (Santiago)" > /etc/system-release [root@bid-05 pcs]# python -c'import utils; print utils.is_rhel6()' True [root@bid-05 pcs]# echo "Red Hat Enterprise Linux Workstation release 6.6 Beta (Santiago)" > /etc/system-release [root@bid-05 pcs]# python -c'import utils; print utils.is_rhel6()' True [root@bid-05 pcs]# echo "Red Hat Enterprise Linux Server release 7.0 (Maipo)" > /etc/system-release [root@bid-05 pcs]# python -c'import utils; print utils.is_rhel6()' False 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. http://rhn.redhat.com/errata/RHBA-2014-1526.html |