fairview / linode-api-stonith

A STONITH module that uses the Linode API to control cluster nodes.
MIT License
5 stars 0 forks source link

python-linode API doesn't exist #1

Closed mig5 closed 11 years ago

mig5 commented 11 years ago

Hi there,

Thanks for this project!

Your README says to pip install python-linode but this package doesn't seem to exist.

Instead I see two other packages at PyPi: 'linode' and 'linode-python', both of which seem to be different API implementations.

Is one of these the original one you used? Could you say which (if not both) API is likely to work with your STONITH plugin?

Thanks!

fairview commented 11 years ago

Sorry about that. It's linode-python. I've fixed the docs. Let me know how it goes; I'm no longer using Linode, but I'd like to know if this is still working.

mig5 commented 11 years ago

Thanks. It does indeed work. The only downside with Linode's API is that they don't offer a reset command, only reboot/powerOff etc.

Thus there is still a corner case where, if STONITH is enacted (e.g killall -9 corosync), the machine is still responding to other requests normally and their API will issue a graceful reboot. A graceful shutdown of Pacemaker on a Primary node can in fact result in a split brain scenario when it comes back and Pacemaker starts - even if the second node took over resources OK. (so not that big a deal, we obviously know which machine can be trusted and which is the victim, and can resolve Split Brain by hand)

If the machine really has panicked or isn't responding, fortunately their engineers have confirmed that the 'graceful' reboot job will turn into a forced reset, but they don't expose this via the API which is a shame.

Many thanks again for the plugin, it certainly serves my needs!