Fails to discover IPv6 address on iDRAC
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MAAS | Status tracked in 3.6 | |||||
3.4 |
Won't Fix
|
Medium
|
Unassigned | |||
3.5 |
Won't Fix
|
Medium
|
Unassigned | |||
3.6 |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hi,
We deployed maas 2.3.6 version in ipv6 machine.
When we enlist the node the script 30-maas-
After our investigation, we found the get_bmc_ip is getting None because our idrac did not return required key.
Below code it maas actual code had only these keys IPv6_Static_
our idrac did not return those keys and it has some other keys IPv6_Static_Address and IPv6_Dynamic_
So we added those keys like below and that worked
for section_name, key in [
]:
and also the for ipv6, maas did not require brackets
so we fixed that too
if section_
IDRAC version details:
=======
Firmware version: 6.00.02.00
BIOS version: 2.15.1
=======
Please find code snippet which we modified here:
def _get_bmc_ip(self, invalidate_
"""Return the current IP of the BMC, returns none if unavailable."""
show_re = re.compile(
)
# The MAC Address may only appear in Lan_Conf(IPv4) even when IPv6
# is in use.
mac_address = None
for section_name, key in [
]:
if invalidate_cache:
try:
except KeyError:
# Loop through the addreses by preference: IPv4, static IPv6, dynamic
# IPv6. Return the first valid, non-link-local address we find.
# While we could conceivably allow link-local addresses, we would need
# to devine which of our interfaces is the correct link, and then we
# would need support for link-local addresses in freeipmi-tools.
res = show_re.
for ip in res:
if ip.lower(
if section_
# No valid IP address was found.
return None, mac_address
summary: |
- Bug found in maas 2.3.6 version + Fails to discover IPv6 address on iDRAC |
Changed in maas: | |
status: | Incomplete → Triaged |
Changed in maas: | |
status: | Incomplete → Triaged |
Changed in maas: | |
milestone: | none → 3.4.0 |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Changed in maas: | |
milestone: | 3.4.x → 3.5.x |
Hi, thanks for opening this Issue and sharing your fix.
MAAS 2.3.6 is too old nowadays, could you confirm you which version of MAAS are using and how did you installed it (sanp or deb package)?