yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #80470
[Bug 1849481] Re: Failed to delete volumes while delete instance
>From the logs I see cinder.auth_type = None so the [cinder] section of
the nova configuration is not configured for a service user to act on
behalf of the user to detach and delete the volume. With
reclaim_instance_interval>0 the periodic task in the compute service
will delete the server and the volume but doesn't have the user token so
you must configure nova to have admin rights to work with cinder on the
user's behalf. For example:
https://review.opendev.org/#/c/685488/
I'm going to mark this as invalid since it's a misconfiguration, though
arguably we should update the documentation for the
reclaim_instance_interval option to mention needing to configure cinder
to properly clean up volumes when the server is deleted.
** Changed in: nova
Status: New => Invalid
** Changed in: nova
Status: Invalid => Triaged
--
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):
Triaged
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