[
https://issues.apache.org/jira/browse/LIBCLOUD-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
joe miller updated LIBCLOUD-282:
--------------------------------
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
was:
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'}]
```
> add support to EC2 NodeDriver for passing Block Device Mappings (for
> ephemeral instance storage)
> ------------------------------------------------------------------------------------------------
>
> Key: LIBCLOUD-282
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-282
> Project: Libcloud
> Issue Type: Improvement
> Components: Compute
> Affects Versions: 0.11.2
> Reporter: joe miller
> Labels: patch
> Attachments: ec2_block_dev_mappings_0.12.0.patch
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira