Commit Graph

232 Commits

Author SHA1 Message Date
daniceexi
adf723db25 fix the issue that xcatd hangs when reading the request which is formatted in one line like litefile request from statelte CN 2014-01-08 07:42:35 -05:00
daniceexi
e7dc46a03a defect 3909: make xcatd loads xCAT::Enabletrace by require instead of use to save resource 2014-01-02 02:05:37 -05:00
zhaoertao
8bc0488764 fix bug 3889 xcatd not running preprocess for multiple plugins when mgt=ipmi 2013-11-21 00:52:08 -08:00
daniceexi
399e71a4c0 defect 3789: fixed the issue that xcatdebug command kill the xcatd ssl listening process. The fix is that just remove the handling debug message from plugin modules since xcatd loads plugin modules for each command run, don't need xcatdebug for plugin any more. 2013-10-24 10:41:48 -04:00
Jarrod Johnson
857af4d498 Send a positive acknowledgement of flow request 2013-10-23 11:15:04 -04:00
lissav
b9144fc028 comment out for now disable buffering on the socket 2013-10-15 14:24:43 -04:00
Jarrod Johnson
62b436be08 Disable storable encoding for client
Clever things can live in Storable payloads that can essentially be remote execution.
Disable that for now.
2013-10-11 15:57:29 -04:00
jbjohnso
40a65cc564 Fix problem where xcatd would error on end of stream
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-25 13:27:37 +00:00
jbjohnso
e5dd20f15e Clear $1 prior to calling plugins
xcatd now might let $1 leak into the plugins.  Ideally, the downstream code
would check match before relying upon $1 to be undef, but better to
avoid unintuitive behavior.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-17 18:59:10 +00:00
jbjohnso
1f6177a5c6 Have xcatd send client more similar content between xml and non xml
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-17 15:20:49 +00:00
lissav
7245c20ef8 fix 3668 Ubuntu also
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 16:43:58 +00:00
lissav
ba524d3dba fix defect 3668
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 16:35:06 +00:00
lissav
1141f649c0 fix defect 3637
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-20 13:06:18 +00:00
jbjohnso
b4f1b9a6ea Have client default to storable model to reduce XML overhead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 18:44:17 +00:00
jbjohnso
20b3960c09 Prevent child reapers from trouncing accurate syscall errno settings
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 14:42:25 +00:00
jbjohnso
11e2d1e834 Further prepare xcatd to understand alternate encoding
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 14:42:18 +00:00
jbjohnso
7e9a9d09f3 Fix loop after request done, can_read will happily return true even if the client has closed... TODO: perhaps check for client closed explicitly
if we ever feel like doing multiple request scheme

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16566 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-06 17:48:47 +00:00
jbjohnso
dc5b18e4ef Have xcatd prepare to accept alternate encoding 'storable'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 20:58:47 +00:00
jbjohnso
c67d9135c1 Accept ECHILD as meaning the same thing as EAGAIN on sysread/syswrite to accomodate seemingly flawed platform behavior
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16548 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 13:58:03 +00:00
jbjohnso
22e92e3c05 Try to doubly make sure that buffering and EGAIN doesn't interfere with communication
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 18:58:15 +00:00
jbjohnso
34f0ece400 Fix problem where hot takeover failed to completely kill off discovery worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 20:15:00 +00:00
jbjohnso
4817dfbe26 Fix unclean shutdown induced by discovery worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 19:46:48 +00:00
jbjohnso
d3adad02ee Fix discovery in worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15958 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 19:37:23 +00:00
jbjohnso
7d7bfb00b4 Break discovery out to it's own worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15957 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 19:36:45 +00:00
jbjohnso
033b6706b7 Fix problems with IPv6-ification of the UDP service
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 20:36:14 +00:00
jbjohnso
f2de7ef12e Fix problem where tc grants always were sent to the last peer to send traffic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15880 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 17:37:15 +00:00
jbjohnso
27459a2869 Fix issue where TC requests would be remembered not at all and then forever
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 17:37:10 +00:00
jbjohnso
15d0a15364 Fix output to have a newline in packet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 17:37:05 +00:00
jbjohnso
4204e9070e Implement udp request (but no reply yet)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 17:36:57 +00:00
jbjohnso
b9e587e703 Step one of traffic control, have SSL inform UDP process of current client count
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15876 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 17:36:51 +00:00
jbjohnso
c72f824670 Simplify a lot of xcat IPC by removing the silly 'endoffreeze' in favor of store_fd and retrieve_fd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15830 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:11:19 +00:00
lissav
6b9baa15e5 fix defect 3426
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15723 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 11:36:48 +00:00
jbjohnso
5a21746fe8 Have xCAT support ssl parameter settings in site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-26 21:11:54 +00:00
mellor
daf319a402 defect 3376 - need to load XCATSITEVAL global in upd listener process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 20:30:37 +00:00
daniceexi
9a9b28a9f3 defect 3333: use th signal 12 (USR2) to stop the install monitor process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 02:03:28 +00:00
jbjohnso
3496d08373 Add support for xcatd to recognize and unpack gzip compressed payloads
Put back in extended NIC information, but compress it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14999 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 14:37:17 +00:00
jbjohnso
05796434a8 Have xcatd not print warnings in the event of non-resolvable cirumstance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14913 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 21:43:09 +00:00
daniceexi
709fc270ae defect 3282: use the /var/run/xcatd.pid to store the main pid of xcat if no pidfile is specified with -p flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 13:12:02 +00:00
linggao
ad6cf32fe3 fixed defect 3266
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 22:04:14 +00:00
linggao
e08109fd0a fixed a problem that xcatd gives warning when sorting nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 16:40:29 +00:00
sjing
3f6118dae1 keep the parent_fd before any change, then restore it after the change, since it's a global variable.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 08:53:57 +00:00
sjing
9f45ee17b4 plugins executed sequentially.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 04:23:45 +00:00
ligc
f2c2410f3a fix for bug 3235: check ipv6 only for Linux, not AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 02:52:42 +00:00
ligc
9de743b141 fix for bug 3214: check if IPv6 is enabled on MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 11:11:00 +00:00
ligc
3d32c9999b undo fix for bug 3393278: should fix some where else, external behaviour of nodels <empty_group> is changed and some customer is affected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 08:54:45 +00:00
immarvin
9e4fd9ef38 set all the plugin procress and its children in a seperate process group;send SIGTERM to the process group to effectively abort command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 03:04:13 +00:00
immarvin
70257d7acd while "CTRL+C" trying to kill the plugin process,SIGINT is blocked, use SIGTERM instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14540 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 13:22:38 +00:00
lissav
d3a4f4df5b Remove updatestatus from xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 18:53:59 +00:00
nott
e352c14b74 changes for multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 13:57:28 +00:00
immarvin
beb47bb0f3 1.corrected defect 3053 2.update nodelist.updatestatus during 'updatenode -P/-S/-k';2.support nodelist.updatestatus update during 'updatenode -P/-S/-K';3.fix defect #3124 Postage.pm writes error message in /xcatpost/mypostscript: only write <data> field of getpostscript response to mypostscript, complain and terminate when getpostscript failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 08:48:20 +00:00