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.
Reviewed: https:/ /review. openstack. org/57711 github. com/openstack/ nova/commit/ 4c03383f21bc13c af3fed4db5aa131 7d37758d5c
Committed: http://
Submitter: Jenkins
Branch: master
commit 4c03383f21bc13c af3fed4db5aa131 7d37758d5c
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