jriguera / ansible-role-configdrive Goto Github PK
View Code? Open in Web Editor NEWConfigdrive Role for cloud-init with OpenStack Ironic
License: Apache License 2.0
Configdrive Role for cloud-init with OpenStack Ironic
License: Apache License 2.0
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"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.