-
Notifications
You must be signed in to change notification settings - Fork 76
ore aws upload
does not override existing AMIs/snapshots
#1035
Comments
I agree that the The process for uploading an image follows the flow: upload bits to S3 -> create a snapshot from S3 -> create AMI from snapshot. Both AMI names are intended to be unique (although some of the AWS APIs don't/didn't respect that) and as such it makes sense that we might want to be able to create a new AMI with the same name (which would involve deleting both the AMI & the underlying snapshot). The actual fix would probably look something like adding code inside of the Is this something that is urgently needed for your current work or can you work around it for now (specifying a different AMI name will bypass it in the interim)? |
Nope, not urgent, just a nice to have. Just something I've noticed while doing some testing and was looking for some context. |
This behavior directly conflicts with cosa, since "failed" builds will reuse version numbers. See coreos/coreos-assembler#668 |
@cgwalters ah yeah, that's true. I'll try to get some spare cycles in the next week or two to hack on it; if anyone would like to pick up the work I'd also be happy to review it and/or answer any questions. |
ore aws upload
not respecting --force
?ore aws upload
does not override existing AMIs/snapshots
This matches the semantic intended for coreos-assembler. Closes: coreos#1035
This matches the semantic intended for coreos-assembler. Closes: coreos#1035
PR in #1039 |
This matches the semantic intended for coreos-assembler. Closes: coreos#1035
This matches the semantic intended for coreos-assembler, where currently it may reuse version numbers in the case of failed builds, and we want any existing content replaced. Closes: coreos#1035
This matches the semantic intended for coreos-assembler, where currently it may reuse version numbers in the case of failed builds, and we want any existing content replaced. Closes: coreos#1035
Maybe I am misunderstanding what the
--force
flag should do, but it doesn't appear to function the way it is described.Namely, if I use the
--force
flag when trying to upload avmdk
to AWS, if the name of the uploaded image is the same, the existing image is reused. I would expect that with the--force
flag, the image would always get re-uploaded/overwritten, but this does not appear to happen.The text was updated successfully, but these errors were encountered: