RedHatQE / cloudwash

A cloud resources cleanup utility tool
Apache License 2.0
24 stars 29 forks source link

Adding image cleanup for clouds #101

Closed akhil-jha closed 1 year ago

akhil-jha commented 1 year ago

Links HMS-2043


(cloudwash) ➜  cloudwash git:(support_image_removal) ✗ swach -d aws --all

<<<<<<< Running the cleanup script in DRY RUN mode >>>>>>>
The AWS providers settings are initialized and validated !

Resources from the region: us-east-1

=========== DRY SUMMARY ============

IMAGES:
    Deletable: ['ami-0ba22849118c7101a', 'ami-03d1c1aee99de0c58']

====================================

(cloudwash) ➜  cloudwash git:(support_image_removal) ✗ swach -d azure --all

<<<<<<< Running the cleanup script in DRY RUN mode >>>>>>>
The AZURE providers settings are initialized and validated !

Resources from the region and resource group: eastus/redhat-deployed

=========== DRY SUMMARY ============

DISCs:
    Deletable: ['composer-api-qwd_disk1_9556a6aca0324ac5adf7e4a700f1c09b']
NICs:
    Deletable: ['composer-api-qwd96']
IMAGES:
    Deletable: ['composer-api-985124e5-b8a9-4969-98ec-400b6af7c924']

====================================

(cloudwash) ➜  cloudwash git:(support_image_removal) ✗ swach azure --all 

<<<<<<< Running the cleanup script in ACTION RUN mode >>>>>>>
The AZURE providers settings are initialized and validated !

Resources from the region and resource group: eastus/redhat-deployed
Stopped VMs: 
[]
Removed VMs: 
[]
Skipped VMs: 
[]
Removed NICs: 
['composer-api-qwd96']
Removed Discs: 
['composer-api-qwd_disk1_9556a6aca0324ac5adf7e4a700f1c09b']
Removed PIPs: 
['composer-api-qwd-ip']
Removed Images: 
['composer-api-985124e5-b8a9-4969-98ec-400b6af7c924']

Can't run on aws as we need those images :P

akhil-jha commented 1 year ago

@jyejare @mshriver

akhil-jha commented 1 year ago
swach azure --all

<<<<<<< Running the cleanup script in ACTION RUN mode >>>>>>>
The AZURE providers settings are initialized and validated !

Resources from the region and resource group: eastus/redhat-deployed
Stopped VMs: 
[]
Removed VMs: 
[]
Skipped VMs: 
[]
Removed Images: 
['composer-api-0b2a4123-68d5-4be7-9b71-e88401f90b4c', 'composer-api-48b46ce3-0e8d-42f4-ae35-f3e8a84167c3', 'composer-api-4d3c79dc-bebe-4688-971d-1baa9498c92f', 'composer-api-5181f605-0e5f-4a4e-9a9d-3f5b5de8ea7b', 'composer-api-596f8347-ea4e-447a-87b6-deff11ad6e7c', 'composer-api-5cb99b06-f685-46ba-9270-5c6cdc70401a', 'composer-api-6a46dda6-ef02-43f5-9973-1dd77a9e1578', 'composer-api-717af3b9-4c60-4f1e-be22-9af703fff0fe', 'composer-api-83731b17-41a0-446d-b56b-e56a0ddaeafd', 'composer-api-9947ab7a-5ef9-4041-bb64-316d156436cf', 'composer-api-ab2aa738-d362-4ebb-8388-9ab5c62d9a69', 'composer-api-c544f5c2-7ab0-428e-a085-fad79c1c559e', 'composer-api-d821a29f-c06d-442e-ad1c-df5b36464bff', 'composer-api-d942293b-1a80-4516-9f43-b08892a4acd7', 'composer-api-daf2fb61-8621-49ca-867e-1e75af0c2e41', 'composer-api-e2ee5537-a969-4d33-bf2b-7b34a4bc8501', 'composer-api-e471154d-50bf-4899-8c86-dbb5f3d522a6', 'composer-api-e4fadca4-41ab-4323-ba38-d8ff8421115a', 'composer-api-fc0d890a-896c-489b-892a-6ba136d940d3', 'composer-api-fed68239-5d7e-43f8-ab89-003fedd25e81']
(cloudwash) ➜  cloudwash git:(support_image_removal) ✗ swach -d aws --all

<<<<<<< Running the cleanup script in DRY RUN mode >>>>>>>
The AWS providers settings are initialized and validated !

Resources from the region: us-east-1

=========== DRY SUMMARY ============

IMAGES:
    Deletable: ['ami-03d1c1aee99de0c58', 'ami-0ba22849118c7101a']

====================================
dpulls[bot] commented 1 year ago

:tada: All dependencies have been resolved !