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

Fix errors on inactive nodes. #24

Merged
merged 1 commit into from
Oct 22, 2013

Conversation

jguiditta
Copy link
Member

Previously the inactive nodes in a cluster woudl still attempt to call the
database class and create their DBs and users, which of course, would fail,
since there was no mysql runnign on those nodes. This patch simply leverages
the file created by our (soon to be cleaned up) execs to determine if those
database calls should happen or not.

Previously the inactive nodes in a cluster would still attempt to call the
database class and create their DBs and users, which of course, would fail,
since there was no mysql running on those nodes.  This patch simply leverages
the same info as our (soon to be cleaned up) execs to determine if those
database calls should happen or not.

However, it currently has the problem that using the fact fails on the first
run, since mysql is not yet running.  This still needs more work, but at least
gets us closer to working, as nodes should eventually show success instead of
always failing if they are not the active mysql host.
@cwolferh
Copy link

Ack. Using this added facter variable, the cluster hosts no longer show an error status after a puppet run. [Separate issue: puppet agent needs to be run twice for opentack db users to be configured]

cwolferh added a commit that referenced this pull request Oct 22, 2013
Fix errors on inactive nodes.
@cwolferh cwolferh merged commit 418a457 into redhat-openstack:master Oct 22, 2013
@jguiditta jguiditta deleted the ha_mysql branch August 1, 2014 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants