2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 12:37:54 +00:00
Commit Graph

402 Commits

Author SHA1 Message Date
Daniel Hilst 1b5938969c fix(xcat-core): stop go-xcat aborting the install on obsolete/missing packages
go-xcat's install list still named yaboot-xcat, which was obsoleted in the
xcat-dep 2.18 rebuild and is no longer published. It also lists the cross-arch
ppc64 genesis packages, which the arch-split 2.18 dep repo no longer places in
the x86_64 view an x86 management node reads. Because EL dnf is strict by
default, any one of these unresolvable names aborts the entire `dnf install`
transaction, so `go-xcat install` fails outright on EL9/EL10 even though every
package the node actually needs is available.

Drop yaboot-xcat from the install list (kept in the uninstall list so existing
installs are still cleaned up) and pass `dnf --setopt=strict=0` so a package
missing from the enabled repository is warned and skipped instead of failing
the whole install. The existing post-install smoke test still catches a
genuinely broken install.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-07-20 12:14:10 -03:00
Vinícius Ferrão b34d6abf08 go-xcat: ShellCheck compliance fixes
Address ShellCheck warnings across go-xcat without breaking
distro detection. Key changes:

- Replace source /etc/os-release with awk parsing that strips
  quotes, fixing detection on distros that quote ID/VERSION_ID
- Use $() instead of backticks for command substitution
- Quote $1 and file path variables in dnf/yum repo version checks
- Use ${FUNCNAME[0]} instead of ${FUNCNAME} for dispatch calls
- Fix $@ vs $* usage in string contexts (warn_if_bad, el9 check)
- Remove useless use of cat (UUOC) in pipe chains
- Escape $releasever/$basearch/$stream in CRB repo echo
- Use xargs instead of unquoted command substitution in rm
- Split local declaration and assignment per SC2155
- Fix minor typos (secert -> secret, preform -> perform)

Signed-off-by: Vinícius Ferrão <vinicius@ferrao.net.br>
Co-Authored-By: Samveen <samveen@samveen.in>
2026-05-07 19:16:47 -03:00
Vinícius Ferrão ab86139959 Support configurable ISC OMAPI TSIG policy
Add a shared OMAPI policy helper for ISC DHCP and DDNS so administrators can select the key name, signing algorithm, and omshell path from the site table while preserving the existing xcat_key hmac-md5 default.

Keep local ISC updates from hanging indefinitely when omshell does not exit, and use a static host-declaration fallback for local Ubuntu ISC releases where omshell is unstable for xCAT host updates.

Co-authored-by: gskouson <1507929+gskouson@users.noreply.github.com>
2026-05-07 03:57:10 -03:00
Vinícius Ferrão 911c74fda6 fix: use runtime require for xCAT::DHCP::Backend in dhcpop
The xCAT-server build-readme script runs every tool in share/xcat/tools/
with --help during RPM packaging. At build time perl-xCAT is not installed,
so the compile-time 'use xCAT::DHCP::Backend' aborts before --help can run.

Switch to runtime require inside the remove-operation branch where the
module is actually needed.
2026-05-06 02:55:11 -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
Vinícius Ferrão 714c0785b6 Preserve OPAL conf-file handling for Kea 2026-04-23 19:19:29 -03:00
Vinícius Ferrão 8399d88509 Address Perl quality findings 2026-04-23 03:04:37 -03:00
Vinícius Ferrão 6f3d9bb9d1 Add Kea DHCP backend 2026-04-23 02:01:33 -03:00
Markus Hilger f42011a493 Unify shebang lines 2024-05-07 16:43:07 +02:00
Markus Hilger 2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Samveen 3c0e09a116 Add workaround for sles-15 in go-xcat 2023-05-19 10:20:32 +05:30
Mark Gurevich b35fc1b0e7 go-xcat should not use available option 2023-03-02 14:12:43 -05:00
Mark Gurevich 1c0fc47c8a Install initscripts RPM during xCAT install(2) 2023-01-31 09:04:40 -05:00
Mark Gurevich a886e8c480 Enable go-xcat to insall xCAT on Alma Linux 2023-01-19 13:11:41 -05:00
Mark Gurevich af7264f1ba Bump up go-xcat version number 2022-12-07 11:12:25 -05:00
Mark Gurevich 8e6e151151 Installing xCAT on EL9 display message that EPEL and CRB repos are needed 2022-12-07 10:49:18 -05:00
Mark Gurevich 55e4078768 Install initscripts during xCAT go-install 2022-11-01 15:13:17 -04:00
Mark Gurevich 71d3b76881 Check SUSE-brand file on SLES 2022-08-15 10:16:22 -04:00
Mark Gurevich 14f45f9ba7 Removing jenkins files 2022-05-25 13:27:28 -04:00
Mark Gurevich 77a1971d99 Sync up xcatjktest 2022-05-24 08:49:41 -04:00
Mark Gurevich 890aa93bd1 Support Rocky Linux on service nodes 2021-07-27 10:07:01 -04:00
Wai Yee Wong 49e8af7fd7 Bump up the version number, update the copyright year and a new entry for the changes made 2021-07-08 17:29:55 -04:00
Wai Yee Wong f7feaf6005 Keep finding better wording 2021-07-08 16:36:53 -04:00
Wai Yee Wong 954e12596d Add a few spaces on two comments 2021-07-08 15:26:48 -04:00
Wai Yee Wong c5df142660 Catch another minor problem on comments 2021-07-08 15:25:12 -04:00
Wai Yee Wong 75505349dc Adjust spacing for a few comments 2021-07-08 15:15:49 -04:00
Wai Yee Wong c2523b7a41 Fix the repoquery parameters 2021-07-08 15:11:19 -04:00
Wai Yee Wong 973612103c Additional changes on comments 2021-07-08 14:56:52 -04:00
Wai Yee Wong bacde95f37 Add back #!/bin/bash on Line 1 2021-07-08 14:36:46 -04:00
Wai Yee Wong 8c194d812a go-xcat provides correct versions of packages to be installed 2021-07-08 14:33:36 -04:00
Mark Gurevich 9c13a7712f Add Oracle Linux to go-xcat 2021-05-07 13:19:39 -04:00
Mark Gurevich d2ebc7ea00 Improve xCAT uninstall on Ubuntu 2021-02-24 11:56:51 -05:00
Mark Gurevich 465a4c90dc Add debug to xCAT-probe rpm installation 2020-07-14 15:28:02 -04:00
Mark Gurevich bb09d801df Enable clusterstatus xcatprobe on Perl 5.23 2020-07-08 13:59:33 -04:00
nicmays ce92aab9e3 updated the file header and version number with the enhancement, added an example to the examples section. 2020-05-07 12:17:41 -04:00
nicmays e0469145eb redacting the if statement for -x specifications. 2020-05-05 17:23:28 -04:00
root a2cb534bb6 Changed code to handle the stable flag inside the swtich statement where we parse the command in the main program. 2020-05-04 14:54:38 -04:00
nicmays 7bdad3e2fc Attempting to default to latest if stable is specified in the main program versus the function calls. 2020-05-04 12:57:54 -04:00
nicmays 9b99c07d0d added some tracing. 2020-05-04 12:09:17 -04:00
nicmays 573966c850 handled an edge case to treat a 'stable' flag as a latest flag in a cmd call go-xcat install --xcat-version=stable. 2020-04-30 16:21:55 -04:00
Mark Gurevich 774ce0a194 stderr messages to discard 2020-04-01 12:29:11 -04:00
Mark Gurevich 4ce180fcb5 Throw away confusing zypper message 2020-03-31 14:25:31 -04:00
Mark Gurevich a1ad50c94b Do not hide output of apt-key add 2020-03-24 10:27:41 -04:00
Mark Gurevich 4ed604ffb0 Install repoquery for go-xcat testcases 2020-02-28 09:59:07 -05:00
Mark Gurevich d303380054 Display packages and version before go-xcat install 2019-11-05 15:30:24 -05:00
Mark Gurevich 616e2e4d12 Better message for Ubuntu uninstall 2019-10-23 17:32:15 -04:00
Mark Gurevich 3c2b70a104 Remove comments that kits were removed 2019-10-03 15:09:24 -04:00
Mark Gurevich 4eef7d6987 Revert "Remove kits from Ubuntu and go-xcat"
This reverts commit 7c9d6a56f0.
2019-10-03 11:28:51 -04:00
Mark Gurevich aab82ca633 Remove conserver-xcat during uninstall 2019-08-15 10:19:13 -04:00
Mark Gurevich ab86aa4402 Add xCAT-buildkit to go-xcat uninstall list 2019-08-12 14:38:45 -04:00