-
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
Improve configure schema
command
#1690
Conversation
doc/crm.8.adoc
Outdated
|
||
Usage: | ||
............... | ||
schema [<schema>] | ||
............... | ||
Example: | ||
............... | ||
schema pacemaker-1.1 | ||
# To get the current schema version |
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.
# To get the current schema version | |
# To get the schema version of the current CIB, or the latest version if no cluster configured yet |
BTW, sounds currently crm configure schema
only supports the running cluster. It reports call trace otherwise.
doc/crm.8.adoc
Outdated
several, depending on version. At least the following schemas are | ||
accepted by `crmsh`: | ||
several, depending on version. You can see all supported schemas by | ||
input +Tab+ after `crm configure schema`. |
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.
input +Tab+ after `crm configure schema`. | |
typing +<TAB><TAB>+ after `crm configure schema`. |
…nfigure schema` Also return False if schema is not supported.
459a314
to
9a3c42c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
9a3c42c
to
77281bc
Compare
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.
Some cosmetic findings
|
||
Usage: | ||
............... | ||
schema [<schema>] | ||
............... | ||
Example: | ||
............... | ||
schema pacemaker-1.1 | ||
# To get the schema version of the current CIB, or the latest version if no cluster configured yet | ||
schema |
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.
schema | |
schema | |
# 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 comment
The reason will be displayed to describe this comment to others. Learn more.
schema pacemaker-4.0 | |
schema pacemaker-4.0 | |
doc/crm.8.adoc
Outdated
* +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>] |
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.
schema [<schema>] | |
schema [<pacemaker-schema_version>] |
# To set the new schema version | ||
schema pacemaker-4.0 | ||
# 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 comment
The reason will be displayed to describe this comment to others. Learn more.
# if it's on interactive mode | |
# if it's on interactive mode | |
commit |
77281bc
to
9b1bfe5
Compare
configure schema
configure schema
command