Script to delete the nightly AMIs periodically #6613
No reviewers
Labels
No labels
after freeze
automation
backlog
blocked
change-ack
change-nak
change-noreleng
changes
Closed As
Can't Fix
Closed As
Duplicate
Closed As
Fixed
Closed As
Fixed with Explanation
Closed As
Get back later
Closed As
Grooming
Closed As
Insufficient data
Closed As
Invalid
Closed As
It's all good
Closed As
taiga
Closed As
upstream
day-to-day
dev
docs
easyfix
epel
f26
f27
f28
f29
f30
f31
f32
f33
f34
f35
f36
f37
f38
f39
f40
f41
f42
f43
f44
f45
fedora
groomed
high-gain
high-trouble
in-progress
in-review
investigation
legal
low-gain
low-trouble
mass rebuild
medium-gain
medium-trouble
meeting
mini-initiative
new_artifact
ops
pdc_retirement
rawhide
RCA
review
script
sidetarget
sprint-0
sprint-1
sprint-2
sprint-3
sprint-4
sprint-5
unfrozen
waiting on external
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
releng/tickets!6613
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "clean-amis"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The nightly AMIs right now gets accumulated over time and needs to be deleted manually. This script will run as cron and:
This script needs to tested before actually deployment. The script has a
--dry-runoption which just prints the ami_id which would have been effected by that operation.10 days in the state of "no launch permission" would be more desirable to me
@sayanchowdhury told me he's working on this PR this week, now that he's back from PyCon Pune.
how is this supposed to be integrated into our processes?
rebased
I've updated the script as @dustymabe pointed out.
This script will keep running separately as a cron. One thing that I will be adding after a few successful run of this script is that after the final release, the script is needed to be run to delete the pre-released (Alpha, Beta) AMIs.
Any update on this ticket? It's been a long time we have done the cleanup of the AMIs and there should have been a huge backlog of snapshots.
This really needs to get reviewed and merged. It's been many months, and in the meantime our EC2 EBS costs (snapshot image storage) have been mounting up, almost doubling in that time frame. This potentially puts the generous donation from our friends at Amazon at risk. Could someone in @releng resolve this please?
Some of us spoke on IRC and came up with a plan, for now @puiterwijk will provision us limited AWS tokens in order to run this with cron on compose-x86-01 and then we'll move to loopabull once that's available.
Merging.
Pull-Request has been merged by maxamillion