2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00
Commit Graph

171 Commits

Author SHA1 Message Date
Vinícius Ferrão 3825677ad4 fix(xCAT-server): declare Perl deps used only by xCAT-server code
xCAT-server.spec sets "AutoReqProv: no", so RPM does not auto-generate
dependencies from the Perl modules this package ships. Modules that are
loaded (compile-time "use") only by xCAT-server code are therefore neither
auto-required here nor pulled in transitively by perl-xCAT (which does have
AutoReqProv on and already covers SNMP, Expect, JSON, Net::Ping, Time::HiRes
and Text::Balanced). On a host without them the package installs cleanly and
the affected subcommands then fail at load time with "Can't locate <M>.pm".

Add the five that are genuinely uncovered, each a compile-time "use" in a
module shipped by xCAT-server and used nowhere in perl-xCAT:

  perl-Net-Telnet       xCAT/SSHInteract.pm        (telnet switch/console)
  perl-Net-DNS          plugins/activedirectory.pm
  perl-Crypt-CBC        xCAT/IPMI.pm               (IPMI 2.0 RMCP+ crypto)
  perl-Crypt-Rijndael   xCAT/IPMI.pm               (IPMI 2.0 RMCP+ crypto)
  perl-DB_File          Confluent/Client.pm

The Crypt::CBC / Crypt::Rijndael gap is the notable one: IPMI.pm fails to
load without them, disabling all IPMI-based hardware control on a host where
those modules are absent.

Recovered from the unmerged lenovobuild branch (Jarrod Johnson; originals
807d30d3, c2e22f6f, 792e41727), reduced to the subset that master's current
packaging does not already satisfy.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-21 14:26:17 -03:00
Daniel Hilst 419d6c262c Merge pull request #7596 from VersatusHPC/fix/issue-7593-systemd-packaging
fix: avoid sysvinit paths on systemd enabled systems
2026-07-17 21:35:45 -03:00
Vinícius Ferrão c34db2c55f fix(packaging): avoid SysV init paths in modern RPMs 2026-07-16 01:42:40 -03:00
Daniel Hilst 529c821177 fix(packaging): install-time DHCP rich dep + genesis-base out of flat core
The single flat xcat-core repo serves el8/el9/el10 from one build, but two spec
decisions were resolved at BUILD time and so were wrong for the other ELs that
share the same repo.

1. DHCP backend. xCAT.spec and xCATsn.spec selected the dhcp provider with a
   build-time %if (rhel >= 10 -> kea, else dhcpd), so an el10 build wrongly
   required kea on el8/el9 (and an el8/el9 build wrongly required dhcpd on
   el10). Replace it with an install-time RPM rich dependency:

     Requires: (kea if (system-release >= 10) else /usr/sbin/dhcpd)
     Requires: (kea-hooks if (system-release >= 10))

   dnf now resolves it per client: kea on el10+ (which dropped ISC dhcp from the
   distro), dhcpd on el8/el9. SLES has no "system-release" provide, so the
   condition is false there and it falls back to /usr/sbin/dhcpd, preserving
   prior behavior. system-release is versioned per release package
   (el10=10.x, el9=9.x, el8=8.x).

2. openssl. Make the xCAT-server openssl Requires uniform across EL (non-SUSE)
   instead of el10-only, so the produced package set does not depend on which EL
   the build host happened to be.

Also drop xCAT-genesis-base from the default @PACKAGES set in buildrpms.pl: its
initramfs bundles the build-chroot kernel/glibc and is therefore OS- and
arch-dependent, so it cannot ship in the single flat core. It is now built per
target by the xcat-dep pipeline (mockbuild-all.pl, via
`buildrpms.pl --package xCAT-genesis-base`) and ships in xcat-dep/rh<N>. The
explicit `--package xCAT-genesis-base` build path is retained.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-30 19:19:33 -03:00
Vinícius Ferrão 7897f30bfe Modernize xcatd service packaging 2026-05-04 18:13:23 -03:00
Vinícius Ferrão 88da644249 Merge pull request #7532 from VersatusHPC/fix/el10-netboot-dhcp-client
fix: use NetworkManager for EL10 netboot DHCP instead of dhclient
2026-05-04 17:20:11 +02:00
Vinícius Ferrão 1f9173f07a Fix some EL9 and EL10 provisioning gaps (#7530)
* Fix EL9 and EL10 provisioning gaps
2026-05-02 04:27:54 +02:00
Daniel Hilst Selli baa2380cd2 fix: Move dracut call to the .spec
This fixes a problem where the dracut image was pulling artifacts from
the build host and not the mock image, e.g. building for EL9 in EL10.

Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-04-14 11:15:56 -03:00
Daniel Hilst Selli 1b0deaf9af fix: Fix dhcp-client dependency failure during genimage
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2026-04-01 13:02:35 -03:00
Daniel Hilst Selli 460451cef2 fix: Fix installation warnings regarding egrep and grep
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2025-11-28 13:06:02 -03:00
Daniel Hilst Selli 786d7d93e1 fix: Fix RPM dependencies
Add initscripts as dependency and openssl if we're
building for EL10 or greater.

Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2025-11-27 18:06:33 -03:00
Mark Gurevich 32b072e35c Revert "Make sure initd files are installed with xCAT-server" 2022-11-01 15:17:34 -04:00
Mark Gurevich f2cdc7cb94 Make sure initd files are installed 2022-10-28 13:56:32 -04:00
Mark Gurevich 05bceac072 Prevent rpmbuild from checking and modifying interpreter directives 2022-08-11 13:38:26 -04:00
Mark Gurevich 4c18f63eb5 Add perl packages for building on CentOS8 (6) 2022-08-09 16:01:33 -04:00
Mark Gurevich 47c02f43f4 Support xcat-core builds on CentOS8 2022-05-12 14:38:12 -04:00
Mark Gurevich 1147726242 Support CentOS8 Stream 2021-08-31 15:54:43 -04:00
Mark Gurevich 7e635bafd9 Make xCAT-server require httpd 2021-04-07 15:23:05 -04:00
cxhong 881a8716f4 use cp -r to copy whole xcat/sample dir 2020-06-19 09:30:35 -04:00
Mark Gurevich 721c0bbc3b Spec file fix for XML::LibXML 2020-05-11 09:29:03 -04:00
Mark Gurevich fa86dd4fbb Use XML::LibXML::Simple instead of XML::Simple 2020-05-01 17:06:22 -04:00
GONG Jie 3e249fe766 Update grub2-xcat requirement 2019-05-16 17:30:32 +08:00
GONG Jie c06f1a4213 Update xCAT-server.spec to require a new version of grub2-xcat 2019-04-18 17:41:35 +08:00
Yuan Bai 95ca105635 enhancements for sle15 diskful CN deployment (#5605)
* add sle dir for copycds

* remove HPC packages from sle15 template

* copycds support ppc64le sle15

* support packages products for sle15

* create repos  for all products in sle15 Package ISO

* fix deployment status postbooting in sle15

* support sle15

* add copycds example for sle15

* generate add_on product

* polished

* adjust product_dir
2018-09-18 18:03:32 +08:00
Bin Xu 03242a3463 not generate debuginfo for xCAT-server package (#5431) 2018-07-25 15:25:08 +08:00
Bin Xu 57bc7c1f57 Add a default systemd unit file based on the auto-generated one from SysV (#5394)
* Add a default systemd unit file based on the auto-generated one from SysV

* modify the xcatd testcase when using systemd
2018-07-23 17:31:50 +08:00
chenglch 2ac315cbe2 Add default logrotate configuration for gocons
Add logrotate conf for the console log files and log
of goconserver.
2018-03-27 17:11:25 +08:00
Chuck Brazie c04433df0f Update xCAT-server.spec 2017-08-29 09:02:06 -04:00
Chuck Brazie abe6b45437 Update xCAT-server.spec 2017-08-28 08:54:30 -04:00
Chuck Brazie 98b4d2cf9f zVM changes up till April 21
Change-Id: I6c2febd8797f3874fbd8b7bd445f7ce6785155e4
2017-04-21 14:07:34 -04:00
Chuck Brazie 5bab3873a2 Add in version 1 and version 2 REST-API into zVM. Default zVM to version
1 in the zvmxcatws.cgi

Change-Id: I2ad620ded8f4f3bff997bf308881cbeabd61022b
2017-02-20 15:33:44 -05:00
Chuck Brazie 5a83bf5e63 Merge our code with global xCAT team except for xcatws.cgi
Change-Id: I945c430685fa2febd914be09f6a6f976783abeec
2017-02-02 14:31:27 -05:00
GONG Jie 65c2911888 Make all the rpm packages have the exactly same version and release numbers 2017-01-03 12:47:14 +08:00
Jarrod Johnson edb1d181e9 Provide hook for saner versioning
The traditional approach was not adequately
hooked into git.  It should do nothing by
default differently.
2016-09-28 08:43:35 -04:00
ertaozh d48f5a35fa fix issue 1005: [PCM] The issue of strong package dependency perl-HTTP-Async and perl-Net-HTTPS-NB 2016-05-04 02:55:57 -04:00
immarvin ea5933eac0 /usr/lib/lsb/remove_initd and /usr/lib/lsb/install_initd shipped in redhat-lsb-core has been a link to chkconfig in redhat7.2, whis will cause problem while enabling xcatd service after xCAT-server installation when redhat-lsb-core is installed 2016-04-29 04:48:12 -04:00
immarvin 6d38f7e3bc remove install_initd and remove_initd in spec 2016-04-29 04:25:24 -04:00
ertaozh 52a995f810 add depended pkg http-async and net-https-nb for xCAT-server 2016-03-23 01:24:05 -04:00
Victor Hu 9aed2456d3 Need to add some check in the code to remove the Juniper directory
because the symlink does not get created when we are going from an
older release to the current release where this change was made
2015-10-20 11:08:52 -04:00
linggao e5a27c8f47 changed Jun switch type to its full name Juniper 2015-06-25 16:55:09 -04:00
Victor Hu 70a1efec75 fixed incorrect day of week for 11/20/2007, causing warning when building rpm 2015-01-09 13:50:39 -05:00
daniceexi 5ebd7c1f25 add the require of perl(LWP::Protocol::https) which will be used in CIMUtils.pm in xCAT-server/xCAT-server.spec 2014-12-23 04:50:41 -05:00
ligc 7ee1498601 fix for bug 4341: xCAT needs perl-Digest-SHA1 but RHEL7 will not install perl-Digest-SHA1 by default 2014-11-12 03:40:54 -05:00
immarvin 9ba2726f83 add conf support for apache2.4 2014-10-31 02:43:22 -07:00
mellor 0b35d9edd7 defect 4335 - remove confluent.pm and kit.pm from AIX builds 2014-10-29 10:41:13 -04:00
ligc a3028511fa remove the ifnarch s390x, the ifarch/ifnarch does not work for noarch package, grub2-xcat is shipped with s390 xcat-dep 2014-10-24 03:54:08 -04:00
lissav 1ae17b155a defect 4157 2014-06-09 11:48:33 -04:00
ligc c79270ac4b a typo in the comment 2014-04-17 23:00:21 -05:00
ligc dc4a67cfe3 fix for bug 4084: AIX rpm spec does not allow %if inside %ifos 2014-04-17 22:57:41 -05:00
ligc e0bd432201 fix for bug 4084: AIX should not require grub2-xcat 2014-04-16 23:28:51 -04:00