Add network property to openstack zun resource

Bug #1744012 reported by Maximilian Frank
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Confirmed
Undecided
hongbin
Zun
Invalid
Undecided
Unassigned

Bug Description

Currently the heat ressource for zun containers does not support configuring networks. It is only possible to retrieve the assigned port through its attributes. This limits the ability to configure networking for a container e.g. it is not possible to let a container have multiple networks.

Therefore i suggest adding a networks/nets property to the resource. The zun client allready supports such a property (called net) as creation attribute. See https://github.com/openstack/python-zunclient/blob/master/zunclient/v1/containers.py for details.

Supported network options are: --net <auto, network=network, port=port-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=i p-addr>

Adding this property will also make the zun container network configuration similar to nova compute network configuration. This should make it easier for heat users to adopt container resources when adding zun to their openstack.

The zun client also supports other creation attributes that are not yet part of the heat resource that could be added at the same time.

Tags: spec-lite
Revision history for this message
hongbin (hongbin034) wrote :

We are working on a patch for Heat: https://review.openstack.org/#/c/533426/ which should address this bug.

Revision history for this message
hongbin (hongbin034) wrote :

The patch above add support for 'network', 'port' and 'v4/v6-fixed-ip'. The 'auto' mode is not yet supported in Zun side and the CLI help text is inaccurate (which should be fixed). We have a BP to track the auto-allocated network feature: https://blueprints.launchpad.net/zun/+spec/auto-allocate-network . Once it is implemented, we will push another to Heat to support that.

Changed in zun:
status: New → Invalid
Changed in heat:
status: New → Confirmed
assignee: nobody → hongbin (hongbin034)
Revision history for this message
Maximilian Frank (max.frank) wrote :

Ah I did not see that there was a WIP patch before raising the issue. Then I will eagerly await for the patch to be finished and merged upstream. Thanks!

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.