2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00
Commit Graph

686 Commits

Author SHA1 Message Date
2156528baf Remove the spaces at the end for makegocons -q
Tidy the output
2018-03-05 13:59:28 +08:00
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
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
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
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
5de4e26a59 Better handling multiple dots in copycds name 2018-02-12 14:32:51 -05:00
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
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
7722c15b18 Allow choosing individual openbmc commands to use Python 2018-02-08 15:25:56 -05:00
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
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
7e286494c0 modified depending on comments 2018-01-17 00:32:54 -05:00
26ccc9fabd Add perl files of openbmc2 2018-01-16 02:21:49 -05:00
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
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
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
2cdd1d2724 Merge pull request #4296 from chenglch/goconserver
Add makegocons command
2017-11-17 17:45:58 +08:00
071f336c17 Fix some bus in makegocons 2017-11-17 17:17:24 +08:00
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
f6690b648e [openbmc]Do not send exec command for bmc console if bmc is not reachable 2017-11-15 16:56:16 -05:00
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
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
c012b45ec1 Merge branch 'master' into ZVM_XCAT_DEV 2017-10-03 09:44:06 -04:00
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
76dffe168e Update xcatd.pm 2017-08-28 08:38:10 -04:00
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
e9029f484f Merge branch 'master' into ZVM_XCAT_DEV 2017-08-09 09:31:22 -04:00
12923fdd74 polished 2017-08-04 01:07:41 -04:00
c87dd2c763 polished 2017-08-04 00:33:54 -04:00
447b00af5b enhance nicips regular expression in mypostscript 2017-08-03 04:52:11 -04:00
f6b16d24bd enhance configeth configure instnic 2017-07-24 02:51:35 -04:00
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
2bcd8b89a0 Merge pull request #2977 from jjohnson42/fixipmitime
FPC IPMI fixes
2017-06-20 15:39:39 +08:00
e8aa65e5fe Merge branch 'master' into ZVM_XCAT_DEV 2017-06-12 08:07:38 -04:00
36fbee6d92 Merge branch 'master' into mvlan 2017-06-06 15:41:10 -04:00
7ff64b220f Wrong mac address showing for switchdiscover command (#3131) 2017-05-25 00:14:16 -05:00
d4383de06d modified from reviews 2017-05-12 09:54:14 -04:00
a93190189e Merge branch 'master' into ZVM_XCAT_DEV 2017-05-11 10:59:33 -04:00
e9b8a3bbbf modification for configMellanox scripts 2017-05-10 13:48:18 -04:00
3bd5b37773 check existence of netboot config file in postage.pm 2017-05-10 06:03:34 -04:00
7271df073f Merge pull request #2990 from zet809/enhance_bmcsetup_for_openbmc
enhance bmcsetup logic for openbmc
2017-05-09 13:28:12 -04:00
fe8e4b800c enhance bmcsetup logic for openbmc 2017-05-05 04:33:09 -04:00
f3531240d3 Parsing : fix for sendmsg() error message (#2983) 2017-05-04 20:30:52 -05:00
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
13ee6733e7 Fix FPC reseat behavior on multiple nodes 2017-05-03 11:40:11 -04:00
7a8d431650 Initialize IPMI variables earlier
In some scenarios, an IPMI instance could be called to handle
data earlier than it should.  Ensure the state of the object is
in adequate shape to react as soon as possible.
2017-05-03 11:40:06 -04:00
7487c0322a Merge branch 'master' into ZVM_XCAT_DEV 2017-04-24 09:39:38 -04:00
a761e64c0c fix issue #2856: [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later (#2857)
* fix issue [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later #2856

* fix issue [DEV] nodes provisioned with redhat osimages created by xCAT 2.12.3 or earlier missed yum repo to MN in xCAT 2.12.4 or later #2856
2017-04-13 11:31:54 +08:00
cf872bf57b Merge pull request #2736 from zet809/enable_xcatdebugmodel_for_ipmiraw
enable ipmi raw data if xcatdebugmodel set
2017-03-28 13:11:40 -04:00
b78fc0ae40 modify the output ipmi raw data with readable information 2017-03-28 03:37:52 -04:00