Do not hide exception in update_instance_cache_with_nw_info
From time to time an exception is raised in this method causing
the nw_info cache not to be saved. If this occurs we should raise
as this error will cause later errors to occur. For example, one
won't be able to associate a floatingip with the instance as there
is no nw_info found in this table. In addition, the fixed_ips on
the instance won't be returned via the api.
This patch also stubs out update_instance_cache_with_nw_info in a
few tests where an exception was being raised previously but went
unnoticed as it was not reraised but now is.
Related-Bug: #1252849
Related-Bug: #1249065
Change-Id: Ic860f72210ba736e11c10df21c4cb7625e9c0928
(cherry picked from commit 4c03383f21bc13caf3fed4db5aa1317d37758d5c)
Reviewed: https:/ /review. openstack. org/73202 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=53acc09fb9b 3ffe7c69bdc484c 8cf56032182e28
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit 53acc09fb9b3ffe 7c69bdc484c8cf5 6032182e28
Author: Aaron Rosen <email address hidden>
Date: Thu Nov 21 07:57:44 2013 -0800
Do not hide exception in update_ instance_ cache_with_ nw_info
From time to time an exception is raised in this method causing
the nw_info cache not to be saved. If this occurs we should raise
as this error will cause later errors to occur. For example, one
won't be able to associate a floatingip with the instance as there
is no nw_info found in this table. In addition, the fixed_ips on
the instance won't be returned via the api.
This patch also stubs out update_ instance_ cache_with_ nw_info in a
few tests where an exception was being raised previously but went
unnoticed as it was not reraised but now is.
Related-Bug: #1252849
Related-Bug: #1249065
Change-Id: Ic860f72210ba73 6e11c10df21c4cb 7625e9c0928 af3fed4db5aa131 7d37758d5c)
(cherry picked from commit 4c03383f21bc13c