In before, if there is no network available, users don't know what is
wrong until the container is scheduled to a compute node and fail.
This commit moves the searching of neutron net to zun-api so that
users will receive an error response earlier if the request is
invalid.
Reviewed: https:/ /review. openstack. org/483113 /git.openstack. org/cgit/ openstack/ zun/commit/ ?id=019055e56b2 7f596593d345477 50d73b72609a56
Committed: https:/
Submitter: Jenkins
Branch: master
commit 019055e56b27f59 6593d34547750d7 3b72609a56
Author: Hongbin Lu <email address hidden>
Date: Wed Jul 12 22:08:16 2017 +0000
Move get_available_ network to API layer
In before, if there is no network available, users don't know what is
wrong until the container is scheduled to a compute node and fail.
This commit moves the searching of neutron net to zun-api so that
users will receive an error response earlier if the request is
invalid.
Change-Id: Ic9fd47c6e4aff4 131ebaad73a3bed 0f51eeb118c
Related-Bug: #1702581