Commit Graph

197 Commits

Author SHA1 Message Date
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
jbjohnso
4aa483e6a4 Fix problem where xcatd start fails to relay data to launcher process due to buffering
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 18:05:36 +00:00
jbjohnso
3004f6493f Have xcatd launch process monitor xCAT SSL instance to assure it gets off the ground before exiting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-02 17:52:18 +00:00
daniceexi
944d18b0ce defect 2966: fixed the issue that xcat pid files were put in /tmp/xcat which would be cleaned periodically. now move it to /var/run/xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 14:30:14 +00:00
nott
2c19058ab0 fix check ofclient name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13533 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 13:54:27 +00:00
zhaoertao
14afeedb9e fix subroutine moving issue in xCAT-server/sbin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 11:48:59 +00:00
zhaoertao
f0bc50d27b for item: clean up Utils.pm, the code for xcatd. the thishostisnot function has been moved to NetworkUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:58:34 +00:00
nott
b01f3caece fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:48:03 +00:00
zhaoertao
00ac099deb fix bug 3546270:rspconfig <cec> HMC_passwd=xxx output error message, for hierarchical environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-20 09:54:54 +00:00
jbjohnso
a7f41ecb00 Fix problem in previous checkin with superflous 'my'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 17:27:22 +00:00
jbjohnso
7ab7085122 Use xcatiport and opt not to do install monitor if unset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 17:27:15 +00:00
lissav
d0e29a67e6 fix defect 3393889, allow longhostname in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13140 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 16:11:06 +00:00
lissav
1fdee03579 Move xcatd validate routine into and create an xcatd library. This should help with development and debug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 13:00:38 +00:00
jbjohnso
7cae464cba Close some filehandles that aren't needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 21:11:14 +00:00
jbjohnso
22eff119c4 Fix problem where a memory address could inadvertently end up being an argument to sleep by
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12764 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 14:03:04 +00:00
jbjohnso
43d4ca3b8f Have NodeRange make more assurances that it will not be caching data upon explicit request
xcatd explicitly has noderange redo cache if client has a <noderange> element.  This distinguishes it from 'getpostscript' type commands.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 15:11:26 +00:00
jbjohnso
30a91fe7bb Switch xCAT server connection to client back toblocking IO for large segments of code depending on blocking io
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 19:43:39 +00:00
jbjohnso
f6460e219a Have xCAT instances more reliably relay abort commands and cleanly exit on ctrl-c by client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 19:57:58 +00:00
jbjohnso
85ee055285 Correct problem where xcatd could truncate very large responses
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 20:00:30 +00:00
jbjohnso
4e9d05f9d2 Correct syntax problems in invoking fcntl calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 18:28:38 +00:00
jbjohnso
b41bbd14dc Fix problem where a bare newline could cause xcatd to be confused
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 17:52:55 +00:00
jbjohnso
d7088aa571 Pass 2 at correcting xcatd infinite patience with clients
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:13:41 +00:00
jbjohnso
75d37c0a6f Revert "Fix problem where unauthorized users could indefinitely hold an xcatd slot open so long as they stayed connected"
This reverts commit 293f2194c6fe119e71e3c053c3894748a44f9e7e.

Doing it a better way

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12392 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:13:35 +00:00
jbjohnso
5d38b453ef Fix problem where unauthorized users could indefinitely hold an xcatd slot open so long as they stayed connected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 18:36:52 +00:00
jbjohnso
bab318526c Have xcatd accept multiple requests in a single connection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12356 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 14:35:29 +00:00
jbjohnso
f2eb40b81c Have relay_fds work to try to batch more xml transformations together generically to improve execution time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 18:10:48 +00:00
jbjohnso
663d5cf3d1 Remove leftover extraneous output from xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:40 +00:00
jbjohnso
13fd08ee8d Have xcatd bulk xml transform 'unable to find plugin to handle' message to cut back server load'.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11987 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:27 +00:00
jbjohnso
e4cb55b3f9 Avoid redundant calls to the same table to do plugin lookup during plugin_command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:16:11 +00:00
jbjohnso
120fa47c0e Rework plugin_comand to use XCATSITEVALS instead of polling site table for select plugins
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:16:05 +00:00
jbjohnso
177de72a68 Just comment some of the new xcatd changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 17:50:24 +00:00
jbjohnso
7c64bb6b05 Have xCAT more aggressively drain the listen queue on the main listening socket.
This change manages to have xCAT successfully field a large amount of incoming connections with a relatively small listen queue.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 15:14:07 +00:00
jbjohnso
85a3468e0f Have xCATd more robustly give client 5 seconds to receive message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11883 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-16 18:41:47 +00:00
daniceexi
8797bd6954 fix the issue for xcatdebug:1. aix cannot recognize the signal NUM50,NUM51. 2. the xcatdeug -f does not work after the change that loading plugin when really running of command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 11:54:28 +00:00
jbjohnso
9538a08566 Have install monitor fall back to IPv4 resolution specific if the v6/v4 agnostic call fails
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-07 19:22:48 +00:00
jbjohnso
8d65490894 Have xCATd more clearly report when registering a plugin fails, also be resiliant to the situation.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11723 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-01 16:21:27 +00:00