Skip to content
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

Index Creation is not Idempotent #4

Open
MattMencel opened this issue Oct 13, 2015 · 6 comments
Open

Index Creation is not Idempotent #4

MattMencel opened this issue Oct 13, 2015 · 6 comments

Comments

@MattMencel
Copy link

I noticed that Index creation happens on every Chef run. Is there any way to make that idempotent so it only runs if it is new or is a modification?

Every time Chef runs the index creation provider runs and an indexing task is generated. That means an index operation is run on the LDAP server every time Chef runs. The cookbook shouldn't try to create an index task on every Chef run if the index itself hasn't changed or isn't new.

Not sure what direction to go to make this idempotent.

@williamsjj
Copy link

Was this ever corrected?

@awillis
Copy link
Contributor

awillis commented Feb 5, 2016

No, it wasn't. It's a pretty hairy thing to resolve because the directory server removes the entries after it creates the index, so a subsequent run would recreate the indices because the existence check would fail. It's mostly harmless though, as indices are generated quickly. You'd probably have to leave some additional entry that the directory server won't remove in order to detect that an index was already created.

I need some help maintaining this cookbook by the way, as it does not get much of my attention. Any takers?

@williamsjj
Copy link

@awillis I'd be somewhat interested. Our situation is we're sitting on an OpenDJ infrastructure that works quite well except their binary release policy stranded us on an old version with no way to upgrade. So it's either ApacheDS, OpenLDAP or 389 from my research, and your cookbook is the only one that handles replication set up sanely/maturely. So we're leaning 389 (even though we're an Ubuntu shop)....and that's a super long way of saying I'd be interested if we pull the trigger on 389. We were already maintaining our own OpenDJ cookbook.

@williamsjj
Copy link

@awillis BTW I'm in Santa Monica if you want to discuss over a beer or something.

@awillis
Copy link
Contributor

awillis commented Feb 5, 2016

@williamsjj Beer 👍

How does tomorrow at 5pm work?

@MattMencel
Copy link
Author

Wish I was in Santa Monica, it's cold here. You can drink one for me if you want.

I don't know what all you need, but I can probably help too. We're running a very old Sun DS. We played with OpenDJ for a bit but the licensing model made it undoable....and then I found 389DS. So we're looking at a migration to 389 sometime in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants