Saturday, July 16, 2022

Adventures of a Small Time OpenStack Sysadmin Chapter 018 - OpenStack Glance Image Service

Adventures of a Small Time OpenStack Sysadmin relate the experience of converting a small VMware cluster into two small OpenStack clusters, and the adventures and friends I made along the way.

Adventures of a Small Time OpenStack Sysadmin Chapter 018 - OpenStack Glance Image Service

My primary reference for installing Glance is here:

https://docs.openstack.org/glance/yoga/install/

I did not bother setting oslo_limit sections as the documentation was not wrong so much as it was confusing and I don't intend to implement quotas on myself for fun.

Surprisingly, for such a scriptable task, I don't see any formal systems to upload Glance images.  So I wrote one.  Feel free to use this:

https://gitlab.com/SpringCitySolutionsLLC/glance-loader

The way it works is you enter a directory for your OS distro, then version for that distro, then run download.sh, optionally verify the image is good via your own custom processes and methods, then upload.sh, then optionally clean.sh to save disk space if you want.

Why use my glance scripts?  Well, first of all, for downloads, I use resumable download methods if possible, so an interrupted download can be restarted.  Then I calculate the md5sum or whatever the project publishes, and display a link to the OS project's list of checksums, and display the checksum as of the time I downloaded the image I actually use.  In my upload script, I actually bother to set the metadata values that most admins do not set, which I think will be helpful in the long run, why bother looking up the minimum ram setting yourself if I've already done the work for you?

Even if for "security reasons" or whatever, you can't use my scripts, at least they might provide some inspiration for your own internal glance loading automation.

Tomorrow is Cinder day, and Cinder is huge and complicated so I will have plenty to write about.

Stay tuned for the next chapter!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.