Kashyap | Attach volume attaches a standard volume to an instance, volume map yet to be implemented
This commit is contained in:
parent
71ef6549b7
commit
e46a51dd89
|
@ -371,7 +371,7 @@ class EC2Driver(driver.ComputeDriver):
|
|||
if instance_name not in self._mounts:
|
||||
self._mounts[instance_name] = {}
|
||||
self._mounts[instance_name][mountpoint] = connection_info
|
||||
return True
|
||||
self.ec2_conn.attach_volume("vol-83db57cb", instance['metadata']['ec2_id'], "/dev/sdn", dry_run=False)
|
||||
|
||||
def detach_volume(self, connection_info, instance, mountpoint,
|
||||
encryption=None):
|
||||
|
|
|
@ -29,7 +29,7 @@ flavor_map = {'m1.tiny': 't2.micro', 'm1.small': 't2.small', 'm1.medium': 't2.me
|
|||
'm1.xlarge': 'c3.2xlarge'}
|
||||
#Add image maps key: image in openstack, Value: EC2_AMI_ID
|
||||
image_map = {}
|
||||
|
||||
volume_map = {}
|
||||
keypair_map = {}
|
||||
|
||||
# The limit on maximum resources you could have in the AWS EC2.
|
||||
|
|
Loading…
Reference in New Issue