Vinícius Ferrão
036bb24c87
fix(packaging): preserve xcatd init state on Debian ( #7615 )
...
* refactor(packaging): share precise systemd state detection
* test(packaging): cover precise systemd state detection
* test(packaging): allow explicit Debian init mode
* fix(packaging): honor explicit Debian init targets
* test(packaging): cover Debian init target detection
* fix(packaging): add Debian xcatd init state helper
* test(packaging): cover Debian xcatd init state helper
* test(packaging): allow delegated SysV registration
* fix(packaging): preserve Debian xcatd conffile lifecycle
* test(packaging): mirror explicit Debian init mode
* test(packaging): cover Debian xcatd conffile lifecycle
* fix(packaging): contain init state file umask
* test(packaging): cover init state permissions
* fix(packaging): contain preinstall context umask
* test(packaging): cover preinstall umask containment
* fix(packaging): detect all systemd enablement links
* test(packaging): cover all systemd enablement links
* test(packaging): allow shared purge state path
* refactor(packaging): reuse Debian init state path
* fix(packaging): detect runtime systemd masks
* test(packaging): cover runtime systemd masks
* test(packaging): model Debian SysV registration
* refactor(packaging): reuse shared init state detection
* test(packaging): enforce shared Debian state probes
* test(packaging): allow explicit unregistered masks
* fix(packaging): preserve Debian SysV registration state
* test(packaging): cover Debian SysV registration states
* fix(packaging): clean failed Debian state writes
* test(packaging): cover failed Debian state writes
* fix(packaging): retain unregistered systemd provenance
* test(packaging): cover unregistered systemd upgrades
* fix(packaging): fail closed on shared state errors
* test(packaging): cover shared state detector failures
* test(packaging): mirror native xcatd runlevels
* fix(packaging): recover rejected SysV layouts
* test(packaging): cover rejected SysV layouts
* test(packaging): cover SysV rebuild retries
* refactor(packaging): reuse systemctl readiness guard
* test(packaging): enforce shared systemctl guard
2026-07-28 19:31:36 +00:00
Vinícius Ferrão
ef6e037366
refactor(packaging): share systemctl readiness guard
2026-07-21 11:08:05 -03:00
Vinícius Ferrão
09d1befb62
fix(packaging): preserve fresh legacy defaults
2026-07-21 11:08:04 -03:00
Vinícius Ferrão
bdbf7b894a
fix(packaging): preserve custom SysV runlevels
2026-07-21 11:08:04 -03:00
Vinícius Ferrão
7df7da59b3
fix(packaging): preserve unregistered legacy state
2026-07-21 11:08:04 -03:00
Vinícius Ferrão
115c9cda7e
fix(packaging): preserve unmanaged xcatd init scripts
2026-07-21 11:08:03 -03:00
Vinícius Ferrão
5495f133e8
refactor(packaging): centralize xcatd init management
2026-07-21 11:08:02 -03:00
Vinícius Ferrão
8489e15969
fix(packaging): expose explicit init target detection
2026-07-21 11:08:02 -03:00
Vinícius Ferrão
c34db2c55f
fix(packaging): avoid SysV init paths in modern RPMs
2026-07-16 01:42:40 -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