Bug 1741586
Summary: | pcsd is unable to handle non-ASCII characters in corosync.conf | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Nina Hostakova <nhostako> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 8.1 | CC: | cfeist, cluster-maint, idevat, mlisik, omular, tojeline | ||||
Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
||||
Target Release: | 8.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.10.4-1.el8 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
The corosync.conf file contains utf-8 characters.
Consequence:
Various pcs and pcsd commands and functionalities do not work.
Fix:
When reading the corosync.conf file, set its encoding to utf-8.
Result:
Pcs and pcsd works.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-04-28 15:27:56 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: | |||||||
Attachments: |
|
Description
Nina Hostakova
2019-08-15 13:41:47 UTC
Created attachment 1637778 [details] proposed fix It turned out the presence of utf-8 characters in corosync.conf causes more issues than just an inability to edit corosync.conf via pcs as shown in comment 0. Some examples of what does not work: * pcs host auth * pcs cluster stop|start --all|<node> * adding and removing cluster nodes * config files syncing - exceptions are logged in pcsd log: WARNING -- : Config files sync exception: invalid byte sequence in US-ASCII Test: [root@r81-node-01 pcs]# sed -i "s/ring0_addr: r81-node-02/ring0_addr: ř81-node-02/" /etc/corosync/corosync.conf [root@r81-node-01 pcs]# grep ring0_addr /etc/corosync/corosync.conf ring0_addr: r81-node-01 ring0_addr: ř81-node-02 [root@r81-node-01 pcs]# pcs host auth localhost Username: hacluster Password: localhost: Authorized [root@r81-node-01 pcs]# echo $? 0 [root@r81-node-01 pcs]# pcs status pcsd localhost localhost: Online 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/RHEA-2020:1568 |