2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 00:00:12 +00:00
Commit Graph

3069 Commits

Author SHA1 Message Date
1dd8943ea0 Merge pull request #4121 from zet809/rspconfig_ipsrc_ip_for_openbmc
Add ipsrc for rspconfig, fix rspconfig vlan reading
2017-10-20 14:07:54 -04:00
a8371f7a7f Merge pull request #4098 from immarvin/onissue
fix [OpenBMC] rspconfig sshcfg issue where keys are not copied seems to be in xCAT #4074
2017-10-18 21:59:06 -04:00
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
c92834bfe1 Add ipsrc for rspconfig, fix rspconfig vlan reading 2017-10-18 04:44:16 -04:00
2e63607c8c refine the message in rspconfig sshcfg 2017-10-18 02:46:56 -04:00
d958b50d60 Merge pull request #4037 from robin2008/petitboot-error-handle-4-noderange
Enhance nodeset error handling not to exit with one node error when operating a node range
2017-10-17 14:34:44 +08:00
6892d88582 xcatprob switch_macmap command does not support IB switches (#4109) 2017-10-16 22:02:41 -05:00
4ef6cf663c Support Vlan info of Cumulus Switch for switch_macmap command (#4050)
* Support Vlan info of Cumulus Switch for switch_macmap command

* merge the code from PR #4022

* fill in mac info via ssh instead of snmp command
2017-10-12 21:05:47 -05:00
c012b45ec1 Merge branch 'master' into ZVM_XCAT_DEV 2017-10-03 09:44:06 -04:00
57aa417987 Not return directly for nodeset when hit one node failure 2017-09-30 10:29:32 +08:00
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
55e1dde86f fix issue Switch-based node discovery failed on cumulus switch #4007 (#4022) 2017-09-28 14:18:45 +08:00
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
ce443ed0e4 Merge pull request #3937 from mattaezell/docfix_3891
Fix the documentation from #3891
2017-09-26 10:47:17 +08:00
5ffaebd636 Add -c option for switchdiscover command to pass in community string 2017-09-22 16:36:06 -04:00
41fc149dc9 nic interface check to avoid dot in short host name 2017-09-19 04:44:29 -04:00
0d31efdd64 add another several mac prefixes for edgecore network devices 2017-09-19 02:21:31 -04:00
ec7ca5d330 Fix the documentation from #3891 2017-09-15 11:20:53 -04:00
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
f781063624 remove " in the Usage.pm for rvitals 2017-09-14 11:30:06 -04:00
555eef7794 modify netcfg and add rinv and rvitals command 2017-09-14 09:50:44 -04:00
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
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
e52f3e34ec re-modify the error message from switch_macmap output 2017-09-12 16:36:07 -04:00
7b017e89b9 Merge pull request #3885 from immarvin/ondiscovery
[do not merge]switch based node discovery enhancement
2017-09-12 19:20:13 +08:00
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
4e8588840a Merge pull request #3891 from mattaezell/regex_helpers
Add regex helpers
2017-09-12 10:09:38 +08:00
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
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
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
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
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
f2ff7cdb73 Add usage change for rspconfig to set hostname on OpenBMC 2017-08-30 14:21:14 -04:00
0b1986bb52 Update Schema.pm 2017-08-28 08:18:10 -04:00
f69f9ec2bf OpenBMC upload and activate firmware image file 2017-08-23 12:08:51 -04:00
c8c1fc276f Allow -d <directory name> flag for rflash 2017-08-21 15:12:41 -04:00
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
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
c8ee22034d Manpage and usage improvements 2017-08-17 10:48:36 -04:00
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
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
62c56561f2 mend 2017-08-15 13:39:05 -04:00
63a6c46371 Sync Usage and Man pages for openbmc rflash command 2017-08-15 13:35:12 -04:00
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
021e873704 notify the nodes which are sending findme requestd about the status of the processing 2017-08-15 03:58:44 -04:00
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
e9029f484f Merge branch 'master' into ZVM_XCAT_DEV 2017-08-09 09:31:22 -04:00
eeb32f8431 Merge pull request #3608 from gurevichmark/openbmc_rflash_delete_image
Implement openbmc image delete function
2017-08-08 15:17:05 +08:00
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
0ca911b9f3 Usage and man page update 2017-08-03 14:50:46 -04:00