2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-25 13:12:03 +00:00

692 Commits

Author SHA1 Message Date
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
Mark Gurevich
7722c15b18 Allow choosing individual openbmc commands to use Python 2018-02-08 15:25:56 -05: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
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
XuWei
7e286494c0 modified depending on comments 2018-01-17 00:32:54 -05:00
XuWei
26ccc9fabd Add perl files of openbmc2 2018-01-16 02:21:49 -05:00
chenglch
0d515b9bf4 Modify the default configuration for gocons
As output plugins are suported by goconserver, this patch
modify the configuration file accordingly.

partial: #4597
2018-01-15 14:15:35 +08:00
chenglch
f09939a15a Add xcat marker in gocnoserver configuration file
Previously, it is impossible to know if the goconerver is started
by xcat. This patch add a marker in /etc/goconserver/server.conf
to help check the status. In addition, use server-cred.pem instead
of server-key.pem as it is not exist on SN.

This patch also control the service status of goconserver and conserver
when restarting the xcatd service on service node.

```
[root@sn02 ~]# chdef sn02 setupconserver=1
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]# ps -ef | grep conserver
root      27679      1  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27680  27679  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27756  26188  0 02:26 pts/1    00:00:00 grep --color=auto conserver
[root@sn02 ~]# chdef sn02 setupconserver=2
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]# ps -ef | grep conserver
root      27885      1  0 02:26 ?        00:00:00 /usr/bin/goconserver
root      27986  26188  0 02:33 pts/1    00:00:00 grep --color=auto conserver
```
2017-12-28 16:46:47 +08:00
chenglch
6135900321 Use short hostname in rcons for goconserver
As the certificate of xcat is signed with short hostname, this
commit force to use the short hostname in  the environment variable for
`congo console`.
2017-12-06 14:36:34 +08:00
zet809
2cdd1d2724
Merge pull request #4296 from chenglch/goconserver
Add makegocons command
2017-11-17 17:45:58 +08:00
chenglch
071f336c17 Fix some bus in makegocons 2017-11-17 17:17:24 +08:00
chenglch
abab9d89c5 Add makegocons command
This patch enable goconserver service and manage the node sessions
with a new `makegocons` command.

Implement: #4215
2017-11-16 17:56:26 +08:00
Casandra Qiu
f6690b648e [openbmc]Do not send exec command for bmc console if bmc is not reachable 2017-11-15 16:56:16 -05:00
Yuan Bai
2b7b0b4e19 enhance my_ip_facing when multiple ips found for xcatmaster for mypost(#4274)
* Using facing IP first than sitemaster

* enhance my_ip_facing when multiple ips found
2017-11-09 17:37:34 +08:00
zet809
a6661f84b7 Merge pull request #2927 from zVMopenstack/ZVM_XCAT_DEV
Merge the changes made for zVM into the xCAT development branch
2017-10-18 17:06:31 +08:00
Chuck Brazie
c012b45ec1 Merge branch 'master' into ZVM_XCAT_DEV 2017-10-03 09:44:06 -04:00
chenglch
3408e93e6b Do not query noderes table in subvars subroutine
This patch refactor the interface to get xcatmaster and tftpserver
attributes in the subvars subroutine to improve the performance.

partial-issue: #3958
2017-09-25 16:33:23 +08:00
Chuck Brazie
76dffe168e Update xcatd.pm 2017-08-28 08:38:10 -04:00
Bin Xu
a263773b15 Set xcatmaster to facing IP in priority when the node is managed by service node. (#3696)
* Fix #3428, set xcatmaster to facing IP in priority when the node is mananged by service node.

* Always using my facing IP first than site.master

* remove non-used variable sitemaster
2017-08-22 10:21:00 +08:00
Chuck Brazie
e9029f484f Merge branch 'master' into ZVM_XCAT_DEV 2017-08-09 09:31:22 -04:00
bybai
12923fdd74 polished 2017-08-04 01:07:41 -04:00
bybai
c87dd2c763 polished 2017-08-04 00:33:54 -04:00
bybai
447b00af5b enhance nicips regular expression in mypostscript 2017-08-03 04:52:11 -04:00
bybai
f6b16d24bd enhance configeth configure instnic 2017-07-24 02:51:35 -04:00
yangsong
45fd73f8e3 fix xCAT should better support the service group (servicenode postscript) to avoid errors when using Hierarchy #3150 (#3442) 2017-07-13 17:00:58 +08:00
zet809
2bcd8b89a0 Merge pull request #2977 from jjohnson42/fixipmitime
FPC IPMI fixes
2017-06-20 15:39:39 +08:00
Chuck Brazie
e8aa65e5fe Merge branch 'master' into ZVM_XCAT_DEV 2017-06-12 08:07:38 -04:00
cxhong
36fbee6d92 Merge branch 'master' into mvlan 2017-06-06 15:41:10 -04:00
cxhong
7ff64b220f Wrong mac address showing for switchdiscover command (#3131) 2017-05-25 00:14:16 -05:00
Casandra Qiu
d4383de06d modified from reviews 2017-05-12 09:54:14 -04:00
zVMopenstack
a93190189e Merge branch 'master' into ZVM_XCAT_DEV 2017-05-11 10:59:33 -04:00
Casandra Qiu
e9b8a3bbbf modification for configMellanox scripts 2017-05-10 13:48:18 -04:00
immarvin
3bd5b37773 check existence of netboot config file in postage.pm 2017-05-10 06:03:34 -04:00
Mark Gurevich
7271df073f Merge pull request #2990 from zet809/enhance_bmcsetup_for_openbmc
enhance bmcsetup logic for openbmc
2017-05-09 13:28:12 -04:00
ertaozh
fe8e4b800c enhance bmcsetup logic for openbmc 2017-05-05 04:33:09 -04:00
Mark Gurevich
f3531240d3 Parsing : fix for sendmsg() error message (#2983) 2017-05-04 20:30:52 -05:00
Jarrod Johnson
e61b6c3789 Implement timeout for session sharing
When an ipmi session is shared, have waitforrsp
have a specified timeout.
2017-05-03 11:40:16 -04:00