2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-18 05:33:17 +00:00

549 Commits

Author SHA1 Message Date
Jarrod Johnson
c50be7c3f2 Change rollover event to be JSON
The log format for other pieces of data is JSON.
Change the rollover event to be consistent.  Also
do not record the previous name of the log file,
as that isn't used, and the current filename is
likely to change when it too gets rolled over
so there's no practical use of knowing the
no longer valid name for the transaction.
2015-09-28 10:40:48 -04:00
Jarrod Johnson
c1bd46b22a Merge pull request #27 from jufm/encodedstring
Handling encoded input strings
2015-09-24 11:22:53 -04:00
Juliana Motira
ff213916b6 Handling encoded input strings 2015-09-24 12:08:17 -03:00
Jarrod Johnson
5128a80c79 Merge pull request #22 from chenglch/log_rotation
Add log rotation support
2015-09-24 10:01:50 -04:00
chenglch
dc436fda74 Add log rotation support
Add TimedAndSizeRotatingFileHandler which mixes together
the RotatingFileHandler and TimedRotatingFileHandler from
python logging module to process the log data.

Add logrollover event to track the renamed information, so
that console session can read the log data from current log
file and last renamed file.

Global configuration is used by the log handler. The format
of the log section in '/etc/confluent/service.cfg' is like:
[log]
when = m
backup_count = 3
max_bytes = 8192
utc = False
2015-09-23 23:36:46 -04:00
Jarrod Johnson
a1a61dfdbd Merge pull request #25 from jjohnson42/master
Add shutdown to power state option
2015-09-21 16:38:37 -04:00
Juliana Motira
11d4628458 Add shutdown to power state option 2015-09-21 16:37:32 -04:00
Jarrod Johnson
4dcfaf7363 Merge pull request #24 from jufm/initscript
Make init script properly indicate error conditions.
2015-09-21 16:30:02 -04:00
Allan Vidal
668f1c98b6 Make init script properly indicate error conditions. 2015-09-17 08:57:08 -03:00
Jarrod Johnson
e207940e50 Merge pull request #19 from jufm/mci_fix
Fix MCI command
2015-09-09 15:15:03 -04:00
Juliana Motira
e02dc74eb7 Fix MCI command 2015-09-09 11:47:46 -03:00
Jarrod Johnson
8114c3dc6a Merge pull request #18 from chenglch/bug/start_session
Fix 'start console session' command error
2015-09-09 10:37:05 -04:00
chenglch
fde68e1320 Fix 'start console session' command error
Command "confetty start /nodes/<node>/console/session" can
not work correctly. This patch aims to add condition judgement
for this command in confetty.
2015-09-08 22:58:44 -04:00
Jarrod Johnson
32184d463d Merge pull request #16 from jufm/mci
Implement MCI command
2015-09-08 16:30:02 -04:00
Juliana Motira
e7ff4fdd93 Implement MCI command 2015-09-08 12:24:47 -03:00
Jarrod Johnson
044def59ba Merge pull request #14 from jufm/reset
Implement reset bmc and NMI diag command
2015-08-27 10:18:05 -04:00
Lucio Seki
419c41e2cc Add NMI diag command 2015-08-27 10:29:42 -03:00
Juliana Motira
c20f0dc2ae Implement reset command
Added a reset bmc command in nodes/<node_name>/configuration/management_controller/reset
2015-08-27 10:29:24 -03:00
Jarrod Johnson
455feb867d Merge pull request #13 from jufm/master
Changing LEDs structure
2015-08-24 13:53:12 -04:00
Juliana Motira
dc0c7270a4 Changing LEDs structure 2015-08-24 14:47:07 -03:00
Jarrod Johnson
ceee6173da Merge pull request #11 from jufm/master
Add firmware and LED status information.
2015-08-24 09:04:05 -04:00
Allan Vidal
2fb63a34ba Add LED status retrieval. 2015-08-24 09:13:32 -03:00
Juliana Motira
55c333b198 Add get firmware information.
Show OEM firmware information in /nodes/[node]/inventory/firmware/.
2015-08-24 09:12:44 -03:00
Jarrod Johnson
56455fe497 Merge pull request #12 from jufm/disableuser
Add an option to disable or enable an IPMI user
2015-08-20 13:36:11 -04:00
Juliana Motira
87552b9f03 Add an option to disable or enable an IPMI user 2015-08-20 11:51:29 -03:00
Jarrod Johnson
e17b9e98a8 Merge pull request #9 from jjohnson42/nodeeventlog
Implement 'nodeeventlog' command
2015-08-12 09:23:33 -04:00
Jarrod Johnson
aef26abd56 Merge pull request #10 from jjohnson42/rejectbadnames
Prevent broken creation of nodes/groups
2015-08-12 09:22:59 -04:00
Jarrod Johnson
57bacd69c1 Prevent broken creation of nodes/groups
nodes and groups with '' name are invalid.  Avoid
terrible things by erroring out on attempts to even
try at the deepest layer that can guard.
2015-08-11 16:41:13 -04:00
Jarrod Johnson
88aa696d29 Implement 'nodeeventlog' command
This brings rough parity with reventlog.  Note that format does
change in this case, so full backwards compatibility is not retained.
2015-08-11 15:06:11 -04:00
Jarrod Johnson
548b71cd6c Merge pull request #8 from jufm/master
Implement list all IPMI users.
2015-08-06 09:32:17 -04:00
Juliana Motira
c263c2eebb Implement list all IPMI users. 2015-08-06 10:28:21 -03:00
Jarrod Johnson
7a084bf538 Merge pull request #6 from jufm/master
Treating sensors that has status = Unavailable.
2015-07-29 16:49:46 -04:00
Juliana Motira
cbf595df26 Treating sensors that has status = Unavailable. 2015-07-29 15:58:39 -03:00
Jarrod Johnson
680f60114e Merge pull request #5 from jjohnson42/master
Implement read network configuration
2015-07-29 08:22:10 -04:00
Jarrod Johnson
ff52ad4740 Implement read network configuration
Read network configuration from the endpoint and present
under the management_controller configuration.
2015-07-29 08:17:41 -04:00
Jarrod Johnson
9626491c41 Merge pull request #4 from jufm/master
Update IPMI user management to enable partial update.
2015-07-28 13:58:28 -04:00
Juliana Motira
3f1d49c30b Update IPMI user management to enable partial update.
Improvements in InputCredential fields validation.
Check for all fields in InputCredential when operation = 'create'.
2015-07-28 14:08:59 -03:00
Jarrod Johnson
5f1ddc7f84 Merge pull request #3 from jjohnson42/master
Cleanup pid on abnormal exit
2015-07-28 10:55:18 -04:00
Jarrod Johnson
6e5a7e15d9 Cleanup pid on abnormal exit
If unlocking the security keys or loading the
plugins experiences an error, do not leave a
stale pid file behind.
2015-07-28 10:53:15 -04:00
Jarrod Johnson
5388f497d4 Merge pull request #2 from jufm/master
Adding IPMI user remove method
2015-07-22 09:40:17 -04:00
Juliana Motira
cff997bd0b Adding IPMI user remove method
Enabling IPMI user removing method and fixing json generation when href is a number.
2015-07-22 10:21:14 -03:00
Jarrod Johnson
e55f55677b Merge pull request #1 from jjohnson42/addstateids
Add numeric state_ids to sensor readings
2015-07-21 10:58:29 -04:00
Jarrod Johnson
905c41b021 Add numeric state_ids to sensor readings
A plugin may provide a numeric enumeration for
state ids.  Provide that for programmatic recognition
of events in addition to being able to combine the
available text.
2015-07-21 09:21:07 -04:00
Jarrod Johnson
19dd0539a9 Merge branch 'master' of ssh://git.code.sf.net/p/xcat/confluent 2015-07-15 14:35:31 -04:00
Victor Hu
4d1d016325 Add simple systemd service file for confluent server.
The sysvinit scripts were not returning the same informational
messages when run under systemctl as they were when run
under service.
2015-07-15 13:33:47 -04:00
Jarrod Johnson
aa4783672d Fix unicode error in nodehealth output
If unicode data was in the incoming data, string.format would choke.  Make the
string template unicode so that it is able to cope.
2015-07-14 14:13:29 -04:00
Jarrod Johnson
859aad793d Collapse 'acknowledge' parameter to boolean, 'False' meaning False
When a client submits non-boolean data for acknowledge, coerce it into boolean in some reasonable way.
2015-07-14 13:28:54 -04:00
Jarrod Johnson
f52eec6c19 Force Input data to be correct data
Provide a way to coerce input string data to
integer for alert parameters that are numeric.
2015-07-14 11:21:39 -04:00
Jarrod Johnson
24eb872090 Add 'type' field to sensors
In sensors/ and health/, put 'type' field in to clarify the sensor
reading category.
2015-07-13 10:15:03 -04:00
Jarrod Johnson
d27df8fffc Provide specific error on locked credential store
When the credential store is locked, provide a specific message
and avoid triggering a trace log on a well characterized situation.
2015-07-08 16:47:58 -04:00