[SRU] all network devices aren't added to instance profile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Mitaka |
Fix Released
|
Medium
|
Unassigned | ||
nova-lxd |
Triaged
|
Medium
|
Unassigned | ||
nova-lxd (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Unassigned |
Bug Description
RELEASE: nova-compute-lxd 13.3.0-0ubuntu1
DESCRIPTION:
In config.py the network_devices object should be returned after the 'for vifaddr in network_info:' loop to ensure the network_devices object includes all network devices.
CURRENT CODE (annotated area of interest with >>>>):
def create_
"""Create the LXD container network on the host
:param instance_name: nova instance name
:param instance: nova instance object
:param network_info: instance network configuration object
"""
try:
if not network_info:
for vifaddr in network_info:
cfg = self.vif_
key = str(cfg['bridge'])
if host_device:
>>>> return network_devices
except Exception as ex:
with excutils.
PROPOSED CHANGE (annotated area of interest with >>>>):
def create_
"""Create the LXD container network on the host
:param instance_name: nova instance name
:param instance: nova instance object
:param network_info: instance network configuration object
"""
try:
if not network_info:
for vifaddr in network_info:
cfg = self.vif_
key = str(cfg['bridge'])
if host_device:
>>>> return network_devices
except Exception as ex:
with excutils.
-------
Adding fields for Ubuntu SRU template:
[Impact]
See Description above.
[Test Case]
Manual test with devstack to ensure no regressions. Manual check to verify that container gets multiple net devices.
[Regression Potential]
Low, as virtually all openstack deployments with containers tend to only have one network device.
description: | updated |
summary: |
- all network devices aren't added to instance profile + [SRU] all network devices aren't added to instance profile |
Changed in cloud-archive: | |
status: | New → Fix Released |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
tags: |
added: verification-done-xenial removed: verification-xenial-done |
This bug impacts mitaka and newton branches only; the code was refactored @ ocata and now does the right thing with regards to building the entire dict of network data.