Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-516

Add the ability to list sizes/flavors within Eucalyptus

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compute
    • Labels:
      None

      Description

      Add list_sizes into the EucNodeDriver which will call DescribeInstanceTypes. This call returns all sizes/flavors available within the Eucalyptus cluster.

        Activity

        Hide
        cderamus Chris DeRamus added a comment -

        I've got the code and tests done at this point, but wanted to inquire about the best approach for the XML namespace. The DescribeInstanceTypes call is Eucalyptus specific and the namespace looks like this: http://pastebin.com/LxapvzAg. The call was introduced in version 3.3.0 so I don't want to hard set the API version to 3.4.1 which I'm currently doing. The Euca init function currently looks like this:

        def _init_(self, key, secret=None, secure=True, host=None,
        path=None, port=None):
        """
        @inherits: :class:`EC2NodeDriver._init_`

        :param path: The host where the API can be reached.
        :type path: ``str``
        """
        super(EucNodeDriver, self)._init_(key, secret, secure, host, port)
        if path is None:
        path = '/services/Eucalyptus'
        self.path = path
        self.EUCA_API_VERSION = '3.4.1'
        self.EUCA_NAMESPACE = 'http://msgs.eucalyptus.com/%s' % (self.EUCA_API_VERSION)

        Show
        cderamus Chris DeRamus added a comment - I've got the code and tests done at this point, but wanted to inquire about the best approach for the XML namespace. The DescribeInstanceTypes call is Eucalyptus specific and the namespace looks like this: http://pastebin.com/LxapvzAg . The call was introduced in version 3.3.0 so I don't want to hard set the API version to 3.4.1 which I'm currently doing. The Euca init function currently looks like this: def _ init _(self, key, secret=None, secure=True, host=None, path=None, port=None): """ @inherits: :class:`EC2NodeDriver._ init _` :param path: The host where the API can be reached. :type path: ``str`` """ super(EucNodeDriver, self)._ init _(key, secret, secure, host, port) if path is None: path = '/services/Eucalyptus' self.path = path self.EUCA_API_VERSION = '3.4.1' self.EUCA_NAMESPACE = 'http://msgs.eucalyptus.com/%s' % (self.EUCA_API_VERSION)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 773cd3d1541ae364eb9d88f7590c1e4b56579508 in branch refs/heads/trunk from Chris DeRamus
        [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=773cd3d ]

        LIBCLOUD-516: Add list_size() support into Eucalyptus for cluster versions >= 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.

        Closes #249.

        Signed-off-by: Tomaz Muraus <tomaz@apache.org>

        Show
        jira-bot ASF subversion and git services added a comment - Commit 773cd3d1541ae364eb9d88f7590c1e4b56579508 in branch refs/heads/trunk from Chris DeRamus [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=773cd3d ] LIBCLOUD-516 : Add list_size() support into Eucalyptus for cluster versions >= 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. Closes #249. Signed-off-by: Tomaz Muraus <tomaz@apache.org>
        Hide
        kami Tomaz Muraus added a comment -

        Corresponding pull request - https://github.com/apache/libcloud/pull/249

        Show
        kami Tomaz Muraus added a comment - Corresponding pull request - https://github.com/apache/libcloud/pull/249
        Hide
        kami Tomaz Muraus added a comment -

        Merged into trunk.

        Thanks.

        Show
        kami Tomaz Muraus added a comment - Merged into trunk. Thanks.
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user cderamus closed the pull request at:

        https://github.com/apache/libcloud/pull/249

        Show
        githubbot ASF GitHub Bot added a comment - Github user cderamus closed the pull request at: https://github.com/apache/libcloud/pull/249

          People

          • Assignee:
            Unassigned
            Reporter:
            cderamus Chris DeRamus
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development