canonical/pycloudlib

Oracle: provide mechanism to export custom image to object storage bucket

blackboxsw opened this issue · 2 comments

In order to test different deployment environments in Oracle, pycloudlib needs the ability to export custom images to a custom Oracle object storage bucket.

This may entail the following features:

What's the use case for this? Isn't this only needed if we need to upload a custom image? We can currently create snapshots from instances like we do on other clouds.

The use case is limited, so the priority of this request isn't high. But this is part of a request to be able to drive the following instance creation lifecycle on Oracle.:

  • import custom image from Oracle Object Storage buckets

Images imported from object storage in Oracle seems to create a specialized config image which will not surface /run/net-* Klibc as a viable network config source on Oracle.

While we can drive image import from Object storage this manually with the following procedure on the commandline (or via exporting images to object storage buckets in the cloud dashboard): it would be nice if we can instrument this logic for a different instance creation path.

Inability to verify object storage based image imports leaves us exposed to introducing this type of bug in oracle or not validating a changed/degraded IMDS representation of network config from Oracle over time:

Here are the specific manual steps we could run on the commandline to validate such network regressions in IMDS behavior (and assert that system config in daily images haven't eroded network config):

https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1989686/comments/19