diff options
| author | Salvatore Orlando <salvatore.orlando@eu.citrix.com> | 2011-01-09 01:40:51 +0000 |
|---|---|---|
| committer | Salvatore Orlando <salvatore.orlando@eu.citrix.com> | 2011-01-09 01:40:51 +0000 |
| commit | ed84e51475471c5ae37eacdd4d5c93ef91ebcf10 (patch) | |
| tree | e79435856e1108dc63bf87b21273cb78ff6e7905 | |
| parent | 9f8719b334df28521154be8587bd7d30c431a993 (diff) | |
fixed small glitch in _fetch_image_glance
virtual_size = imeta['size']
changed to
virtual_size = int(meta['size'])
| -rw-r--r-- | nova/virt/xenapi/vm_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index e601ccff9..51418c444 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -307,7 +307,7 @@ class VMHelper(HelperBase): c = glance.client.Client(FLAGS.glance_host, FLAGS.glance_port) meta, image_file = c.get_image(image) - virtual_size = meta['size'] + virtual_size = int(meta['size']) vdi_size = virtual_size if typ == ImageType.DISK: @@ -585,6 +585,7 @@ def with_vdi_attached_here(session, vdi, read_only, f): vbd_rec['userdevice'] = 'autodetect' vbd_rec['bootable'] = False vbd_rec['mode'] = read_only and 'RO' or 'RW' + logging.debug("read_only: %s",str(read_only)) vbd_rec['type'] = 'disk' vbd_rec['unpluggable'] = True vbd_rec['empty'] = False |
