2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-23 04:02:05 +00:00

262 Commits

Author SHA1 Message Date
Yuan Bai
fdda051859 Merge pull request #3686 from zet809/modify_doc_for_bmcdiscover_sn
add usage and manpage for bmcdiscover "--sn" option
2017-08-25 16:49:35 +08:00
ertaozh
7e14a543fe modify description of "--sn" option for "bmcdiscover" according to Baiyuan's comments 2017-08-25 04:35:48 -04:00
Mark Gurevich
f64e84e374 Merge pull request #3677 from xuweibj/I3668
fix issue 3668, make rsetboot node do rsetboot stat
2017-08-23 21:59:03 -04:00
XuWei
da0c0bc0bb modified depending on comments 2017-08-23 21:26:20 -04:00
Mark Gurevich
c8c1fc276f Allow -d <directory name> flag for rflash 2017-08-21 15:12:41 -04:00
Mark Gurevich
c8ee22034d Manpage and usage improvements 2017-08-17 10:48:36 -04:00
XuWei
eb3b720a40 modify man page 2017-08-16 22:52:30 -04:00
Mark Gurevich
62c56561f2 mend 2017-08-15 13:39:05 -04:00
ertaozh
e4d8442e10 add usage and manpage for bmcdiscover "--sn" option 2017-08-15 04:27:54 -04:00
chenglch
580b399ade Add trace log in db subroutines (#3666)
This patch add trace log for the db access. Currently support
5 log levels:
- 0: disable the trace log for db.
- 1: trace the calls of database subroutines.
- 2: trace the event to build the cache for the table
- 3: trace the event with cache hit
- 4: trace the SQL statement

implement-feature: #3612

Output example from xcat/cluster.log:
···
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::setAttribs"},"type":"end","elapsed":"0.00176s"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::setAttribs"},"type":"start"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"SELECT * FROM site WHERE \"value\" = ? AND \"comments\" = ? AND \"disable\" = ? AND \"key\" = ?","table":"site","method":"xCAT::Table::setAttribs"},"type":"start_sql"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::setAttribs"},"type":"end_sql","elapsed":"0.00043s"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"INSERT INTO site (\"value\",\"comments\",\"key\",\"disable\") VALUES (?,?,?,?)","table":"site","method":"xCAT::Table::setAttribs"},"type":"start_sql"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"INSERT INTO site (\"value\",\"comments\",\"key\",\"disable\") VALUES (?,?,?,?)","table":"site","method":"xCAT::Table::setAttribs"},"type":"end_sql","elapsed":"0.00043s"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::setAttribs"},"type":"end","elapsed":"0.00171s"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::getAttribs"},"type":"start"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"SELECT * FROM site WHERE \"key\" = ? and (\"disable\" is NULL or \"disable\" in ('0','no','NO','No','nO'))","table":"site","method":"xCAT::Table::getAttribs"},"type":"start_sql"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::getAttribs"},"type":"end_sql","elapsed":"0.00061s"}
Aug  9 01:59:15 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::getAttribs"},"type":"end","elapsed":"0.00125s"}
Aug  9 01:59:19 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"table":"site","method":"xCAT::Table::getAllAttribs"},"type":"start"}
Aug  9 01:59:19 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"SELECT * FROM site WHERE \"disable\" is NULL or \"disable\" in ('0','no','NO','No','nO')","table":"site","method":"xCAT::Table::getAllAttribs"},"type":"start_sql"}
Aug  9 01:59:19 c910f05c01bc02k74 xcat[694]: [DB Trace]: {"msg":{"addon":"SELECT * FROM site WHERE \"disable\" is NULL or \"disable\" in ('0','no','NO','No','nO')","table":"site","method":"xCAT::Table::getAllAttribs"},"type":"end_sql","elapsed":"0.00080s"}
···
2017-08-14 21:35:33 -05:00
Gᴏɴɢ Jie
98f1e5c0a3 Revise the man page of noderange. Describe the special characters need to be escaped more clear (#3651) 2017-08-09 04:09:49 -05:00
Mark Gurevich
0ca911b9f3 Usage and man page update 2017-08-03 14:50:46 -04:00
Victor Hu
36b025c4c7 Merge pull request #3586 from gurevichmark/openbmc_rflash_activate_pnor
Openbmc rflash activate pnor
2017-08-02 15:29:49 -04:00
Bin Xu
e9e1a4ccf3 Merge branch 'master' into xcatshowsvr 2017-08-02 15:45:06 +08:00
zet809
8fbf24d781 Merge pull request #3456 from robin2008/nodeset-disjoint
Fix #3088, Using 'disjointdhcps' site attribute to make nodeset request will only be handled on service node for nodes it manages
2017-08-02 15:10:27 +08:00
Mark Gurevich
1d9909e074 Updates from review 2017-08-01 14:14:44 -04:00
Bin Xu
c008a1686e Adopted review comments and made changes as below:
- use -V/--verbose to enable the XCATSHOWSVR, it is more straitforward to user.
  - refine the manpage based on Mark's comments.
2017-08-01 13:43:13 +08:00
Bin Xu
cf9fd117a8 Update nodeset manpage for XCATSHOWSVR, with this environment variable
the output will have server name information.
2017-07-31 13:55:19 +08:00
yangsong
915248a419 fix addkcmdline for deployed kernel only #3532, refine the document (#3536) 2017-07-28 11:23:31 +08:00
khm
cb8ce84249 xCAT-client: allow pgsqlsetup(1) to accept additional pg_hba entries (#3527)
* xCAT-client:  allow pgsqlsetup(1) to accept additional pg_hba.conf entries

Currently pgsqlsetup(1) only sets up the MN ip address for access via
pg_hba.conf.  This change adds a -a flag to allow the user to specify
additional addresses for use in that file.

This is useful for users who already know what IP addresses will be
used by their service nodes, so they can pass them directly to the
pgsqlsetup program, without needing to edit pg_hba.conf (and avoiding
needing to restart postgresql and xcat after the edit).

* xCAT-client: fix formatting in pgsqlsetup(1)

* pgsqlsetup.1.pod:  clarify default setup

* pgsqlsetup.1.pod:  update usage section to reflect access flag

* pgsqlsetup.1:  refresh documentation

* xCAT-client/bin/pgsqlsetup: add -a/--access to usage statement
2017-07-25 02:34:50 -05:00
Yuan Bai
f329a2efa7 Merge pull request #3512 from chenglch/getadapter
Make getadapter work during discovery process
2017-07-24 15:17:17 +08:00
Bin Xu
53d3b1bced 1, use 'disjointdhcps' for nodeset disjoint mode
2, handle 'disjoint' in preprocess method, to make sure that no request will be sent to SN which does not manage the nodes.
3, refine 'stat' to make sure it could query unmanaged nodes on-demand.
2017-07-24 13:36:49 +08:00
yangsong
5bb6bd7131 fix issue noderange in xCAT commands might be broken by shell expansion #3319 (#3524) 2017-07-21 18:12:52 +08:00
chenglch
e8df039d42 Make getadapter work during discovery process
This patch redesign the original getadapter plugins. Currently,
getadapter do not work as a common command but only a chain command
works during discovery.
2017-07-20 16:03:52 +08:00
chenglch
32525fc3dc Merge pull request #3463 from gurevichmark/rflash_supermicro
rflash for Supermicro Briggs and Boston nodes
2017-07-19 09:13:36 +08:00
Mark Gurevich
9963d8e626 Review fixes 2017-07-17 12:35:11 -04:00
Mark Gurevich
464ef135d5 rflash for Supermicro Briggs and Boston nodes 2017-07-14 11:21:19 -04:00
Bin Xu
47b92c193f Fix #3088, introduce 'disjointnetboot' site attribute to make nodeset
request will only be handled for managed nodes on SN.
2017-07-14 14:42:43 +08:00
XuWei
882d47c2b5 add describe of bmcreboot 2017-07-13 20:58:58 -04:00
XuWei
d84490af02 add related docs 2017-07-12 21:09:15 -04:00
Victor Hu
fccace532c Add option to rpower for OpenBMC to return the state of the BMC.
This is a feature that the openbmc management utility allows us to
obtain over the REST interfaces
2017-07-11 14:53:18 -04:00
Victor Hu
1fe34083b6 Initial commit to support rpower softoff for openbmc 2017-07-10 16:18:03 -04:00
Mark Gurevich
662dc2a6de Copy ssh keys to BMC with rspconfig command 2017-06-29 15:55:34 -04:00
Mark Gurevich
664f63b8bf Fix formatting and grammar for sinv man page 2017-06-26 15:19:23 -04:00
Yuan Bai
434e353a65 Merge pull request #3314 from chenglch/getadapter
Format the ouput of getadapter result
2017-06-26 14:21:46 +08:00
chenglch
62d5037975 Format the ouput of getadapter result
This patch format the result of getadapter command and update
the man page to notice that `getadapter` will boot into genesis.

Fix-issue: #3046
2017-06-23 02:32:58 -04:00
Victor Hu
c7aff42ca2 Modify the description for verbose option in rinv 2017-06-22 21:00:43 -04:00
Victor Hu
27607d7495 Add verbose option to rinv for OpenBMC supported machines 2017-06-22 20:58:20 -04:00
Mark Gurevich
3c75e9cfae Fix man page and usage for MPA rinv command 2017-06-21 13:30:07 -04:00
zet809
54a1e38ddd Merge pull request #3145 from whowutwut/rinv_firm
Enhancements to rinv code to complete development
2017-06-19 16:54:13 +08:00
Mark Gurevich
30b4929625 Fixes to rinstall/winstall man pages 2017-06-15 16:03:04 -04:00
Victor Hu
b888c12291 Remove mprom from the man page for rinv 2017-06-09 08:00:30 -04:00
Victor Hu
1261e7601a Merge pull request #3222 from gurevichmark/spelling_man1
Spelling for man1 and some formatting fixes
2017-06-07 10:25:27 -04:00
Mark Gurevich
ae09fdfe6d Spelling for man1 and some formatting fixes 2017-06-06 13:04:41 -04:00
Mark Gurevich
d861f68995 Sync usage, man and code for ipmi rvitals 2017-06-05 10:56:59 -04:00
Yuan Bai
3bfa5af98a add -r alias -d for makeknownhosts (#3186) 2017-06-05 00:44:08 -05:00
Victor Hu
bf382dcd10 Sync up the spelling to use: OpenPOWER and OpenBMC 2017-06-02 15:02:02 -04:00
Victor Hu
33371667cb Remove options that are not supported for rinv 2017-05-30 22:45:00 -04:00
Victor Hu
b8894ed38b Following changes based on review comments
* Modified to display altitude instead of length
  * Print an output message if there is no values returned from the BMC
2017-05-30 14:32:07 -04:00
Victor Hu
74769080c8 Based on the OpenBMC Sensor API, complete the development code
for the supported options based on the possible values that are
currently allowed to be returned.  As more data is added, the code
should be able to handle the printing of the data automatically
2017-05-24 22:49:14 -04:00