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

165 Commits

Author SHA1 Message Date
Vinícius Ferrão 12755bcac0 refactor(packaging): share systemctl readiness guard
(cherry picked from commit ef6e037366)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão a5315d5f78 fix(packaging): preserve fresh legacy defaults
(cherry picked from commit 09d1befb62)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão acd29fd40f fix(packaging): preserve custom SysV runlevels
(cherry picked from commit bdbf7b894a)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão 2d4b691b05 fix(packaging): preserve unregistered legacy state
(cherry picked from commit 7df7da59b3)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão db4c51dfed fix(packaging): preserve unmanaged xcatd init scripts
(cherry picked from commit 115c9cda7e)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão e12f41aa9c refactor(packaging): centralize xcatd init management
(cherry picked from commit 5495f133e8)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão 557913693c fix(packaging): expose explicit init target detection
(cherry picked from commit 8489e15969)
2026-07-24 15:25:45 +00:00
Vinícius Ferrão 27e932b7f8 fix(packaging): avoid SysV init paths in modern RPMs
(cherry picked from commit c34db2c55f)
2026-07-19 12:19:51 -03:00
Vinícius Ferrão 4165b26a04 fix: remove Docker container lifecycle management (dead code since 2016)
Docker container lifecycle management (mgt=docker, mkdocker, rmdocker,
lsdocker) was added in 2015-2016 as an experiment targeting Docker API
v1.22 on Ubuntu only. Documentation and man pages were deliberately
removed in 2019 (PRs #6222 and #6324) with the original developer's
approval, noting that "the interface of Docker has become very simple
right now, so there is no value for xCAT to offer such functions."

The plugin was still being shipped but has had no functional code changes
since April 2016, was never listed as a valid mgt value in Schema.pm,
and no user ever filed an issue about it.

Removed:
- xCAT-server/lib/xcat/plugins/docker.pm (1,142 lines)
- xCAT/postscripts/setupdockerhost
- xCAT-server/share/xcat/scripts/setup-dockerhost-cert.sh
- xCAT-test/autotest/testcase/dockercommand/ (test cases)
- Docker attribute definitions in Schema.pm
- Client symlinks (mkdocker, rmdocker, lsdocker)
- Usage entries and dockerhost cert handling in credentials.pm
- Docker attribute documentation in man7 pages

The "Running xCAT in Docker" documentation (dockerized_xcat/) is
retained as it documents containerizing xCAT itself, not the removed
mgt=docker feature.

Closes #7518
2026-05-03 12:11:33 -03:00
Daniel Hilst Selli 3a1d458df7 fix: Remove -extension from openssl req call in setup-server-cert.sh
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>

See: https://github.com/openssl/openssl/issues/22966#issuecomment-1858396738
2026-01-22 11:30:37 -03:00
Daniel Hilst Selli b5e35483a2 fix: Fix certificate and hostkey generation for EL10
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2025-11-27 17:51:34 -03:00
Markus Hilger ddbeb291b5 Fix certificate creation with OpenSSL >= 3.2 (fixes #7481) 2024-12-04 18:36:21 +01:00
Markus Hilger 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Mark Gurevich 71d3b76881 Check SUSE-brand file on SLES 2022-08-15 10:16:22 -04:00
Jarrod Johnson f9f7cda833 Add missing shebangs to key scripts 2021-04-29 14:53:50 -04:00
Mark Gurevich b912917911 Add option to bmcdiscover command to change default BMC password 2020-05-15 14:57:17 -04:00
Mark Gurevich 9e2ecbb65f Remove : from BMC_change_password script usage 2020-02-05 14:29:06 -05:00
cxhong 24727f3962 Remove stty command from Expect process 2020-02-02 14:40:24 -05:00
Mark Gurevich 30e1bfb9f7 Update message for BMC password change 2019-12-18 14:09:22 -05:00
Mark Gurevich dc41af4e61 Update BMC_change_password.sh usage 2019-12-18 10:30:20 -05:00
Mark Gurevich b4c16006a2 BMC password change script 2019-12-17 11:38:04 -05:00
Gᴏɴɢ Jie d52f6600bc Fix shabang for some old scripts (#5824) 2018-11-20 20:16:15 +08:00
GONG Jie 2124252630 Remove trailing spaces in file xCAT-server/share/xcat/scripts/xdcpmerge.sh 2017-12-31 23:59:59 +00:00
GONG Jie 121b4cb59c Remove trailing spaces in file xCAT-server/share/xcat/scripts/xdcpappend.sh 2017-12-31 23:59:59 +00:00
GONG Jie a2fb19d20a Remove trailing spaces in file xCAT-server/share/xcat/scripts/xcatconf4z 2017-12-31 23:59:59 +00:00
GONG Jie 68edae04a7 Remove trailing spaces in file xCAT-server/share/xcat/scripts/xHRM 2017-12-31 23:59:59 +00:00
GONG Jie 556dc557d0 Remove trailing spaces in file xCAT-server/share/xcat/scripts/setup-server-cert.sh 2017-12-31 23:59:59 +00:00
GONG Jie 38482dab82 Remove trailing spaces in file xCAT-server/share/xcat/scripts/setup-local-client.sh 2017-12-31 23:59:59 +00:00
GONG Jie 20fd49c715 Remove trailing spaces in file xCAT-server/share/xcat/scripts/setup-dockerhost-cert.sh 2017-12-31 23:59:59 +00:00
GONG Jie 44cf5bec5b Remove trailing spaces in file xCAT-server/share/xcat/scripts/mkay4z 2017-12-31 23:59:59 +00:00
GONG Jie 127ee70123 Remove trailing spaces in file xCAT-server/share/xcat/scripts/genduiduuid.sh 2017-12-31 23:59:59 +00:00
GONG Jie b3d72c622b Remove trailing spaces in file xCAT-server/share/xcat/scripts/configonie 2017-12-31 23:59:59 +00:00
GONG Jie 96c63582f0 Remove trailing spaces in file xCAT-server/share/xcat/scripts/configMellanox 2017-12-31 23:59:59 +00:00
GONG Jie 620d19fade Remove trailing spaces in file xCAT-server/share/xcat/scripts/configBNT 2017-12-31 23:59:59 +00:00
Gᴏɴɢ Jie 802ed5cbad Suppress the `index.attr, No such file or directory' error message from openssl (#5456) 2018-08-02 17:00:22 +08:00
cxhong ce42f6e03e block the command if run by non-root users (#5438) 2018-07-27 10:52:24 +08:00
Bin Xu 961108c53b updatenode MERGE mode does not support update an existing entry 2018-03-26 18:06:49 +08:00
cxhong 4038056879 Add more print statement for config switches scripts (#4872)
* Add more print statement for config switches scripts

* modified from reviews

* more modify from review
2018-03-06 11:25:38 +08:00
cxhong 9184d33e33 remove remote host key from known_hosts file (#4722) 2018-01-25 01:17:03 -06:00
cxhong e501b26fd0 issues for install license file on accton switches (#4460) 2017-12-07 00:53:32 -06:00
cxhong ac758a9c9d Modified configonie --ntp command (#4436) 2017-12-04 23:48:33 -06:00
Miro aaacca80cd Fix merging in xdcpmerge.sh (#4328)
* Fixes in xdcpmerge.sh

Two fixes:
1. The grep pattern when finding duplicate usernames is missing ":" at the end. So, for example user "test" would also match "test2, etc.". Adding the ":" delimiter fixes the issue.
2. Another issue happens when the file to be merged is a superset of the files on the nodes. For example, if a new user is added and entire passwd file (that is otherwise identical) is sent to be merged. In this case, the $filebackup.nodups file, i.e. the original file with duplicates removed, becomes empty and the condition "if [ -s "$filebackup.nodups" ]" does not execute. Then the merged file ends up being original file with the merge file fully appended, clearly not what was intended.

This is solved by changing the condition to check for file existence "-a" rather then for size. Additionally, I also turn the logic around so that the duplicates are removed from the merge file and then added to the original file. I think this makes logic a bit cleaner and also ensures that existing entries are not reordered or changed in any way.

* Streamlining previous commit

Adjustment to previous commit, streamlining and simplifying logic. Once $mergefile.nodups is created, just concatenate it the original file.

* Update to xdcpmerge

No need to copy $filebackup to $curfile, they are the same.
2017-11-26 20:20:49 -06:00
Samveen Gulati 76b477c398 Error redirection for checks 2017-11-14 08:38:24 +00:00
Samveen Gulati 07add8e288 Fix back multi-ip transfer from port to bridge 2017-11-14 08:29:08 +00:00
Samveen Gulati 5e93ea3b39 Fix logic for bridgeprereq parameter parsing 2017-11-14 08:28:30 +00:00
Samveen Gulati c4f4760eb4 xHRM: migrate existing IP conf of $PORTS to bridge 2017-11-14 07:38:26 +00:00
Samveen Gulati 99ae556314 xHRM: more improvments via ShellCheck 2017-11-14 07:38:26 +00:00
Samveen Gulati 817009c218 xHRM: improvments via ShellCheck 2017-11-14 07:38:26 +00:00
Samveen Gulati 3b05e6d633 xHRM: modernize command substitution 2017-11-14 07:38:26 +00:00
Chuck Brazie a8a57f64a4 Any updates since merge in October
Change-Id: I562c4069f5008a5faf71091fb243d349740052c1
2017-10-19 14:18:47 -04:00