Jinja2 3.0.0 deprecated contextfilter in favour of pass_context. 3.1.0
dropped contextfilter.
Fall back to contextfilter for Jinja2 2.x.
This change also fixes some issues caused by Ansible lint 6.0. Issues
found by the yaml plugin are fixed, while the FQCN for builtin actions
plugin is skipped.
Change-Id: I97b25551eb26da2c9100120bcd646c88fdb33ba6
Currently ansible-lint is failing with:
KeyError: 'hostvars'
This change fixes the issue by making the hostvars key optional. This
should not affect real usage, since an error is raised in this case.
Change-Id: I6dd482e95fa4f5508452d83bb64613d55eb1985f
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library , switches the mock library
to unittest.mock and removes future.
Change-Id: I71b11f13691d13df162b203f7ea5979b30c272df
We name veth pairs using up to the first 6 characters from the nodes names. If
the node name prefixes are longer than this then the node index will not be
included, and the interface names will not be unique.
e.g. prefix compute, 2 nodes: compute0 & compute1
Link names are all p-comput-0-tap
Note that the 0 here is the index of the physnet, node the node.
This patch includes any trailing digits to keep link names unique, e.g.
p-compu0-0-tap.
Change-Id: I35c3da1d00030d8a270ac1a09e88e22098594f20
Story: 2007431
Task: 39058
While OVS was used initially due to availability of a
networking-generic-switch driver for it, Linux bridge can be useful for
environments where OVS is not available.
This is configured via bridge_type variable. It defaults to
'openvswitch', but may be set to 'linuxbridge'.
Change-Id: I750a73cebc743edcbcd8c23c67e4920d0058bead
Tenks currently uses macvtap interfaces in 'VEPA' mode for the VMs. If the VMs
run any virtual networking internally, typically this will use a different MAC
address, which will not be reachable from outside due to the macvtap MAC
filtering.
This change uses macvtap 'passthrough' mode, such that all traffic is passed.
Change-Id: I0077c7001b2b419a94ea420833fa6dd3e8a3a967
Story: 2004906
Task: 29256
Linux interface names can be a maximum of 15 characters. Long node names can
exceed this limit, when combined with the patch port prefix, node index and
patch port suffix. By default, these are:
p-<node name prefix>-<node index>-(phy|ovs)
This is 7 characters, plus the node name prefix, plus the node index. A 6
character limit on the node name prefix gives a bit of wiggle room if the patch
prefix or suffix are changed from the defaults.
Change-Id: I672709a2fbf4eec2f7b7ba64404282d7f1e62935
TrivialFix
It is necessary in some places to use the network name filter plugins in
the context of any given hypervisor, even when the task is executing on
localhost. For this, allow an inventory_hostname to be specified.
Ironic will be controlling the power state of the nodes, and we may want to be
able to control when inspection happens, so don't start Libvirt domains
automatically.