Skip to content
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

Pass ImageStream to ubuntu-cloudimage-query command. #4480

Closed
wants to merge 1 commit into from

Conversation

xnox
Copy link
Contributor

@xnox xnox commented Feb 19, 2016

This enables using daily stream in juju local provider, for example on s390x.

@@ -1005,7 +1005,8 @@ func (a *MachineAgent) updateSupportedContainers(
// adds additional fields, this fails.
container.ImageURLGetterConfig{
st.Addr(), envUUID.Id(), []byte(agentConfig.CACert()),
cfg.CloudImageBaseURL(), container.ImageDownloadURL,
cfg.CloudImageBaseURL(), cfg.ImageStream(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is sufficiently lengthy now to justify putting the field names explicitly:

EnvUUID: envUUID.Id(),
CloudimgBaseUrl: cfg.CloudImageBaseURL()
...

@mattyw
Copy link
Contributor

mattyw commented Feb 24, 2016

@wallyworld does this change seem ok to you?

@@ -66,7 +67,7 @@ func (ug *imageURLGetter) CACert() []byte {

// ImageDownloadURL determines the public URL which can be used to obtain an
// image blob with the specified parameters.
func ImageDownloadURL(kind instance.ContainerType, series, arch, cloudimgBaseUrl string) (string, error) {
func ImageDownloadURL(kind instance.ContainerType, series, arch, cloudimgBaseUrl, cloudimgStream string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please put the stream param after arch

func ImageDownloadURL(kind instance.ContainerType, series, arch, cloudimgStream, cloudimgBaseUrl string) (string, error) {

@wallyworld
Copy link
Member

Thanks for the great improvement. It looks good but is missing tests. We need test coverage before being able to land.

@anastasiamac
Copy link
Contributor

Thank you for this contribution \o/

I have addressed the concerns of the reviewers and updated broken tests.
Please merge in my changes.
I assume that you have tested it live as well?

@anastasiamac
Copy link
Contributor

I am landing proposal copied form this one to ensure the functionality is in the next 1.25 release.

Thank you for suggestion!

Feel free to disregard my previous merge request as well as my pull request.

jujubot added a commit that referenced this pull request Mar 4, 2016
…-125

Passing stream to image download (fix from xnox).

This is a fix that was originally proposed by xnox (#4480). Re-capped to make it into 1.25.4 before deadline.

Xnox: This enables using daily stream in juju local provider, for example on s390x.

Addressed review comments:
Fixed tests.
Moved stream to follow arch.
Named properties for construction.

(Review request: http://reviews.vapour.ws/r/4059/)
@xnox
Copy link
Contributor Author

xnox commented Mar 7, 2016

+1 excellent.

@xnox
Copy link
Contributor Author

xnox commented Mar 7, 2016

Merged via #4619

@xnox xnox closed this Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants