2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-10 15:30:09 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
f09939a15a Add xcat marker in gocnoserver configuration file
Previously, it is impossible to know if the goconerver is started
by xcat. This patch add a marker in /etc/goconserver/server.conf
to help check the status. In addition, use server-cred.pem instead
of server-key.pem as it is not exist on SN.

This patch also control the service status of goconserver and conserver
when restarting the xcatd service on service node.

```
[root@sn02 ~]# chdef sn02 setupconserver=1
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]# ps -ef | grep conserver
root      27679      1  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27680  27679  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27756  26188  0 02:26 pts/1    00:00:00 grep --color=auto conserver
[root@sn02 ~]# chdef sn02 setupconserver=2
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]# ps -ef | grep conserver
root      27885      1  0 02:26 ?        00:00:00 /usr/bin/goconserver
root      27986  26188  0 02:33 pts/1    00:00:00 grep --color=auto conserver
```
2017-12-28 16:46:47 +08:00
2fd0570fab Some sentence modify for makeconservercf -C|--cleanup 2017-12-01 11:05:17 -05:00
92d9740f14 1. add "makeconserver -d" to "rmdef -C", 2. add "makeconserver -C|--cleanup" to remove entries for removed nodes 2017-11-30 09:35:16 -05:00
abab9d89c5 Add makegocons command
This patch enable goconserver service and manage the node sessions
with a new `makegocons` command.

Implement: #4215
2017-11-16 17:56:26 +08:00
5331626d9a Upgrade conserver to 8.2.1 version (#3252)
This patch change the `sslauthority` to `sslcacertificatefile` to
support the latest version of conserver. It also add scripts to
update the `conserver.cf` and $HOME/.consolerc to make sure
migration works correctly.

implement: #3239
2017-06-16 16:51:05 +08:00
1f113afdc8 makeconservercf -d to remove all xCAT nodes 2016-12-15 15:32:41 -05:00
c0a787dc09 Support yes and no for node object attribute consoleondemand 2016-09-08 14:03:56 -04:00
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
4b8dcabe27 fix #1057, there are error messages when upgrading xcat on ubuntu 2016-05-09 05:19:55 -04:00
b8763f4a24 support timestamps per line for console output 2016-03-24 11:17:15 -04:00
21a2945667 remove two unmeaning spaces in the generated conserver.cf to avoid the automation test failure 2015-09-21 14:21:33 +08:00
becaca29fe Issue 157
add XCATSSLVER environment variable when it's set on sles11.x mn
in conserver.cf for calling cons script to communicate with xcatd through tls
2015-09-08 04:51:51 -04:00
2f666702c2 fix for bug 4203: update the makeconservercf manpage and usage information 2014-07-28 17:32:54 -05:00
b86a62a148 defect 4134: missing the use of xCAT::SvrUtils in conserver.pm so that when makeconservercf walks into error path to call SverUtils->sendmsg, an code error is displayed 2014-05-20 10:14:22 -04:00
65470149e9 add per node consoleondemand 2014-01-29 21:47:09 +00:00
03fc1d2f34 Improve performance of makeconservercf - bug 3691
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-13 19:59:15 +00:00
cb834a2ab4 add a new flag -t to makeconservercf to specify additional trusted hosts with conserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 08:19:08 +00:00
40e144b4cc for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/plugin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:07:40 +00:00
db3ccd170f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 03:08:16 +00:00
4bb9056a68 fix for bug 3523412: makeconservercf noderange does not work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 06:28:36 +00:00
05101903d2 "getnodetype performance improvement": change getnodetype related code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-10 07:35:56 +00:00
56aecc8f03 fix for bug 3413432: conserver trust all ip addresses configured on local node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-10-09 00:34:38 +00:00
722da65541 change the way of find node type
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-03 03:08:37 +00:00
e9a21e4b5b Fixed bug 3131136: we have seen it many times, there are no any pid files in the system and it makes our code cannot restart conserver daemon. Now we will restart conserver once user run makeconserver. It may introduce some warning msg if we try to stop conserver daemon which is not existing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-12-20 09:29:39 +00:00
91b0cf722a Fix bad error on makeconservercf issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7540 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-20 19:45:27 +00:00
8e9bcd05dc fix for bug 2972173: do not add ssl configuration if the ssl is not compiled into conserver code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5515 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-18 02:47:23 +00:00
bd94e52135 Write master IP to trusted host in conserver.con
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4979 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-19 13:29:13 +00:00
d3897c07b1 fix a perl syntax error in conserver.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-19 01:31:07 +00:00
beffdd517f make xcatd tolerant of syntax errors in plugins, fixed syntax error in conserver.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4611 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-18 14:51:19 +00:00
d7dad95021 conserver hierachy support code drop
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4595 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-18 06:23:56 +00:00
e954e4c684 -Have makeconservercf report error when config is bad instead of writing malformed conserver config files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-26 18:16:26 +00:00
4745d80859 handles hierarchy using _preprossed flag for some commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-15 19:12:07 +00:00
462396dd89 remove check for no parms to makeconservercf, this should not be an error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3099 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-06 15:05:18 +00:00
f8e2f28e3a remove check for no parms to makeconservercf, this should not be an error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-06 14:58:10 +00:00
a47143fedf Fix bug 2726344
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-03 07:10:55 +00:00
e4390308bc fix bug 2688297
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-19 07:57:02 +00:00
c215a9141e -Fix bug where last line of conserver.cf was not checked to be skipped if appropriate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-17 01:00:58 +00:00
2ee57e4cfe -Fix problem where conserver put headers near the bottom and broke consoles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-16 23:45:45 +00:00
7c735dfb61 stop and start conserver after config file changes, restart does not pick up changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-12 13:39:44 +00:00
0dc6f9de74 -Fix bug where makeconservercf change sought out } too aggressively
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-12 11:21:29 +00:00
773e9cdf6a fix bug 2677319
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-03-10 08:43:51 +00:00
36da395f3a -Implement a '-d' argument to makeconservercf to allow removal of entries rather than refresh or addition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-23 04:16:03 +00:00
4018516186 changed /etc/rc.d/init.d to /etc/init.d so code works on SLES as well.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2361 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-10-17 17:59:57 +00:00
83da9f7584 fix makeconservercf bug:makeconservercf cannot work for a noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-10-14 11:19:57 +00:00
d0011e6ff8 -Fix problem where Table API called incorrectly by conserver with noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2156 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-12 15:12:03 +00:00
36121ff298 If option "conserverondemand" in site table is set to yes then start all consoles on demand.
This helps eliminate many ssh connections to blade AMM which seems to kill AMMs occasionally.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-10 15:07:26 +00:00
f247b8293c -Fix problem where terminal server conserver entries were not being done
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-06 21:49:25 +00:00
069785ed98 -Add strict to conserver plugin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-18 22:24:06 +00:00
ce8ee250d1 -Speed up noderange expansion
-Have Table calls that utilize noderange extend noderange's optimizations lifetime
-Rework conserver to use the at-scale Table access methods, overall about 3 times faster so far


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-07 22:47:38 +00:00
58ea144016 add call to Utils->Version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-07 18:29:55 +00:00