Giter VIP home page Giter VIP logo

Comments (9)

kbon avatar kbon commented on September 24, 2024

@hunner: is this still relevant? I'm trying to use the cs_shadow on a CentOS 6.4 box, and after fixing the mess caused by the SuSE crmsh package (see https://savannah.nongnu.org/bugs/?39013#comment0) I can easily list all shadow CIBs on the system with a simple crm cib list call.

To remove the lingering of the CIB on the system, it should be quite easy to delete the CIB once it has been committed in the cs_commit sync function, right?

//edit, just thinking about it, currently the instances function of cs_shadow always returns an empty array. This causes the resource to be created every Puppet run, even when no Pacemaker changes are needed at all, which is quite silly. By leaving the shadow CIB on the system and implementing the instances function using crm cib list you could avoid this. Not sure if the remaining data in the shadow CIB could cause an issue when the cluster is out of sync with the shadow file and Puppet makes a change, maybe you'd need a way to reset the shadow CIB on changes first.

from puppet-corosync.

bitglue avatar bitglue commented on September 24, 2024

@kbon

Not sure if the remaining data in the shadow CIB could cause an issue when the cluster is out of sync with the shadow file and Puppet makes a change, maybe you'd need a way to reset the shadow CIB on changes first.

That will definitely cause a problem. When the shadow CIB is created, it is initially a mirror of the live CIB. If they get out of sync, then the shadow is committed, it will have the effect of reverting the live CIB to the state it was in when the shadow was created, plus whatever changes were made to the shadow. Probably not what's desired.

Currently this is avoided because cs_shadow deletes, then recreates, the shadow CIB on each run.

from puppet-corosync.

kbon avatar kbon commented on September 24, 2024

@bitglue: indeed, that's also what I experienced. I've made some code changes to properly use the shadow file and only when needed, even got rid of cs_commit altogether. Stay tuned for a commit & PR!

from puppet-corosync.

jyaworski avatar jyaworski commented on September 24, 2024

Is this still an issue?

from puppet-corosync.

roidelapluie avatar roidelapluie commented on September 24, 2024

Yes and a fix is coming

from puppet-corosync.

jyaworski avatar jyaworski commented on September 24, 2024

Can you link to the relevant PR?

from puppet-corosync.

roidelapluie avatar roidelapluie commented on September 24, 2024

#162

from puppet-corosync.

igalic avatar igalic commented on September 24, 2024

@roidelapluie what's the current pr for this particular issue?

from puppet-corosync.

roidelapluie avatar roidelapluie commented on September 24, 2024

Fixed in #209

from puppet-corosync.

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.