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

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/", line 2388, in spawn
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 2786, in _create_image
    instance, size, fallback_from_host)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 5916, in _try_fetch_image_cache
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 231, in cache
    *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 737, in create_image
    prepare_template(target=base, max_size=size, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/oslo_concurrency/", line 445, in inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 221, in fetch_func_sync
    fetch_func(target=target, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 2778, in clone_fallback_to_fetch
    backend.clone(context, disk_images['image_id'])
  File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/", line 762, in clone
  File "/usr/lib/python2.7/site-packages/nova/image/", line 93, in get
  File "/usr/lib/python2.7/site-packages/nova/image/", line 301, in show
  File "/usr/lib/python2.7/site-packages/nova/image/", line 299, in show
    image =, version, 'get', image_id)
  File "/usr/lib/python2.7/site-packages/nova/image/", line 219, in call
    return getattr(client.images, method)(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/v2/", line 177, in get
    return self.model(**body)
  File "/usr/lib/python2.7/site-packages/warlock/", line 32, in __init__
    base_class.__init__(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/warlock/", 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']: