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

provider/azure: creating instances now actually works #2607

Closed
wants to merge 2 commits into from

Conversation

skinny
Copy link

@skinny skinny commented Jul 2, 2015

Based on the 'long' Azure image names (eg. b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_10-amd64-server-20141022.3-en-us-30GB) the provider now actually finds the correct image and creates the VM.

Also prettified the logging a bit, to report the actual image names and to no longer hide the exceptions produced in the two 'retrieve*' functions.

@skinny skinny changed the title Creating Azure instances now actually works provider/azure: creating instances now actually works Jul 2, 2015
@phinze
Copy link
Contributor

phinze commented Jul 2, 2015

Thanks for this! Is there an acceptance test case we could add to cover the image name behavior?

/cc @aznashwan for review

@skinny
Copy link
Author

skinny commented Jul 2, 2015

Will try to add this later today!

@aznashwan
Copy link
Contributor

@skinny thanks for the fix; and hope you enjoyed your first rundown with go 😉

The code looks great; and the tests should work fine after the names in the tested configs are updated and the test conditions verifying those names are changed.

I'm unfortunately [nowhere near] the right person to pass judgement on the change itself, as @svanharmelen was the original implementer of the instance resource.
Personally, I'd argue in favour of the current implementation, as those image names are both very cumbersome and change regularly with every update of the image on Azure, and that referring to the images by labels is a bit more handy (I do, however, fully agree that the way it currently is, both the image parameter's name and the documentation are very confusing and should be brought up to speck).

@skinny
Copy link
Author

skinny commented Jul 2, 2015

Hi, getting to know Go is a bit weird but eventually good experience. Regarding the labels: this was my first attempt to "just get it working". Actually I'm now trying to get it both working for Labels and Image ID's. When you supply a Label (Ubuntu 14.04 LTS) it will by default use the latest image found when sorted by publication date.

Let me know if that would work for you too

Mark

@svanharmelen
Copy link
Contributor

@skinny just a quick message to let you know I'm on holiday without any kind of computing device (apart from my iPhone) and an extremely crappy internet connection (my wife pulled me away from any/all kind of tech for 10 days 😉).

So will follow up, but probably in about a week or so...

@skinny
Copy link
Author

skinny commented Jul 2, 2015

@svanharmelen no problem, enjoy your holiday! We can have a talk when you are back, in the mean time Ill experiment with the other Azure resources as well.

Mark

@radeksimko radeksimko added the bug label Jul 4, 2015
@svanharmelen
Copy link
Contributor

@skinny having thought about this a little I really don't think this would be a good approach. Like @aznashwan I really favour to use the labels instead of the names as I feel it makes using the Azure provider al lot more pleasant.

What we could do to improve the current implementation, is change/update the currently available options. If we would remove the image parameter and add a vmimage_label and osimage_label parameter instead.

The verifyInstanceParameters should then be updated so it makes sure one (and only one) of these new values is supplied and if the osimage_label is supplied that the storage_service_name is also supplied.

Of course the docs should then also be updated accordingly and the retrieveVMImageDetails and retrieveOSImageDetails should be tweaked just a little as well. But with that done I think we should have fixed the parts that now a little unclear, right?

@aznashwan what do you think about this approach?

@skinny
Copy link
Author

skinny commented Jul 5, 2015

Sounds great and also in the direction I was working. Will work on this a bit more and update the PR

@svanharmelen
Copy link
Contributor

@skinny any progress? Need any help?

@josephholsten
Copy link
Contributor

@skinny how's this coming?

@phinze
Copy link
Contributor

phinze commented Dec 9, 2015

Reviewing some old PRs and this seems like this one has petered out. Going to close for now.

/cc @svanharmelen / @aznashwan in case there's any outstanding work remaining here that should get represented elsewhere.

@phinze phinze closed this Dec 9, 2015
@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants