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

69 Commits

Author SHA1 Message Date
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
61bad88824 Change bmcdiscover for OpenBMC to look at Model instead of Part Number 2017-08-15 21:09:05 -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
fa0799c4c4 With PR #3525 (4d54889a36) MAC address is used so this workaround is no longer needed 2017-08-10 15:16:15 -04:00
bb02b38583 add option --sn <sn_name> for bmcdiscover to discover bmc on sn (#3607) 2017-08-03 19:20:18 +08:00
4d54889a36 Task 3406, add BMC MAC in bmcdiscover and discovery process 2017-07-21 03:39:01 -04:00
08f0199b90 In latest ITC machine, the Model Type is in the PartNumber Field 2017-07-05 20:51:50 -04:00
df2f6a6cb5 Merge pull request #3311 from xuweibj/I3264
Modified judging condition of openbmc in bmcdiscover, if not open enter bmcdiscover_ipmi
2017-06-27 16:54:27 -04:00
4176017b17 Fix issue 3327, check environment of request type in openbmc and bmcdiscover 2017-06-25 23:06:54 -04:00
bc46643b73 Print the XCAT_DEV_WITHERSPOON bypass message out to the user 2017-06-22 23:08:15 -04:00
32b467d635 Our p9 boxes do not have any VPD information, so in order to force
the code to return a generated discovered definition, blank out the mtm
string if XCAT_DEV_WITHERSPOON=TRUE
2017-06-22 22:49:02 -04:00
eba16f3dd8 Found out that for Witherspoon machines, if the host has not been booted
there is no system information returned, so check for the boxelder bmc
for a model/serial combination to use
2017-06-22 20:39:27 -04:00
aaa62e3333 Modified judging condition of openbmc in bmcdiscover, if not open enter bmcdiscover_ipmi 2017-06-21 22:26:48 -04:00
3f43f44c7e Update code to print a warning message if we get a response error.
Currently there is nothing printed back so we can't tell if an error
has occurred.  Allow for some debug output if XCATBYPASS=1
2017-06-20 15:58:16 -04:00
7beacaa631 With mid June/2017 firmware, model number is moved from PartNumber -> Model 2017-06-16 11:04:10 -04:00
f05a0ace3b Merge pull request #3206 from whowutwut/bmcdiscover_openbmc
Change bmcdiscover to look at system information instead of motherboard info for OpenBMC
2017-06-09 10:47:32 +08:00
061b230edb Change to PartNumber and SerialNumber for bmcdiscover 2017-06-07 11:59:54 -04:00
b0fece2907 modify format of error msg for 2200 port to hash according to other msg 2017-06-06 02:10:18 -04:00
a2f2eaf0e7 Change bmcdiscover to look at system information instead of motherboard
information for the MTM/Serial Number.  Use variables for building up
then endpoint for OpenBMC
2017-06-05 20:05:00 -04:00
79f4ae63fa Close ssl verify for bmcdiscover on Ubuntu 2017-05-24 04:29:30 -04:00
75cb09d112 modified depending on comments 2017-05-23 03:41:30 -04:00
4515d197d9 Use LWP to send https request in bmcdiscover instead of curl command 2017-05-23 02:34:15 -04:00
83f5ea9321 Get username and password from passwd table for openbmc discover 2017-05-11 23:12:15 -04:00
36635b3fea modify return value of bmcdiscover check and ipsource options 2017-05-10 22:33:59 -04:00
f9eef1d3d0 modified depending on comments 2017-05-09 01:15:04 -04:00
52e2e2ff75 modified depending on comments 2017-05-08 04:00:52 -04:00
2155d8c33d modified depending on comments 2017-05-07 22:20:04 -04:00
bc5663b911 Enhance bmcdisocver to support openbmc 2017-05-05 02:30:08 -04:00
08443c20e0 fix issue 2348, check error msg when run bmcdiscover 2017-03-28 00:55:34 -04:00
4bfdf4d908 bmcdiscover: normalize nodename if mtm or serial contain unauthorized
characters
2017-02-10 14:10:06 -08:00
603c7785f7 MTM: add support for other vendors, in the form of vendor::model 2017-02-10 13:38:22 -08:00
a1d590f85f fix issue 2296, get correct mtms for B&S 2016-12-21 23:44:02 -05:00
d5022f8966 Remove nodetype and hwtype from bmcdiscover -z output 2016-10-18 13:03:27 -04:00
6dbb558cce change message to W as warning message 2016-10-12 11:24:19 -04:00
f69ced6932 Add WARN message if it has '-t' options 2016-10-11 22:15:29 -04:00
7587c3b946 Remove -t option for bmcdiscover and used by default 2016-10-11 09:08:19 -04:00
fb033f83d9 removed some blank space 2016-09-26 08:50:37 -04:00
0a8379c9ec modify code per ErTao's suggestion 2016-09-22 11:09:06 -04:00
e7f8d4261c bmcdiscover -i IP -u USERID -p PASSW0RD --ipsource failed 2016-09-21 22:40:36 -04:00
6133755f27 Seems like for discovery of FSP and TUL servers, there is no bmcuser
name so adding the code from commit 3f54b456d2
and d82e14b566 to set the default user breaks
that function.  Reverting back to the old ways
2016-08-30 13:42:21 -04:00
db9a71750e Fix sytax errors reported by perltidy 2016-07-25 08:56:18 -04:00
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
27f23d33b9 Handle commas in --range for nmap 2016-06-23 10:37:50 -04:00
1a4a64644e move get_nmapversion() to Utils.pm 2016-05-31 10:56:15 -04:00
be2e49a632 support different outputs from nmap command 2016-05-25 13:54:02 -04:00
abbd1817ac Support lower version of nmap on sles11.4 2016-05-17 16:13:47 -04:00
16f30d6bf0 In the error message, print the IP address for the BMC instead of the generated node
name because the generated node name is not complete and does not make sense
2016-05-07 09:54:46 -04:00
3f54b456d2 Overwriting the -u option passed in to bmcdiscover command was
only getting executed under a test for the -p option.  Move the
check outside so we overlay the default if any option is specified
2016-05-06 11:28:04 -04:00
d82e14b566 Change the usage to contain the short options for simplicity
- Fix the behavior so we obtain the default user/pass from the passwd table
- overwrite the default using the command line options
- only the --check requires the user and pass to be passed in
- Do not display anything or write if the user/pass is incorrect, ERROR out
2016-04-28 00:18:56 -04:00
e55bb69c3e Fix Formatting 2016-04-27 23:50:48 -04:00