-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rehydrate NetworkInfo in reboot_instance()
In the process of implementing no-db-compute, the compute manager's reboot_instance() was stripped of its database accesses for getting an instance's block and network device info. That information is now passed in from the API layer over RPC. In the offending changeset (), the network_info was getting coerced to a list and thus calls to NetworkInfo.legacy() were failing in the manager's _legacy_nw_info() method. This patch rehydrates the NetworkInfo using the existing method for doing so, which fixes bug 1071017. A test is also added to prevent future regressions. Change-Id: I8fd1c2dde573bb7da3bfe1ee3193f9ba1167aaa7
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
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