reclaim_instance_interval causes dirty attached volume
Bug #1733736 reported by
Li Xipeng
This bug affects 21 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Li Xipeng |
Bug Description
Description
When set reclaim_
After reclaim_
Steps to reproduce
1. set reclaim_
2. create a bootable volume
3. boot instance with created bootable volume
4. delete instance, and wait 60 seconds
Expected result
Previous test bootable volume was deleted after reclaim_
Actual result
Previous test bootable volume was in state attached and in-use, attached with deleted instance.
description: | updated |
Changed in nova: | |
assignee: | nobody → Li Xipeng (lixipeng) |
Changed in nova: | |
status: | New → In Progress |
summary: |
- reclaim_instance_interval + reclaim_instance_interval case dirty attached volume |
tags: | added: volumes |
Changed in nova: | |
importance: | Undecided → High |
summary: |
- reclaim_instance_interval case dirty attached volume + reclaim_instance_interval cause dirty attached volume |
Changed in nova: | |
assignee: | Li Xipeng (lixipeng) → Matt Riedemann (mriedem) |
summary: |
- reclaim_instance_interval cause dirty attached volume + reclaim_instance_interval causes dirty attached volume |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Li Xipeng (lixipeng) |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/522112 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ca6daf148de bb9c9646fcf6db9 660c830da5a594
Committed: https:/
Submitter: Zuul
Branch: master
commit ca6daf148debb9c 9646fcf6db9660c 830da5a594
Author: lixipeng <email address hidden>
Date: Wed Nov 22 12:03:58 2017 +0800
Fix bug case by none token context
When set reclaim_ instance_ interval > 0, and then delete an on_termination` instance_ interval time pass,
instance which booted from volume with `delete_
set as true. After reclaim_
all volumes boot instance will with state: attached and in-use,
but attached instances was deleted.
This bug case as admin context from compute. manager. _reclaim_ queued_ deletes` did not have
`nova.
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.
Change-Id: I3c35bba43fee81 baebe8261f546c1 424ce3a3383
Closes-Bug: #1733736
Closes-Bug: #1734025
Partial-Bug: #1736773