Kashyap | Attach volume attaches a standard volume to an instance, volume map yet to be implemented

This commit is contained in:
Kashyap Kopparam 2014-09-26 14:11:42 +05:30
parent 71ef6549b7
commit e46a51dd89
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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.