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

70 Commits

Author SHA1 Message Date
Matt Ezell
ec7ca5d330 Fix the documentation from #3891 2017-09-15 11:20:53 -04:00
chenglch
1938bd9a87 Add description for the issue that may lose log
This commit add descritpion for `dbtracelevel` entry in site table
to help the user find the detail solution if the log is lost due
to the issue from rsyslog side.

partial-issue: #3910
2017-09-14 06:07:43 -04:00
Matt Ezell
2304b0ef50 Add regex helpers
a2idx: Turns an ASCII character into an index (a=1, b=2, etc)
a2zidx: Turns an ASCII character into a 0-index (a=0, b=1, etc)
dim2idx: Turns dimensions (eg row, column, rack-unit) into an index
skip: Return an index where some items are 'skipped'
ipadd: Add a value to an IP address
2017-09-10 23:02:06 -04:00
Mark Gurevich
62c56561f2 mend 2017-08-15 13:39:05 -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
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
yangsong
915248a419 fix addkcmdline for deployed kernel only #3532, refine the document (#3536) 2017-07-28 11:23:31 +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
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
Victor Hu
bf382dcd10 Sync up the spelling to use: OpenPOWER and OpenBMC 2017-06-02 15:02:02 -04:00
Mark Gurevich
f2df608156 Sync up .rst files 2017-05-19 14:30:14 -04:00
ertaozh
27dcfbbd7a enhance descript of postscripts.postscripts and postscripts.postbootscripts 2017-05-12 21:40:11 -04:00
ertaozh
e07b607b44 Fix issue 2577: chdef -m should return correct warning message when some attributes is not permit to be changed. 2017-05-12 06:33:37 -04:00
XuWei
47996885e8 add rst files for schema changes 2017-05-08 21:54:05 -04:00
Casandra Qiu
865527400f ADD support for power reset of PDU outlet 2017-03-21 12:01:42 -04:00
Casandra Qiu
6a5b8b3bbc Handle bad return code from pdu commands 2017-03-09 17:26:35 -05:00
Kilian Cavalotti
0e5bb69678 Clarifies the purpose of the cryptmethod field, to match what the code
does
2017-02-24 15:32:30 -08:00
Casandra Qiu
896723163d Check in rst files created by man page changes for PDU 2017-02-16 16:10:14 -05:00
Casandra Qiu
c4e0f637c9 Add pdu support 2017-02-13 16:33:11 -05:00
Victor Hu
50241fc7bf Update the man pages in preparation for the 2.13.0 release 2016-12-05 10:22:13 -05:00
immarvin
fdb12ecf8f refine the doc on raid 2016-12-05 00:39:32 -05:00
yangsong
72d20a23be Merge pull request #2156 from gurevichmark/postinstall-doc
postinstall script description, formatting and spelling
2016-12-05 10:16:21 +08:00
Mark Gurevich
9cf54f66cb Review recommended changes 2016-11-30 13:41:48 -05:00
Xiaopeng Wang
32ba9701ca Merge pull request #1868 from zet809/fix_issue_1734
fix issue 1734: Update the help info for node.mac to know how to hand…
2016-11-28 13:24:39 +08:00
ertaozh
bea547512a fix issue 1734: Update the help info for node.mac to know how to handle installnic bond 2016-11-25 22:59:26 -05:00
chenglch
69fff6a31e Load the cryptmethod in the passwd table to generate the password
sha256 and sha512 crypt methods are supported from glibc 2.7 version.
This patch enable the crypt feature on linux system and encrypt the
password with sha256 by default.

implement: #1890
2016-11-22 13:10:41 +08:00
Mark Gurevich
fb49715667 postinstall script description, formatting and spelling 2016-11-15 13:19:53 -05:00
Victor Hu
9dc963578c Add the autogenerated man pages 2016-10-31 22:23:16 -04:00
Mark Gurevich
a50f3710f7 Doc spelling and gramma fixes 2016-10-25 15:31:20 -04:00
hu-weihua
a6c910467e Refine hack_uname() in mlnxofed_ib_install.v2 2016-10-18 23:15:19 -04:00
Matt Ezell
443fefdea1 Use auto-generated docs for networks.mtu 2016-10-03 22:11:59 -04:00
Matt Ezell
1e11b6e80f Add support for a default MTU on a network
Add a MTU column to the networks table.  If set, this will configure the MTU in
DHCP so that nodes will have the correct MTU during provisioning.  This is
important for large systems to enable jumbo frames to reduce CPU usage when
copying diskless images over the network (before the confignics postscript can
run to set the desired MTU).
2016-10-01 16:01:28 -04:00
Victor Hu
c787341fed update the .rst files from the changes in the code 2016-09-29 21:13:33 -04:00
immarvin
b6d14179ca add IMG_NAME into the environment variables to postinstall scripts 2016-09-23 14:32:54 +08:00
immarvin
66c99aad31 fix issue netboot postscripts have no knowledge about the osimage it is installing. #1857; export osimage attributes to postinstall scripts as environment variables 2016-09-22 05:05:00 -04:00
Victor Hu
6bdfc2044b Fixed based on review comments 2016-09-16 19:03:21 -04:00
Victor Hu
031a5022ce Change the man page for the chain table 2016-09-15 14:01:04 -04:00
Jarrod Johnson
3d90e27584 Merge remote-tracking branch 'personal/master' 2016-09-14 11:26:37 -04:00
Mark Gurevich
43a728b34f Change attribute name from vlantag to bmcvlantag 2016-09-12 14:36:20 -04:00
Mark Gurevich
fda2090c86 Update Schema.pm to generate new man pages for consoleondemand attribute 2016-09-09 16:08:40 -04:00
Jarrod Johnson
aeee5c6125 Merge branch 'master' of github.com:jjohnson42/xcat-core 2016-09-09 09:52:49 -04:00
Mark Gurevich
3c8144055b Modify description of taggedvlan column in ipmi db table 2016-09-02 11:47:40 -04:00
wangxiaopeng
39955c0cb5 issue 1471: fix the mistake in the man page for mkdef --template 2016-07-07 06:13:19 -04:00
Jarrod Johnson
6b3c4d9cd7 Update site man page with more info about installdir usage 2016-06-09 08:41:16 -04:00
Mark Gurevich
7675f7ca6e Schema.pm missing objects and spelling fixes 2016-06-07 15:13:34 -04:00
xuweibj
014de562f9 Merge pull request #1111 from whowutwut/install_disk
Modify the getinstdisk to create files called /tmp/xcat.install_disk to indicate xCAT related files  (DO NOT MERGE until after branch 2.12)
2016-06-07 14:28:00 +08:00
Mark Gurevich
f49345368e Checkin generated man5 and man7 generated .rst files 2016-05-27 11:55:59 -04:00
chenglch
6de5c04f10 Fix typo error about hierarchical attributes 2016-05-17 02:08:12 -04:00
Victor Hu
23e124ac2d Modify the getinstdisk to create a temporary file called /tmp/xcat.install_disk
so that it's easier for the admin who is debugging the install to know which files
are created by xCAT
2016-05-12 13:33:28 -04:00
Victor Hu
a2815940c2 Update the missed .rst file changes to the master branch 2016-04-28 09:24:11 -04:00