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
[WIP] Fix: crm_mon: try to connect CIB while pacemakerd shutting down #2342
[WIP] Fix: crm_mon: try to connect CIB while pacemakerd shutting down #2342
Conversation
actually while resources are evacuated from the node. But atm there is no clean and easy way to tell when this is done and pacemakerd is just shutting down leftover daemons. So try to connect anyway.
Hi Klaus, Thank you for the fix. Many thanks, |
Thank you - cool if you can give it a try ... |
Hi Klaus, Unfortunately, the problem still seems to remain. I will also contact you with details of the issue. Best Regards, |
Hi Klaus, In RA of pgsql, the option of xml may be used to call crm_mon, so the following modifications are also required.
Best Regards, |
Of course - thanks for the pointer ... |
I took a lot of time to build the test environment. Best Regards, |
Thanks Hideo. I know testing with timing-critical stuff is a pain. |
Hi Klaus, Okay! Many thanks, |
actually while resources are evacuated from the node. But atm
there is no clean and easy way to tell when this is done or if
pacemakerd is just shutting down leftover daemons. So try to
connect anyway.
This showed up to be an issue - introduced by checking for
pacemakerd in full up & running state - when resources are
using crm_mon in their stop-operation.
Maybe don't merge this right away.
I've opened this PR with the simplest solution to just handle
the state where pacemakerd is sequentially shutting down
the subdaemons exactly like as if it was fully up and running.
So we can discuss here.
Alternative might be introduction of an additional state so
that when querying the state of pacemakerd the caller can
know that it is actually still trying to get down all resources
on the node before starting to shutdown all the subdaemons.