11
29
Fork
You've already forked ipmitool
33

Fail to start exchange-bmc-os-info service in some machines #46

Closed
opened 2024年10月10日 04:48:40 +02:00 by klmengkd · 1 comment

Describe the bug
In some machines fail to start exchange-bmc-os-info service,exchange-bmc-os-info.init.redhat script failed in get_bmc_ip() function:

get_bmc_ip()
{
#Thanks to http://ingvar.blog.redpill-linpro.com
for CHANNEL in `seq 1 14`
do
[ $(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
| grep -q "^Set") ] || break
done
# Get BMC_IPv4 and BMC_URL from BMC
TMP_IPv4=$(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
| sed -n "s#^IP Address .*: ##p")
valid_ip && BMC_IPv4=${TMP_IPv4} || BMC_IPv4=""


line 203 found "Set in Process", then found "IP Address" to get bmc ip.

but in my machine,channel 1 have "Set in Process" but no "IP Address" filed, channel 3 is correct:
image

Is this bmc problem?
And i think line 203 should grep -q "^IP Address" is better?

IPMITOOL Version
1.8.18

$ ipmitool -V
1.8.18
**Describe the bug** In some machines fail to start exchange-bmc-os-info service,exchange-bmc-os-info.init.redhat script failed in get_bmc_ip() function: https://codeberg.org/IPMITool/ipmitool/src/commit/5d540ad95ad1a7d2da4dcdd79a7fa4af28f6684d/contrib/exchange-bmc-os-info.init.redhat#L197-L210 line 203 found "Set in Process", then found "IP Address" to get bmc ip. but in my machine,channel 1 have "Set in Process" but no "IP Address" filed, channel 3 is correct: ![image](/attachments/ac09d10a-dbc4-4a06-a290-871dd093d6ee) Is this bmc problem? And i think line 203 should grep -q "^IP Address" is better? **IPMITOOL Version** 1.8.18 ```none $ ipmitool -V 1.8.18 ```

Looks like this is addressed by #52

Looks like this is addressed by https://codeberg.org/IPMITool/ipmitool/pulls/52
Sign in to join this conversation.
No Branch/Tag specified
master
bugfix/43-Fix-timezone-and-DST-in-SEL
pages
bugfix/fix-ci-builds
feature/refactor-sdr-name-handling
cleanup/nm
feature/add-support-for-boot-mailbox
codefactor
bugfix/26
IPMITOOL_1_8_19
IPMITOOL_1_8_18
IPMITOOL_1_8_17
IPMITOOL_1_8_16
IPMITOOL_1_8_15
IPMITOOL_1_8_15RC1
IPMITOOL_1_8_14
IPMITOOL_1_8_14RC2
IPMITOOL_1_8_14RC1
ipmitool
IPMITOOL_1_8_13
IPMITOOL_1_8_13RC1
IPMITOOL_1_8_12
IPMITOOL_1_8_9
IPMITOOL_1_8_8
IPMITOOL_1_8_7
IPMITOOL_1_8_6
IPMITOOL_1_8_5
IPMITOOL_1_8_0
IPMITOOL_S10_U1
IPMITOOL_1_6_1
IPMITOOL_1_6_0
IPMITOOL_1_5_9
IPMITOOL_1_5_8
IPMITOOL_1_5_7
IPMITOOL_1_5_6
IPMITOOL_1_5_4
IPMITOOL_1_4_1_1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
IPMITool/ipmitool#46
Reference in a new issue
IPMITool/ipmitool
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?