Comment 4 for bug 1447215

Samuel Matzek (smatzek) wrote :

I'm going to mention this bug, as I did on #1447193 that I'm using a new glanceclient:
# glance --version
0.17.1

While I'm adding yet another comment I thought I'd drop in the nova stack for how this fails spawn in code that uses clone and image locations.

  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2388, in spawn
    admin_pass=admin_password)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2786, in _create_image
    instance, size, fallback_from_host)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5916, in _try_fetch_image_cache
    size=size)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 231, in cache
    *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 737, in create_image
    prepare_template(target=base, max_size=size, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 445, in inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 221, in fetch_func_sync
    fetch_func(target=target, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2778, in clone_fallback_to_fetch
    backend.clone(context, disk_images['image_id'])
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/imagebackend.py", line 762, in clone
    include_locations=True)
  File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
    show_deleted=show_deleted)
  File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 301, in show
    _reraise_translated_image_exception(image_id)
  File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 299, in show
    image = self._client.call(context, version, 'get', image_id)
  File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 219, in call
    return getattr(client.images, method)(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/v2/images.py", line 177, in get
    return self.model(**body)
  File "/usr/lib/python2.7/site-packages/warlock/core.py", line 32, in __init__
    base_class.__init__(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/warlock/model.py", line 34, in __init__
    raise ValueError(str(exc))
ValueError: None is not of type u'string'

Failed validating u'type' in schema[u'additionalProperties']:
    {u'type': u'string'}

On instance[u'ramdisk_id']:
    None