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
1909c1ed57
Use CONGO_CLIENT_TYPE to tell goconserver the source of client ( #4501 )
...
goconserver could send back message based on the client type
this commit set CONGO_CLIENT_TYPE to xcat to make the message
from goconserver more friendly.
2017-12-14 14:25:38 +08:00
6135900321
Use short hostname in rcons for goconserver
...
As the certificate of xcat is signed with short hostname, this
commit force to use the short hostname in the environment variable for
`congo console`.
2017-12-06 14:36:34 +08:00
cadf5c60e1
Listen on 0.0.0.0 instead of the hostname
...
This patch modify the configuration of `makegocons` and `rcons`
for goconserver.
`cat /etc/goconserver/server.conf`
```
global:
host: 0.0.0.0
ssl_key_file: /etc/xcat/cert/server-key.pem
ssl_cert_file: /etc/xcat/cert/server-cert.pem
ssl_ca_cert_file: /etc/xcat/cert/ca.pem
logfile: /var/log/goconserver/server.log
api:
port: 12429
console:
port: 12430
```
2017-11-29 17:18:39 +08:00
ed181edb6c
Integrate congo console from goconserver with rcons
...
Enhance the original implement of rcons to support goconserver.
`rcons` will help the user choose from one of the console backend
service based on the console server status of management node.
Implement #4216
2017-11-23 09:25:55 +08:00
11f351cf6e
Merge pull request #2763 from samveen/reduce_greps
...
Reduce `grep` invocations by passing `-[46]` to `ip`
2017-06-22 16:24:04 +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
f1b406dbc0
Reduce grep
invocations by passing -[46]
to ip
2017-06-06 09:53:29 +00:00
2189641a9b
Merge branch 'master' into rcons_update
2017-02-24 11:15:05 +00:00
3971d0db7a
Fix spurious output in rcons on uninstalled console
...
alternative.
2017-01-20 13:43:08 -05:00
a5f39f972f
Update rcons, so that it detects conserver
2017-01-20 11:17:23 +00:00
e78de31c1a
To fix issue #784 , output error message when use rcons node -f -s
2016-03-15 02:01:19 -04:00
1176909e54
Check that /etc/init.d/confluent is there (installed) before checking
...
for confluent running if using conserver
2015-07-06 10:15:57 -04:00
bfd69e9824
If conserver and confluent are running at the same time, rcons
...
will say "Connection closed." Add a check in the rcons code to
make sure that if confluent is configured to be used, conserver is not
running and vice versa.
2015-07-02 14:41:43 -04:00
60bcc9e884
export XCATSSLVER=TLSv1 in xcathmc when on the sles11 platform.
...
change rcons so that if nodehm.conserver is set, the server is the SAME
node, don't pass the -s option to confetty for now.
2015-07-02 14:18:36 -04:00
8d957f8b11
fix for bug 4693: rcons -v calls xCAT::Version->Version()
2015-06-23 03:09:21 -04:00
f731fb2ec9
fix bug 4609: rcons returns /opt/xcat/bin/rcons: line 62: [: ==: unary operator expected
2015-03-17 07:50:21 -04:00
28cb65ebac
rcons automatically uses confluent when it's installed on the xCAT
...
management machine. Tests for /opt/confluent/bin/confetty
Change to first check consoleservice keyword in site table before
using confluent. This allows us to install confluent on the machine
and control use with the keyword
2015-03-17 07:47:32 -04:00
3cb83b2a19
Recognize confetty installed by pip
...
On some systems, pip install confetty will go to
/usr/local/bin. Recognize and accept that.
2015-01-30 17:00:19 -05:00
db84e8ee89
fix for bug 4456, change the rcons shebang line to /bin/bash
2014-12-08 14:34:36 +08:00
e2c31bad27
Implement confluent usage by r/wcons
2014-11-12 16:48:44 -05:00
40b5891c4a
defect 4254
2014-09-08 12:20:14 -04:00
ef0fbad422
fix the issue in rcons that it generated empty .consolerc. and fixed the issue that generated incorect .consolerc when run multiple rcons in parallel
2014-08-04 10:14:26 -04:00
1a35256053
fix for bug 4202: parse the rcons -help and rcons --help
2014-07-28 17:01:19 -05:00
7293046915
defect 4091
2014-05-08 09:49:39 -04:00
56684fb6da
handle when conserver is management node itslef.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15262 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-26 14:54:55 +00:00
fecc2a242e
remove the debug mode for rcons
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 18:58:30 +00:00
053ffe4795
fixed defect 3159 rcons does not work when nodehm.conserver is set to MN
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14643 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 18:37:40 +00:00
8cf146bc90
remove debug mode /bin/sh -x for rcons
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 08:43:04 +00:00
822d3fae46
added code in rcons that does not require conserver
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 16:49:23 +00:00
fefff805b5
change == into = for the rcons script
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 08:22:22 +00:00
95db581fae
Add support for running rcons via sudo on aix
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 18:46:25 +00:00
1428987d4f
fix bug 3513481. There was no command 'getent' in AIX.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 02:45:38 +00:00
13765372a6
Have rcons check and set $HOME since sudo won't give an accurate looking home directory
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 13:52:29 +00:00
ffeb7efdc6
add a spy flag for rcons command
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-09 05:45:59 +00:00
8373b78f8d
fix for bug 2953258: comment out ssl settings in .consolerc if ssl is not enabled
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-02-23 05:49:30 +00:00
23a79b3925
conserver hierachy support code drop
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-18 06:24:36 +00:00
0aa2cfdbb7
-Fix bug where console on SLES systems was not being fixed up if it had encryption support
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-23 18:01:38 +00:00
22370febeb
Fixed bug 2845137 in rcons: syntax error if no nodename specified. Also improved man page.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-01 15:55:58 +00:00
c81d0dbf6f
-defect 2810396 is fixed for SuSE.
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-22 05:58:07 +00:00
7fd9270d00
Add -f for rcons to optionally take write privilege of the console. By default, rcons only return a readonly console
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-24 10:33:09 +00:00
98f191f7b1
fix -h and -v message
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-10-31 15:01:50 +00:00
e68fe9d2db
-Move xCAT-server and client to not have 2.0 in name for trunk
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-03 14:56:33 +00:00