2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 04:41:08 +00:00
Commit Graph

475 Commits

Author SHA1 Message Date
yangsong
c49e41da99 support environment variables in osimage customized files (#5281)
* * osimage table schema change: add a "environvar" col in osimage table to hold environment variables used in osimage customized files
* osimage object schema change: add a environvar attribute, which refers to  osimage.environvar
* the environment variables specified in "environvar" attribute will be exported during invocation of postinstall scripts in genimage

* support variables in synclists

* support environment variables in genimage,mkinstall,getpostscript

* support environment variables for xdcp -i -F in packimage
2018-06-15 14:51:41 +08:00
Yuan Bai
7576e04e24 let mysqlsetup work when using alias IP as MN IP (#5279)
* let mysqlsetup work when using alias IP as MN IP
2018-06-06 15:25:11 +08:00
yangsong
7c85b0998d add support for syncfiles with scp (#5123)
* add support for syncfiles with scp

* refine logic of EXECTUTE support message non rsync filesync

* refine syncfiles

* add startsyncfile script for cumulus

* refine format, fix updatenode without options causes command to crash #5142
2018-04-27 11:28:08 +08:00
Bin Xu
c99b50d5dc Fix the issue (#5041) when no server name infor with --verbose, but -V does 2018-04-02 16:04:44 +08:00
yangsong
4ad99269fe fix issue: genimage tries direct DB access instead of via xCATd #4385 (#4924) 2018-03-12 17:40:39 +08:00
chenglch
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
chenglch
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
chenglch
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
chenglch
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
chenglch
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
Steven P. Gessner
1f1ef56e41 z/VM IVP should tolerate slow xcatd startup.
The IVP expects xcatd to be fully operational by the
time is begins a run.  It is possible for xcatd to
be delayed.  The delay should not ause a corruption
of the zvmnotify property in the site table.
In addition, tests for tabdump failures should be
corrected and the log file should be set up sooner
so that debug information is available for similar
problems.

Change-Id: I2b0e3e875cc28f740a35b348faa0cc74f5acb7bf
2017-10-26 14:33:00 -04:00
zet809
a6661f84b7 Merge pull request #2927 from zVMopenstack/ZVM_XCAT_DEV
Merge the changes made for zVM into the xCAT development branch
2017-10-18 17:06:31 +08:00
Jarrod Johnson
f93ca55b24 Fix erroneous 'noping' in various circumstances (#4102)
nmap's raw IP facility is prone to mistakes in various
environments.  Disable the raw IP handling by
telling nmap to run as if it didn't have privilege
Note this was already done back in:

commit fb02c18853
Author: jjohnson2 <jjohnson2@lenovo.com>
Date:   Fri Mar 20 10:58:26 2015 -0400

But it was broken since then..
2017-10-16 22:01:44 -05:00
Jarrod Johnson
54404030b6 Recognize alternative path to fping (#4100)
SLES12 places fping into /usr/sbin
2017-10-16 22:00:09 -05:00
Chuck Brazie
c012b45ec1 Merge branch 'master' into ZVM_XCAT_DEV 2017-10-03 09:44:06 -04:00
Jarrod Johnson
2d024b5aeb Have xcoll take a try at sorting output groups (#4018)
It isn't natural sort, but in many cases it should work.

Natural sort in perl is a pain or a dependency.
2017-09-27 20:36:30 -05:00
Jarrod Johnson
489ee67c6a Oneclipasu (#4020)
* Filter out extraneous output of OneCli

* Remove extraneous content from pasu

* Update pasu filtering

* Fix recognizing success to filter

* Update for new Lenovo OneCLI rpm

The new packaging offers up iflash64 and asu in a consistent
location.

* Workaround different IPv6 syntax for asu/onecli

* Filter out header of new version of OneCLI

* Filter out the Invoking SET command output of onecli
2017-09-27 20:32:17 -05:00
yangsong
22b51e3efa fix issue Weird problem with rinstall #3877 (#3883) 2017-09-08 14:14:20 +08:00
Chuck Brazie
e9029f484f Merge branch 'master' into ZVM_XCAT_DEV 2017-08-09 09:31:22 -04:00
yangsong
69da84f5db fix a typo in rinstall -c/--console error message (#3613)
* fix a typo

* fix a typo
2017-08-04 05:00:02 -05:00
Bin Xu
e9e1a4ccf3 Merge branch 'master' into xcatshowsvr 2017-08-02 15:45:06 +08:00
chenglch
7effdf1993 Merge pull request #3577 from immarvin/onrinstall
fix issue rinstall/winstall -c doesn't open console #3535
2017-08-01 18:53:25 +08:00
immarvin
b167c2932b fix issue rinstall/winstall -c doesn't open console #3535 2017-08-01 05:51:30 -04:00
Bin Xu
52b43e29f3 Remove the debug print 2017-08-01 17:20:23 +08:00
immarvin
cb00d0e154 [fvt] 'pgsqlsetup -i ' does not work well in rhels7.3 and rhels7.4 #3579 2017-08-01 02:33:26 -04:00
Bin Xu
c008a1686e Adopted review comments and made changes as below:
- use -V/--verbose to enable the XCATSHOWSVR, it is more straitforward to user.
  - refine the manpage based on Mark's comments.
2017-08-01 13:43:13 +08:00
khm
cb8ce84249 xCAT-client: allow pgsqlsetup(1) to accept additional pg_hba entries (#3527)
* xCAT-client:  allow pgsqlsetup(1) to accept additional pg_hba.conf entries

Currently pgsqlsetup(1) only sets up the MN ip address for access via
pg_hba.conf.  This change adds a -a flag to allow the user to specify
additional addresses for use in that file.

This is useful for users who already know what IP addresses will be
used by their service nodes, so they can pass them directly to the
pgsqlsetup program, without needing to edit pg_hba.conf (and avoiding
needing to restart postgresql and xcat after the edit).

* xCAT-client: fix formatting in pgsqlsetup(1)

* pgsqlsetup.1.pod:  clarify default setup

* pgsqlsetup.1.pod:  update usage section to reflect access flag

* pgsqlsetup.1:  refresh documentation

* xCAT-client/bin/pgsqlsetup: add -a/--access to usage statement
2017-07-25 02:34:50 -05:00
khm
cac418514f xCAT-client: allow pgsqlsetup(1) to accept additional listen_addresses (#3519) 2017-07-20 21:14:04 -05:00
zet809
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
Chuck Brazie
ceb450587f Merge branch 'master' into ZVM_XCAT_DEV 2017-06-19 08:04:09 -04:00
chenglch
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
Samveen Gulati
f1b406dbc0 Reduce grep invocations by passing -[46] to ip 2017-06-06 09:53:29 +00:00
zVMopenstack
7487c0322a Merge branch 'master' into ZVM_XCAT_DEV 2017-04-24 09:39:38 -04:00
Chuck Brazie
98b4d2cf9f zVM changes up till April 21
Change-Id: I6c2febd8797f3874fbd8b7bd445f7ce6785155e4
2017-04-21 14:07:34 -04:00
Mark Gurevich
4b0ce18b9d Add DSH_VERIFY environment variable to xdsh command 2017-03-23 15:44:11 -04:00
Mark Gurevich
1463615f3f Changes suggested by comments 2017-03-21 11:45:26 -04:00
Mark Gurevich
4e1d4629a9 Preserve the user ownership of the file for xdcp command 2017-03-20 13:19:39 -04:00
zet809
072cfd01d1 Merge pull request #2431 from arif-ali/rcons_update
Update rcons, so that it detects conserver
2017-03-03 17:34:25 +08:00
Andy Wray
c61d356d1c Changed colors in wcons to improve readability 2017-02-28 10:28:42 -05:00
Arif Ali
2189641a9b Merge branch 'master' into rcons_update 2017-02-24 11:15:05 +00:00
ertaozh
1e3cf89cf4 Return error if no /usr/bin/fping is available 2017-02-22 21:39:48 -05:00
Chuck Brazie
25866ba7a7 A few updates to get latest IVP, some bugzillas. 4275-4299
Change-Id: I332800769a556f5174d77f84b130ccbb542a0d95
2017-02-13 15:09:29 -05:00
Chuck Brazie
a4b658037f merge of xCAT_Client plus add one new file missed in xCAT
Change-Id: Iaa3b073333e75c64f7a0da35fb6dd1228e822059
2017-02-01 14:13:16 -05:00
yangsong
b1adaf4ac2 Merge pull request #2432 from jjohnson42/fixrcons
Fix spurious output in rcons on uninstalled console
2017-01-23 02:35:01 -06:00
Jarrod Johnson
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
Weihua Hu
d37413654c Merge pull request #2298 from immarvin/onsles12sp2
fix issue [fvt]sles12.2 mysqlsetup -i could not work #2297
2016-12-15 14:29:31 +08:00
immarvin
5b882fc24d fix issue [fvt]sles12.2 mysqlsetup -i could not work #2297 2016-12-08 22:21:12 -05:00
Samveen Gulati
c6f7861fb1 [xCAT-client]xdshbak: Add bare output sub-option -b for -x 2016-10-10 15:49:23 +00:00
Samveen Gulati
ccd0ff64f5 [xCAT-client]xdshbak: Use version sorting on hostnames 2016-10-10 15:49:23 +00:00