nova/nova/volume
lixipeng 4d7148709c Fix bug case by none token context
When set reclaim_instance_interval > 0, and then delete an
instance which booted from volume with `delete_on_termination`
set as true. After reclaim_instance_interval time pass,
all volumes boot instance will with state: attached and in-use,
but attached instances was deleted.

This bug case as admin context from
`nova.compute.manager._reclaim_queued_deletes` did not have
any token info, then call cinder api would be failed.

So add user/project CONF with admin role at cinder group,
and when determine context is_admin and without token, do
authenticaion with user/project info to call cinder api.

Conflicts:
    nova/volume/cinder.py
    nova/tests/unit/test_cinder.py

NOTE(huanhongda): The conflict is due to not having change
Ifc01dbf98545104c998ab96f65ff8623a6db0f28 in Pike.

Change-Id: I3c35bba43fee81baebe8261f546c1424ce3a3383
Closes-Bug: #1733736
Closes-Bug: #1734025
Partial-Bug: #1736773
(cherry picked from commit ca6daf148d)
2019-03-02 20:55:48 +08:00
..
__init__.py Remove deprecated config option volume_api_class 2016-07-21 23:08:08 +08:00
cinder.py Fix bug case by none token context 2019-03-02 20:55:48 +08:00