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

add support to EC2 NodeDriver for passing Block Device Mappings (for ephemeral instance storage)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.2
    • 0.12.1
    • Compute

    Description

      When creating an EC2 node that utilizes EBS-backed root storage the ephemeral instance storage disks are not available unless explicitly requested by including BlockDeviceMappings in the call to RunInstances.

      This patch adds support for passing an array of BlockDeviceMappings to the EC2NodeDriver's create_node() function using the ex_blockdevicemappings kwarg.

      Example:

      ```
      ec2_ephemeral_mappings = [

      {'DeviceName': '/dev/sdb', 'VirtualName': 'ephemeral0'}

      ,

      {'DeviceName': '/dev/sdc', 'VirtualName': 'ephemeral1'}

      ,

      {'DeviceName': '/dev/sdd', 'VirtualName': 'ephemeral2'}

      ]

      ec2.create_node(name=name, image=image, size=size, ex_blockdevicemappings=ec2_ephemeral_mappings)

      [

      {'DeviceName': '/dev/sdb', 'VirtualName': 'ephemeral0'}

      ]
      ```

      also on github, branch: https://github.com/pantheon-systems/libcloud/tree/ec2_block_dev_mappings

      Attachments

        Activity

          People

            kami Tomaz Muraus
            joe.miller joe miller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: