The network metadata should be more useful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
There are three issues affecting the useability of the network information presented to an instance via the metadata API:
1. For networks using DHCP, the IP address information is omitted. There are however use cases where an instance would want to use static address configuration even when DHCP is available. So adding the information would make deploying such an instance easier.
2. For IPv6 subnets, netmasks should not be presented as bitmasks, but in prefixlen notation instead, e.g. "/16" instead of "ffff::".
3. For IPv6 subnets, the type is always "ipv6_dhcp", regardless of whether the subnet has mode "slaac", "dhcpv6-stateless" or "dhcpv6-stateful". This makes is impossible for an instance to decide whether it should use DHCPv6 for address and/or additional configuration.
Here is the current output for an instance with one network for IPv4 and one for IPv6:
{
"services": [
],
"networks": [
{
"network_id": "fb1ca77c-
"link": "tap92b3d1dd-12",
"type": "ipv4_dhcp",
"id": "network0"
},
{
"network_id": "6179a9e5-
"link": "tap2fa5e368-de",
"type": "ipv6_dhcp",
"id": "network1"
}
],
"links": [
{
"
"mtu": 1500,
"type": "ovs",
"id": "tap92b3d1dd-12",
"vif_id": "92b3d1dd-
},
{
"
"mtu": 1500,
"type": "ovs",
"id": "tap2fa5e368-de",
"vif_id": "2fa5e368-
}
]
}
Changed in nova: | |
assignee: | nobody → Dr. Jens Rosenboom (j-rosenboom-j) |
status: | New → In Progress |
description: | updated |
Changed in nova: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → Stephen Finucane (stephenfinucane) |
Changed in nova: | |
assignee: | Stephen Finucane (stephenfinucane) → Dr. Jens Rosenboom (j-rosenboom-j) |
Changed in nova: | |
assignee: | Dr. Jens Rosenboom (j-rosenboom-j) → Dan Peschman (dpeschman) |
Changed in nova: | |
status: | In Progress → Confirmed |
assignee: | Dan Peschman (dpeschman) → nobody |
tags: | added: metadata |
Hi Jens, I think you possibly make the case for splitting this into two bugs. One for the status IP addressing information and the other for the IPv6 specifics.