2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-14 02:10:23 +00:00
Commit Graph

3164 Commits

Author SHA1 Message Date
2b26797195 getAllNodeAttribs will query site table too much (#5505) (#5521)
- move `get_site_attribute` out from loop
2018-08-17 14:42:12 +08:00
ebc04e4cbc support args in postinstallscripts (#5462)
* support args in postinstallscripts

* add the script to inject systemd service unit
2018-08-17 11:23:56 +08:00
a0e369430d Fix issue 5518: perl-xCAT/xCAT/MacMap.pm on ubuntu18.4 and rhels6.10 2018-08-16 01:49:53 -04:00
ed45d465c5 MacMap: skip obtaining macmap table from switches without any port connect to switchs and pdus while discovering switch 2018-08-10 05:12:20 -04:00
738e5c8814 Use File::Temp::tmpnam() instead of POSIX::tmpnam() (#5443) 2018-07-27 17:40:33 +08:00
b480171f13 Fix github issue #5381. Use File::Temp::tmpnam() instead of POSIX::tmpnam(). (#5440) 2018-07-27 14:29:35 +08:00
cc7ad619cc add new UT and polished 2018-07-11 01:58:31 -04:00
d3e73fb435 fix check for leading zeroes in ip address when running makehosts 2018-07-11 01:43:23 -04:00
d37779bb70 modify renergy powerusage/temperature Usage 2018-06-26 01:26:00 -04:00
c49e41da99 support environment variables in osimage customized files (#5281)
* * osimage table schema change: add a "environvar" col in osimage table to hold environment variables used in osimage customized files
* osimage object schema change: add a environvar attribute, which refers to  osimage.environvar
* the environment variables specified in "environvar" attribute will be exported during invocation of postinstall scripts in genimage

* support variables in synclists

* support environment variables in genimage,mkinstall,getpostscript

* support environment variables for xdcp -i -F in packimage
2018-06-15 14:51:41 +08:00
18c5afc0f4 support secure root method (#5286)
- support xcat_secure_pw:<user> API in credential plugin
 - for diskless, if enabled secure root, packimage will not write root password into image
 - for stateful, if enabled secure root, nodeset will not write root password into config file
 - and 'remoteshell' will update shadow file accordingly
2018-06-15 10:28:51 +08:00
1c1eace773 Recording the Severity of log message into xCAT logs (#5267)
- modify rsyslog conf and add "%syslogseverity-text:::uppercase%" to input the text Severity
 - remove duplicate Severity in log message
 - modify MsgUtils::trace for better performance and code structure
2018-06-05 17:57:55 +08:00
1b444f0709 Merge pull request #5119 from robin2008/showsvrname
show server name by default for Error and Warn message
2018-06-05 16:08:21 +08:00
7227c7f98d show server name by default for Error and Warn message 2018-05-29 15:18:46 +08:00
7c5f57be39 Merge pull request #5201 from gurevichmark/openbmc_rinv_multiple_options
OpenBMC rinv multiple options
2018-05-17 09:06:44 +08:00
f0f4929e6b Display only OpenBMC usage 2018-05-15 15:20:59 -04:00
566142a02d Doc changes for OpenBMC rinv multiple options 2018-05-11 10:40:07 -04:00
ab3f449548 Merge pull request #5184 from robin2008/xcatdb_die
make store_fd does not thow exception and the client could be closed.
2018-05-10 13:46:32 +08:00
9d6a8fa420 make store_fd does not thow exception and the client could be closed. 2018-05-09 17:47:55 +08:00
a38ffa18f7 Auditlog table doc improvement 2018-05-04 11:33:27 -04:00
7c85b0998d add support for syncfiles with scp (#5123)
* add support for syncfiles with scp

* refine logic of EXECTUTE support message non rsync filesync

* refine syncfiles

* add startsyncfile script for cumulus

* refine format, fix updatenode without options causes command to crash #5142
2018-04-27 11:28:08 +08:00
318198b1f5 chdef print warning when postscript is already included in the 'xcatdefaults' (#5112) 2018-04-23 17:51:53 +08:00
4c8c68efb3 Changes after review 2018-04-18 16:07:59 -04:00
36b0b69cf4 Documentation changes for REST API token 2018-04-17 15:55:09 -04:00
4163a6bb6c Token expiration setting 2018-04-17 13:40:57 -04:00
fe249bfb70 Print out error msg for xcatprobe switch_macmap command if switch passwordless is not enabled (#5064)
* Print out error msg for xcatprobe switch_mac command if switch
passwordless is not enabled.

* Modified msg only if in the collect_mac_info case
2018-04-11 14:03:56 +08:00
6d8081142b workaround ($4929) the MsgUtil.pm first to make sure xcatd will not crash when /dev/log is not ready. (#4974) 2018-03-27 14:04:51 +08:00
cc588f4af1 Modify startup configuration for goconserver and conserver
After running makegocons, startup configuration would be changed
to make sure goconserver could start after rebooting. Changes
are made in makeconservercf too.
2018-03-23 16:36:42 +08:00
fa5c6e3f37 Merge pull request #4981 from xuweibj/I4978
modify rspconfig usage
2018-03-22 11:22:31 -04:00
e80509c0ae use msgsource directly 2018-03-21 16:24:00 +08:00
cfe6c0db7f modify rspconfig usage 2018-03-21 03:49:18 -04:00
25bede4130 Modify goconserver msg for SN
The message util from xCAT framework do not print where the message
comes from by default. This patch add [service host] prefix for the
message if message is from SN.
2018-03-20 15:32:50 +08:00
0761c3b836 Usage and man page updates 2018-03-16 14:29:29 -04:00
3e622bf94e fix typo (#4956) 2018-03-16 14:19:26 +08:00
38e547c493 fix issue If multiple IP addresses used in xcatmaster field, updatenode will not work leaving node in bad state #3688 (#4932) 2018-03-15 16:14:41 +08:00
55af8ca8c4 remove the dependency, Load SOAP module dynamically 2018-03-09 13:39:33 +08:00
804b132605 clear cache for IP change case in node discovery(#4890) (#4891) 2018-03-06 16:13:02 +08:00
b5bfe17bfc Control openbmc Perl/Python commands with site attribute (#4879)
* Control openbmc Perl/Python commands with site attribute

* update PR: control openbmc perl/python commands, using site attribute, env variable as well
2018-03-05 17:32:56 +08:00
a992db147c Merge pull request #4845 from aaronknister/tweak-default-stanza-handling
fixes to default stanza handling
2018-03-05 13:23:02 +08:00
6230706c43 be more explicit about default stanza naming convention 2018-03-01 13:07:49 -05:00
bc3f98a144 add -V for all commands 2018-02-28 03:42:05 -05:00
24cd358a62 modify usage and manpage for openbmc 2018-02-28 01:56:57 -05:00
3dc366336a Display usage for openbmc commands 2018-02-13 13:15:55 -05:00
7d2c0e1926 fix issue error message improvement when adding users in hierarchical configuration #4820 2018-02-12 09:20:41 -05:00
f61ee56aea Merge pull request #4810 from chenglch/gorcons
Move sleep retry from xcat to goconserver
2018-02-09 23:28:33 +08:00
2da3f5140d Move sleep retry from xcat to goconserver
If cons script is waiting, goconserver could not aware of
the status of the console connection. This patch check
the environment when running the script, if it is gocons
and retrying is needed, exit immediately.
2018-02-09 12:11:48 +08:00
496d13e81e Merge pull request #4809 from chenglch/makegoconslocal
Add consoleenabled column to help store the console status
2018-02-09 11:13:42 +08:00
dd7e1d51df Add consoleenabled column to help store the console status
On diskless SN, the nodes file of goconserver is missing when
reinstalling. This patch add a column in nodehm table to help
recover the console information on service node.

```
[root@c910f03c09k04 ~]# makegocons -q

NODE                             SERVER                           STATE
c910f03c09k05                    c910f03c09k04.pok.stglabs.ibm.com error
node-7912ac1-06vag36             c910f03c09k04.pok.stglabs.ibm.com error

NODE                             SERVER                           STATE
c910f03c09k04                    c910f03c09k03.pok.stglabs.ibm.com connected
[root@c910f03c09k04 ~]# rm /var/lib/goconserver/*
rm: remove regular file ‘/var/lib/goconserver/nodes.json’? y
rm: remove regular file ‘/var/lib/goconserver/nodes.json.bak’? y
[root@c910f03c09k04 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@c910f03c09k04 ~]# makegocons -q

NODE                             SERVER                           STATE
c910f03c09k05                    c910f03c09k04.pok.stglabs.ibm.com error
node-7912ac1-06vag36             c910f03c09k04.pok.stglabs.ibm.com error

NODE                             SERVER                           STATE
c910f03c09k04                    c910f03c09k03.pok.stglabs.ibm.com connected
```
2018-02-09 10:34:20 +08:00
cb78be8f4d fix issue 3913: support rpower cycle for ipmi managing severs 2018-02-08 01:40:59 -05:00
9b04b8483c fix issue 4758, add '-V' in rflash Usage and manpage 2018-01-31 02:03:01 -05:00