← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1849481] Re: Failed to delete volumes while delete instance

 

Reviewed:  https://review.opendev.org/690602
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b5ae98df9ea1d4f3c064fa852b1c83d84a415a77
Submitter: Zuul
Branch:    master

commit b5ae98df9ea1d4f3c064fa852b1c83d84a415a77
Author: Matt Riedemann <mriedem.os@xxxxxxxxx>
Date:   Wed Oct 23 11:04:50 2019 -0400

    doc: note the need to configure cinder auth in reclaim_instance_interval
    
    Without configuring the [cinder] auth options in nova.conf, reclaiming
    SOFT_DELETED instances will fail to cleanup attached volumes since there
    is no user token in a periodic task and we have to rely on config to
    use a service user for that cleanup with cinder. This adds a note to the
    reclaim_instance_interval config option help to explain that.
    
    Change-Id: I9da30b53b4d1bcaca7944700a67a19523f3bcf5d
    Closes-Bug: #1849481


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1849481

Title:
  Failed to delete volumes while delete instance

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Brief Description
  -----------------
    To launch an instance and select "delete volume while deleting instance".
    After the instance deleted, the attached volume still remained.
    please refer to attached file as nova_compute.log

  Steps to Reproduce
  ------------------
    1. modify "reclaim_instance_interval" value from 0 -> 180 in nova/conf/compute.py on docker nova_api and nova compute
    2. docker restart nova_api & nova_compute
    3. login to Openstack from browser, and launch an instance with "delete volume while deleting instance"
    4. Delete instance 
    5. Check attached volume still be there, and status is "running"

  Expected Behavior
  ------------------
    Delete instance and attached volume should be deleted also.

  Enviroment
  ------------------
    Broswer: Chrome  77.0.3865.120 
    OS: macOS Mojave 10.14.6
    Openstack version: stein
    Openstack deployed system: Centos Linux version 3.10.0-1062.1.2.el7.x86_64
    
  Reproducibility
  ---------------
  100% reproduce able.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1849481/+subscriptions


References