Post step could fail due to auth token expiration.
get_instance_nw_info fails with authentication required,
because there are several calls to neutron api, some of them
are admin context, while others try to use token from request
context. This patch ensure that if admin context is initially used,
all subsequent calls will use the same initialized client
Reviewed: https:/ /review. openstack. org/407147 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=4a5ecf1e29c 3bdbb022f98a5fb a41d4e7df56d88
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4a5ecf1e29c3bdb b022f98a5fba41d 4e7df56d88
Author: Timofey Durakov <email address hidden>
Date: Thu Dec 1 19:03:24 2016 +0300
fix for auth during live-migration
Post step could fail due to auth token expiration. instance_ nw_info fails with authentication required,
get_
because there are several calls to neutron api, some of them
are admin context, while others try to use token from request
context. This patch ensure that if admin context is initially used,
all subsequent calls will use the same initialized client
Closes-Bug: #1647451
Change-Id: I8962a9cd472cbb b5b9b67c5b164ff 29fd8f5558a