Comments (4)
On Thu, Oct 30, 2014 at 04:26:59AM -0700, Kristoffer Grönlund wrote:
The current version of crmsh doesn't interact well with CIB schemas that are configured to validate with the schema for pacemaker-1.0, for example. It would be useful if crmsh had some means of detecting and upgrading such schemas so that they can be validated with the latest schema.
There's the configure schema command. I think it even does CIB
verify to see if the CIB is valid with the new schema. IIRC,
it doesn't change any element, so "configure commit" is going to
complain that nothing changed. Otherwise, I don't think that
crmsh should modify schema automatically (though it could suggest
it).
from crmsh.
Ah! I forgot about the configure schema command. I wonder if that actually works, will need to try it :)
I agree that automatically changing the schema is probably not a good idea, but warning about old schemas would be helpful, since as it is you get inscrutable errors from Pacemaker when trying to apply configuration changes instead.
from crmsh.
On Thu, Oct 30, 2014 at 05:29:33AM -0700, Kristoffer Grönlund wrote:
Ah! I forgot about the configure schema command. I wonder if that actually works, will need to try it :)
It did the last time I tried :) Isn't it covered by the
regression tests?
I agree that automatically changing the schema is probably not a good idea, but warning about old schemas would be helpful, since as it is you get inscrutable errors from Pacemaker when trying to apply configuration changes instead.
If you know which schema cannot be supported, then just refuse to
run until it gets upgraded (or offer to upgrade it). However,
note that that depends not only on the schema, but most probably
also on the pacemaker version. IIRC, crmsh used to support all
schemas equally well, i.e. you could run the current crmsh with
any pacemaker v1.1 (v1.0 is supported only by some older crmsh
version which is still part of that pacemaker codebase).
from crmsh.
Right, the problem in this case was indeed schema pacemaker-1.0: https://bugzilla.suse.com/show_bug.cgi?id=903037
The configure schema command is in fact covered by regression tests, but I don't think it would work in this case either. I will need to check.
from crmsh.
Related Issues (20)
- resource receiving stop signal at different times HOT 1
- Is "cibadmin_opt" a typo of "cibadm_opt" at line 414 in crmsh/log.py? HOT 1
- crmsh parser fails to parse cli arguments with op monitor role given HOT 13
- bundle: crmsh should support podman type
- 'sudo crm cluster copy <relative_path>' output could be more informative HOT 1
- Bundle: Drop rkt container type in master branch for the coming pacemaker 3 HOT 1
- Incompatible with Python 3.12 HOT 1
- RFE: Add corosync cpg status HOT 1
- RFE: Consider DLM (dlm_tool) in crmsh HOT 1
- crm cluster init example on the start-guide page HOT 1
- Some contents in crmsh.github.io are outdated
- crm report should collect qdevice/qnetd status
- `crm configure help XXX` is broken if the cluster is not running HOT 1
- Give a warning when detecting $SSH_AUTH_SOCK but not using `--use-ssh-agent` option HOT 1
- Failed to start cluster service when calling `run-functional-tests -n 2` HOT 7
- Automate updating the documents on crmsh.github.io
- `crm configure property` bash completion and the help text for each property HOT 2
- Invalid `check_quick` methond in class PasswordlessHaclusterAuthenticationFeature
- data-manifest can be generated on the fly in build process
- Generated doc crm.8.aio.adoc has some anchor missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crmsh.