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

20505 Commits

Author SHA1 Message Date
c8c1fc276f Allow -d <directory name> flag for rflash 2017-08-21 15:12:41 -04:00
ea254aeeef Merge pull request #3716 from xuweibj/rspdhcp
rspconfig ip to dhcp for openbmc
2017-08-21 10:28:14 -04:00
2bad7b823d Merge pull request #3684 from gurevichmark/openbmc_rflash_relative_path
Allow update image relative filename
2017-08-21 10:20:28 -04:00
1bde69df54 modify xcatconfig testcase for issue 3636 (#3695)
* modify xcatconfig testcase for issue 3636

* modify xcatconfig testcase for issue 3636
2017-08-21 15:25:34 +08: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
160ebcdb9b Merge pull request #3720 from tingtli/mkdef_regex_kvm
fix bug 3718, refine case mkdef_regex_kvm to reduce the false failure
2017-08-21 11:10:47 +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
337501871f modified depending on comments 2017-08-20 22:35:31 -04:00
0dbfef1e01 modified depending on comments 2017-08-20 22:33:36 -04:00
7f23dd3c08 Merge pull request #3702 from gurevichmark/boston_update_enhancements
handle rflash relative path and more Boston product ids
2017-08-18 14:10:35 -04:00
786901ac88 Merge pull request #3723 from robin2008/destiny-3722
Fix 3722, move setNodesAttribute out of the node loop
2017-08-18 22:12:27 +08:00
1db1308eb3 Fix 3722, move setNodesAttribute out of the node loop 2017-08-18 17:55:28 +08:00
929778ca61 Merge pull request #3715 from tingtli/makedhcp
fix some typo in case makedhcp_remote_network
2017-08-18 15:25:45 +08:00
52b1226c68 fix bug 3718, refine case mkdef_regex_kvm to reduce the false failure 2017-08-18 02:50:25 -04:00
092dea62e9 refine case makeknownhosts_node_d 2017-08-17 23:06:05 -04:00
c22e7c5928 Merge pull request #3685 from chenglch/bmcdiscover
Fix the error caused by too many open file descriptors
2017-08-18 11:04:46 +08:00
ff7e52b304 rspconfig ip to dhcp for openbmc 2017-08-17 22:03:57 -04:00
425188dd79 fix some typo in case makedhcp_remote_network 2017-08-17 21:56:54 -04:00
c8ee22034d Manpage and usage improvements 2017-08-17 10:48:36 -04:00
fc07c02e74 Merge pull request #3694 from immarvin/ondiscovery
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 16:43:55 +08: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
c798d4d029 Merge pull request #3703 from mattaezell/switch_macmap_natural_sort
Sort 'xcatprobe switch_macmap' ports in 'natural' order
2017-08-17 13:34:05 +08:00
02be314d54 Merge pull request #3705 from robin2008/xcatdsource-impact
Filter non-content lines when generating mypostscripts
2017-08-17 12:20:03 +08: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
502bf262e0 Merge pull request #3548 from junxiawang/0727
add test case for issue 3414 :  incorrect petitboot configuration for nodeset shell in flat
2017-08-17 11:29:48 +08:00
8c663f946b Filter non-content lines when generating mypostscripts 2017-08-17 10:49:27 +08:00
a364dad6cf Add xCAT MN migration doc (#3646)
* Add xCAT MN migration doc

* polished based on comments

* polished

* polished
2017-08-17 10:18:29 +08:00
45df02f4f3 Sort 'xcatprobe switch_macmap' ports in 'natural' order
Old: swp1,swp11,swp12,swp2,swp20,swp21
New: swp1,swp2,swp11,swp12,swp20,swp21
2017-08-16 21:17:30 -04:00
f3a506496d hangle rflash relative path and more Boston product ids 2017-08-16 15:19:48 -04:00
c3f335b8a0 incorrect petitboot configuration for nodeset shell in flat #3548 2017-08-16 09:01:13 -04:00
2516628c9a incorrect petitboot configuration for nodeset shell in flat #3548 2017-08-16 08:49:43 -04:00
feb51eb6a6 Merge pull request #3692 from whowutwut/bmcdiscover_model
Change bmcdiscover for OpenBMC to look at Model instead of PartNumber
2017-08-16 17:51:44 +08:00
fd339de900 Merge pull request #3662 from whowutwut/sn_pkglist
Adding some packages that would help debug xCAT issues from service nodes
2017-08-16 17:03:55 +08:00
61bad88824 Change bmcdiscover for OpenBMC to look at Model instead of Part Number 2017-08-15 21:09:05 -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
0dcd6cc5c0 Message changed per suggestion 2017-08-15 13:13:06 -04:00
eb5777ca2e Fix the error caused by too much open file descriptors
The code in bmcdiscover do not close socket pair correctly which
causes `Too many open files` error from system. This commit maintains
a hash map to locate the file descriptors for child processes, close
these files when the child processes exit.

fix-issue: #3682
2017-08-15 17:57:11 +08: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
7f48425190 Allow update image relative filename 2017-08-14 15:54:05 -04:00
77ece332c0 Merge pull request #3680 from zet809/modify_return_code_for_switchmacmap
return errorcode 1 if failed for xcatprobe switch_macmap
2017-08-14 15:55:58 +08:00
e83e3615ea Merge pull request #3610 from hu-weihua/discovery
Add test cases for node discovery (mtm_based and switch_based) and bmc discovery
2017-08-14 14:28:32 +08:00
94009a475d return errorcode 1 if failed for xcatprobe switch_macmap 2017-08-14 02:22:21 -04:00
a97f6507c2 modify depending on comment 2017-08-14 02:14:23 -04:00
f9cc8f71b9 Merge pull request #3654 from cxhong/sshpass
using sshpass (if availble) connect to openbmc console
2017-08-14 13:43:25 +08:00
e421982a59 Modify depending on comments 2017-08-14 01:07:09 -04:00
fab77a0c30 Adding strace to the pkglist for service nodes 2017-08-11 22:53:02 -04:00
5f267b7b98 Merge pull request #3664 from whowutwut/remove_discovery_workaround
Remove workaround for OpenBMC discovery to provide a unique discover node name
2017-08-11 16:55:48 +08:00