Improve error message for empty cached_nwinfo

The error currently returned when NetworkInfo isn't yet available for an
active instance is confusing for end users. This change updates that
error message to something more informative.

Change-Id: Ia1a88a63d2b1a2e595404e502f8094127135d7b0
Closes-bug: #1608726
This commit is contained in:
Augustina Ragwitz 2016-08-10 11:45:15 -07:00 committed by Sean Dague
parent d23fb5ff9f
commit cdb9a8435b
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ class FloatingIPActionController(wsgi.Controller):
LOG.warning(
_LW('Info cache is %r during associate with no nw_info cache'),
instance.info_cache, instance=instance)
msg = _('No nw_info cache associated with instance')
msg = _('Instance network is not ready yet')
raise webob.exc.HTTPBadRequest(explanation=msg)
fixed_ips = cached_nwinfo.fixed_ips()