2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-04 00:16:59 +00:00
Commit Graph

514 Commits

Author SHA1 Message Date
Daniel Hilst a7455df957 Merge pull request #7649 from VersatusHPC/harvest/pasu-onecli-output-filter
fix(pasu): filter more OneCLI status banner lines from command output
2026-07-27 11:04:44 -03:00
Vinícius Ferrão 4d8d5539b4 fix(pasu): filter more OneCLI status banner lines from command output
pasu strips OneCLI's banner and status lines so only the requested settings are
shown, but OneCLI has grown several status lines over the years that were not
filtered and leaked into the output. Add the missing patterns.

Recovered from the unmerged lenovobuild branch (229533cb, a6932bb4), which added
"Connected to BMC at IP address" (master only matched "by"), "Succeed in running
the command:" and "start to convert cmd.". Extended after testing a current
OneCLI 5.3.0 on a Lenovo ThinkSystem SR635, which also emits "Start to connect
...", "Connected to the node(N) by KCS" and a trailing "Succeed." -- now
filtered too.

Validated by running a real OneCLI 5.3.0 "config show" through the filter:
every banner/footer line is removed and all 756 setting lines pass unchanged.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-25 21:41:23 -03:00
Daniel Hilst 873d547781 Merge pull request #7634 from VersatusHPC/harvest/rcons-resolve-conserver
fix(rcons): resolve a conserver hostname before the local-address check
2026-07-24 12:04:15 -03:00
Vinícius Ferrão dda7605028 fix(tcons): make tcons work with modern tmux
tcons opens an rcons console per node in a tiled tmux session. On tmux 3.x
(shipped by all currently supported platforms) it no longer works:

  * The session was named "tcons.$$".  Modern tmux treats "." as the
    session:window.pane target separator, so "tmux attach -t tcons.$$" is
    parsed as session "tcons", pane "$$" and fails with "can't find
    session"/"can't find pane" -- tcons cannot attach to the session it
    just created.  Rename it to "tcons_$$".

  * The per-node "tmux select-pane", "tmux split" and "tmux select-layout"
    commands had no target.  When tcons is run from inside an existing tmux
    session (the common case) they act on the caller's current session
    instead of the detached tcons session, splitting the operator's own
    window.  Target every command explicitly at the tcons session.

  * Move the pane-border-status option inside the loop so the console title
    is set on each pane as it is created.

Validated on tmux next-3.4: the reworked script builds a 3-pane tiled
session with no errors, whereas the previous version's dotted session name
is unaddressable ("can't find pane").

Recovered from the unmerged lenovobuild branch (originals 5107b6ba1,
cefefa7d1, 6c72a2707, e040d24bb).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-22 21:00:37 -03:00
Vinícius Ferrão bdf8ec36db fix(rcons): resolve a conserver hostname before the local-address check
When nodehm.conserver is a hostname, rcons compared that name directly against
the management node's local IP addresses, so the "conserver is this host"
check never matched and rcons connected via `-s` (a remote confluent session)
even when the conserver was the local host. Resolve the name to an address
with getent first so the comparison works.

Recovered from the unmerged lenovobuild branch (original faa767e5).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-22 19:46:14 -03:00
Daniel Hilst 638f0d75c4 Fix xCAT 2.18 EL10 x86_64 package build issues
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-20 18:48:14 -03:00
besawn 5f52874e6c Merge pull request #7337 from gurevichmark/mysqlsetup_mariadb_RH9
mysqlsetup enhancements
2023-02-17 13:35:11 -05:00
Mark Gurevich a2440a2acc Improve checking for running DB process 2023-02-17 12:20:14 -05:00
Mark Gurevich 1add9d09f0 Fix syntax error in pgsqlsetup 2023-02-15 16:33:00 -05:00
Mark Gurevich 6d4c948f44 Syntax fixes 2023-02-15 11:22:30 -05:00
Mark Gurevich 540d4ca40a mysqlsetup enhancements 2023-02-14 13:19:15 -05:00
Mark Gurevich 570cda30b4 mysqlsetup enhancements 2023-02-14 13:17:17 -05:00
Mark Gurevich 1a378b341c Fix mysql setup for RH family of OSes 2023-02-08 10:18:12 -05:00
Vinícius Ferrão 9299e7f5d2 Fix typos on help output for genimage and OpenStack
There's a typo on genimage thats easy to fix, also the explanation for
Fedora is extremely outdated, on modern Fedora releases statelite is
generated automatically:

[root@headnode ~]# lsdef -t osimage
fedora35-x86_64-install-compute  (osimage)
fedora35-x86_64-install-service  (osimage)
fedora35-x86_64-netboot-compute  (osimage)
fedora35-x86_64-statelite-compute  (osimage)

Also theres a typo on OpenStack setup that grep caught, so we added
it too the commit, for cosmetic reasons.
2022-01-29 00:26:33 -03:00
Mark Gurevich d8bb3ea2db Link file for all OSes 2021-05-19 15:30:49 -04:00
Mark Gurevich 63ebc1497b Extract full version information 2021-05-19 14:07:29 -04:00
Mark Gurevich 7b012a8f6e Remove sp1flag from mysqlsetup 2021-04-07 16:37:19 -04:00
Mark Gurevich e4619859c0 Use correct Perl string compare operator 2021-04-02 13:13:27 -04:00
peterwywong 94bb4ca4b8 Revert "Modify mysqlsetup and restorexCATdb to examine DB restoration delay" 2021-03-10 11:33:08 -06:00
Wai Yee Wong 617a4ed557 Modify mysqlsetup and restorexCATdb to examine DB restoration delay 2021-03-01 16:52:37 -05:00
Mark Gurevich 5096a73760 Update pgsqlsetup command and related docs 2020-07-10 10:01:15 -04:00
Mark Gurevich 371a15686b Verify second parameter to rcons is a host 2020-04-17 11:37:43 -04:00
cxhong 1e7453e539 change to symbol links instead force options 2020-03-04 16:02:34 -05:00
cxhong 68f2534b98 Modify mysqlsetup scripts on rhels7.7 2020-03-04 14:19:04 -05:00
cxhong 391678cb87 mysqlsetup support for SLE15 x86_64 system 2020-02-20 13:35:28 -05:00
cxhong 344d640292 fix syntax error 2020-02-19 14:57:50 -05:00
cxhong 250c2abb91 Modify mysqlsetup to support SLE15 2020-02-18 17:06:10 -05:00
Bin Xu 40d74ace1b Adding port 22 for unprivileged node ping (#4324) (#5699) 2018-10-12 17:01:37 +08:00
xuweibj da557f4967 fix issue 5245, return 0 when pscp -h 2018-09-06 02:28:05 -04:00
GONG Jie 70709eb281 Remove trailing spaces in file xCAT-client/bin/zxcatIVP.pl 2017-12-31 23:59:59 +00:00
GONG Jie 456433e84b Remove trailing spaces in file xCAT-client/bin/zvmMsg 2017-12-31 23:59:59 +00:00
GONG Jie a3a169ba4d Remove trailing spaces in file xCAT-client/bin/xcatchroot 2017-12-31 23:59:59 +00:00
GONG Jie 3f85add4a6 Remove trailing spaces in file xCAT-client/bin/verifynode 2017-12-31 23:59:59 +00:00
GONG Jie efb8ab519f Remove trailing spaces in file xCAT-client/bin/tcons 2017-12-31 23:59:59 +00:00
GONG Jie ea3342d521 Remove trailing spaces in file xCAT-client/bin/rinstall 2017-12-31 23:59:59 +00:00
GONG Jie 7bac909a35 Remove trailing spaces in file xCAT-client/bin/rcons 2017-12-31 23:59:59 +00:00
GONG Jie 78e4ea5285 Remove trailing spaces in file xCAT-client/bin/pgsqlsetup 2017-12-31 23:59:59 +00:00
GONG Jie 47ecc0e01e Remove trailing spaces in file xCAT-client/bin/mysqlsetup 2017-12-31 23:59:59 +00:00
GONG Jie bcce7d195d Remove trailing spaces in file xCAT-client/bin/db2sqlsetup 2017-12-31 23:59:59 +00:00
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