Coder Social home page Coder Social logo

ansible-role-configdrive's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-role-configdrive's Issues

Host fails to boot if any interface has no gateway

Seen on CentOS 8, but probably more related to cloud-init. For a host with network configuration where at least one interface does not have a gateway.

2020-05-29 08:17:24,738 - util.py[WARNING]: failed stage init-local                     
failed run of stage init-local                                                          
------------------------------------------------------------                            
Traceback (most recent call last):                                                      
  File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 652, in stt       
atus_wrapper                                                                            
    ret = functor(name, args)                                                           
  File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 362, in maa       
in_init                                                                                 
    init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL))              
  File "/usr/lib/python3.6/site-packages/cloudinit/stages.py", line 672, in appll       
y_network_config                                                                        
    return self.distro.apply_network_config(netcfg, bring_up=bring_up)                  
  File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 177       
8, in apply_network_config                                                              
    dev_names = self._write_network_config(netconfig)                                   
  File "/usr/lib/python3.6/site-packages/cloudinit/distros/rhel.py", line 65, inn       
 _write_network_config                                                                  
    return self._supported_write_network_config(netconfig)                              
  File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 933       
, in _supported_write_network_config                                                    
    renderer.render_network_config(network_config)                                      
  File "/usr/lib/python3.6/site-packages/cloudinit/net/renderer.py", line 56, inn  
 render_network_config                                                             
    templates=templates, target=target)                                            
  File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 662,    
in render_network_state                                                            
    templates=templates).items():                                                  
  File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 635,    
in _render_sysconfig                                                               
    cls._render_physical_interfaces(network_state, iface_contents)                 
  File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 494,    
in _render_physical_interfaces                                                     
    cls._render_subnet_routes(iface_cfg, route_cfg, iface_subnets)                 
  File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 422,    
in _render_subnet_routes                                                           
    is_ipv6 = subnet.get('ipv6') or is_ipv6_addr(route['gateway'])                 
KeyError: 'gateway'                                                                
------------------------------------------------------------    

This happens because there is an entry in the routes list in network_info.json that looks like this:

{"network": "0.0.0.0", "netmask": "0.0.0.0"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.