Project

General

Profile

Actions

Bug #20492

open

EBS autoscaler possibly not deleting volumes on terminate

Added by Peter Amstutz over 1 year ago. Updated 9 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

I'm looking at the "create-ebs-volume" script used by EBS autoscaler, it is possible that this needs to be updated to use DeviceName=$nvme_device:

   # set volume delete on termination
    aws ec2 modify-instance-attribute \
        --region $region \
        --instance-id $instance_id \
        --block-device-mappings "DeviceName=$device,Ebs={DeleteOnTermination=true,VolumeId=$volume_id}" \
    > /dev/null
    logthis "volume $volume_id DeleteOnTermination ENABLED" 

    if [ -n "$nvme_device" ] ; then
echo "$nvme_device" 
    else
echo "$device" 
    fi

The fix might be trivial but we need to test it.

Also I checked pirca, I found one lingering volume, so it's possible we're seeing it to, but just don't have the compute load to end up with lots of lingering volumes.


Subtasks 1 (1 open0 closed)

Task #20504: Try to collect more information to reproduceNewActions
Actions

Also available in: Atom PDF