2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00
Commit Graph

21610 Commits

Author SHA1 Message Date
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
chenglch
28a84fa997 List console status with makegocons -q
Add `-q|--query [noderange]` for makegocons to list the console
status and the host server. If node is not registered in
goconserver, the status will be `unregistered`.

If console releated attribute is not defined for the specified
node but it is included in the noderange, error message for that
node will be printed at first.
2018-02-07 10:32:43 +08:00
cxhong
86d8c4749e Remove not existing table fields in PDU table (#4750) 2018-01-29 20:12:53 -06:00
xuweibj
43c2cd72d8 Merge pull request #4744 from chenglch/restapi
Define some attributes as array type in rest api ver 1.0
2018-01-29 13:49:57 +08:00
chenglch
231d934732 Define some attributes as array type in rest api ver 1.0
Split attribute with comma is not a standard way, this commit
bumped REST version to 1.0 to deal with these attributes in
array type.

```
curl -X GET -k 'http://10.5.101.10/xcatws/nodes/restnode1?userName=root&userPW=cluster'
{"restnode1":{"serialspeed":"115200","nicips.ib1":"10.0.0.100|fd55::214:5eff:fe15:849b","nicnetworks.ib0":"IB00","nicnetworks.ib1":"IB01","cons":"ipmi","postscripts":"syslog,remoteshell,syncfiles,hello,world2","nicips.ib0":"10.10.100.9","groups":"conpute,staticconsolegroup","postbootscripts":"otherpkgs","nictypes.ib0":"Infiniband","nicips.ib2":"10.0.0.103|10.0.0.104"}}

 curl -X GET -k 'http://10.5.101.10/xcatws/nodes/restnode1?userName=root&userPW=cluster&ver=1.0'
{"restnode1":{"nicnetworks.ib0":"IB00","nicnetworks.ib1":"IB01","cons":"ipmi","postscripts":["syslog","remoteshell","syncfiles","hello","world2"],"nicips.ib0":["10.10.100.9"],"nicips.ib2":["10.0.0.103","10.0.0.104"],"groups":["conpute","staticconsolegroup"],"postbootscripts":["otherpkgs"],"serialspeed":"115200","nicips.ib1":["10.0.0.100","fd55::214:5eff:fe15:849b"],"nictypes.ib0":"Infiniband"}}

```
2018-01-29 11:19:09 +08:00
Weihua Hu
e98e2701e0 Update Version 2018-01-26 15:49:04 +08:00
Weihua Hu
a3004d29fd Merge pull request #4737 from zet809/modify_genesis_reference_data
reminder user to rebuild xcat-genesis-base to update xCAT newer than 2.13.10
2018-01-26 15:34:28 +08:00
ertaozh
b8e77ae4c7 reminder user to rebuild xcat-genesis-base to update xCAT newer than 2.13.10 2018-01-26 02:27:14 -05:00
zet809
57e057f0f6 Merge pull request #4736 from bybai/diskless
enhance Installing a New Kernel in the Diskless Image doc
2018-01-26 15:12:55 +08:00
bybai
128b7bf9f0 add kernel pkgdir 2018-01-26 01:12:11 -05:00
Weihua Hu
3f10f74c94 Merge pull request #4733 from zet809/modify_release_info_for_2.13.10
update release information for 2.13.10 release
2018-01-26 12:51:38 +08:00
ertaozh
3d2615f011 update release information for 2.13.10 release 2018-01-25 22:49:12 -05:00
xuweibj
f40ea6d4b1 fix issue 4731, specify variable to hash type (#4732) 2018-01-26 11:14:05 +08:00
Mark Gurevich
a8b403b478 Merge pull request #4729 from whowutwut/update_doc_2.13.10
Update man page for RTD for 2.13.10 release
2018-01-25 14:42:59 -05:00
Mark Gurevich
c511982d5b Merge pull request #4727 from whowutwut/support_bootmode
[OpenBMC] Support bootmode generically
2018-01-25 14:29:05 -05:00
Victor Hu
f2c4ce1677 Update man page for RTD for 2.13.10 release 2018-01-25 14:19:21 -05:00
Victor Hu
dc5e5fb3e2 Adding man page for rspconfig to add boot mode 2018-01-25 14:16:59 -05:00
Victor Hu
84ea2dd458 PowerSupplyRedundancy does not take effect in bmcreboot, but on IPL 2018-01-25 13:56:21 -05:00
Victor Hu
0a51ba60fd Reduce duplicate print statement, only print when value does not match 2018-01-25 13:26:51 -05:00
Victor Hu
e2d49ce2b2 Add data structure to support get/set BootMode of the BMC 2018-01-25 13:12:21 -05:00
Victor Hu
e70ed0f3f0 Handle some warning messages based on this code
- isn't numeric in numeric ne (!=)
  - Scalar value @attr_value[-1] better written as $attr_value[-1]
2018-01-25 09:17:41 -05:00
Yuan Bai
d72c193710 correct description about nicsadapter (#4723)
* correct description about nicsadapter

* enhance nicsadapter desc

* polished

* polished
2018-01-25 04:04:21 -06:00
zet809
9b072e8cae Merge pull request #4724 from bybai/rmdep
remove python-requests from xCAT-openbmc-py.spec
2018-01-25 17:38:20 +08:00
bybai
c315c3e8c6 remove python-requests 2018-01-25 04:08:18 -05:00
cxhong
9184d33e33 remove remote host key from known_hosts file (#4722) 2018-01-25 01:17:03 -06:00
zet809
a351fa6263 Merge pull request #4719 from stanford-rc/bmcsetup_fix
bmcsetup: add missing / in /dev/null
2018-01-25 11:08:18 +08:00
Victor Hu
44c6c695c3 Merge pull request #4720 from gurevichmark/openbmc_rspconfig_powersupplyredundancy2
powersupplyredundancy enhancements
2018-01-24 20:11:49 -05:00
Mark Gurevich
691669bf54 powersupplyredundancy enhancements 2018-01-24 16:48:32 -05:00
Kilian Cavalotti
e32d37e625 bmcsetup: add missing / in /dev/null 2018-01-24 11:20:23 -08:00
Victor Hu
2876dd5161 Merge pull request #4716 from gurevichmark/openbmc_rspconfig_gen_usage2
Fix incorrect usage output for OpenBMC rspconfig command
2018-01-24 10:59:44 -05:00
Mark Gurevich
7561337bec Fix incorrect usage output for OpenBMC rspconfig command 2018-01-24 10:47:47 -05:00
zet809
f075ff1121 Merge pull request #4712 from zet809/enhance_bmcdiscovery
Enhance bmcdiscovery to fix issue
2018-01-24 19:57:36 +08:00
ertaozh
3ebe911473 enhance of fix for issue 4652 2018-01-24 06:50:32 -05:00
zet809
4acf102b07 fix issue 4652: bmcdiscover command will not able to find Boston node (#4710) 2018-01-24 18:22:08 +08:00
Yuan Bai
1314f8821e Merge pull request #4708 from xuweibj/I4705
fix issue 4705, modify usage output
2018-01-24 17:07:56 +08:00
XuWei
691e0ee464 fix issue 4705, modify usage output 2018-01-24 03:16:41 -05:00
Bin Xu
78dbe4274b Missing some 'echo' when running updatenode, and put it back (#4706) 2018-01-23 21:51:47 -06:00
Victor Hu
c8ace50d21 Merge pull request #4644 from gurevichmark/openbmc_rspconfig_gen_usage
Build usage string based on command definitions
2018-01-23 15:49:43 -05:00
Mark Gurevich
99cac5264a Second pass for autogenerating usage 2018-01-23 13:47:11 -05:00
Mark Gurevich
0d29e5d5e1 Move code block for usage string processing 2018-01-23 12:09:37 -05:00
Mark Gurevich
8788b13235 Man page changes for OpenBMC rspconfig 2018-01-23 12:09:36 -05:00
Mark Gurevich
d395e8b73b Build usage string based on command definitions 2018-01-23 12:09:35 -05: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
zet809
0982cdf282 Merge pull request #4645 from xuweibj/rflash_python
rflash for openbmc on python, including options a|c|l|delete|u
2018-01-23 16:13:30 +08:00
xuweibj
a662bb5a01 Merge pull request #4694 from xcat2/gurevichmark-openbmc_rspconfig_powersupplyredundancy
Gurevichmark openbmc rspconfig powersupplyredundancy
2018-01-23 15:12:21 +08:00
zet809
5d91fe3778 modify rspconfig powersupplyredundancy based on comments 2018-01-23 00:49:41 -05:00
Victor Hu
d00ee26c67 Merge pull request #4651 from gurevichmark/openbmc_rspconfig_dump_all
Add rspconfig dump download all function
2018-01-22 15:33:35 -05:00
Victor Hu
24f665e445 Merge pull request #4666 from whowutwut/psirt_10822
Adding security vulnerability for 12/07/17 OpenSSL announce
2018-01-22 14:06:01 -05:00
Victor Hu
4e7eca5c9f Adding security vulnerability for 12/07/17 SSL announce 2018-01-22 14:02:53 -05:00
Mark Gurevich
b608dea24a Support rspconfig powersupplyredundancy 2018-01-22 11:20:52 -05:00