2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

3027 Commits

Author SHA1 Message Date
Bin Xu
0c42bef81e Fix 3827, add a flag to arrayops to keep the order of result so that (#3839)
the user info in generated passwd.merge file could be kept the previous order.
2017-09-04 11:20:46 +08:00
zet809
6e9971968b Merge pull request #3793 from whowutwut/openbmc_rspcfg_hostname
Add Support for rspconfig to set/get hostname of the BMC
2017-09-01 12:51:01 +08:00
Victor Hu
f2ff7cdb73 Add usage change for rspconfig to set hostname on OpenBMC 2017-08-30 14:21:14 -04:00
Mark Gurevich
f69f9ec2bf OpenBMC upload and activate firmware image file 2017-08-23 12:08:51 -04:00
Mark Gurevich
c8c1fc276f Allow -d <directory name> flag for rflash 2017-08-21 15:12:41 -04:00
zet809
68df04602c Merge pull request #3707 from mattaezell/switch_macmap_skip_permanent
Skip built-in MAC addresses on switches
2017-08-21 11:21:39 +08:00
zet809
223c3381b4 Merge pull request #3689 from gurevichmark/openbmc_rflash_usage_sync
Sync Usage and Man pages for openbmc rflash command
2017-08-21 10:42:28 +08:00
Mark Gurevich
c8ee22034d Manpage and usage improvements 2017-08-17 10:48:36 -04:00
immarvin
39c4e7081f fix issue xCAT install failed on sles11.4 & rhels6.9 in automation #3693;move send_tcp_msg from Utils.pm to NetworkUtils.pm 2017-08-17 03:35:03 -04:00
Matt Ezell
ad7793909c Skip built-in MAC addresses on switches
Newer Cumulus versions show a MAC address on each port. Those MACs
aren't discoverable devices, so skip them to clean up the
'xcatprobe switch_macmap' output.
2017-08-17 00:05:45 -04:00
Mark Gurevich
62c56561f2 mend 2017-08-15 13:39:05 -04:00
Mark Gurevich
63a6c46371 Sync Usage and Man pages for openbmc rflash command 2017-08-15 13:35:12 -04:00
zet809
c548d0bd77 Merge pull request #3678 from immarvin/ondiscovery
notify the nodes which are sending findme requestd about the status of the processing
2017-08-15 16:31:26 +08:00
immarvin
021e873704 notify the nodes which are sending findme requestd about the status of the processing 2017-08-15 03:58:44 -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
eeb32f8431 Merge pull request #3608 from gurevichmark/openbmc_rflash_delete_image
Implement openbmc image delete function
2017-08-08 15:17:05 +08:00
zet809
1826f8e75e Merge pull request #3557 from chenglch/table
Retry 3 times if database connection can not be established
2017-08-07 17:03:24 +08:00
Mark Gurevich
0ca911b9f3 Usage and man page update 2017-08-03 14:50:46 -04:00
chenglch
8373b5de6b Optimize the performance for getNodesAttribs and getAllNodeAttribs (#3593)
As `get_site_attribute` subroutine could not cache the value for
hierarchicalattrs configuration, this commit move the check logic of
`hierarchicalattrs` from `getNodeAttribs_nosub_returnany` to `getNodesAttribs`
and `getAllNodeAttribs` to optimize the the performance of bulk query.

After testing, this change will bring 50% performance improvement for
`getNodesAttribs` subroutine.
2017-08-02 21:17:53 -05: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
Bin Xu
0d85cd441b 1, Make the function header and comments more clear 2017-08-02 14:39:28 +08:00
Mark Gurevich
1d9909e074 Updates from review 2017-08-01 14:14:44 -04:00
Bin Xu
770d947c94 Using networks.dhcpserver as one accept whole noderange for nodeset. 2017-07-28 16:36:15 +08:00
chenglch
fdaeb5d761 Retry 3 times if database connection can not be established
As connection may fail due to the limit or error from database side,
this patch add retry mechanism to reduce probability of failure.

fix-issue: #2529
2017-07-28 13:53:34 +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
6aadfc2055 Fix 3474, introduce 'XCATSHOWSVR' to control whether to show where the message is from. 2017-07-27 16:08:14 +08:00
Bin Xu
31ba541657 Forwarding to MN if the request is accepted by SN 2017-07-27 15:55:30 +08:00
zet809
ddc06a3fa5 Merge pull request #3518 from tindelli/master
blacklist HP trunk interfaces
2017-07-25 13:58:08 +08:00
zet809
376f1b723d Merge pull request #3510 from cxhong/pdudiscover
Support pdudiscover command to discover PDU
2017-07-24 21:25:48 +08: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
Casandra Qiu
762ee31628 modified from review 2017-07-21 10:38:31 -04:00
chenglch
bc6ddccbd0 Modify the document and nics schema based on review comments. 2017-07-21 16:19:24 +08:00
Tom Indelli
7841a6a015 blacklist HP trunk interfaces 2017-07-20 14:40:48 -05:00
Mark Gurevich
1349d5b577 Merge pull request #3506 from xuweibj/I3496
fix 3496, depends on xcatdebugmode to print debug msg
2017-07-20 11:03:22 -04:00
XuWei
577e5cef28 modified depending on comments 2017-07-19 23:22:33 -04:00
Casandra Qiu
c3159a5b20 Support pdudiscover command to discover PDU 2017-07-19 17:18:31 -04:00
Xiaopeng Wang
8e6fdfde3d Merge pull request #3493 from zet809/fix_issue_3490
fix issue 3490: "rscan <hmc> -w" will delete ip attribute of node whi…
2017-07-19 16:09:43 +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
ertaozh
9e1008b18a fix issue 3490: "rscan <hmc> -w" will delete ip attribute of node which was defined ahead 2017-07-18 05:30:39 -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
d84490af02 add related docs 2017-07-12 21:09:15 -04:00
zet809
b5da727853 Merge pull request #3367 from cxhong/3305
Add Vlan and MTU to switch_macmap output
2017-07-12 09:39:29 +08:00
cxhong
a030a7f59e Merge pull request #3398 from samveen/mariadbsetup
[perl-xCAT] Allow `mysqlsetup` to configure mariadb too.
2017-07-11 16:17:53 -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
5f1d6e675a Add softoff for OpenBMC usage 2017-07-11 14:51:12 -04:00
Samveen Gulati
dd5d2263f6 Utils::servicemap: add mariadb as alias of mysql to %svchash 2017-07-05 04:35:03 +00:00