summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-09-29 09:39:24 -0400
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-09-29 09:39:24 -0400
commit0f69422a47dfc837297c4853bbcea9da9b7dd809 (patch)
tree59faf12e6036251d60b84e6b91227092e9dea196 /nova/compute
parent05e3e188e03624884ed019fe9cd8f216c9262f98 (diff)
parent43ce84290964b433fd9d9898772d29bffc385dd8 (diff)
Merge from trunk
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 24538e4f1..f370ede8b 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -67,7 +67,7 @@ class ComputeManager(manager.Manager):
def run_instance(self, context, instance_id, **_kwargs):
"""Launch a new instance with specified options."""
instance_ref = self.db.instance_get(context, instance_id)
- if instance_ref['str_id'] in self.driver.list_instances():
+ if instance_ref['ec2_id'] in self.driver.list_instances():
raise exception.Error("Instance has already been created")
logging.debug("instance %s: starting...", instance_id)
project_id = instance_ref['project_id']
@@ -129,7 +129,7 @@ class ComputeManager(manager.Manager):
raise exception.Error(
'trying to reboot a non-running'
'instance: %s (state: %s excepted: %s)' %
- (instance_ref['str_id'],
+ (instance_ref['ec2_id'],
instance_ref['state'],
power_state.RUNNING))
@@ -151,7 +151,7 @@ class ComputeManager(manager.Manager):
if FLAGS.connection_type == 'libvirt':
fname = os.path.abspath(os.path.join(FLAGS.instances_path,
- instance_ref['str_id'],
+ instance_ref['ec2_id'],
'console.log'))
with open(fname, 'r') as f:
output = f.read()
@@ -174,7 +174,7 @@ class ComputeManager(manager.Manager):
instance_ref = self.db.instance_get(context, instance_id)
dev_path = yield self.volume_manager.setup_compute_volume(context,
volume_id)
- yield self.driver.attach_volume(instance_ref['str_id'],
+ yield self.driver.attach_volume(instance_ref['ec2_id'],
dev_path,
mountpoint)
self.db.volume_attached(context, volume_id, instance_id, mountpoint)
@@ -189,7 +189,7 @@ class ComputeManager(manager.Manager):
volume_id)
instance_ref = self.db.instance_get(context, instance_id)
volume_ref = self.db.volume_get(context, volume_id)
- yield self.driver.detach_volume(instance_ref['str_id'],
+ yield self.driver.detach_volume(instance_ref['ec2_id'],
volume_ref['mountpoint'])
self.db.volume_detached(context, volume_id)
defer.returnValue(True)