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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.2
    • Fix Version/s: 0.12.1
    • Component/s: Compute
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: