New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add libcloud support for image guest os features. #825
Conversation
@@ -4752,29 +4753,31 @@ def ex_copy_image(self, name, url, description=None, family=None, | |||
:param family: The family of the image | |||
:type family: ``str`` | |||
|
|||
:param guest_os_feature: The features of the guest opertaing system. | |||
:type guest_os_feature: ``str`` | |||
:param guest_os_features: The features of the guest opertaing system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"operating"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
LGTM, couple of spelling errors I noted. |
if guest_os_features: | ||
image_data['guestOsFeatures'] = [] | ||
for feature in guest_os_features: | ||
if feature in possble_features: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should be for feature in possible_features:
and also showing this case needs a test :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, thanks for the note. I missed the typo (and failing test) when I refactored some of the code).
@illfelder 1 typo to correct and please also improve the test scenario to validate the outgoing payload. |
Guest OS features are a repeated field in the API.
Added testing to validate the request is getting created properly. I also fixed a comment about the type of guest_os_features when creating an image. |
@illfelder think you broke the build with the extra commit :-) |
Yup, fixed the linter issue. Should be good now whenever travis next runs. |
OK 👍 |
Image "guestOsFeature" support during image copy and creation.
Description
We are introducing a new optional property on the image resource known as "guestOsFeature". The feature is available in the alpha API and is needed to optimize virtual machine settings during instance creation. The only value currently supported (if specified) is "VIRTIO_SCSI_MULTIQUEUE".
Status
Done, ready for review
Checklist (tick everything that applies)