diff options
author | Zuul <zuul@review.opendev.org> | 2019-05-21 19:38:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-05-21 19:38:58 +0000 |
commit | a29a27910a64ee24ce925438a7c692ee0e4b10de (patch) | |
tree | 603122d7b7e2d5e9fd8555aaaf5ac15378f9c544 | |
parent | 9f0850d87382ea0bcf36f4516577ce7f31f89c49 (diff) | |
parent | b2f0539d9ca223e5186d05bd7f4a86a162bc377d (diff) | |
download | ironic-python-agent-3.6.1.tar.gz |
Merge "Add more channel number for detecting BMC IP address" into stable/stein3.6.1
-rw-r--r-- | ironic_python_agent/hardware.py | 7 | ||||
-rw-r--r-- | releasenotes/notes/add-more-lan-channels-8f5197ed5f057c25.yaml | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index af71630c..42561c25 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -1111,9 +1111,10 @@ class GenericHardwareManager(HardwareManager): utils.try_execute('modprobe', 'ipmi_si') try: - # From all the channels 0-15, only 1-7 can be assigned to different - # types of communication media and protocols and effectively used - for channel in range(1, 8): + # From all the channels 0-15, only 1-11 can be assigned to + # different types of communication media and protocols and + # effectively used + for channel in range(1, 12): out, e = utils.execute( "ipmitool lan print {} | awk '/IP Address[ \\t]*:/" " {{print $4}}'".format(channel), shell=True) diff --git a/releasenotes/notes/add-more-lan-channels-8f5197ed5f057c25.yaml b/releasenotes/notes/add-more-lan-channels-8f5197ed5f057c25.yaml new file mode 100644 index 00000000..b659e386 --- /dev/null +++ b/releasenotes/notes/add-more-lan-channels-8f5197ed5f057c25.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + From IPMI specification v2.0, channel number 1-Bh(1-11) can + be used for various types of communications channels. + The respectively available channels depend on the specific + IPMI implementation for a specific server system. |