puppet-nova/releasenotes/notes/add-cinder-creds-91a50b74c8bdb541.yaml
Rajesh Tailor 848ac0b5e1 Add cinder credentials in nova conf
Added 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.

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 with state: attached and in-use,
even when attached instances was deleted.

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

The corresponding nova changes merged in change
https://review.opendev.org/#/c/522112/

Related-Bug: #1734025
Change-Id: Ib58c2ca04dfe6d1e1ff849f600a9a24724205078
2019-05-17 18:49:46 +05:30

13 lines
601 B
YAML

---
fixes:
- |
Add cinder credentials in cinder section of nova conf to fix issue
when reclaim_instance_interval > 0 and delete instance which booted
from volume 'delete_on_termination' set as true. The volume status
showing attached and in-use, even after instance deletion, since
the admin context didn't have any token info hence call to cinder
api failed.
In case when context is is_admin and without token,added cinder creds
used to do authentication with user/project info to call cinder api.
[Bug `1734025 <https://bugs.launchpad.net/nova/+bug/1734025>`_]