Skip to content

Create a HostPort with a shared network is not possible

Created by: n-pochet

I need to create a HostPort on a shared network. Unfortunately, every time that I deploy the model, the resource is skipped with a message like: Resource openstack::HostPort[iaas_openstack,name=source_port],v=1513333248 was skipped: ('Network source_fw_network for port source_port not found.',) I found that it is raised init.py L1354 It is raised because no network with the name given is found when calling self.get_network(project_id, resource.network) (see init.py L1352) The problem is that get_network() will make a call with neutron by filtering on tenant_id (see init.py L606) and it thus not possible to see shared networks.