-
Notifications
You must be signed in to change notification settings - Fork 58
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
Negate attribute inside Group element in services.xml issue #78
Comments
Can you cache a copy of your client's configuration with |
Ok, I had to run this commend about 50 times before it returned different .xml file: Here is the diff between the 49 times that correct entry is sent, and the one time that postfix is set to on.
It is very perplexing.... |
You should be able to debug this using |
Yep, I m pretty sure it is not available anywhere else. They appear twice, but one has negate attribute, and one doesn't. Only services with this kind of setup cause problems.. |
It sounds to me like the host's group membership might be flapping. Is On Mon, May 13, 2013 at 4:37 PM, igorwidlinski [email protected]:
Chris St. Pierre |
I do not think so. We do not use probes for the groups. And it should show up in my diff I've posted previously. By the way I can't run buildbundle. Says "no such bundle". I've tried it for all bundles we have set up (installing bundles on bcfg2-clients works fine). |
Make sure you're using the bundle filename, not the 'name' attribute. E.g.: bcfg2-info buildbundle postfix.xml foo.example.com A change in group membership wouldn't necessarily show up in that diff, Are you using group categories at all? On Mon, May 13, 2013 at 5:14 PM, igorwidlinski [email protected]:
Chris St. Pierre |
Ah yes, we actually generate /etc/bcfg2.info that contains bunch of stuff, including groups:
This file wasn't changed. Here is build bundle for postfix for our mail-server :
Nobody down here knows what categories are so we probably are not using them. |
Categories provide a way to restrict group assignments (http://docs.bcfg2.org/server/plugins/grouping/metadata.html#element:Group). I agree with @stpierre. Either the group is changing or there are multiple postfix Service entries showing up in the client's configuration. |
Hey @solj & @stpierre, In the mean time, if you think of any other hints or possibilities that may have changed between 1.2.1 and 1.3.1, please let us know. |
Our mail server checks in at 45 minute each hour. Only machines that check in at exactly same time have postfix flapping... Normally we have 4-6 machines checking in at the same time. |
Similar issue happening to our autofs services. We set autofs to "off" on Suse, and to "on" on Linux servers. When both Suse and Linux check at exactly same time, sometimes the linux machine will have autofs set to off, and later on it will revert to on. I still can't reproduce in testing environment though. |
Hi there,
We are running Bcfg2 server 1.3.1 with ServiceCompat,POSIXCompat as we are still to upgrade our clients from 1.2.x.
After upgrading the server to 1.3.1 from 1.2.1 we noticed some services started to flap (shutdown and start) at random times.
We have quite a bit of services in our services.xml, but only three are flapping and these three have negate attribute in the services.xml.
Here is basic outline of our services, including one flapping service called postfix:
If i understand the negate function, it should set postfix to on on all servers that are not in mail-server group, and should turn off postfix on server that is in mail-server (we do not use postfix on our mailservers).
Here are some logs from the gui showing the service is being turned on/off after bcfg2 runs on the client that belongs to mail-server group:
Thanks!
The text was updated successfully, but these errors were encountered: