In glance-replicator, all image properties in the master glance are
synced to the slave. But there are circumstances(kernel_id or
ramdisk_id, etc.) when image properties in the master are None.
glance-relicator doesn't handle this issue, thus all such properties
are trasnlated to the string 'None' in the slave glance, which is
incorrect.
This patch fixes this problem by add a check before post metadata to
the slave glance. All None properties are translated to '' before
posted to slave glance.
Reviewed: https:/ /review. openstack. org/40199 github. com/openstack/ glance/ commit/ ec07f0b437bef42 8a101073610e47f 6b2c10dc1a
Committed: http://
Submitter: Jenkins
Branch: master
commit ec07f0b437bef42 8a101073610e47f 6b2c10dc1a 360.cn>
Author: Yufang Zhang <zhangyufang@
Date: Mon Aug 5 18:28:30 2013 +0800
Handle None value properties in glance-replicator
bug 1208417
In glance-replicator, all image properties in the master glance are kernel_ id or relicator doesn't handle this issue, thus all such properties
synced to the slave. But there are circumstances(
ramdisk_id, etc.) when image properties in the master are None.
glance-
are trasnlated to the string 'None' in the slave glance, which is
incorrect.
This patch fixes this problem by add a check before post metadata to
the slave glance. All None properties are translated to '' before
posted to slave glance.
Change-Id: I9b674db907f707 ac4dce28c8a7e3d 81fcce61193