2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-02 11:37:07 +00:00

356 Commits

Author SHA1 Message Date
Mark Gurevich
a798d43019 Better module failure message 2022-05-19 16:28:01 -04:00
Mark Gurevich
85951981bb Redact passwords in log files 2021-06-29 13:48:33 -04:00
Mark Gurevich
3b65b2d89e Extend XML Simple to pass parser options 2021-03-11 09:26:18 -05:00
Mark Gurevich
fa86dd4fbb Use XML::LibXML::Simple instead of XML::Simple 2020-05-01 17:06:22 -04:00
zet809
e960063253
Revert "Fix issue that site.master is not set" 2019-03-22 18:18:12 +08:00
yangsong
e56f768361
Merge pull request #6074 from zet809/fix_issue_miss_sitemaster
Fix issue that site.master is not set
2019-03-22 14:51:38 +08:00
ertaozh
a56305ebeb Update warning message based on Victor's comments 2019-03-12 21:35:06 -04:00
ertaozh
d6b418bfb0 Fix issue that site.master is not set 2019-03-12 05:35:35 -04:00
Gᴏɴɢ Jie
59bc53f573 Set the default value of site.xcatsslversion to SSLv23:!SSLv2:!SSLv3:!TLSv1 (#6061)
* Set $extrasslargs{SSL_version} as "SSLv23:!SSLv2:!SSLv3:!TLSv1" by default

* Remove xcatsslversion related part in script xcatconfig
2019-03-11 17:40:53 +08:00
bxuxa
cc6cb0f217 Clear key words for install status update log message (#5618)
- detect provisioning when updateing status to installing/netbooting
- consistent message format "xcat.updatestatus - ($node): changing status=($status)" (no need to log the time as syslog has the timestamp)
2018-11-27 15:19:21 +08:00
yangsong
92c019bdb3 set default value for $::XCATSITEVALS{httpport} if site.httpport is not specified (#5780) 2018-11-09 15:28:17 +08:00
cxhong
fe33d7d98f Log Number of Nodes for xCAT command to command.log (#5729)
* Log Number of Nodes for chdef/mkdef/rmdef/lsdef/nodels command to
command.log

* Create a new tag for reponse object
2018-10-29 17:12:20 +08:00
Bin Xu
5fc4e7fad5 Enhancement for using site cache in plugin (#5535)
* site cache when run plugin does not work very well
- using cache from plugin when getNodesAttribs/getNodeAttribs (pass it into DB process from plugin process)
- Site cache is a whole hash, so to use cache when by the hash is there, instead of the specified key is there.
It is because that there might be no key defined in site table.

* with XCATBYPASS, to populate site hash before scan_plugins. Then only 1 query for site table to do whole things.

* cache site when init plugins on service nodes

* missing to comment the old codes query from xCAT DB process
2018-08-21 18:36:52 +08:00
GONG Jie
6ef9b2926d Remove trailing spaces in file xCAT-server/sbin/xcatd 2017-12-31 23:59:59 +00:00
Bin Xu
20f64f4111 commands.log show the service node name (#5408) (#5409) 2018-07-23 17:28:52 +08:00
Bin Xu
1c1eace773 Recording the Severity of log message into xCAT logs (#5267)
- modify rsyslog conf and add "%syslogseverity-text:::uppercase%" to input the text Severity
 - remove duplicate Severity in log message
 - modify MsgUtils::trace for better performance and code structure
2018-06-05 17:57:55 +08:00
yangsbj
3460a6915c * log the size of packets received by udp listener 2018-05-28 05:24:52 -04:00
Casandra Qiu
558d5b173f Increase packet size of recv() 2018-05-24 13:11:38 -04:00
robin2008
4ab66ee717 Fix the issue #5153: there are several xcatd SSL process remaining
- make sure $pid_UDP is set to zero when UDP process quit in CHLD handler
 - disable the signal handler for CHLD in the end of SSL lister, and make itself to handle reaper via `wait`
2018-05-18 16:33:28 +08:00
Mark Gurevich
4c8c68efb3 Changes after review 2018-04-18 16:07:59 -04:00
Mark Gurevich
4163a6bb6c Token expiration setting 2018-04-17 13:40:57 -04:00
Bin Xu
df93416a91 Avoiding error log for installmonitor requesting during provisioning (#5069)
* (#5067) to avoid error log for `installmonitor` requesting during provisioning

*  add 2 sec timeout as others for unsupport requesting
2018-04-09 17:40:38 +08:00
zet809
bc1de0529c
Merge pull request #5015 from robin2008/install-monitor-cache
clear "name-IP" cache in `install monitor` process
2018-03-27 17:59:07 +08:00
Bin Xu
372756a6ad (#4913) clear cache before run 'nodeset <> next' to avoid using the old IP address
after IP address is modified.
2018-03-27 17:46:19 +08:00
Bin Xu
cb4edc2bc1 Fix the issue 'install monitor' exit unexpected and SSL CPU 100% (#4582, #4496) (#5005)
* Fix the issue 'install monitor' exit unexpected (#4582).
- add eval block to cover all possible codes which might die in do_installm_service
- add more logs in install monitor to record useful inforamtion
- add sleep 0.01 to avoid CPU too high
- fix the wrong timeout usage (alarm - die)
- recover the default INT/TERM singal handler to avoid UDP listener will quick when kill 'install monitor'

* Avoid SSL CPU 100% when hit max open file number
2018-03-27 17:02:38 +08:00
Bin Xu
cb25622331 It is for provision log enhancement and partial address #4582 (#4648)
- clear logs in the key components during provisioning (not only debug mode, but debug mode will have more logs)
 - now only cover rhel7 stateful and stateless
 - make more syslogs into cluster.log (tag = xcat or xcat.*)
 - the changes will not impact other distro
2018-01-23 03:20:42 -06:00
Matt Ezell
c9c98b8b6f Add warning when xCAT throttles SSL connections 2017-12-05 14:29:29 -05:00
Bin Xu
f9a1ef15cb Fix #4288, Show the milliseconds for elapsed time of command execution (#4290) 2017-11-13 23:41:56 -06:00
hu-weihua
784250e0bd add getopenbmccons to commands.log 's filter list 2017-10-25 02:19:50 -04:00
yangsong
ce61cadbd5 fix issue MN and SN version mismatch checking prevent hard block of functions from executing. #3849 (#3852) 2017-09-06 13:14:47 +08:00
chenglch
00d947a1fa Fix the bug due to the race condition about the pipe usage (#3719)
This commit disable the ACK mechanism in xCATd as now it will cause the race condition
if multiple child processes are waiting for the response.

fix-issue: #3698
2017-08-24 17:20:11 +08:00
immarvin
39c4e7081f fix issue xCAT install failed on sles11.4 & rhels6.9 in automation #3693;move send_tcp_msg from Utils.pm to NetworkUtils.pm 2017-08-17 03:35:03 -04:00
immarvin
021e873704 notify the nodes which are sending findme requestd about the status of the processing 2017-08-15 03:58:44 -04:00
ertaozh
818fd8d5a3 fix issue 3617 2017-08-07 02:23:39 -04:00
Bin Xu
405ed14a20 Leverage syscall to resolve the hang in CI environment 2017-08-02 15:33:42 +08:00
Bin Xu
6aadfc2055 Fix 3474, introduce 'XCATSHOWSVR' to control whether to show where the message is from. 2017-07-27 16:08:14 +08:00
immarvin
8b31e63287 load Sys::Hostname module with use intead of require to avoid performance decrease; refine the warning message;remove some commented out lines 2017-07-23 23:26:03 -04:00
immarvin
725444cdd1 fix issue#3515: check the version of xCAT between MN and SN while processing the forwarded request 2017-07-21 03:37:33 -04:00
Samveen Gulati
f1b406dbc0 Reduce grep invocations by passing -[46] to ip 2017-06-06 09:53:29 +00:00
yangsong
317845a04c merge 2.13.perfopt branch to master branch (#3044)
* Add trace point for perf tool in xcatd (#903)

This patch aims to enable nytprof library to analyze the performance
of xcat code in statement level.

- Add perf trace point in xcatd
- Add sleep time for db prcess to solve the race condition when
- perf instraction is used.

More reference

To enable prof:

perl -dt:NYTProf /opt/xcat/sbin/xcatd -f

Some perf test sample:
https://github.com/chenglch/xcatperf

* refine the performance of makedhcp (#2901), it including:
 - refine the code logic in getSNList to get better performance
 - refine the getipaddr, cache the dns lookup result
 - refine noderangecontainsMn
 - refine ishostinsubnet
2017-05-18 14:23:29 +08:00
immarvin
e944e7fd22 fix issue xcat command returns 0 when cmd fails due authorization #2636 2017-03-13 23:08:39 -04:00
chenglch
7f069d3f48 Do not stop tftp service in xcatd when restarting xcad service
close-issue: #2463
2017-02-07 16:50:34 +08:00
neo954
d7ca3e7b69 Merge pull request #2460 from immarvin/onxcatd
fix issue  #2459
2017-02-06 16:59:25 +08:00
immarvin
696ffeb023 fix issue [DEV]"xcatd: install monitor" process(listening on ipv6 socket) will die on status update from node failed on reverse dns lookup #2459 2017-02-06 16:47:23 +08:00
yangsong
822c083c93 Merge pull request #2447 from chenglch/tftp
Stop tftp service when xcatd shutdown completes
2017-02-06 00:19:58 -06:00
chenglch
04decbb47e Stop tftp service when xcatd shutdown completes
close-issue: #2436
2017-02-06 10:44:53 +08:00
hu-weihua
f995129e2d Modify expression of enhancing command.log depending on Mark's comment 2017-01-22 22:08:25 -05:00
hu-weihua
9ea6879434 Add time consuming of each command in command.log file 2017-01-20 03:56:34 -05:00
chenglch
3d3f367f69 Fix DB error caused by alarm
'xCAT::MsgUtils->trace' will retrive data from xCAT site table,
at this time timeout event happens and alarm signal received,
current process will exit unexpectly.

partial-bug: pmr 87739,077,724
2016-12-15 17:12:19 +08:00
GONG Jie
95ab036840 Fix github issue #448. From now on, send SIGINT signal to the whole process group of the xCAT plug-in. 2016-10-17 13:16:18 +08:00