Giter Club home page Giter Club logo

Comments (4)

dmuhamedagic avatar dmuhamedagic commented on July 16, 2024

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.

krig avatar krig commented on July 16, 2024

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.

dmuhamedagic avatar dmuhamedagic commented on July 16, 2024

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.

krig avatar krig commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.