-
Notifications
You must be signed in to change notification settings - Fork 925
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
LIBCLOUD-516: Add list_size() support into Eucalyptus for cluster versio... #249
LIBCLOUD-516: Add list_size() support into Eucalyptus for cluster versio... #249
Conversation
…sions >= 3.3.0. In this version Eucalyptus introduced the DescribeInstanceTypes call which is specific to EUCA and is not AWS compatible. This call requires a different XML namespace.
Honestly, I don't think this approach is that bad. |
@@ -3866,11 +3866,56 @@ def __init__(self, key, secret=None, secure=True, host=None, | |||
if path is None: | |||
path = '/services/Eucalyptus' | |||
self.path = path | |||
self.EUCA_API_VERSION = '3.4.1' |
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.
To be consistent with AWS stuff, I would promote those variables to module level constants.
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.
Now, this driver could also support standard api_version
argument. This argument would default to DEFAULT_EUCA_API_VERSION
(or smth).
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.
I'm not super familiar with Eucalyptus and am only using the community cloud at the moment. Is the API version something that can dynamically be pulled?
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.
I have no idea. I know it can't be dynamically specified for AWS.
… constant. The API version now defaults to version 3.3.0 and can be changed by passing in the api_version keyword argument.
@@ -3855,22 +3861,72 @@ class EucNodeDriver(BaseEC2NodeDriver): | |||
connectionCls = EucConnection | |||
|
|||
def __init__(self, key, secret=None, secure=True, host=None, | |||
path=None, port=None): | |||
path=None, port=None, api_version=None): |
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.
Shouldn't api_version
default to DEFAULT_EUCA_API_VERSION
?
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.
I suppose so :)
I've made the api_version change and merged patch into trunk. Thanks. |
...ns >= 3.3.0. In this version Eucalyptus introduced the DescribeInstanceTypes call which is specific to EUCA and is not AWS compatible. This call requires a different XML namespace.