2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-15 19:04:17 +00:00
Commit Graph

709 Commits

Author SHA1 Message Date
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
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
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