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

EC2 interface missing keypair funtions: ImportKeyPair and DescribeKeyPair

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The ec2 functions ImportKeyPair and DescribeKeyPair are not implemented and will be needed for deploy_node functionality for EC2

      REST api reference URLS:

      http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/index.html?ApiReference-query-ImportKeyPair.html
      http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeKeyPairs.html

        Activity

        Hide
        piken Philip Schwartz added a comment -

        Patch file Updating the ec2 API version, and adding the following funcitons:

        ex_import_keypair(self, name, keyfile)
        ex_describe_keypairs(self, name)

        Show
        piken Philip Schwartz added a comment - Patch file Updating the ec2 API version, and adding the following funcitons: ex_import_keypair(self, name, keyfile) ex_describe_keypairs(self, name)
        Hide
        jsmith Jed Smith added a comment -

        Fixed paths in patch.

        Show
        jsmith Jed Smith added a comment - Fixed paths in patch.
        Hide
        jsmith Jed Smith added a comment -

        ======================================================================
        ERROR: test_create_node (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 41, in test_create_node
        self.assertEqual(node.id, 'i-2ba64342')
        AttributeError: 'list' object has no attribute 'id'

        ======================================================================
        ERROR: test_create_node_response (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 185, in test_create_node_response
        image = self.driver.list_images()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_destroy_node_response (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 193, in test_destroy_node_response
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_list_images (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 74, in test_list_images
        image = images[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_list_nodes (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 44, in test_list_nodes
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_reboot_node_response (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 199, in test_reboot_node_response
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_create_node (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 41, in test_create_node
        self.assertEqual(node.id, 'i-2ba64342')
        AttributeError: 'list' object has no attribute 'id'

        ======================================================================
        ERROR: test_create_node_response (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 185, in test_create_node_response
        image = self.driver.list_images()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_destroy_node_response (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 193, in test_destroy_node_response
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_list_images (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 74, in test_list_images
        image = images[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_list_nodes (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 44, in test_list_nodes
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        ERROR: test_reboot_node_response (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/_init_.py", line 199, in test_reboot_node_response
        node = self.driver.list_nodes()[0]
        IndexError: list index out of range

        ======================================================================
        FAIL: test_destroy_node (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 55, in test_destroy_node
        self.assertTrue(ret)
        AssertionError

        ======================================================================
        FAIL: test_reboot_node (test.test_ec2.EC2APSETests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 50, in test_reboot_node
        self.assertTrue(ret)
        AssertionError

        ======================================================================
        FAIL: test_destroy_node (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 55, in test_destroy_node
        self.assertTrue(ret)
        AssertionError

        ======================================================================
        FAIL: test_reboot_node (test.test_ec2.EC2Tests)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
        File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 50, in test_reboot_node
        self.assertTrue(ret)
        AssertionError

        ----------------------------------------------------------------------
        Ran 209 tests in 0.422s

        FAILED (failures=4, errors=12)

        Show
        jsmith Jed Smith added a comment - ====================================================================== ERROR: test_create_node (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 41, in test_create_node self.assertEqual(node.id, 'i-2ba64342') AttributeError: 'list' object has no attribute 'id' ====================================================================== ERROR: test_create_node_response (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 185, in test_create_node_response image = self.driver.list_images() [0] IndexError: list index out of range ====================================================================== ERROR: test_destroy_node_response (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 193, in test_destroy_node_response node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== ERROR: test_list_images (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 74, in test_list_images image = images [0] IndexError: list index out of range ====================================================================== ERROR: test_list_nodes (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 44, in test_list_nodes node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== ERROR: test_reboot_node_response (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 199, in test_reboot_node_response node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== ERROR: test_create_node (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 41, in test_create_node self.assertEqual(node.id, 'i-2ba64342') AttributeError: 'list' object has no attribute 'id' ====================================================================== ERROR: test_create_node_response (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 185, in test_create_node_response image = self.driver.list_images() [0] IndexError: list index out of range ====================================================================== ERROR: test_destroy_node_response (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 193, in test_destroy_node_response node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== ERROR: test_list_images (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 74, in test_list_images image = images [0] IndexError: list index out of range ====================================================================== ERROR: test_list_nodes (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 44, in test_list_nodes node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== ERROR: test_reboot_node_response (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/_ init _.py", line 199, in test_reboot_node_response node = self.driver.list_nodes() [0] IndexError: list index out of range ====================================================================== FAIL: test_destroy_node (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 55, in test_destroy_node self.assertTrue(ret) AssertionError ====================================================================== FAIL: test_reboot_node (test.test_ec2.EC2APSETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 50, in test_reboot_node self.assertTrue(ret) AssertionError ====================================================================== FAIL: test_destroy_node (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 55, in test_destroy_node self.assertTrue(ret) AssertionError ====================================================================== FAIL: test_reboot_node (test.test_ec2.EC2Tests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jsmith/Work/Linode/libcloud/test/test_ec2.py", line 50, in test_reboot_node self.assertTrue(ret) AssertionError ---------------------------------------------------------------------- Ran 209 tests in 0.422s FAILED (failures=4, errors=12)
        Hide
        piken Philip Schwartz added a comment -

        Updated api date in test fixtures.

        Show
        piken Philip Schwartz added a comment - Updated api date in test fixtures.
        Hide
        jsmith Jed Smith added a comment -

        Committed in r1030128.

        Show
        jsmith Jed Smith added a comment - Committed in r1030128.

          People

          • Assignee:
            jsmith Jed Smith
            Reporter:
            piken Philip Schwartz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development