2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 04:41:08 +00:00
Commit Graph

16570 Commits

Author SHA1 Message Date
Mauricio Faria de Oliveira
422c3f7fc5 lsf_startup: fix LSF_VERSION expression
When running lsf_startup

	[root@xcat-mn lsf]# updatenode $lsf_master --scripts lsf_startup
	<...>
	p8r1n1: Mon Nov 30 21:30:58 EST 2015 Running postscript: lsf_startup
	p8r1n1: INFO: Run hostsetup on each node.
	p8r1n1: ./lsf_startup: line 48: /usr/share/lsf//install/hostsetup: No such file or directory
	<...>

It is because this expression is broken; no mention to / as field separator.

	# grep '^LSF_VERSION' /install/postscripts/lsf_startup LSF_VERSION=`find /$LSF_TOP -name hostsetup|head -1|awk '{print $5}'`

See:

	[root@p8r1n1 ~]# LSF_TOP="/usr/share/lsf"

	[root@p8r1n1 ~]# find /$LSF_TOP -name hostsetup | head -1
	//usr/share/lsf/9.1/install/hostsetup

	[root@p8r1n1 ~]# find /$LSF_TOP -name hostsetup|head -1|awk '{print $5}'
	[root@p8r1n1 ~]# 

Additionally, it would fail if the version was not exactly the 5th field, which may occur if the user doesn't use /usr/share/lsf for LSF_TOP. And there's even a leading / before $LSF_TOP (ie, /$LSF_TOP).. and what if the user sets LSF_TOP with a trailing / ?

So, lets make this independent of leading slashes and trailing slashes.

	LSF_VERSION="$(find /$LSF_TOP -path "*/install/hostsetup" | grep -o "/[^/]\+/install/hostsetup" | cut -d/ -f2)"

It works on the usual and non-usual cases:

	[root@p8r1n1 ~]# LSF_TOP=/usr/share/lsf
	[root@p8r1n1 ~]# find /$LSF_TOP -path '*/install/hostsetup' | grep -o '/[^/]\+/install/hostsetup' | cut -d/ -f2
	9.1

	[root@p8r1n1 ~]# LSF_TOP=/test/some/other/dir/for/lsf
	[root@p8r1n1 ~]# mkdir -p $LSF_TOP/9.1/install
	[root@p8r1n1 ~]# touch $LSF_TOP/9.1/install/hostsetup
	[root@p8r1n1 ~]# find /$LSF_TOP -path "*/install/hostsetup" | grep -o '/[^/]\+/install/hostsetup' | cut -d/ -f2
	9.1
2015-11-30 22:18:04 -05:00
yangsong
212adce533 Merge pull request #493 from whowutwut/x86
Remove the x86_64 documentation pages and direct to SourceForge for 2.11 GA
2015-12-01 10:43:37 +08:00
Victor Hu
5e0af490ac Update config_environment.rst
Fixed the issue at line 51, WARNING: Title underline too short.
2015-11-30 18:48:38 -05:00
Victor Hu
454e4d0760 Delete .config_environment.rst.swp 2015-11-30 18:46:29 -05:00
Victor Hu
687946be0a Remove the x86_64 framework for managing xCAT cluster and point users
to the existing SourceForge documentation for now until we have an opportunity
to add the documentation for System X.  This should be done after the System
P documentation is in good shape to mimic.
2015-11-30 08:42:38 -05:00
zet809
9ea36ca616 Merge pull request #486 from chenglch/rflash-site
Fix-issue 471: Add a user interface to set the delay time for rflash
2015-11-30 17:08:52 +08:00
Yuan Bai
f5aaaf3390 Merge pull request #480 from immarvin/onsles12sp1
add the doc of diskless exlist; update the exlist for sles12 ppc64le diskless osimage
2015-11-30 17:00:01 +08:00
chenglch
02ceafc428 Add a attribute in site table to set the delay time for rflash
Currently abort failure(0x81) occur during the initiate stage as
the firmware state is not stable enough after cold reset. As the
delay time is not a constant value, this change add a interface in
site table for user to set this value.

Close-issue: #471
2015-11-30 03:59:31 -05:00
Victor Hu
89bca793af Merge pull request #489 from immarvin/onissue488
fix defect [fvt]2.11:xcatsn installation error in rhels7.2 #488
2015-11-27 22:04:08 -05:00
immarvin
d7d0e62911 fix defect [fvt]2.11:xcatsn installation error in rhels7.2 #488 2015-11-27 04:49:12 -05:00
chenglch
d0fd4ce2ed Merge pull request #475 from bybai/pasurh
pasu/psh/pscp Connection failure in sles11.4,error info in rh7.1
2015-11-27 16:06:37 +08:00
bybai
c118070d7b pasu/psh/pscp Connection failure in sles11.4,error info in rh7.1 2015-11-26 06:05:33 -05:00
Yuan Bai
07561c366e Merge pull request #483 from junxiawang/docindex
add configure xcat index
2015-11-26 17:41:03 +08:00
junxiawang
fdf2b81771 add configure xcat index 2015-11-26 08:41:04 -05:00
tingtli
65d679391f Merge pull request #478 from junxiawang/code1126
modify p8le testcase for install
2015-11-26 17:40:52 +08:00
junxiawang
f2e52dacaf modify autotest instal case 2015-11-26 08:05:34 -05:00
tingtli
08c715b68d Merge pull request #481 from neo954/story50687log
Test cases update due to the change of log classification
2015-11-26 17:37:12 +08:00
GONG Jie
d624c1236f Test cases update due to log classification 2015-11-26 17:02:14 +08:00
immarvin
1ffb4970e7 add the doc of diskless exlist; update the exlist for sles12 ppc64le diskless osimage 2015-11-26 02:35:42 -05:00
junxiawang
2547a42321 Merge pull request #473 from junxiawang/codeforLEtest
add le test bundle list
2015-11-26 10:46:07 +08:00
junxiawang
9093520210 add le test bundle list 2015-11-26 01:46:21 -05:00
Yuan Bai
6d9ff85e1c Merge pull request #468 from zet809/issue_462
fix issue 462: The result of "rvitals wattage" is not right on firest…
2015-11-25 17:37:25 +08:00
ertaozh
f99e7697dc fix issue 462: The result of "rvitals wattage" is not right on firestone and habanero 2015-11-25 01:20:34 -05:00
yangsong
9efc3cac00 Merge pull request #466 from whowutwut/sles12genimage
Add additonal packages to sles12 diskless pkglist to reduce warning msg
2015-11-25 13:33:38 +08:00
Victor Hu
e84389c0bf Add kernel-firmware and adaptec-firmware to reduce the number
of warning messages when running genimage on sles12 sp1 systems
2015-11-24 16:22:22 -05:00
Weihua Hu
9885d9acba Merge pull request #459 from zet809/issue_457
fix issue 457: xCAT 2.11 / S822LC: Node Discovery failed due to MTM w…
2015-11-24 15:34:26 +08:00
ertaozh
b5717ba88b fix issue 457: xCAT 2.11 / S822LC: Node Discovery failed due to MTM with spaces 2015-11-24 02:19:34 -05:00
Victor Hu
f180db98f7 Merge pull request #443 from zet809/rspconfig_ip_S822LC
fix issue 440: IBM Power S812LC using rspconfig to set bmc ip address…
2015-11-23 21:38:57 -05:00
Victor Hu
74357434ab Update differentiators.rst
Updated some of the wording
2015-11-23 20:18:04 -05:00
Victor Hu
7adb95b3a3 Merge pull request #403 from cxhong/NM
Add sections to complete the mysql/mariadb documentation
2015-11-23 16:13:31 -05:00
Victor Hu
72eb675661 Merge pull request #453 from immarvin/onkvmdoc
update the index of VM support
2015-11-23 13:06:50 -05:00
Victor Hu
dfd6475c00 Merge pull request #387 from penguhyang/updatenode_k
correct the message to make the updatenode -k output looks neat
2015-11-23 13:04:52 -05:00
zet809
c4e03b6c44 Merge pull request #456 from immarvin/onpkvmpre
add disc selecting logic for powerkvm3.1.0
2015-11-23 22:17:03 +08:00
immarvin
72cb00d6a4 disk names might be sdaa,sdab.... 2015-11-23 09:03:21 -05:00
immarvin
dc9017ddd5 disk names might be sdaa,sdab.... 2015-11-23 08:57:32 -05:00
immarvin
340516c2c3 disk names might be sd[a-z]+ 2015-11-23 08:50:34 -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
immarvin
f53f3854e3 devtype is useless,remove it 2015-11-23 07:44:52 -05:00
immarvin
785e2f7c6c add disc selecting logic for powerkvm3.1.0 2015-11-23 03:49:48 -05:00
chenglch
651cee75fc Merge pull request #454 from zet809/issue_444
fix issue 444: Timeout while executing "renergy noderange temperature…
2015-11-23 15:13:16 +08:00
ertaozh
4f44682478 fix issue 444: Timeout while executing "renergy noderange temperature|powerusage" 2015-11-23 02:09:49 -05:00
GONG Jie
c4367da51e Dirty hack, fix the permission of direcotry /var/log/xcat 2015-11-23 14:40:51 +08:00
GONG Jie
36fd67b75c Fix indent and code style 2015-11-23 13:56:49 +08:00
immarvin
8bf2c5340c update the index of VM support 2015-11-22 22:13:03 -05:00
bybai
1408ee73dc Merge pull request #451 from hu-weihua/rmimage
Provide a walk around to issue #424 by using rmimage
2015-11-23 10:55:38 +08:00
huweihua
bd2ee5c070 use lazy mode of umount to increase the success rate 2015-11-22 21:30:33 -05:00
huweihua
c889383494 provide a walk around to defect #424 2015-11-21 03:01:39 -05:00
Pat Lundgren
895ad1fa02 Merge pull request #441 from chenglch/rflash-defect
Reviewed the code.  Looks fine to me
2015-11-20 14:30:01 -05:00
Victor Hu
6a9682b750 Merge pull request #404 from pdlun92/i271
New OS release IDs added to discinfo.pm
2015-11-20 11:57:49 -05:00
Patrick Lundgren
2c22c82b4d SLES12SP1 Support added to sles.pm
RHELS7.2 IDs added to discinfo.pm
2015-11-20 11:25:45 -05:00