2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-06-15 16:17:36 +00:00
Commit Graph

728 Commits

Author SHA1 Message Date
GONG Jie 903dd6b41f Remove trailing spaces in file xCAT-server/lib/perl/xCAT/xcatd.pm 2017-12-31 23:59:59 +00:00
GONG Jie c0c32bb85c Remove trailing spaces in file xCAT-server/lib/perl/xCAT/Template.pm 2017-12-31 23:59:59 +00:00
GONG Jie 80e5331ec2 Remove trailing spaces in file xCAT-server/lib/perl/xCAT/SvrUtils.pm 2017-12-31 23:59:59 +00:00
GONG Jie aa94a24dbd Remove trailing spaces in file xCAT-server/lib/perl/xCAT/RShellAPI.pm 2017-12-31 23:59:59 +00:00
GONG Jie 0bf2fd366e Remove trailing spaces in file xCAT-server/lib/perl/xCAT/Postage.pm 2017-12-31 23:59:59 +00:00
GONG Jie de42ee5d2e Remove trailing spaces in file xCAT-server/lib/perl/xCAT/OPENBMC.pm 2017-12-31 23:59:59 +00:00
GONG Jie 06919d32c1 Remove trailing spaces in file xCAT-server/lib/perl/xCAT/MellanoxIB.pm 2017-12-31 23:59:59 +00:00
GONG Jie 240512a3da Remove trailing spaces in file xCAT-server/lib/perl/xCAT/IPMI.pm 2017-12-31 23:59:59 +00:00
GONG Jie cdc2e43e00 Remove trailing spaces in file xCAT-server/lib/perl/xCAT/Goconserver.pm 2017-12-31 23:59:59 +00:00
xuweibj d74f1eed53 fix issue 5288, print out management node when summary for rflash (#5401) 2018-07-18 10:04:10 +08:00
cxhong c922ad2cf7 Find correct template and postinstall file to build osimage for copycds -n command (#5300)
* Parse copycd -n options to get correct tmpl and postinstall file

* Add support for Ubuntu
2018-06-21 13:38:31 +08:00
yangsong 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
Bin Xu 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
xuweibj cd689a9a65 Framework of redfish support perl part (#5269) 2018-06-05 13:07:29 +08:00
robin2008 a307bfa96a Fix code error to generate the right socket file name based on the caller PID (#5257) 2018-05-28 21:01:05 +08:00
Mark Gurevich ac6b632b6b Merge pull request #5189 from xuweibj/openbmc_ipmi
modify ipmi rsp check to support openbmc ipmi interface
2018-05-11 07:53:34 -04:00
XuWei 582168e31e modify ipmi rsp check to support openbmc ipmi interface 2018-05-10 03:38:03 -04:00
zet809 5d6e9fe7a0 Merge pull request #5061 from robin2008/ipmi_debug
report ipmi_debug message under node name (#5033)
2018-05-03 15:17:55 +08:00
Mark Gurevich a52c70c2bd Missing closing bracket 2018-04-23 13:24:28 -04:00
ertaozh 9fd4bcca45 Fix issue 5111: REST API does not respect the "host" setting in "policy" table 2018-04-23 08:42:09 -04:00
Mark Gurevich 4c8c68efb3 Changes after review 2018-04-18 16:07:59 -04:00
Mark Gurevich 4163a6bb6c Token expiration setting 2018-04-17 13:40:57 -04:00
Bin Xu c3ae956dd3 report ipmi_debug message under node name (#5033) 2018-04-05 10:41:08 +08:00
xuweibj affa38e733 set rspconfig run on python default (#5040) 2018-04-02 13:44:26 +08:00
Mark Gurevich 8c5701d9ab OpenBMC reventlog flag verification 2018-03-28 14:36:58 -04:00
chenglch 46c611f11a Check if cons script is excutable before register into console server
This patch check the script file, if it is not excutable, just print
ignore message.
2018-03-28 15:09:06 +08:00
chenglch 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
zet809 b0ea8ec792 Merge pull request #4971 from chenglch/gocons_sn_msg
Modify goconserver msg for SN
2018-03-21 17:35:49 +08:00
zet809 ce19f4a4df Fix the rcons Console not ready issue but the bmc is accessible in fact (#4975) 2018-03-20 17:53:52 +08:00
chenglch 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
chenglch b7bd03f151 Fix command error in gocons caused by the env variable
In hierarchical mode, xCAT insert variables in the command line,
but goconserver do not support this format. This patch put the
definition for environment variable to `{params}->{env}` field so
that the first argument of  `{params}->{cmd}` is executable.
2018-03-19 11:38:45 +08:00
yangsong 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
Bin Xu 387055a3be to address the review comments:
- using signal to handle the cleanup
2018-03-13 17:35:20 +08:00
Bin Xu 1d7e0a0042 Support mutiple commands in the same time
- Using PID tailing name to avoid the lock
2018-03-12 14:47:04 +08:00
zet809 b5ad92c39c Merge pull request #4912 from robin2008/message-no-py-agent
When xCAT-openbmc-py is not installed on Service Node, log does not help describe the problem
2018-03-09 15:34:44 +08:00
Bin Xu 6d3d340849 check if agent exists in process_request and give more clear message. 2018-03-09 15:05:15 +08:00
chenglch a03e17dadf Fix indent problem for the comment lines
For the usability issue, add more spaces to avoid of
some errors when deleting the `#`.
2018-03-09 10:41:46 +08:00
zet809 c38df296d9 Refine openbmc python support error message, and information about switch to perl (#4901) 2018-03-07 17:40:29 +08:00
Victor Hu c43d74f6a0 Merge pull request #4886 from gurevichmark/openbmc_python_default
OpenBMC commands default to Python
2018-03-05 14:10:33 -05:00
Mark Gurevich 05b6f489ac OpenBMC commands default to Python 2018-03-05 14:09:34 -05:00
Victor Hu 40118f0c8f Improve the error message when python dependencies are not met 2018-03-05 12:12:55 -05:00
Mark Gurevich 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
chenglch 2156528baf Remove the spaces at the end for makegocons -q
Tidy the output
2018-03-05 13:59:28 +08:00
zet809 fc5795c812 Merge pull request #4870 from chenglch/gocons-clean
Add makegocons -C|--cleanup to remove entries that do not exist
2018-03-05 11:17:53 +08:00
xuweibj f1ff71e3bc [OpenBMC] The return code on error should be 1 instead of 0 (#4871)
* fix issue 4854, modify return code when has error
2018-03-02 15:45:10 +08:00
chenglch e86d544242 Add makegocons -C|--cleanup to remove entries that do not exist
`rmdef` command do not help clean up the recousrces that related to
the node when removing the node. this is a technical debt. This patch
is only a work around to add -C|--cleanup option to help remove the
entries in goconserver.
2018-03-01 16:13:12 +08:00
Victor Hu f19c936638 Change some code in the python framework so
that it's easier to debug issues in configuration when moving to python for OpenBMC
2018-02-20 16:20:13 -05:00
Mark Gurevich 5de4e26a59 Better handling multiple dots in copycds name 2018-02-12 14:32:51 -05:00
Victor Hu aba8b368ab Merge pull request #4815 from gurevichmark/openbmc_rflash_perl
Allow choosing individual openbmc commands to use Python
2018-02-09 16:13:22 -05:00
chenglch 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