From 38194af791c2a275c314f8c2bc9b3d9d7dc5894a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 26 Jul 2019 14:45:26 -0400 Subject: [PATCH 01/17] Implement HMAC-SHA256 in xCAT IPMI This will be compatible with some current implementations that do not have SHA-1. HMAC-SHA1 may be still secure, but SHA1 in any context *looks* bad even if it isn't. --- xCAT-server/lib/perl/xCAT/IPMI.pm | 52 +++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/IPMI.pm b/xCAT-server/lib/perl/xCAT/IPMI.pm index 76810de402..5f025a942f 100644 --- a/xCAT-server/lib/perl/xCAT/IPMI.pm +++ b/xCAT-server/lib/perl/xCAT/IPMI.pm @@ -55,7 +55,7 @@ my $ipmi2support; if (-f "/etc/debian_release" or -f "/etc/debian_version") { $ipmi2support = eval { require Digest::SHA; - Digest::SHA->import(qw/sha1/); + Digest::SHA->import(qw/sha1 hmac_sha256/); require Digest::HMAC_SHA1; Digest::HMAC_SHA1->import(qw/hmac_sha1/); 1; @@ -63,8 +63,8 @@ if (-f "/etc/debian_release" or -f "/etc/debian_version") { } else { $ipmi2support = eval { - require Digest::SHA1; - Digest::SHA1->import(qw/sha1/); + require Digest::SHA; + Digest::SHA->import(qw/sha1 hmac_sha256/); require Digest::HMAC_SHA1; Digest::HMAC_SHA1->import(qw/hmac_sha1/); 1; @@ -455,12 +455,26 @@ sub open_rmcpplus_request { $self->{sidm} = \@sidbytes; unless ($self->{rmcptag}) { $self->{rmcptag} = 1; } $self->{rmcptag} += 1; - my @payload = ($self->{rmcptag}, #message tag, + my @payload; + if ($self->{attempthash} == 256) { + $self->{hshfn} = \&hmac_sha256; + $self->{hshln} = 16; + @payload = ($self->{rmcptag}, #message tag, + 0, #requested privilege role, 0 is highest allowed + 0, 0, #reserved + @sidbytes, + 0, 0, 0, 8, 3, 0, 0, 0, #table 13-17, request sha256 + 1, 0, 0, 8, 4, 0, 0, 0); #sha256 integrity + } else { + $self->{hshfn} = \&hmac_sha1; + $self->{hshln} = 12; + @payload = ($self->{rmcptag}, #message tag, 0, #requested privilege role, 0 is highest allowed 0, 0, #reserved @sidbytes, 0, 0, 0, 8, 1, 0, 0, 0, #table 13-17, request sha 1, 0, 0, 8, 1, 0, 0, 0); #sha integrity + } push @payload, (2, 0, 0, 8, 1, 0, 0, 0); # aes $self->{sessionestablishmentcontext} = STATE_OPENSESSION; $self->sendpayload(payload => \@payload, type => $payload_types{'rmcpplusopenreq'}); @@ -696,9 +710,9 @@ sub handle_ipmi_packet { } splice(@rsp, 0, 4); #ditch the rmcp header - my @authcode = splice(@rsp, -12); #strip away authcode and remember it - my @expectedcode = unpack("C*", hmac_sha1(pack("C*", @rsp), $self->{k1})); - splice(@expectedcode, 12); + my @authcode = splice(@rsp, 0-$self->{hshln}); #strip away authcode and remember it + my @expectedcode = unpack("C*", $self->{hshfn}->(pack("C*", @rsp), $self->{k1})); + splice(@expectedcode, $self->{hshln}); foreach (@expectedcode) { unless ($_ == shift @authcode) { return 3; #authcode bad, pretend it never existed @@ -768,6 +782,11 @@ sub got_rmcp_response { } $byte = shift @data; unless ($byte == 0x00) { + if ($self->{attempthash} == 256) { + $self->{attempthash} = 1; + $self->open_rmcpplus_request(); + return 9; + } if ($rmcp_codes{$byte}) { $self->{onlogon}->("ERROR: " . $rmcp_codes{$byte}, $self->{onlogon_args}); #TODO: errors } else { @@ -799,7 +818,7 @@ sub send_rakp3 { $self->{rmcptag} += 1; my @payload = ($self->{rmcptag}, 0, 0, 0, @{ $self->{pendingsessionid} }); my @user = unpack("C*", $self->{userid}); - push @payload, unpack("C*", hmac_sha1(pack("C*", @{ $self->{remoterandomnumber} }, @{ $self->{sidm} }, $self->{privlevel}, scalar @user, @user), $self->{password})); + push @payload, unpack("C*", $self->{hshfn}->(pack("C*", @{ $self->{remoterandomnumber} }, @{ $self->{sidm} }, $self->{privlevel}, scalar @user, @user), $self->{password})); $self->sendpayload(payload => \@payload, type => $payload_types{'rakp3'}); } @@ -823,6 +842,7 @@ sub send_rakp1 { sub init { my $self = shift; + $self->{attempthash} = 256; $self->{confalgo} = undef; $self->{integrityalgo} = undef; $self->{sessionestablishmentcontext} = 0; @@ -902,8 +922,8 @@ sub got_rakp4 { return 9; } splice @data, 0, 6; #discard reserved bytes and session id - my @expectauthcode = unpack("C*", hmac_sha1(pack("C*", @{ $self->{randomnumber} }, @{ $self->{pendingsessionid} }, @{ $self->{remoteguid} }), $self->{sik})); - foreach (@expectauthcode[ 0 .. 11 ]) { + my @expectauthcode = unpack("C*", $self->{hshfn}->(pack("C*", @{ $self->{randomnumber} }, @{ $self->{pendingsessionid} }, @{ $self->{remoteguid} }), $self->{sik})); + foreach (@expectauthcode[ 0 .. ($self->{hshln} - 1) ]) { unless ($_ == (shift @data)) { #we'll just ignore this transgression...... *this time* @@ -973,7 +993,7 @@ sub got_rakp2 { my @user = unpack("C*", $self->{userid}); my $ulength = scalar @user; my $hmacdata = pack("C*", (@{ $self->{sidm} }, @{ $self->{pendingsessionid} }, @{ $self->{randomnumber} }, @{ $self->{remoterandomnumber} }, @{ $self->{remoteguid} }, $self->{privlevel}, $ulength, @user)); - my @expectedhash = (unpack("C*", hmac_sha1($hmacdata, $self->{password}))); + my @expectedhash = (unpack("C*", $self->{hshfn}->($hmacdata, $self->{password}))); foreach (0 .. (scalar(@expectedhash) - 1)) { if ($expectedhash[$_] != $data[$_]) { $self->{sessionestablishmentcontext} = STATE_FAILED; @@ -981,9 +1001,9 @@ sub got_rakp2 { return 9; } } - $self->{sik} = hmac_sha1(pack("C*", @{ $self->{randomnumber} }, @{ $self->{remoterandomnumber} }, $self->{privlevel}, $ulength, @user), $self->{password}); - $self->{k1} = hmac_sha1(pack("C*", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), $self->{sik}); - $self->{k2} = hmac_sha1(pack("C*", 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), $self->{sik}); + $self->{sik} = $self->{hshfn}->(pack("C*", @{ $self->{randomnumber} }, @{ $self->{remoterandomnumber} }, $self->{privlevel}, $ulength, @user), $self->{password}); + $self->{k1} = $self->{hshfn}->(pack("C*", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), $self->{sik}); + $self->{k2} = $self->{hshfn}->(pack("C*", 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2), $self->{sik}); my @aeskey = unpack("C*", $self->{k2}); $self->{aeskey} = pack("C*", (splice @aeskey, 0, 16)); $self->{sessionestablishmentcontext} = STATE_EXPECTINGRAKP4; @@ -1129,8 +1149,8 @@ sub sendpayload { push @msg, 7; push @integdata, 7; my $intdata = pack("C*", @integdata); - my @acode = unpack("C*", hmac_sha1($intdata, $self->{k1})); - push @msg, splice @acode, 0, 12; + my @acode = unpack("C*", $self->{hshfn}->($intdata, $self->{k1})); + push @msg, splice @acode, 0, $self->{hshln}; #push integrity pad #push @msg,0x7; #reserved byte in 2.0 From 657a1b61222f5cbd8c286c6333d4d1c8dd4de8a0 Mon Sep 17 00:00:00 2001 From: Tobias Pape Date: Thu, 12 Nov 2020 16:10:07 +0100 Subject: [PATCH 02/17] Add vlan to networks documentation Apparently the doc was contributed some time ago and is live (https://xcat-docs.readthedocs.io/en/stable/advanced/networks/vlan/index.html) but not referenced in the toc for networking (https://xcat-docs.readthedocs.io/en/stable/advanced/networks/index.html) --- docs/source/advanced/networks/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/advanced/networks/index.rst b/docs/source/advanced/networks/index.rst index fd503fe0e8..83e6c7a9ec 100644 --- a/docs/source/advanced/networks/index.rst +++ b/docs/source/advanced/networks/index.rst @@ -7,5 +7,6 @@ Networking ethernet_switches/index.rst onie_switches/index.rst switchdiscover/index.rst + vlan/index.rst infiniband/index.rst getadapter.rst From 3c0e09a116080cf91016496dbe2e78ed68c70ef6 Mon Sep 17 00:00:00 2001 From: Samveen Date: Fri, 19 May 2023 10:20:32 +0530 Subject: [PATCH 03/17] Add workaround for sles-15 in go-xcat --- xCAT-server/share/xcat/tools/go-xcat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-server/share/xcat/tools/go-xcat b/xCAT-server/share/xcat/tools/go-xcat index 8f88447fbe..27dc11e3be 100755 --- a/xCAT-server/share/xcat/tools/go-xcat +++ b/xCAT-server/share/xcat/tools/go-xcat @@ -1741,6 +1741,15 @@ function github_issue_5503_workaround() return 0 } +# Workaround for SLES 15 deprecating old initscript commands +function github_issue_6525_workaround() +{ + [[ "${GO_XCAT_LINUX_DISTRO}" = "sles" ]] || return 0 + [[ "${GO_XCAT_LINUX_VERSION}" =~ ^15 ]] || return 0 + zypper install net-tools-deprecated insserv-compat + return 0 +} + # Check for EPEL and CRB repositories when installing on RH family of OSes function el9_epel_and_crb_check() { @@ -1794,6 +1803,7 @@ function install_packages_zypper() { type zypper >/dev/null 2>&1 || return 255 github_issue_5503_workaround + github_issue_6525_workaround local -a yes=() [[ "$1" = "-y" ]] && yes=("-n") && shift zypper --no-gpg-checks "${yes[@]}" install --force-resolution "$@" From 6bbabb551eee07163fa318365058c3fd3f27fc70 Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Thu, 27 Jul 2023 13:54:25 -0700 Subject: [PATCH 04/17] retab --- xCAT-genesis-scripts/usr/bin/dodiscovery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-genesis-scripts/usr/bin/dodiscovery b/xCAT-genesis-scripts/usr/bin/dodiscovery index 1afa958f0a..79ac717f79 100755 --- a/xCAT-genesis-scripts/usr/bin/dodiscovery +++ b/xCAT-genesis-scripts/usr/bin/dodiscovery @@ -94,7 +94,7 @@ if [ -r /sys/devices/virtual/dmi/id/product_name ]; then #x86 if [ -z "$MTM" ]; then FRU=`ipmitool fru print 0` if [ $? -eq 0 ]; then - MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n=="NONE") {n=$2}} END {print m":"n}'` + MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n=="NONE") {n=$2}} END {print m":"n}'` fi if [ -z "$MTM" -o "$MTM" == ":" ]; then logger -s -t $log_label -p local4.warning "Couldn't find MTM information in FRU, falling back to DMI (MTMS-based discovery may fail)" @@ -267,7 +267,7 @@ for dev in `ip link|grep -B1 ether|grep UP|awk '{print $2}'|sed -e s/://|grep -v if [[ ! -z "$myport" && ! "$myport" =~ "Agent instance for device not found" ]]; then echo " $myport" >> /tmp/discopacket fi - + echo "" >> /tmp/discopacket done if [ "$UUID" == "unknown" ]; then From 7e4f11119d3c2d1748fcf55b7e3969adb874ab0e Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Thu, 27 Jul 2023 14:07:40 -0700 Subject: [PATCH 05/17] fix FRU parsing when empty values are provided --- xCAT-genesis-scripts/usr/bin/dodiscovery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/usr/bin/dodiscovery b/xCAT-genesis-scripts/usr/bin/dodiscovery index 79ac717f79..0afb4f1b1e 100755 --- a/xCAT-genesis-scripts/usr/bin/dodiscovery +++ b/xCAT-genesis-scripts/usr/bin/dodiscovery @@ -94,7 +94,7 @@ if [ -r /sys/devices/virtual/dmi/id/product_name ]; then #x86 if [ -z "$MTM" ]; then FRU=`ipmitool fru print 0` if [ $? -eq 0 ]; then - MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n=="NONE") {n=$2}} END {print m":"n}'` + MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n~/ +/||n=="NONE") {n=$2}} END {print m":"n}'` fi if [ -z "$MTM" -o "$MTM" == ":" ]; then logger -s -t $log_label -p local4.warning "Couldn't find MTM information in FRU, falling back to DMI (MTMS-based discovery may fail)" From 7f7d7db591cca329387b404751f49866dc90b99d Mon Sep 17 00:00:00 2001 From: Kilian Cavalotti Date: Mon, 11 Dec 2023 14:50:10 -0800 Subject: [PATCH 06/17] use \s to handle all types of whitespace --- xCAT-genesis-scripts/usr/bin/dodiscovery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/usr/bin/dodiscovery b/xCAT-genesis-scripts/usr/bin/dodiscovery index 0afb4f1b1e..a59a05d96a 100755 --- a/xCAT-genesis-scripts/usr/bin/dodiscovery +++ b/xCAT-genesis-scripts/usr/bin/dodiscovery @@ -94,7 +94,7 @@ if [ -r /sys/devices/virtual/dmi/id/product_name ]; then #x86 if [ -z "$MTM" ]; then FRU=`ipmitool fru print 0` if [ $? -eq 0 ]; then - MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n~/ +/||n=="NONE") {n=$2}} END {print m":"n}'` + MTM=`echo "$FRU" | awk -F': ' '/Product Manufacturer/ {m=$2} /Product Name|Product Part Number/ {if (n==""||n~/\s+/||n=="NONE") {n=$2}} END {print m":"n}'` fi if [ -z "$MTM" -o "$MTM" == ":" ]; then logger -s -t $log_label -p local4.warning "Couldn't find MTM information in FRU, falling back to DMI (MTMS-based discovery may fail)" From 1783d53bb1d29c518ba7487d90ec4374b5cbf80a Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sat, 10 Feb 2024 03:11:16 +0100 Subject: [PATCH 07/17] Add osimage symlinks for EL9 distros --- xCAT-server/share/xcat/install/alma/compute.alma9.pkglist | 1 + xCAT-server/share/xcat/install/alma/compute.alma9.tmpl | 1 + xCAT-server/share/xcat/install/alma/service.alma9.pkglist | 1 + xCAT-server/share/xcat/install/alma/service.alma9.tmpl | 1 + .../xcat/install/alma/service.alma9.x86_64.otherpkgs.pkglist | 1 + xCAT-server/share/xcat/install/ol/compute.ol9.pkglist | 1 + xCAT-server/share/xcat/install/ol/compute.ol9.tmpl | 1 + xCAT-server/share/xcat/install/ol/service.ol9.pkglist | 1 + xCAT-server/share/xcat/install/ol/service.ol9.tmpl | 1 + .../share/xcat/install/ol/service.ol9.x86_64.otherpkgs.pkglist | 1 + xCAT-server/share/xcat/install/rocky/compute.rocky9.pkglist | 1 + xCAT-server/share/xcat/install/rocky/compute.rocky9.tmpl | 1 + xCAT-server/share/xcat/install/rocky/service.rocky9.pkglist | 1 + xCAT-server/share/xcat/install/rocky/service.rocky9.tmpl | 1 + .../xcat/install/rocky/service.rocky9.x86_64.otherpkgs.pkglist | 1 + xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.exlist | 1 + xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.pkglist | 1 + .../share/xcat/netboot/alma/compute.alma9.x86_64.postinstall | 1 + xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.exlist | 1 + .../xcat/netboot/alma/service.alma9.x86_64.otherpkgs.pkglist | 1 + xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.pkglist | 1 + .../share/xcat/netboot/alma/service.alma9.x86_64.postinstall | 1 + xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.exlist | 1 + xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.pkglist | 1 + xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.postinstall | 1 + xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.exlist | 1 + .../share/xcat/netboot/ol/service.ol9.x86_64.otherpkgs.pkglist | 1 + xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.pkglist | 1 + xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.postinstall | 1 + .../share/xcat/netboot/rocky/compute.rocky9.x86_64.exlist | 1 + .../share/xcat/netboot/rocky/compute.rocky9.x86_64.pkglist | 1 + .../share/xcat/netboot/rocky/compute.rocky9.x86_64.postinstall | 1 + .../share/xcat/netboot/rocky/service.rocky9.x86_64.exlist | 1 + .../xcat/netboot/rocky/service.rocky9.x86_64.otherpkgs.pkglist | 1 + .../share/xcat/netboot/rocky/service.rocky9.x86_64.pkglist | 1 + .../share/xcat/netboot/rocky/service.rocky9.x86_64.postinstall | 1 + 36 files changed, 36 insertions(+) create mode 120000 xCAT-server/share/xcat/install/alma/compute.alma9.pkglist create mode 120000 xCAT-server/share/xcat/install/alma/compute.alma9.tmpl create mode 120000 xCAT-server/share/xcat/install/alma/service.alma9.pkglist create mode 120000 xCAT-server/share/xcat/install/alma/service.alma9.tmpl create mode 120000 xCAT-server/share/xcat/install/alma/service.alma9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/install/ol/compute.ol9.pkglist create mode 120000 xCAT-server/share/xcat/install/ol/compute.ol9.tmpl create mode 120000 xCAT-server/share/xcat/install/ol/service.ol9.pkglist create mode 120000 xCAT-server/share/xcat/install/ol/service.ol9.tmpl create mode 120000 xCAT-server/share/xcat/install/ol/service.ol9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/install/rocky/compute.rocky9.pkglist create mode 120000 xCAT-server/share/xcat/install/rocky/compute.rocky9.tmpl create mode 120000 xCAT-server/share/xcat/install/rocky/service.rocky9.pkglist create mode 120000 xCAT-server/share/xcat/install/rocky/service.rocky9.tmpl create mode 120000 xCAT-server/share/xcat/install/rocky/service.rocky9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.otherpkgs.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.postinstall diff --git a/xCAT-server/share/xcat/install/alma/compute.alma9.pkglist b/xCAT-server/share/xcat/install/alma/compute.alma9.pkglist new file mode 120000 index 0000000000..e2131ffe21 --- /dev/null +++ b/xCAT-server/share/xcat/install/alma/compute.alma9.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/alma/compute.alma9.tmpl b/xCAT-server/share/xcat/install/alma/compute.alma9.tmpl new file mode 120000 index 0000000000..6d26112840 --- /dev/null +++ b/xCAT-server/share/xcat/install/alma/compute.alma9.tmpl @@ -0,0 +1 @@ +../rh/compute.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/alma/service.alma9.pkglist b/xCAT-server/share/xcat/install/alma/service.alma9.pkglist new file mode 120000 index 0000000000..4c28bda11f --- /dev/null +++ b/xCAT-server/share/xcat/install/alma/service.alma9.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/alma/service.alma9.tmpl b/xCAT-server/share/xcat/install/alma/service.alma9.tmpl new file mode 120000 index 0000000000..9b9bff784a --- /dev/null +++ b/xCAT-server/share/xcat/install/alma/service.alma9.tmpl @@ -0,0 +1 @@ +../rh/service.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/alma/service.alma9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/install/alma/service.alma9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/install/alma/service.alma9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ol/compute.ol9.pkglist b/xCAT-server/share/xcat/install/ol/compute.ol9.pkglist new file mode 120000 index 0000000000..e2131ffe21 --- /dev/null +++ b/xCAT-server/share/xcat/install/ol/compute.ol9.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ol/compute.ol9.tmpl b/xCAT-server/share/xcat/install/ol/compute.ol9.tmpl new file mode 120000 index 0000000000..6d26112840 --- /dev/null +++ b/xCAT-server/share/xcat/install/ol/compute.ol9.tmpl @@ -0,0 +1 @@ +../rh/compute.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ol/service.ol9.pkglist b/xCAT-server/share/xcat/install/ol/service.ol9.pkglist new file mode 120000 index 0000000000..4c28bda11f --- /dev/null +++ b/xCAT-server/share/xcat/install/ol/service.ol9.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ol/service.ol9.tmpl b/xCAT-server/share/xcat/install/ol/service.ol9.tmpl new file mode 120000 index 0000000000..9b9bff784a --- /dev/null +++ b/xCAT-server/share/xcat/install/ol/service.ol9.tmpl @@ -0,0 +1 @@ +../rh/service.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/ol/service.ol9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/install/ol/service.ol9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/install/ol/service.ol9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/rocky/compute.rocky9.pkglist b/xCAT-server/share/xcat/install/rocky/compute.rocky9.pkglist new file mode 120000 index 0000000000..e2131ffe21 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.rocky9.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/rocky/compute.rocky9.tmpl b/xCAT-server/share/xcat/install/rocky/compute.rocky9.tmpl new file mode 120000 index 0000000000..6d26112840 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.rocky9.tmpl @@ -0,0 +1 @@ +../rh/compute.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/rocky/service.rocky9.pkglist b/xCAT-server/share/xcat/install/rocky/service.rocky9.pkglist new file mode 120000 index 0000000000..4c28bda11f --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/service.rocky9.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/rocky/service.rocky9.tmpl b/xCAT-server/share/xcat/install/rocky/service.rocky9.tmpl new file mode 120000 index 0000000000..9b9bff784a --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/service.rocky9.tmpl @@ -0,0 +1 @@ +../rh/service.rhels9.tmpl \ No newline at end of file diff --git a/xCAT-server/share/xcat/install/rocky/service.rocky9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/install/rocky/service.rocky9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/service.rocky9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.exlist b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.exlist new file mode 120000 index 0000000000..350fe0ca1d --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.exlist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.pkglist new file mode 120000 index 0000000000..757a605636 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.postinstall new file mode 120000 index 0000000000..b8c4b83f97 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/compute.alma9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.exlist b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.exlist new file mode 120000 index 0000000000..d4d45eec77 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.exlist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.pkglist new file mode 120000 index 0000000000..8b2b675cb4 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.postinstall new file mode 120000 index 0000000000..40882ade98 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/alma/service.alma9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.exlist b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.exlist new file mode 120000 index 0000000000..350fe0ca1d --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.exlist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.pkglist new file mode 120000 index 0000000000..757a605636 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.postinstall new file mode 120000 index 0000000000..b8c4b83f97 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/compute.ol9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.exlist b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.exlist new file mode 120000 index 0000000000..d4d45eec77 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.exlist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.pkglist new file mode 120000 index 0000000000..8b2b675cb4 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.postinstall new file mode 120000 index 0000000000..40882ade98 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/ol/service.ol9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.exlist b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.exlist new file mode 120000 index 0000000000..350fe0ca1d --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.exlist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.pkglist new file mode 120000 index 0000000000..757a605636 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.postinstall new file mode 120000 index 0000000000..b8c4b83f97 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/compute.rhels9.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.exlist b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.exlist new file mode 120000 index 0000000000..d4d45eec77 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.exlist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.otherpkgs.pkglist new file mode 120000 index 0000000000..722b927e10 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.otherpkgs.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.otherpkgs.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.pkglist b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.pkglist new file mode 120000 index 0000000000..8b2b675cb4 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.pkglist @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.postinstall b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.postinstall new file mode 120000 index 0000000000..40882ade98 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/service.rocky9.x86_64.postinstall @@ -0,0 +1 @@ +../rh/service.rhels9.x86_64.postinstall \ No newline at end of file From 546f14032a3bfe3980b0688132fa6df49b2c14e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Obih=C3=B6rnchen?= Date: Sat, 10 Feb 2024 19:25:24 +0100 Subject: [PATCH 08/17] Fix node16 deprecation warning --- .github/workflows/xcat_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xcat_test.yml b/.github/workflows/xcat_test.yml index 4f432e5f6d..1de9e6c939 100644 --- a/.github/workflows/xcat_test.yml +++ b/.github/workflows/xcat_test.yml @@ -4,6 +4,6 @@ jobs: xcat_pr_test: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: sudo apt-get install -y fakeroot reprepro devscripts debhelper libcapture-tiny-perl libjson-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common - run: perl github_action_xcat_test.pl From 7fc363b99ecbccac301af95f25ea70e505f31933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Obih=C3=B6rnchen?= Date: Sat, 10 Feb 2024 20:49:22 +0100 Subject: [PATCH 09/17] Add a 60 min default timeout to xcat_test Looks like this actions hangs from time to time. Let's use a reasonable default to get faster failing messages. --- .github/workflows/xcat_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/xcat_test.yml b/.github/workflows/xcat_test.yml index 1de9e6c939..c8a783f3c0 100644 --- a/.github/workflows/xcat_test.yml +++ b/.github/workflows/xcat_test.yml @@ -3,6 +3,7 @@ on: [pull_request, workflow_dispatch] jobs: xcat_pr_test: runs-on: ubuntu-20.04 + timeout-minutes: 60 steps: - uses: actions/checkout@v4 - run: sudo apt-get install -y fakeroot reprepro devscripts debhelper libcapture-tiny-perl libjson-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common From 32c4a9cfbe78ff4f6b8896cc65cfa57a9a8bf6f4 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sun, 11 Feb 2024 22:16:17 +0100 Subject: [PATCH 10/17] Remove redundant makedhcp_n_linux test case from CI pipeline makedhcp_n_linux is the same as makedhcp_n. It doesn't make sense to run both test cases. --- xCAT-test/autotest/testcase/makedhcp/cases0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/makedhcp/cases0 b/xCAT-test/autotest/testcase/makedhcp/cases0 index 2e4661a85d..9566ab1a54 100644 --- a/xCAT-test/autotest/testcase/makedhcp/cases0 +++ b/xCAT-test/autotest/testcase/makedhcp/cases0 @@ -34,7 +34,7 @@ end start:makedhcp_n_linux description:Create a new dhcp configuration file with a network statement for each network the dhcp daemon should listen on -label:others,ci_test +label:others os:Linux cmd:if [ -f "/etc/dhcp/dhcpd.conf" ];then cp -f /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak ; elif [ -f "/etc/dhcpd.conf" ]; then cp -f /etc/dhcpd.conf /etc/dhcpd.conf.bak; fi cmd:makedhcp -n From 93cab1e36604a20f0ef956dcac268e87b4752815 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sun, 11 Feb 2024 23:03:41 +0100 Subject: [PATCH 11/17] Add step names --- .github/workflows/xcat_test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/xcat_test.yml b/.github/workflows/xcat_test.yml index c8a783f3c0..f7bf5a1f6a 100644 --- a/.github/workflows/xcat_test.yml +++ b/.github/workflows/xcat_test.yml @@ -6,5 +6,7 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v4 - - run: sudo apt-get install -y fakeroot reprepro devscripts debhelper libcapture-tiny-perl libjson-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common - - run: perl github_action_xcat_test.pl + - name: Install dependencies + run: sudo apt-get install -y fakeroot reprepro devscripts debhelper libcapture-tiny-perl libjson-perl libsoap-lite-perl libdbi-perl libcgi-pm-perl quilt openssh-server dpkg looptools genometools software-properties-common + - name: Run tests + run: perl github_action_xcat_test.pl From d4423121a182388c0e8ed3354156a262a5d8b8c7 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sun, 11 Feb 2024 22:35:56 +0100 Subject: [PATCH 12/17] Add Ubuntu Jammy (22.04) build support --- build-ubunturepo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-ubunturepo b/build-ubunturepo index dd30b3a9f8..035e9d5b1e 100755 --- a/build-ubunturepo +++ b/build-ubunturepo @@ -105,7 +105,7 @@ for package in ${packages[@]}; do done # Supported distributions -dists="saucy trusty utopic xenial bionic focal" +dists="saucy trusty utopic xenial bionic focal jammy" c_flag= # xcat-core (trunk-delvel) path d_flag= # xcat-dep (trunk) path From 23a1dc096d0697ed6630c9a0813739bfb00cfa91 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Sat, 10 Feb 2024 05:38:01 +0100 Subject: [PATCH 13/17] Add more disk infos for copycds --- perl-xCAT/xCAT/data/discinfo.pm | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/perl-xCAT/xCAT/data/discinfo.pm b/perl-xCAT/xCAT/data/discinfo.pm index 0488f3faaf..a99a2870d6 100755 --- a/perl-xCAT/xCAT/data/discinfo.pm +++ b/perl-xCAT/xCAT/data/discinfo.pm @@ -14,13 +14,34 @@ require Exporter; use strict; our %distnames = ( + "1699649961.901830" => "alma9.3", #x86_64 + "1683740561.481881" => "alma9.2", #x86_64 + "1668611652.293224" => "alma9.1", #x86_64 + "1653492552.897374" => "alma9.0", #x86_64 + "1700507279.498559" => "alma8.9", #x86_64 + "1684368711.170717" => "alma8.8", #x86_64 + "1668064303.058266" => "alma8.7", #x86_64 + "1652294731.711015" => "alma8.6", #x86_64 + "1636648892.129507" => "alma8.5", #x86_64 + "1622014558.977612" => "alma8.4", #x86_64 + "1616719527.545010" => "alma8.3", #x86_64 + + "1699827798.672747" => "rocky9.3", #x86_64 + "1683907016.7470503" => "rocky9.2", #x86_64 + "1669255400.517928" => "rocky9.1", #x86_64 + "1657031221.5900638" => "rocky9.0", #x86_64 + "1700593425.194997" => "rocky8.9", #x86_64 "1684366557.751811" => "rocky8.8", #x86_64 "1668116088.755845" => "rocky8.7", #x86_64 "1652648703.486923" => "rocky8.6", #x86_64 "1636882174.934804" => "rocky8.5", #x86_64 "1624205633.869423" => "rocky8.4", #x86_64 + "1619847935.413219" => "rocky8.3", #x86_64 + + "1636765473.891280" => "centos8.5", #x86_64 "1578087695.538488" => "centos8.1", #x86_64 "1578087695.537220" => "centos8.1", #ppc64le + "1603728831.612616" => "centos7.9", #x86_64 "1480943823.812754" => "centos7.3", #x86_64 "1450147276.351714" => "centos7.2", #ppc64le "1449699925.561114" => "centos7.2", #x86_64 @@ -103,6 +124,20 @@ our %distnames = ( "1446216863.790260" => "rhels7.2", #x86_64 "1446216863.764721" => "rhels7.2", #ppc64 "1446216863.771788" => "rhels7.2", #ppc64le + "1554367054.162671" => "rhels8.0", #x86_64 + "1571146135.637073" => "rhels8.1", #x86_64 + "1585988230.312698" => "rhels8.2", #x86_64 + "1602239874.439561" => "rhels8.3", #x86_64 + "1620069559.055704" => "rhels8.4", #x86_64 + "1634111543.317017" => "rhels8.5", #x86_64 + "1650472728.682141" => "rhels8.6", #x86_64 + "1665640879.622493" => "rhels8.7", #x86_64 + "1681178617.415884" => "rhels8.8", #x86_64 + "1698675913.542581" => "rhels8.9", #x86_64 + "1673532738.064152" => "rhels9.0", #x86_64 + "1666859625.373080" => "rhels9.1", #x86_64 + "1681421276.520925" => "rhels9.2", #x86_64 + "1698234899.296206" => "rhels9.3", #x86_64 "1285193176.593806" => "rhelhpc6", #x86_64 "1305067719.718814" => "rhelhpc6.1", #x86_64 From 172678ac8744edb03818e2366dda9dd3bf8ddf9c Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 16 Jan 2023 17:35:58 +0100 Subject: [PATCH 14/17] Allow IPoIB MAC addresses for provisioning via IPoIB Examples: EFI Boot MAC address: 20:b8:ce:f6:03:00:31:33:3e OS MAC address: b8:ce:f6:31:33:3e --- xCAT-server/lib/xcat/plugins/dhcp.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index b20080960b..17a116b78f 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -610,7 +610,7 @@ sub addnode $hname = $node; } #Default to hostname equal to nodename unless ($mac) { next; } #Skip corrupt format - if ($mac !~ /^[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5,7}$|^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5,7}$/) + if ($mac !~ /^[0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5,8}$|^[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5,8}$/) { $callback->( { @@ -764,8 +764,8 @@ sub addnode $hostname = $1 . "-hf" . $count; } } - } elsif (length($mac) == 23) { # 8 bytes of mac address - # Currently the only thing that has 8 bytes is an infiniband + } elsif (length($mac) == 23 || length($mac) == 26) { # 8 or 9 bytes of mac address + # Currently the only thing that has 8 or 9 bytes is an infiniband # or infiniband like device, which is type 32 (0x20). $hardwaretype = 32; } From 3fca2a30313e524132fbc1f17be2172dc97787a5 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Thu, 20 Jul 2023 21:08:32 +0200 Subject: [PATCH 15/17] Fix dracut warnings during genimage on newer OSs --- xCAT-server/share/xcat/netboot/rh/genimage | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index a79194f235..166a382470 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -1178,8 +1178,10 @@ sub mkinitrd_dracut { print "\nchroot $rootimg_dir dracut $additional_options -f /tmp/initrd.$$.gz $kernelver\n"; + mount_chroot($rootimg_dir); !system("chroot $rootimg_dir dracut $additional_options -f /tmp/initrd.$$.gz $kernelver") - or die("Error: failed to generate the initial ramdisk for $mode.\n"); + or xdie("Error: failed to generate the initial ramdisk for $mode.\n"); + umount_chroot($rootimg_dir); print "the initial ramdisk for $mode is generated successfully.\n"; move("$rootimg_dir/tmp/initrd.$$.gz", "$destdir/initrd-$mode.gz"); } From c120fd9650204be58a7e27a50b1f8b880f91b889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Obih=C3=B6rnchen?= Date: Tue, 13 Feb 2024 01:53:36 +0100 Subject: [PATCH 16/17] Fix and improve readthedocs docu --- .readthedocs.yaml | 29 +++++++++++++++++++++++++++++ docs/README.md | 13 ++----------- docs/requirements.txt | 5 ++++- docs/source/conf.py | 12 ++++-------- 4 files changed, 39 insertions(+), 20 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000000..d9babb1531 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,29 @@ +# Read the Docs configuration file for Sphinx projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/source/conf.py + # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs + # builder: "dirhtml" + # Fail on all warnings to avoid broken references + # fail_on_warning: true + +# Optionally build your docs in additional formats such as PDF and ePub +formats: all + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/README.md b/docs/README.md index 3c105885e4..31d0383308 100644 --- a/docs/README.md +++ b/docs/README.md @@ -6,18 +6,9 @@ The xCAT docs are hosted here: https://xcat-docs.readthedocs.io/ and are written * Clone this project -* Install or update sphinx (See: https://pip.readthedocs.io/) +* Install dependencies (See: https://pip.readthedocs.io/) ``` - pip install sphinx - ``` - or - ``` - pip install sphinx --upgrade - ``` - -* Install ReadTheDocs theme - ``` - pip install sphinx_rtd_theme + pip install --user -r requirements.txt ``` * Build the Docs diff --git a/docs/requirements.txt b/docs/requirements.txt index 51dfb14bc0..51aec89ff6 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,4 @@ -docutils==0.17 +sphinx==7.2.6 +sphinx_rtd_theme==2.0.0 +docutils==0.20.1 +readthedocs-sphinx-search==0.3.2 diff --git a/docs/source/conf.py b/docs/source/conf.py index a50ed66768..4abc4abda6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -31,6 +31,7 @@ # ones. extensions = [ 'sphinx.ext.autodoc', + 'sphinx_search.extension', ] # Add any paths that contain templates here, relative to this directory. @@ -66,7 +67,7 @@ # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: @@ -144,13 +145,8 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -import os -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -if on_rtd: - html_theme = 'default' -else: - # some of the popular themes: alabaster, sphinx_rtd_theme, classic, nature - html_theme = 'sphinx_rtd_theme' +# some of the popular themes: alabaster, sphinx_rtd_theme, classic, nature +html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the From 1fe4d1ce7817c6ff7cc8ced48767f6873fa4d781 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 19 Feb 2024 19:40:50 +0100 Subject: [PATCH 17/17] Next version will be 2.17.0 --- Version | 2 +- docs/source/conf.py | 2 +- xCAT-genesis-builder/xCAT-genesis-base.spec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Version b/Version index 3c5d0106bb..d76bd2ba3e 100644 --- a/Version +++ b/Version @@ -1 +1 @@ -2.16.6 +2.17.0 diff --git a/docs/source/conf.py b/docs/source/conf.py index 4abc4abda6..d3ebd67058 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -60,7 +60,7 @@ # The short X.Y version. version = '2' # The full version, including alpha/beta/rc tags. -release = '2.16.6' +release = '2.17.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/xCAT-genesis-builder/xCAT-genesis-base.spec b/xCAT-genesis-builder/xCAT-genesis-base.spec index 3bc288fb2a..03b66047b1 100644 --- a/xCAT-genesis-builder/xCAT-genesis-base.spec +++ b/xCAT-genesis-builder/xCAT-genesis-base.spec @@ -1,4 +1,4 @@ -%global version %(rpm -q xCAT --qf "%{VERSION}" 2>/dev/null | grep -Po '[0-9\.]+' || echo "2.16.5") +%global version %(rpm -q xCAT --qf "%{VERSION}" 2>/dev/null | grep -Po '[0-9\.]+' || echo "2.17.0") Version: %{version} Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} %ifarch i386 i586 i686 x86