Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

[needs testing] fix #maintenance_mode? return value#149

Closed
aspiers wants to merge 1 commit intocrowbar:masterfrom
aspiers:fix/cluster-join
Closed

[needs testing] fix #maintenance_mode? return value#149
aspiers wants to merge 1 commit intocrowbar:masterfrom
aspiers:fix/cluster-join

Conversation

@aspiers
Copy link
Member

@aspiers aspiers commented Nov 4, 2014

Make #maintenance_mode? return a sensible value even when openais is down or uninstalled. This is especially helpful when it is invoked by Chef's start_handler.

@tboerger
Copy link

tboerger commented Nov 5, 2014

Not tested but LGTM

aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 11, 2014
aspiers pushed a commit to aspiers/suse-cloud-vagrant that referenced this pull request Nov 11, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to aspiers/suse-cloud-vagrant that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request Nov 12, 2014
aspiers referenced this pull request in vuntz/suse-cloud-vagrant Nov 18, 2014
There is no strict need to start openais after the removal of
/var/spool/corosync/block_automatic_start, as chef-client will start it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless $?.success?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like multi-line unless - I find it more effort for the brain to understand.

@aspiers
Copy link
Member Author

aspiers commented Jan 28, 2015

This change is good but the commit message is wrong - it's not necessary for cluster startup. I think I got confused in Paris due to lack of sleep.

@aspiers aspiers changed the title [WIP] fix chef-client to work when cluster is down (bnc#900964) [needs testing] fix #maintenance_mode? return value Jan 28, 2015
@aspiers
Copy link
Member Author

aspiers commented Jan 28, 2015

OK commit message is correct now.

Make #maintenance_mode? return a sensible value even when openais is
down or uninstalled.  This is especially helpful when it is invoked
by Chef's start_handler.
@vuntz
Copy link
Member

vuntz commented Apr 28, 2015

@aspiers: has this been tested? Also, I'm a bit unclear in which case this actually matters, since I don't remember seeing anything wrong because of this.

@aspiers
Copy link
Member Author

aspiers commented May 6, 2015

@vuntz I'll test again. It's just a cleaner way of handling the corner cases; I don't expect it will be hit except in rare circumstances. But I guess it might also result in cleaner logs.

aspiers pushed a commit to SUSE-Cloud/suse-cloud-appliances that referenced this pull request May 11, 2015
@rsalevsky
Copy link
Member

@aspiers, this repository got merged into crowbar-ha.
Please open a new pull request there. Do NOT merge here anymore!

@aspiers
Copy link
Member Author

aspiers commented Sep 11, 2015

Superceded by crowbar/crowbar-ha#13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

4 participants