Bug 2054671
Summary: | [RFE] Generate UUID for each cluster | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Michal Pospisil <mpospisi> |
Component: | pcs | Assignee: | Michal Pospisil <mpospisi> |
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> |
Severity: | low | Docs Contact: | Steven J. Levine <slevine> |
Priority: | low | ||
Version: | 9.0 | CC: | ccaulfie, cluster-maint, cluster-qe, idevat, jfriesse, kgaillot, kmalyjur, milind.kulkarni, mlisik, mmazoure, mpospisi, nhostako, nwahl, omular, svalasti, tojeline |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
Target Release: | 9.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | pcs-0.11.2-1.el9 | Doc Type: | Enhancement |
Doc Text: |
.Support for cluster UUID
During cluster setup, the `pcs` command now generates a UUID for every cluster. Since a cluster name is not a unique cluster identifier, you can use the cluster UUID to identify clusters with the same name when you administer multiple clusters.
You can display the current cluster UUID with the `pcs cluster config [show]` command. You can add a UUID to an existing cluster or regenerate a UUID if it already exists by using the `pcs cluster config uuid generate` command.
|
Story Points: | --- |
Clone Of: | 1950551 | Environment: | |
Last Closed: | 2022-11-15 09:48:38 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
Michal Pospisil
2022-02-15 13:10:42 UTC
*** Bug 2058250 has been marked as a duplicate of this bug. *** Feature merged into upstream master: https://github.com/ClusterLabs/pcs/commit/d3363a81ca1be43bd2420f0b5826c603fc0349ff New clusters created with "pcs cluster setup" are going to get a UUID by default. Anyone wishing to create a cluster without UUID can use the "--no-cluster-uuid" switch on cluster setup. This UUID is being stored in the totem section of corosync.conf under "cluster_uuid" key. The generated UUID is compliant with RFC4122 [1], UUID version 4. Command "pcs cluster config [show]" can be used to display the UUID. For existing clusters without the UUID, one can be generated by using "pcs cluster config uuid generate". In case of an UUID collision in an external system, like a CMDB (configuration management database [2]), the UUID can be regenerated with "pcs cluster config uuid generate --force". The "--force" is needed for overwriting an existing UUID in this case. [1] https://datatracker.ietf.org/doc/html/rfc4122.html [2] https://en.wikipedia.org/wiki/Configuration_management_database ENVIRONMENT PREPARATION: - any cluster (do not use "--no-cluster-uuid" on setup) DEV TEST: ## Generate a UUID and verify it's there # pcs cluster config uuid generate # pcs cluster config Cluster Name: cluster4 Cluster UUID: ad4ae07dcafe4066b01f1cc9391f34f5 Transport: knet Nodes: c4n1-el9-0: Link 0 address: c4n1-el9-0 nodeid: 1 c4n2-el9-0: Link 0 address: c4n2-el9-0 nodeid: 2 Crypto Options: cipher: aes256 hash: sha256 will this be backported in RHEL8 ? (In reply to Milind from comment #4) > will this be backported in RHEL8 ? Yes, it will be. There is a BZ bz1950551. DevTestResults: [root@r91-1 ~]# rpm -q pcs pcs-0.11.2-1.el9.x86_64 [root@r91-1 ~]# pcs cluster config | grep "Cluster UUID:" Cluster UUID: 286e17ce5161457bbf5825dc0fa9a372 [root@r91-1 ~]# pcs cluster config uuid generate Error: Cluster UUID has already been set, use --force to override Error: Errors have occurred, therefore pcs is unable to continue [root@r91-1 ~]# pcs cluster config uuid generate --force Warning: Cluster UUID has already been set Sending updated corosync.conf to nodes... r91-1: Succeeded r91-2: Succeeded r91-1: Corosync configuration reloaded [root@r91-1 ~]# pcs cluster config | grep "Cluster UUID:" Cluster UUID: 252a298451e0468eb4f71eca1d90b6eb Marking as VERIFIED for pcs-0.11.2-1.el9 based on comment 10, comment 12. 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 (Moderate: pcs security, bug fix, and enhancement update), 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/RHSA-2022:7935 |