Giter VIP home page Giter VIP logo

Comments (19)

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano looks like latest version of augeasproviders break everything.
Could you try with that branch ? https://github.com/mcanevet/puppet-openldap/tree/fix/augeasprovider

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano I published a new version on the forge (0.1.4) with augeas provider disabled as it breaks the most commonly used olc provider. I'll see with augeasproviders devs to fix it later.

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

Hi @mcanevet, thanks for your prompt action.
Unfortunately it did not fix the issue.
After a clean checkout I still see the same issue:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider at /etc/puppet/environments/development/modules/openldap/manifests/server/database.pp:37 on node node.domain.tld

Is there anything I should try? (like commenting the provider parameters in database.pp?)

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano with https://github.com/mcanevet/puppet-openldap/tree/fix/augeasprovider or with the latest version I just published on the forge ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

With the latest version published to the forge. Shall I try the github one?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

I confirm I have the same issues with the fix/augeasprovider version from github

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano do you have pluginsync enabled ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

@mcanevet yes

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano well, this is strange... What version of puppet are you using ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

The latest 3.5.1

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano Have you run puppet on your development env on your master so that it picks up the new type ? (running with noop and Ctrl+C after pluginsync should be enough)

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

@mcanevet I'm not sure what you mean. I did run puppet agent on the master (but the master per se is not in the development environment). On the openldap client though, I see that the plugins changed before trying to apply the catalog. I also looked at the logs on the master but they were not helpful.
I don't know what else I can try.

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano do you have another version of our module in the env used by the master's agent ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

No, just that version and just in that environment.
I'm pretty sure the client uses the latest files because when I delete manually some plugins then it re-syncs them from the master

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

So I put the module in a common directory included in all environments and I run the agent on the master (but nothing was sync'ed, maybe because that class was not included on the master).

Now the error is different (good news?):

Error: Could not autoload puppet/type/openldap_access: no such file to load -- /var/lib/puppet/lib/puppet/type/../../../../augeasproviders/lib/augeasproviders/type.rb
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/openldap_access: no such file to load -- /var/lib/puppet/lib/puppet/type/../../../../augeasproviders/lib/augeasproviders/type.rb

Might this be related to https://tickets.puppetlabs.com/browse/PUP-1515 ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

so I copied manually /var/lib/puppet/lib/augeasproviders* from the client to the master (because the master just didn't want to download them).
One step further:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/openldap_database: Could not autoload puppet/provider/openldap_database/augeas: undefined method `provider' for nil:NilClass on node node.domain.tld

right now I'm using the github version. Shall I switch to the forge one or are they the same?

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano this is strange that you have this error message because I removed the augeas provider for the openldap_database type : https://github.com/camptocamp/puppet-openldap/tree/master/lib/puppet/provider/openldap_database

Are you sure you are using the latest version ?

from puppet-openldap.

elisiano avatar elisiano commented on September 22, 2024

So, I was using the branch that you pointed out (fix/augeasprovider) but from the link above it looks like it's in the master. So I did another checkout/pull from github and this time I'm using the master.

After that there was a problem of synchronization between the module and the plugin's library on the master. I run the agent on the master and that was fixed (the database now initializes).

Thanks a lot for your help.

The issue now seems to be with the ACL code

Shall I open a different issue?

from puppet-openldap.

mcanevet avatar mcanevet commented on September 22, 2024

@elisiano yes please open a new Issue with the code that does not work with the ACL so that I can add units and/or acceptance tests to reproduce the bug.

from puppet-openldap.

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.