Skip to content

Support uploading to OpenStack#337

Merged
achilleas-k merged 1 commit intoosbuild:mainfrom
FrostyX:openstack
Oct 20, 2025
Merged

Support uploading to OpenStack#337
achilleas-k merged 1 commit intoosbuild:mainfrom
FrostyX:openstack

Conversation

@FrostyX
Copy link
Contributor

@FrostyX FrostyX commented Oct 2, 2025

@FrostyX FrostyX requested a review from a team as a code owner October 2, 2025 21:57
@FrostyX FrostyX requested review from achilleas-k, croissanne and thozza and removed request for a team October 2, 2025 21:57
@supakeen
Copy link
Member

supakeen commented Oct 10, 2025

If you drop your changes to go.mod / go.sum and rebase then I think this will turn green and we can merge? :)

Sorry, I thought the images PR had merged.

@achilleas-k
Copy link
Member

Hey @FrostyX. Now that the images PR has been merged, should we get this rebased and fixed up? We can take it over if you don't have time.

@FrostyX
Copy link
Contributor Author

FrostyX commented Oct 14, 2025

We can take it over if you don't have time.

No need, I was monitoring the images repo releases and wanted to rebase today.

supakeen
supakeen previously approved these changes Oct 14, 2025
Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some minor remarks on wording but not really blockers.

uploadCmd.Flags().String("libvirt-connection", "", "connection URI (only for type=libvirt)")
uploadCmd.Flags().String("libvirt-pool", "", "pool name (only for type=libvirt)")
uploadCmd.Flags().String("libvirt-volume", "", "volume name (only for type=libvirt)")
uploadCmd.Flags().String("openstack-image", "", "name for the uploaded image (only for type=openstack)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do these type= things here (and above) actually mean? I never quite looked at the upload command in depth.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that it can be only used for image-builder upload --to openstack or --to aws, etc. Not sure why the descriptions say type= though. I did the same that the AWS uploader did.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it just documenting what image type the uploader applies to? You can't (or shouldn't) upload a vhd to AWS, only ami.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achilleas-k That was my first thought as well but only ami is an image type?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess for aws it would be more correct to either list everything (e.g. ec2) or nothing. But for this one it's actually correct. The only openstack image type we have is openstack it's all good.

achilleas-k
achilleas-k previously approved these changes Oct 16, 2025
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but needs to resolve conflicts :/

@supakeen supakeen requested a review from achilleas-k October 17, 2025 08:42
@achilleas-k achilleas-k added this pull request to the merge queue Oct 20, 2025
Merged via the queue into osbuild:main with commit e348fc2 Oct 20, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants