-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve configure schema
command
#1690
Merged
liangxin1300
merged 4 commits into
ClusterLabs:master
from
liangxin1300:20250214_schema_improve
Feb 18, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
367b12a
Dev: schema: Make sure schema changed after setting new schema by `co…
liangxin1300 d18356f
Dev: ui_configure: Get schema statically when cluster is not running
liangxin1300 de50f0e
Dev: doc: Improve documentation for `configure schema` command
liangxin1300 9b1bfe5
Dev: behave: Add test case for schema change
liangxin1300 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -3885,24 +3885,26 @@ save web-server server-config.txt | |||||||
==== `schema` | ||||||||
|
||||||||
CIB's content is validated by a RNG schema. Pacemaker supports | ||||||||
several, depending on version. At least the following schemas are | ||||||||
accepted by `crmsh`: | ||||||||
several, depending on version. You can see all supported schemas by | ||||||||
typing +<TAB><TAB>+ after `crm configure schema`. | ||||||||
|
||||||||
* +pacemaker-1.0+ | ||||||||
* +pacemaker-1.1+ | ||||||||
* +pacemaker-1.2+ | ||||||||
* +pacemaker-1.3+ | ||||||||
* +pacemaker-2.0+ | ||||||||
|
||||||||
Use this command to display or switch to another RNG schema. | ||||||||
Note that it is highly recommended to use the latest schema version. | ||||||||
|
||||||||
Usage: | ||||||||
............... | ||||||||
schema [<schema>] | ||||||||
schema [<pacemaker-schema_version>] | ||||||||
............... | ||||||||
Example: | ||||||||
............... | ||||||||
schema pacemaker-1.1 | ||||||||
# To get the schema version of the current CIB, or the latest version if no cluster configured yet | ||||||||
schema | ||||||||
|
||||||||
# To set the new schema version | ||||||||
schema pacemaker-4.0 | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
# Then need to run `commit` to make the change effective | ||||||||
# if it's on interactive mode | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
commit | ||||||||
............... | ||||||||
|
||||||||
[[cmdhelp.configure.set,set an attribute value]] | ||||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.