2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 10:10:22 +00:00
Commit Graph

694 Commits

Author SHA1 Message Date
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
cd96ea74c8 fix issue Wrong permissions for ssh host private keys on CentOS 7 #2617 2017-03-22 17:46:04 +08:00
immarvin
e944e7fd22 fix issue xcat command returns 0 when cmd fails due authorization #2636 2017-03-13 23:08:39 -04:00
Mark Gurevich
c2454c0133 Add --system when creating user and group 2017-03-06 10:59:36 -05: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
immarvin
fd3b598e42 fix issue [CentOS6.8 and RHEL6.8] User will see ERROR message during running updatenode and in xcat.log on compute node. #2104 2016-11-24 00:21:03 -05:00
yangsong
801a9cf69b Revert "update dhcpd conf file when upgrade xcat" 2016-11-07 22:38:37 +08:00
penguhyang
ea5ffdc0bc update dhcpd conf file when upgrade xcat (#2067) 2016-11-04 12:47:21 +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
ertaozh
6c43f8f716 run mknb for both ppc64 and x86_64 2016-08-17 04:00:06 -04:00
chenglch
fa16e12d48 Fix the overwrite error when dealing with the conflict (#1588) 2016-07-26 10:51:34 +08:00
Xiaopeng Wang
2da47d9f4a correct typo and remove useless variable definition 2016-07-26 10:02:47 +08:00
Mark Gurevich
db9a71750e Fix sytax errors reported by perltidy 2016-07-25 08:56:18 -04:00
Mark Gurevich
fb911143fe perltidy all perl files, part 2 2016-07-21 13:27:40 -04:00
chenglch
8187e3efa1 Add rest api helper interface to access non-xcat resource
Currently xcat rest service is running with apache user who do
not have the privilege to manage some local resource like credential
files needed by xcat web ui to get the conserver access.

This patch add scripts in xcatconfig to generate credential files
for conserver user. This patch also add a work around framework for
xcat restapi to provide the interface to get or set the system resource
so that restapi with apache privilege can retrieve the credential files.
2016-07-19 23:09:21 -04:00
immarvin
368500d531 fix issue Updating xCAT on OS that uses systemctl has a warning message #1509 ; run systemctl daemon-reload on xcat upgrade 2016-07-11 01:29:11 -04:00
chenglch
1a2be72406 Wait the completion of monitor and cmdlog process
close-issue: #1008 #537
2016-06-28 02:20:26 -04:00
ertaozh
ba01665adb refine hardware discovery framework, modifcation based on review comments 2016-06-27 02:51:09 -04:00
Xiaopeng Wang
824dbdc67b Merge pull request #1363 from immarvin/onruncmdinstaller
restruct the runcmdinstaller with netcat
2016-06-23 16:57:48 +08:00
immarvin
1846de8205 restruct the runcmdinstaller with netcat 2016-06-22 22:50:12 -04:00
chenglch
b57db4ef31 Wait the completion of UDP process to avoid of DB Magic error
close-issue: #1008
2016-06-21 04:41:56 -04:00
wangxiaopeng
66b81e7a0a bug 1017: make a sleep before retrying too much
when xcatd trys to read the request data from an xcatd client,
  if there are too many retry, sleep for a while before retrying
  too much.
2016-06-16 16:24:16 +08:00
chenglch
ef724b0e6f Improve the error message for getadapter command
1. Add allow policy for getadapter
2. enhance the error message for different mgt when running getadapter

partial-issue: #1174
2016-06-14 01:56:19 -04:00
chenglch
0eb9929452 Add -1 value for $dbworkerpid to make the db access mode more clear.
$dbworkerpid = -1 db process has not been started,
               access db in direct access mode.
$dbworkerpid == 0 db process itself.
$dbworkerpid >0 db process is started, access db in cache mode.
2016-05-25 02:02:48 -04:00
Casandra Qiu
8ae7d23540 Temp BMC node definition hadn't been removed for switch-based discovery 2016-05-23 21:06:27 -04:00
chenglch
20d3453ad0 Do not undef nodelist reference in DB process
This patch add check method to wait for the DB process in xcatd.
Enhance the close method in Table.pm to disable the undef operation
for nodelist in DB process as the reference has already been cached
as a weak reference.

close-issue: #1011
2016-05-05 06:07:01 -04:00
WangXiaoPeng
8bdfc11977 fix the typo effor which introduced from 850051bd75 in xcatconfig file 2016-04-28 21:41:48 -04:00
Xiaopeng Wang
0685db16cb Merge pull request #915 from pdlun92/rsa
Removed keygen of SSH1 RSA Key
2016-04-28 18:20:03 +08:00
Xiaopeng Wang
1430060fb2 Merge pull request #974 from chenglch/auditlog
Stop audit command log by default
2016-04-28 16:49:45 +08:00
chenglch
4deb5505f3 Delete signal to stop monitor process
Currently INT signal and USR2 signal are sent to stop the monitor
process at the same time, just keep USR2 as the stop signal in this
patch.

Close-issue: #972
2016-04-28 03:42:38 -04:00
chenglch
f85446fe1a Stop audit command log by default
Audit every command in auditlog table may affect performance, disable
it by default.

close-issue #864
2016-04-26 06:00:57 -04:00
Patrick Lundgren
850051bd75 removed keygen of rsa1 key and removed references / replaced with rsa key when appropriate 2016-04-12 09:50:16 -04:00
chenglch
27cb585787 Do not send warning message as the output is complete
Although handshake between parent and child process fails
due to the heavy IO loading, the message received by parent
process  is complete as the block operation is used.
2016-03-31 03:16:11 -04:00
Xiaopeng Wang
f874f3a22b Merge pull request #852 from hu-weihua/chxcat-XCAT
Fix issue 836 Uniform xcatd service naming, using lowercase
2016-03-28 20:25:59 +08:00
hu-weihua
48c541beb7 uniform xcatd service naming, using lowercase 2016-03-25 01:28:16 -04:00
chenglch
306e66e4cc Do not kill db process if immediate child process exists
This change includes the following:

- Replace the signal number with signal name.
- Stop db process after all the immediate children stopped.
- Fix a defect in TableUtils when closing the table object.
- Enhance the is_process_exists subroutine in utils.

Close issue: #537
2016-03-24 22:46:12 -04:00
yangsong
f5b4be3ed7 Merge pull request #744 from cxhong/swkits
Detect Error case in the xcatd and avoid loop in the updateflag.awk
2016-03-04 10:57:23 +08:00
Casandra Qiu
b07e268642 modify error messages 2016-03-03 14:50:25 -05:00
neo954
56dd49f3a7 Merge pull request #741 from hu-weihua/umask
Fix defect #698 Default permissions on commands.log are 644, should change to 600
2016-03-03 14:00:30 +08:00
hu-weihua
50efb51743 modify depending on gongjie's new comment 2016-03-03 00:48:16 -05:00
chenglch
7fd99442c7 Fix race condition issue when printing message in xcatd
related-issue: #729
related-commit: #742
2016-03-01 04:53:50 -05:00
hu-weihua
3d016498ff modify depening on GongJie's comments 2016-02-27 02:20:04 -05:00
Casandra Qiu
be0bcf7451 For issue #712 Detect Error case in the xcatd and avoid loop in the
updateflag.awk
2016-02-26 13:23:20 -05:00