Cannot get BMC address when using non-zero lan channel

Bug #1702514 reported by Mateusz Kowalski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ironic-python-agent
Fix Released
High
Mateusz Kowalski

Bug Description

In function get_bmc_address what is being executed is "ipmitool lan print". However in case of some manufacturers it happens that the correct IP address appears on a different lan channel. For example for Intel there is a case when to get a correct IP we need to execute "ipmitool lan print 3".

Patch for this would be to iterate 1..255 and in case we get "0.0.0.0" (meaning channel not configures), check the next one.

Changed in ironic-python-agent:
assignee: nobody → Mateusz Kowalski (makowals)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (master)

Fix proposed to branch: master
Review: https://review.openstack.org/480679

Changed in ironic-python-agent:
status: New → In Progress
Dmitry Tantsur (divius)
Changed in ironic-python-agent:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-python-agent (master)

Reviewed: https://review.openstack.org/480679
Committed: https://git.openstack.org/cgit/openstack/ironic-python-agent/commit/?id=7c28332e9a59da316a9d6e6652f4269b27b3ca66
Submitter: Jenkins
Branch: master

commit 7c28332e9a59da316a9d6e6652f4269b27b3ca66
Author: Mateusz Kowalski <email address hidden>
Date: Wed Jul 5 18:20:43 2017 +0200

    BMC can be configured using different lan channel

    It may happen that BMC is configured to use non-zero channel.
    In this case we should iterate across all of them as long as we
    get a correct IP address (in this case different than "0.0.0.0"
    which is a placeholder for not configured console).

    Change-Id: I3c351af1882b24c8f56e4363249b19b5c3a4a446
    Closes-Bug: #1702514

Changed in ironic-python-agent:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-python-agent (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/492455

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/ironic-python-agent 2.2.0

This issue was fixed in the openstack/ironic-python-agent 2.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic-python-agent (stable/ocata)

Change abandoned by Mateusz Kowalski (<email address hidden>) on branch: stable/ocata
Review: https://review.openstack.org/492455

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.