Comments (3)
The only potential concern I have is generating a flood of syslog messages when turning a large cluster on and off
Good point.
Maybe just one for the original request?
I think that would be reasonable.
I was thinking of recording this after the request had been processed, when it's possible to record the successful and/or failed changes separately, as far as powerman is aware. So it would be either 1 or 2 log entries. However I haven't looked at the code yet so I don't know how straightforward this would be.
One possibility would be to have logging off by default, and then turn it on where it's needed via a new powerman.conf option
I agree with both of these proposals.
from powerman.
I was thinking of recording this after the request had been processed, when it's possible to record the successful and/or failed changes separately, as far as powerman is aware. So it would be either 1 or 2 log entries.
Sounds good. Probably the place to insert the log message is where powermand responds to the client's request, e.g. here.
The original target hostlist is available there as c->cmd->hl
, and there is is a boolean indicator of overall success/failure in c->cmd->error
. I suspect it may be difficult to find which nodes failed when there a partial failure, but pacemaker presumably is doing one node at a time, so at least it might be OK for that case?
Incidentally, if there is a pacemaker equivalent of the heartbeat "STONITH" module that we should be adding to powerman, let's get a separate issue open for that.
from powerman.
I suspect it may be difficult to find which nodes failed when there a partial failure, but pacemaker presumably is doing one node at a time, so at least it might be OK for that case?
Yes, pacemaker does fence one node at a time, so is covered entirely by reporting c->cmd->hl
and c->cmd->error
.
For the broader case, I would think any site that depends heavily on power control will be forced to make it work - so if odds of intermittent failures are high, it implies the site is not heavily dependent on working power control and detailed logging of power state changes is not important to them.
So I think reporting those two existing values from the function you pointed out is a useful change and meets my need.
from powerman.
Related Issues (20)
- pm-sim script doesn't exist in 2.3.24 tarball
- fix make distcheck HOT 2
- More complete help output from pm -h
- parse_lex.l:79:5: error: 'yylval' undeclared (first use in this function) HOT 6
- make powerman fail in my Mac HOT 6
- Support for Cisco PoE via. rancid HOT 3
- update docs to mention the pacemaker fence agent based on powerman
- Support for openbmc's rest api HOT 6
- need openbmcpower helper HOT 8
- No .dev file for APC 8941 pdu w/ NMC AOS v6.7.2
- ../config/ylwrap: line 176: yacc: command not found
- phantom.c:48:10: fatal error: curses.h: No such file or directory
- systemd: PIDFile= references path below legacy directory /var/run/
- systemd: unit file hardwires paths
- add AC_CONFIG_MACRO_DIR to configure.ac HOT 2
- add redfish support HOT 1
- Support for UBNT EdgeMax PoE via. rancid
- ci: convert from travis to github workflow
- support mechanism to verify power command completed HOT 1
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 powerman.