test-kitchen / kitchen-opennebula

OpenNebula driver for Test Kitchen
Other
5 stars 9 forks source link

Adding a server length check to the connection to help debug possible… #6

Closed Gnof closed 9 years ago

Gnof commented 9 years ago

… connection issues. Making the flavor exception when no template matching filter found to be more verbose and help debug filters that aren't found.

I browsed through the fog library and didn't find anything that could validate credentials before using the connection (and there might be a better way to do that!) Also worth nothing that it takes a ridiculously long time to pull up the flavors via 'conn.flavors', which is why I don't bother with an explicit check on the connection flavors, since if it IS populated, would add unnecessary overhead.

Overall, just a change to help users debug the "Could not find template to create VM" exception, even though it's technically accurate, it's caused by the fact that a user's credentials may be wrong (but has no indication of it!)