The following outlines some key points from the design of the library:
Instances are expected to use the latest daily image, unless another image is specifically requested.
The images are expected to have cloud-init in them to properly start. When an instance is started, or during launch, the instance is checked for the boot complete file that cloud-init produces.
Instances shall use consistent operation schema across the clouds. For example:
In addition interactions with the instance are covered by a standard set of commands:
The custom pycloudlib exceptions are located in
Specific clouds can implement custom exceptions, refer to pycloudlib.<cloud>.errors.
Exceptions from underlying libraries will be wrapped in a
some of them will be leaked directly through for the end-user.
Logging is set up using the standard logging module. It is up to the user to set up their logging configuration and set the appropriate level.
Logging for paramiko, used for SSH communication, is restricted to warning level and higher, otherwise the logging is far too verbose.
pycloudlib currently supports Python 3.6 and above.
pycloudlib minimum supported Python version will adhere to the Python version of the oldest Ubuntu Version with Standard Support. After that Ubuntu Version reaches the End of Standard Support, we will stop testing upstream changes against the unsupported version of Python and may introduce breaking changes. This policy may change as needed.
The following table lists the Python version supported in each Ubuntu LTS release with Standard Support:
|Ubuntu Version||Python version|