2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

3047 Commits

Author SHA1 Message Date
Victor Hu
474b78dc52 Merge pull request #4001 from cxhong/3977
Add -c option for switchdiscover command to pass in community string
2017-09-29 13:15:44 -04:00
yangsong
55e1dde86f fix issue Switch-based node discovery failed on cumulus switch #4007 (#4022) 2017-09-28 14:18:45 +08:00
Jarrod Johnson
f93f5e8e2c Workaround switches that report ifindex in bridge (#4019)
Some switches report ifindex instead of bridge index.

This is not compliant behavior.  However, we can detect
that every last mac was a dead end, and assume this is
the case to try to get better result.  This won't work
if there is overlap in interface and bridge indexes, so
in that case, the spec compliant behavior is assumed.
2017-09-27 21:31:30 -05:00
chenglch
ce443ed0e4 Merge pull request #3937 from mattaezell/docfix_3891
Fix the documentation from #3891
2017-09-26 10:47:17 +08:00
Casandra Qiu
5ffaebd636 Add -c option for switchdiscover command to pass in community string 2017-09-22 16:36:06 -04:00
bybai
41fc149dc9 nic interface check to avoid dot in short host name 2017-09-19 04:44:29 -04:00
immarvin
0d31efdd64 add another several mac prefixes for edgecore network devices 2017-09-19 02:21:31 -04:00
Matt Ezell
ec7ca5d330 Fix the documentation from #3891 2017-09-15 11:20:53 -04:00
zet809
d4de3c2110 Merge pull request #3629 from cxhong/netcfg
Support rspconfig command to change PDU's ip address, netmask and hostname
2017-09-14 23:56:36 +08:00
Casandra Qiu
f781063624 remove " in the Usage.pm for rvitals 2017-09-14 11:30:06 -04:00
Casandra Qiu
555eef7794 modify netcfg and add rinv and rvitals command 2017-09-14 09:50:44 -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
Yuan Bai
d45f7d4508 Add new PCI format support for pcipassthrough (#3916)
* add devpassthrough support

* add new pci format for pcipassthrough

* add new pci format support

* polished

* update doc
2017-09-14 17:15:47 +08:00
Casandra Qiu
e52f3e34ec re-modify the error message from switch_macmap output 2017-09-12 16:36:07 -04:00
zet809
7b017e89b9 Merge pull request #3885 from immarvin/ondiscovery
[do not merge]switch based node discovery enhancement
2017-09-12 19:20:13 +08:00
immarvin
ce8bb55e1d switch based node discovery enhancement: 1)obtain mac table from cumulus switch via ssh;2)remove unnecessary sleep 2 after node discovery 2017-09-12 04:35:56 -04:00
chenglch
4e8588840a Merge pull request #3891 from mattaezell/regex_helpers
Add regex helpers
2017-09-12 10:09:38 +08:00
chenglch
64ab7dbd27 Add rflash recovery support for Supermicro based firmware
This commit add recover option for rflash command to upload
bmc image with tftp when the BMC is in Brick Protection state.

Example:
```
rflash <node> --recover <image>
```
implement #3873
2017-09-11 02:44:22 -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
immarvin
9ba7b2938e fix issue [fvt] xcatd in SN did not load the latest version file after xcat upgrade in SN #3855 2017-09-06 03:43:50 -04:00
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