[Openstack] ramdisk_id validation failed for a snapshot image

Pellaeon Lin pellaeon at hs.ntnu.edu.tw
Thu Aug 13 08:16:05 UTC 2015


Hi,

I'm running Kilo, I created a snapshot from a VM, when I run "glance 
--os-image-api-version 2 image-list", it returns the following error:

-----
None is not of type u'string'

Failed validating u'type' in schema[u'properties'][u'ramdisk_id']:
     {u'description': u'ID of image stored in Glance that should be used 
as the ramdisk when booting an AMI-style image.',
      u'is_base': False,
      u'pattern': 
u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$',
      u'type': u'string'}

On instance[u'ramdisk_id']:
     None
-----

https://bugs.launchpad.net/python-glanceclient/+bug/1447193 looks 
similar to this, but the bug is already fixed. I look in the DB and 
indeed found some NULL values:

MariaDB [glance]> SELECT * FROM image_properties where value IS NULL;
+----+--------------------------------------+------------+-------+---------------------+---------------------+------------+---------+
| id | image_id                             | name       | value | 
created_at          | updated_at          | deleted_at | deleted |
+----+--------------------------------------+------------+-------+---------------------+---------------------+------------+---------+
| 16 | f6236d8d-6480-44a7-bf7e-9ad241a60668 | password_3 | NULL  | 
2015-08-09 08:32:08 | 2015-08-09 08:32:08 | NULL       |       0 |
| 25 | f6236d8d-6480-44a7-bf7e-9ad241a60668 | kernel_id  | NULL  | 
2015-08-09 08:33:38 | 2015-08-09 08:33:38 | NULL       |       0 |
| 34 | f6236d8d-6480-44a7-bf7e-9ad241a60668 | ramdisk_id | NULL  | 
2015-08-09 08:33:38 | 2015-08-09 08:33:38 | NULL       |       0 |
+----+--------------------------------------+------------+-------+---------------------+---------------------+------------+---------+


That image is a snapshot.

Please help me determine if it's a bug.

Thanks




More information about the Openstack mailing list