Comments (6)
@kskmori: issue opened as promissed :)
from resource-agents.
Regarding to IPaddr2 at least, I think that OCF_ERR_INSTALLED does not make sense.
I don't think that it is a realistic situation that an user specified, say, eth2 "correctly" but actually the user "forgot" to install the third NIC device :) It must be more likely the user mistook the interface name. Anyway it is impossible to distinguish between them essentially.
Also, unlike apache or pgsql, IPaddr2 does not require an extra software package that the RA is monitoring to.
So I think it is sane that IPaddr2/findif.sh only returns OCF_ERR_CONFIGURED in such parameter checking.
The previous version of the findif binary returns OCF_ERR_CONFIGURED only, too.
By looking at the current code, IPaddr2 returns OCF_ERR_INSTALLED only when the platform is not Linux:)
from resource-agents.
Thanks for the explanation. I'm not sure under which circumstances the NIC can disappear. For instance, are there NIC failures which can cause that it disappears from the system? If so, then returning OCF_ERR_CONFIGURED would prevent pacemaker from starting the resource on any node in the cluster. I'm still not sure if that can happen at all, but it's worth considering.
from resource-agents.
OK, now I see your point. I will reconsider it...
from resource-agents.
To the best of my knowledge, NIC can disappear when 1) ifdown 2) unplug a USB NIC etc. and it should not disappear when a "normal" failure, but nobody can guarantee it...
How about doing the findif.sh check only on start and validate-all since the purpose of the check is just a sanity check of the parameters specified by an user and not necessarily doing it on every monitor?
By the way, in the case of #320 a fail over was exercised with the scenario below:
- an IPaddr2 detected a transient failure and returned OCF_ERR_CONFIGURED
- Pacemaker tried to stop the upper resources which take some time
- meanwhile, the failed IPaddr2 was monitored again and now succeeded.
- Pacemaker started to move the resources because the fail-count is not 0. No record of OCF_ERR_CONFIGURED any more.
How lucky I was:)
from resource-agents.
On Fri, Oct 11, 2013 at 01:30:09AM -0700, Keisuke MORI wrote:
How about doing the findif.sh check only on start and validate-all since the purpose of the check is just a sanity check of the parameters specified by an user and not necessarily doing it on every monitor?
Agreed. The less code we need to execute in monitor the better.
By the way, in the case of #320 a fail over was exercised with the scenario below:
- an IPaddr2 detected a transient failure and returned OCF_ERR_CONFIGURED
Oops.
- Pacemaker tried to stop the upper resources which take some time
- meanwhile, the failed IPaddr2 was monitored again and now succeeded.
- Pacemaker started to move the resources because the fail-count is not 0. No record of OCF_ERR_CONFIGURED any more.
How lucky I was:)
Indeed :)
from resource-agents.
Related Issues (20)
- Theoretical security problem in SAPInstance HOT 3
- mysql: variable master_host empty on slave reboot
- Are awsvip and awseip still supported resources agents for RHEL HA? HOT 2
- awsvip versus AWS Policy HOT 3
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.