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

92 Commits

Author SHA1 Message Date
yangsong
92c019bdb3 set default value for $::XCATSITEVALS{httpport} if site.httpport is not specified (#5780) 2018-11-09 15:28:17 +08:00
Jarrod Johnson
8ff0bb805e Have xCAT client try IPv6 if IPv4 fails
If IPv6 support is added to a system after xcat is running,
then trying to reach 'localhost' may end up being '::1' instead
of '127.0.0.1'.  This will be fine after xCAT restarts from before
IPv6 support being available, but until that time the daemon is
IPv4 only.  Have Client try IPv4 if IPv6 fails to accomodate this
situation.
2018-10-31 15:34:58 -04: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
5a6b851df1 Remove trailing spaces in file perl-xCAT/xCAT/Client.pm 2017-12-31 23:59:59 +00:00
Bin Xu
7227c7f98d show server name by default for Error and Warn message 2018-05-29 15:18:46 +08:00
chenglch
e80509c0ae use msgsource directly 2018-03-21 16:24:00 +08:00
chenglch
25bede4130 Modify goconserver msg for SN
The message util from xCAT framework do not print where the message
comes from by default. This patch add [service host] prefix for the
message if message is from SN.
2018-03-20 15:32:50 +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
Samveen Gulati
f1b406dbc0 Reduce grep invocations by passing -[46] to ip 2017-06-06 09:53:29 +00:00
immarvin
669561e649 xcat command returns 0 when cmd fails due authorization #2636: prompt meaningful message for user if client certificates not setup correctly; specify SSL_verify_mode => SSL_VERIFY_NONE explicitly for IO::Socket::SSL->start_SSL 2017-04-25 04:53:45 -04:00
Xiaopeng Wang
2da47d9f4a correct typo and remove useless variable definition 2016-07-26 10:02:47 +08:00
Mark Gurevich
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
wangxiaopeng
ca7c9ad69a issue 1171: set SSL_verifycn_scheme => none for IO::Socket::SSL->new 2016-06-22 10:04:04 -04:00
Victor Hu
32855754e2 In the latest version of libio-socket-ssl-perl shipped with Ubuntu 16.04,
the SSL_VERIFY_PEER requires to be a constant instead of string. The error
message printed out is

   SSL_verify_mode must be a number and not a string at /usr/share/perl5/IO/Socket/SSL.pm line 2166.

Need to use IO::Socket::SSL for the SSL_VERIFY_PEER to be set
2016-03-16 13:49:11 -04:00
ertaozh
93c2b73f12 fix issue 660: lsdocker node -l --logs return too many illegal code 2016-01-27 01:03:40 -05:00
WangXiaoPeng
71a764ed96 defect 4644: change in xcatd and Client.pm to fix two issues: 1. if the plugin process run certain command like 'omshell' dhcp.pm and which hang, this will cause the plugin process cannot be finished with ctrl^c; 2. the ctrl^c cannot be passed to service node. 2015-04-21 05:15:43 -04:00
daniceexi
b2eb57d072 Add default value for attribute site.xcatsslversion=TLSv1 to avoid using sslv3 which might cause POODLE Attach 2015-02-12 09:44:01 -05:00
Jarrod Johnson
41e73881de Fix output that occurs on require xCAT::Client when ip is not in path 2014-05-29 10:32:50 -04:00
Jarrod Johnson
14b61f339d Explicitly set SSL_VERIFY_MODE during start ssl in Client 2014-02-13 09:51:40 -05:00
Jarrod Johnson
a52dc5b5f9 Correct problem introduced by partial backout of storable.
Client.pm was still expecting some output to a request no longer sent.  Correct that.
2013-10-15 13:39:20 -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
lissav
82617219fc fix defect 3786 2013-09-17 12:23:17 -04:00
jbjohnso
db0dd06b3f Fix Client.pm handling of Storable paylod
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-18 19:16:07 +00:00
jbjohnso
40f9dee2c6 Fix problem where Client would wait for EOF with storable encoding.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-17 15:29:26 +00:00
ligc
8a22702ae3 fix for bug 3648: set xCAT::Client::EXITCODE=1 with error communication with the xCAT server seems to have been ended prematurely
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 08:22:50 +00:00
jbjohnso
fc16c672ba Fix problem where Ctrl-C didn't work with new payload format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16781 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 20:42:39 +00:00
daniceexi
ab6f939e62 defect 3619: backup the req before dispatch to a xCAT module and recover it after the dispatch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-15 10:45:29 +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
ligc
2a396bc1fd fix the issue with XCATHOST=ipv6-lla%eth0:3001 and remote xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 02:38:48 +00:00
jbjohnso
9064aaf24b Remove debug output from Client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 18:30:44 +00:00
jbjohnso
cc457b33ee Support LLA with scope index XCATHOST
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 13:34:41 +00:00
lissav
2192c8e148 fix of defect 3380
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15243 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-23 12:46:23 +00:00
lissav
e69cdc2d5f fix bypass mode running makedns plugin when site.dnshandlers is set
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15200 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 16:16:19 +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
02a96668f7 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@14598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 08:54:25 +00:00
bp-sawyers
dd11950993 chomped newlines from runcmd streaming output and updated site.runbootscripts description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 15:37:47 +00:00
ligc
628806fd81 fix for XCATBYPASS=1 could not work with commands depends site attribute, like makedns=>site.dnshandler
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 04:33:40 +00:00
zhaoertao
571f3e3962 for item: clean up Utils.pm, the code in perl-xCAT/xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:48:50 +00:00
nott
ac30816620 fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:27:50 +00:00
jjhua
8cbcd958d5 Populate %::XCATSITEVALS with XCATBYPASS=1 in the submit_request(), and use $::XCATSITEVALS{} instead of getting from site table again.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 09:43:17 +00:00
lissav
6bc5be20e1 report when no defined plugin, will at least see in bypass mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 11:03:59 +00:00
jbjohnso
638e9179a7 Fix problem where Client could attempt to coalesce data from server that doesn't cleanly cleave an xcat response
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 12:59:22 +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
f232fc8b82 Rework Client to be more responsive to server code even with the XML coalescing in effect
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:36:33 +00:00
sjing
34ca6ec873 the fix for bug 3364300 - only allow root to run xcatbypass mode.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 02:36:17 +00:00
jbjohnso
3351f818a9 Don't give up on a TCP socket if connection happens but SSL is slow
Have Client.pm consider basic tcp connectivity separate from SSL for timeout concerns

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 21:04:23 +00:00
lissav
1b755d9d48 More updates for XML handling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 18:39:07 +00:00
lissav
a7a5218b5b Add support for XML in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 12:52:08 +00:00
jbjohnso
0a069e3b88 Have Client work to aggregate some XML processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:34 +00:00