Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
2e52049
commit 4c03383
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters