2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 20:10:09 +00:00

342 Commits

Author SHA1 Message Date
Samveen
b314b1eb3b natural_sort_cmp: recursion to iterative implementation (#4314)
* natural_sort_cmp: recursion to iterative implementation

* natural_sort_cmp: correct prototype with parameters, as per `man perlfunc`
2017-11-16 23:52:24 -06:00
Bin Xu
585d771ed1 Introduce a natural compare func for sorting array and using it for rinv/rvital (#4307)
* Introduce a natural compare func for sorting array and using it for rinv/rvital

* 1, Remove the comments for previous codes 2,not using a new array variable there
2017-11-15 21:31:03 -06:00
Chuck Brazie
c012b45ec1 Merge branch 'master' into ZVM_XCAT_DEV 2017-10-03 09:44:06 -04:00
immarvin
9ba7b2938e fix issue [fvt] xcatd in SN did not load the latest version file after xcat upgrade in SN #3855 2017-09-06 03:43:50 -04:00
immarvin
39c4e7081f fix issue xCAT install failed on sles11.4 & rhels6.9 in automation #3693;move send_tcp_msg from Utils.pm to NetworkUtils.pm 2017-08-17 03:35:03 -04:00
immarvin
021e873704 notify the nodes which are sending findme requestd about the status of the processing 2017-08-15 03:58:44 -04:00
Chuck Brazie
e9029f484f Merge branch 'master' into ZVM_XCAT_DEV 2017-08-09 09:31:22 -04:00
Samveen Gulati
dd5d2263f6 Utils::servicemap: add mariadb as alias of mysql to %svchash 2017-07-05 04:35:03 +00:00
Samveen Gulati
4635fcb730 Utils::servicemap: Correct formatting of %svchash 2017-07-05 04:33:40 +00:00
chenglch
a6696f7fde Fix the calculation error for conserver version number
This patch fix the error while calculating the version number.
Use int instead of ord to convert string to integer.

fix-issue: #3286
2017-06-20 10:22:09 +08:00
Chuck Brazie
ceb450587f Merge branch 'master' into ZVM_XCAT_DEV 2017-06-19 08:04:09 -04:00
chenglch
5331626d9a Upgrade conserver to 8.2.1 version (#3252)
This patch change the `sslauthority` to `sslcacertificatefile` to
support the latest version of conserver. It also add scripts to
update the `conserver.cf` and $HOME/.consolerc to make sure
migration works correctly.

implement: #3239
2017-06-16 16:51:05 +08:00
Chuck Brazie
e8aa65e5fe Merge branch 'master' into ZVM_XCAT_DEV 2017-06-12 08:07:38 -04:00
yangsong
317845a04c merge 2.13.perfopt branch to master branch (#3044)
* Add trace point for perf tool in xcatd (#903)

This patch aims to enable nytprof library to analyze the performance
of xcat code in statement level.

- Add perf trace point in xcatd
- Add sleep time for db prcess to solve the race condition when
- perf instraction is used.

More reference

To enable prof:

perl -dt:NYTProf /opt/xcat/sbin/xcatd -f

Some perf test sample:
https://github.com/chenglch/xcatperf

* refine the performance of makedhcp (#2901), it including:
 - refine the code logic in getSNList to get better performance
 - refine the getipaddr, cache the dns lookup result
 - refine noderangecontainsMn
 - refine ishostinsubnet
2017-05-18 14:23:29 +08:00
Chuck Brazie
1ca12b3baf Try again to get these updates to GitHub
Change-Id: If6a162c43ae9a1c51070dec304de9fd372181933
2017-05-03 11:41:54 -04:00
immarvin
fdbf2166e1 fix issue Unsupported character in bootparams.addkcmdline #2392 2017-01-10 21:20:09 -05:00
immarvin
6495de9cda correct the path of genimage lock 2016-12-07 03:59:23 -05:00
immarvin
1ebdb5d96c add lock in rh/genimage to avoid multiple genimage processes on same rootimg directory;add guard code before umount/remove mount points under rootimg directory 2016-11-03 03:32:12 -04:00
XuWei
1d57e7ad83 fix issue 1813, add 9125-f2c in mtm hash 2016-09-28 03:51:35 -04:00
ertaozh
dd31896c94 To have runxcmd to keep $::callback in case some module use it 2016-07-29 04:19:28 -04:00
Mark Gurevich
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
ertaozh
ba01665adb refine hardware discovery framework, modifcation based on review comments 2016-06-27 02:51:09 -04:00
Casandra Qiu
bbf151bf62 Use get_mac_by_arp subroutine from SvrUtil.pm 2016-06-07 22:17:54 -04:00
Casandra Qiu
41c1938b8c Use arp command to get switch mac address 2016-06-01 17:00:25 -04:00
Casandra Qiu
1a4a64644e move get_nmapversion() to Utils.pm 2016-05-31 10:56:15 -04:00
immarvin
fe79288298 fix issue#1148@github, support service management with systemd on ubuntu16.04 2016-05-19 05:53:30 -04:00
chenglch
1385c83b51 Add check logic before using perl-Error library
perl-Error lib is not included in the system package of sles 11.4
by default. Load Error lib with eval and require statement to avoid
of dependency error.

Close issue: #857
2016-03-29 01:19:01 -04:00
chenglch
306e66e4cc Do not kill db process if immediate child process exists
This change includes the following:

- Replace the signal number with signal name.
- Stop db process after all the immediate children stopped.
- Fix a defect in TableUtils when closing the table object.
- Enhance the is_process_exists subroutine in utils.

Close issue: #537
2016-03-24 22:46:12 -04:00
chenglch
ee1d71fe2f Partial issue #537, try to detect the error of db access process
This patch add changes to detect the error and enter in direct db access
mode so that the other process can access the data without db access
process temporarily. Direct access is not suggested way and currently
nodelist (noderange) can not support this mode.

Partial issue: #537
2016-01-21 00:35:13 -05:00
ertaozh
4f44682478 fix issue 444: Timeout while executing "renergy noderange temperature|powerusage" 2015-11-23 02:09:49 -05:00
ertaozh
2be4d11d9b renergy support for IBM power s822LC, add power_reading and temp_reading options 2015-11-18 03:40:06 -05:00
ertaozh
861164068b add flag -t for bmcdiscovery to generate a temp bmc node 2015-11-01 21:31:32 -05:00
immarvin
8c65b87fbd for pkvm osimage, the netboot value should be petitboot 2015-07-07 01:36:51 -04:00
immarvin
53b4d81a4f fix defect #4717 [FVT]:sles11.4 diskful installation failed with netboot=yaboot 2015-06-29 22:56:24 -04:00
zhaoertao
1457f38f5d fix issue for hardware discovery when predefined bmcusername defined 2015-06-25 04:20:37 -04:00
ertaozh
ec067311ef support hardware discovery for non-pbmc node defined 2015-06-04 05:48:25 -04:00
immarvin
3bede8df02 fix defect #4682 [DEV]Sles12 diskfull compute install failed with multiple mac address 2015-05-29 23:51:52 -04:00
immarvin
fdc8ca112a correct a typo 'petiboot' 2015-05-26 02:36:53 -04:00
immarvin
ce7c2b6012 add recommend netboot value for vios 2015-05-25 04:49:48 -04:00
immarvin
357ba37a75 correct a typo 2015-05-25 02:51:56 -04:00
immarvin
8df10bf612 add support on the noderes.netboot checking of nodeset 2015-05-24 22:48:15 -04:00
immarvin
9eed5a49df use R:: as the prefix to persistent kernel cmdline in addkcmdline instead of P:: 2015-04-14 02:36:28 -07:00
immarvin
43ec8b55ef support persistent kernel cmdline after diskful installation 2015-04-10 02:54:01 -07:00
WangXiaoPeng
6004cc18f1 Change in Utils.pm->filter_nodes() to recoganize ppc64le if it's arch matchs to ppc64.* 2015-04-08 01:26:38 -04:00
immarvin
b572fc52b4 fix defect #4620 pgsqlsetup script hang on sles11.3 2015-03-25 20:39:48 -07:00
immarvin
89f58e514a fix defect #4613 [DEV] rhels7.0 provisioning complains !dracut-cmdline[78]: Warning: 'ksdevice=<MAC>' is deprecated. Using BOOTIF=01-00-21-5e-a6-3d-d7 instead! 2015-03-18 21:45:28 -07:00
GONG Jie
d381d3e723 Fix bug#4570 - [FVT] xCAT::Utils->runcmd() did not set a correct $::RUNCMD_RC when streaming mode is using 2015-03-09 14:45:07 +08:00
daniceexi
a2d89b5d69 Continue the change to refine installnic and primarynic code 2015-02-11 02:31:54 -05:00
daniceexi
a9cc379b7f code checkin for P8 energy support with CIM 2014-12-22 08:25:43 -05:00
immarvin
3f59552d0c fix defect #4307 [FVT]:chdef newimage -u give out wrong arch in ubuntu; fix defect #4345 Utils->osver routine does not support Redhat7 or SLES12;fix defect #4308 [FVT]: osarch default value of user defined osimage is ppc64le. needs to change to ppc64el 2014-11-21 00:19:37 -08:00