Merge "Fix seed VM configdrive when admin network is a VLAN"
This commit is contained in:
commit
6828184ab1
@ -591,6 +591,11 @@ def net_configdrive_network_device(context, name, inventory_hostname=None):
|
|||||||
gateway = net_gateway(context, name, inventory_hostname)
|
gateway = net_gateway(context, name, inventory_hostname)
|
||||||
bootproto = net_bootproto(context, name, inventory_hostname)
|
bootproto = net_bootproto(context, name, inventory_hostname)
|
||||||
mtu = net_mtu(context, name, inventory_hostname)
|
mtu = net_mtu(context, name, inventory_hostname)
|
||||||
|
vlan = net_vlan(context, name, inventory_hostname)
|
||||||
|
if vlan:
|
||||||
|
backend = [device.split('.')[0]]
|
||||||
|
else:
|
||||||
|
backend = None
|
||||||
interface = {
|
interface = {
|
||||||
'device': device,
|
'device': device,
|
||||||
'address': ip,
|
'address': ip,
|
||||||
@ -598,7 +603,10 @@ def net_configdrive_network_device(context, name, inventory_hostname=None):
|
|||||||
'gateway': gateway,
|
'gateway': gateway,
|
||||||
'bootproto': bootproto or 'static',
|
'bootproto': bootproto or 'static',
|
||||||
'mtu': mtu,
|
'mtu': mtu,
|
||||||
|
'backend': backend,
|
||||||
}
|
}
|
||||||
|
if vlan:
|
||||||
|
interface['type'] = 'vlan'
|
||||||
interface = {k: v for k, v in interface.items() if v is not None}
|
interface = {k: v for k, v in interface.items() if v is not None}
|
||||||
return interface
|
return interface
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes an issue with the seed's configdrive when the admin network is a
|
||||||
|
VLAN. See `story 2008089
|
||||||
|
<https://storyboard.openstack.org/#!/story/2008089>`__ for details.
|
@ -8,7 +8,7 @@ roles:
|
|||||||
version: 1.1.0
|
version: 1.1.0
|
||||||
- src: jriguera.configdrive
|
- src: jriguera.configdrive
|
||||||
# There are no versioned releases of this role.
|
# There are no versioned releases of this role.
|
||||||
version: e12d38378ae127c9c61d170fa4ba4729f2c5f2ad
|
version: 29871bf3279ef95fc8f7339b9abd13f869980750
|
||||||
- src: MichaelRigart.interfaces
|
- src: MichaelRigart.interfaces
|
||||||
version: v1.12.0
|
version: v1.12.0
|
||||||
- src: mrlesmithjr.chrony
|
- src: mrlesmithjr.chrony
|
||||||
|
Loading…
x
Reference in New Issue
Block a user