MAAS allows specifying BMC IPv6 addresses without brackets ([ ])

Bug #1829612 reported by Andrew Forgue
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Medium
Newell Jensen

Bug Description

We're moving to a 100% IPv6 BMC environment due to IPv4 exhaustion and it appears MaaS today only publishes the IPv4 BMC info to the power configuration.

I can enter an IPv6 address into the IP address field of the IPMI power type but it just hangs on "checking power" and eventually returns `Error: Failed to power query 2001:ffff:ffff:ffff:4e38:d5ff:fe04:3a29: 2001: invalid hostname`

The ipmitool command on the rack controller seems to support it, no idea if that's relevant at all.

```
connect(3, {sa_family=AF_INET6, sin6_port=htons(623), inet_pton(AF_INET6, "2001:ffff:ffff:ffff:4e38:d5ff:fe04:3a29", &sin6_addr), sin6_flowinfo=htonl(0), sin6_scope_id=0}, 28) = 0
```

Tags: ipv6 power bmc
Changed in maas:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.6.0rc1
Revision history for this message
Andres Rodriguez (andreserl) wrote :

How did you add the IP address? Was it between brackets ? Can you try adding it between brackets?

instead of something like:

2001:ffff:ffff:ffff:4e38:d5ff:fe04:3a29

Try adding it like:

[2001:ffff:ffff:ffff:4e38:d5ff:fe04:3a29]

Changed in maas:
status: Triaged → Incomplete
Revision history for this message
Andrew Forgue (andrewjf) wrote :

Yes, this seems to work. However I can't test it end-to-end since I believe the network ACLs are missing return traffic from the IPMI device.

It does, however accept the input and I see the process on the rack controller contacting IPMI on the proper (IPv6 IP address) repeatedly. I'll update once I get the ACL fixed.

Changed in maas:
milestone: 2.6.0rc1 → 2.6.0rc2
Revision history for this message
Andrew Forgue (andrewjf) wrote :

I confirmed that putting the IPv6 in brackets works.

summary: - Discovery should publish IPv6 BMC info as well
+ MAAS allows specifying BMC IPv6 addresses without brackets ([ ])
Changed in maas:
milestone: 2.6.0rc2 → 2.7.0beta1
status: Incomplete → Triaged
summary: - MAAS allows specifying BMC IPv6 addresses without brackets ([ ])
+ [UI, API] MAAS allows specifying BMC IPv6 addresses without brackets ([
+ ])
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Changed in maas:
milestone: 2.7.0b1 → 2.7.0b2
Changed in maas:
milestone: 2.7.0b2 → none
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

Is this still an issue in a more recent MAAS (3.2 or later)?

summary: - [UI, API] MAAS allows specifying BMC IPv6 addresses without brackets ([
- ])
+ MAAS allows specifying BMC IPv6 addresses without brackets ([ ])
Changed in maas:
importance: High → Medium
status: Triaged → Incomplete
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.