2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-05 20:47:55 +00:00
Commit Graph

82 Commits

Author SHA1 Message Date
Vinícius Ferrão 886db49e27 fix(postscripts): disable xcatpostinit1 before running the postscripts
The generated /opt/xcat/xcatinstallpost ran the install postscripts first and
only disabled the xcatpostinit1 service afterwards.  If one of those postscripts
rebooted the node (for example a firmware or kernel update), the service was
still enabled, so on the next boot the whole postscript set ran again from the
start.  Disable the service *before* running the postscripts so a mid-postscript
reboot cannot re-trigger them.

The disable decision reads OSVER (base variant only), RUNBOOTSCRIPTS and
NODESTATUS, which the included xcatinstallpost script would otherwise set.
Moving the INCLUDE below the disable block leaves those variables unset, so read
them up front (the included script re-reads them) and source xcatlib.sh so
msgutil_r is available; the disable decision is then identical to before.

The original change (lenovobuild 9184cbe0) touched only the legacy post.xcat.
Modern EL uses the systemd variants: post.xcat.ng (RHEL/CentOS 8 and 9) and
post.xcat.rhels10 (RHEL 10).  Apply the same reorder to all three so the fix
actually takes effect on current platforms.

Lab-validated with a full AlmaLinux 9.8 stateful install (post.xcat.ng path):
the generated xcatinstallpost disables the service before running the
postscripts, the postscripts run exactly once, the node reaches "booted", and
with the default NODESTATUS=1 the service is left enabled just as before.

Recovered from the unmerged lenovobuild branch (original 9184cbe0), adapted and
extended to the .ng and .rhels10 variants.

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
2026-07-22 22:54:20 -03:00
Vinícius Ferrão 9f33b19214 fix: restore legacy SLES provisioning paths 2026-05-05 17:09:37 -03:00
Vinícius Ferrão 023beff053 Add Ubuntu 26.04 provisioning support 2026-05-01 11:13:45 -03:00
Mark Gurevich 4a6ccf0ca5 Update docker build containers to CentOS8 (3) 2022-05-13 13:05:11 -04:00
cxhong 70d51e15c6 modify checking from sles to sle 2020-02-12 16:08:59 -05:00
cxhong 2245b278fa Support otherpkgs as postbootscript for SLE15 2020-01-16 17:34:27 -05:00
Yuan Bai 3b5fd8582e add syslog for pre script (#5838)
* add syslog for pre script
2018-11-27 17:05:36 +08:00
yangsbj 2d4141b7d7 modify HTTPPORT in post.xcat with macro TABLEBLANKOKAY 2018-11-06 01:36:29 -05:00
yangsbj accb6d69a9 write HTTPPORT= to xcatinfo 2018-11-02 05:16:14 -04:00
yangsbj 5c910eca26 add support for site.httpport for post.xcat and updatenode 2018-11-01 05:21:08 -04:00
Yuan Bai e7176d7093 log tag support for common scripts (#5743)
* log tag support for common scripts

* enhancements

* typo fixed
2018-10-30 16:57:39 +08:00
Yuan Bai 735b121e15 classify deployment log and updatenode log (#5725)
* classify deployment log and updatenode log

* add deployment starting for xcatroot
2018-10-24 17:03:52 +08:00
GONG Jie c2592038ba Remove trailing spaces in file xCAT-server/share/xcat/install/scripts/post.xcat 2017-12-31 23:59:59 +00:00
Yuan Bai 806c507a6a support sles12sp3 servicenode installation (#5426)
* support sles12sp3 servicenode installation

* polished
2018-07-24 17:32:08 +08:00
cxhong f10d33f66c redirect wget output to /tmp/wget.log (#5251)
* redirect wget output to /tmp/wget.log
2018-05-30 09:36:07 +08:00
Bin Xu cb25622331 It is for provision log enhancement and partial address #4582 (#4648)
- clear logs in the key components during provisioning (not only debug mode, but debug mode will have more logs)
 - now only cover rhel7 stateful and stateless
 - make more syslogs into cluster.log (tag = xcat or xcat.*)
 - the changes will not impact other distro
2018-01-23 03:20:42 -06:00
Matt Ezell 72d99850e2 Ensure mypostscript has permission 700 (#3847)
Only root needs to run this script
2017-09-07 09:18:35 +08:00
Bin Xu 8c663f946b Filter non-content lines when generating mypostscripts 2017-08-17 10:49:27 +08:00
yangsong a761e64c0c fix issue #2856: [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later (#2857)
* fix issue [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later #2856

* fix issue [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later #2856
2017-04-13 11:31:54 +08:00
immarvin 37f9e770f4 fix issue postscript fails and status=booted. #2665 2017-03-22 23:20:29 -04:00
Kilian Cavalotti 0cda7b5d02 Fix double logging of postscript output in /var/log/xcat/xcat.log 2017-02-24 13:05:40 -08:00
immarvin c4a058c6d5 refine the conditional code logic on swith variables site table 2016-11-22 03:46:05 -05:00
immarvin 1e6714a99d fix issue when using copycds -p, stateful install has yum point to the wrong repository. #1852 2016-11-07 22:20:28 +08:00
immarvin 6f735b0e8d fix issue linux orderly shutdown not noticed by xcat. #1939;replace xcatpostinit1 sysvinit service with xcatpostinit1.service systemd service unit as the hook to run PS&PBS and report status for redhat;report node status on system <reboot/shutdown> command 2016-11-07 13:54:47 +08:00
penguhyang bbcea8b16d fix differentiate the log entries of postscript and postbootscript (#1946) 2016-10-12 14:26:23 +08:00
yangsong 4cf9c18fc7 Revert "differentiate the log entries of postscript and postbootscript " (#1927) 2016-09-29 17:27:59 +08:00
penguhyang 80c6c3c591 Merge pull request #1897 from immarvin/onissue
fix issue [FVT]: sed: can't read /boot/grub/grub.conf in servicenode log file #1730
2016-09-27 10:31:33 +08:00
immarvin e35ef729be fix issue [FVT]: sed: can't read /boot/grub/grub.conf in servicenode log file #1730 2016-09-27 10:26:13 +08:00
penguhyang e4c0d8c367 diff postscript and postbootscript log (#1832) 2016-09-27 10:20:00 +08:00
immarvin 547a82d464 fix [DEV] kernel parameters 'console=tty0 console=ttyS0' are not passed to the installed Ubuntu 16.04 LTS node #731@github;enable bootup information display on console during ubuntu 16.04 reboot 2016-07-04 02:24:18 -04:00
immarvin 05c90d4c47 fix issue [Customer]initrd stuck in loop and fails to get rootimg.gz for stateless image. #921 @github;use /install/postscripts/updateflag.awk as the script to report status in diskless and diskful provision 2016-07-02 22:06:41 -04:00
Casandra Qiu 6eba8b9287 change syntax of /dev/null 2016-06-16 14:37:50 -04:00
Casandra Qiu 3b9eddc6d2 Add uuid into /opt/xcat/xcatinfo 2016-06-13 14:40:50 -04:00
immarvin f77b374358 fix issue#1162@github, correct a code logic error 2016-05-20 02:23:55 -04:00
immarvin 806c697a56 fix issue#929@github,service network restart in <post-install scripts> might break the service dependecy and will cause conflict between YaST2-Second-Stage.service and xcatpostinit1 services 2016-05-11 10:05:38 -04:00
immarvin de22c82227 shebang of xcatinstallpost generated by post.xcat not in the beginning 2016-04-07 04:46:09 -04:00
penguhyang c6d543ad42 make a fixed value scope for xcatdebugmode 2016-03-25 05:45:38 -04:00
penguhyang 97e29171ba split the post.ubuntu and upgrade the post.xcat 2016-03-15 02:59:31 -04:00
penguhyang 59d754aa44 improve the post.xcat to make the ouput clean 2016-01-18 03:25:05 -05:00
penguhyang 486a5239a8 post.xcat restructure 2015-12-20 22:22:18 -05:00
yangsong 74ba9ef631 Merge pull request #429 from neo954/story50687log
Dirty hack, fix the permission of direcotry /var/log/xcat
2015-11-23 21:16:38 +08:00
GONG Jie c4367da51e Dirty hack, fix the permission of direcotry /var/log/xcat 2015-11-23 14:40:51 +08:00
Xiaopeng Wang 4388100166 Merge pull request #326 from jjohnson42/master
If TFTPDIR does not begin with /, correct it
2015-11-05 13:28:23 +08:00
immarvin 11b3c7d2ec correct a typo 2015-11-05 00:17:54 -05:00
immarvin 977f88c293 fix issue #97 [fvt]2.11:still could not get l full debuginfo in management node for diskless provision after xcatdebugmode=1 2015-10-30 02:03:46 -04:00
Jarrod Johnson 96144aabbb If TFTPDIR does not begin with /, correct it
TFTPDIR could be set without a leading /.  Support
this syntax by putting a slash in front and hoping
for the best
2015-10-29 15:28:59 -04:00
penguhyang e0fab6d9c4 check the postscripts before running it with 'bash -x' upgrade 2015-10-19 05:07:42 -04:00
penguhyang 28533f9411 check the postscripts before running it with 'bash -x' 2015-10-19 03:54:53 -04:00
penguhyang d716e740bc make the run_ps subroutine to be consistent in ubuntu.post xcat.post and xcatdsklspost 2015-09-28 04:04:22 -04:00
immarvin 8607edffce fix defect #4739 [fvt]2.10:still have debug info in ubuntu compute node's xcat log without xcatdebugmode set;fix defect #4745 [FVT]updatenode return some err message when postcripts having parameters 2015-07-15 02:48:15 -04:00