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
Closes-Bug: #1647451
Change-Id: I8962a9cd472cbbb5b9b67c5b164ff29fd8f5558a
(cherry picked from commit 4a5ecf1e29c3bdbb022f98a5fba41d4e7df56d88)
Reviewed: https:/ /review. openstack. org/410618 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8e097039e73 663689b4c630589 ab2dd5a569b5de
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 8e097039e736636 89b4c630589ab2d d5a569b5de
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 b022f98a5fba41d 4e7df56d88)
(cherry picked from commit 4a5ecf1e29c3bdb