Comment 5 for bug 1671927

Revision history for this message
Dan Peschman (dpeschman) wrote :

I don't know if it should be a separate bug or not, but - if you work around this issue by deleting the "lo" interface from the collection, the run finishes cleanly, but the GATEWAY is not rendered to ifcfg-eth0 nor route-eth0 because subnet['routes'] is empty.

I worked around this by adding a route to subnet['routes'] with gateway = subnet['gateway']. Like this in net/network_state.py around line 253:
+ if (subnet.get('routes', None) is None and
+ 'gateway' in subnet):
+ subnet['routes'] = [
+ {
+ 'gateway': subnet['gateway'],
+ 'netmask': '0.0.0.0',
+ 'network': '0.0.0.0'
+ }
+ ]