-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(lxd): support launching minimal images on lxd_vm and container (SC-1750) #410
Conversation
b1951ab
to
765909a
Compare
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 for this change chad! implementation looks solid but one question about the integration test addition inline.
"grep build_name /etc/cloud/build.info" | ||
).stdout | ||
) | ||
instance.delete() |
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.
should this test be added to an lxd integration test instead? given that this will only run on lxd and the public api is unaffected by this change?
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.
Good suggestion, I pulled it into a separate test and also parametrized that test to cover GCE and Ec2 which also support ImageType.MINIMAL image_type overrides in released_image/daily_image
765909a
to
0fff618
Compare
9ed7091
to
fb88f9d
Compare
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.
Changes look great! Thanks @blackboxsw. Left one inline question but it's minor so I'm not going to block on it.
Add optional image_type param to LXD*.released_image and daily_image methods to provide daily and released Ubuntu minimal images. To support this feature, lxd._images.find_last_fingerprint also accepts an image_type param to distinguish between ubuntu-minimal and generic ubuntu image remotes. Support for jenkins integration test runners of Ubuntu daily minimal images. Component of improved integration test coverage for SC-1750.
fb88f9d
to
d059d37
Compare
PR canonical#410 introduced minimal images and added integration test coverage for EC2 and GCE but the helper functions used to find images on those clouds were not updated. This fixes this issue and should include all the remaining functionality needed for minimal images to work on those clouds.
PR canonical#410 introduced minimal images and added integration test coverage for EC2 and GCE but the helper functions used to find images on those clouds were not updated. This fixes this issue and should include all the remaining functionality needed for minimal images to work on those clouds.
PR canonical#410 introduced minimal images and added integration test coverage for EC2 and GCE but the helper functions used to find images on those clouds were not updated. This fixes this issue and should include all the remaining functionality needed for minimal images to work on those clouds.
PR #410 introduced minimal images and added integration test coverage for EC2 and GCE but the helper functions used to find images on those clouds were not updated. This fixes this issue and should include all the remaining functionality needed for minimal images to work on those clouds.
Add optional image_type param to LXD*.released_image and daily_image methods to provide daily and released Ubuntu minimal images.
To support this feature, lxd._images.find_last_fingerprint also accepts an image_type param to distinguish between ubuntu-minimal and generic ubuntu image remotes.
Support for jenkins integration test runners of Ubuntu daily minimal images. Component of improved integration test coverage for SC-1750.
test procedure