During the periodic sync of the component glance-powervc , image updated always failed , and could get the error like this :
2014-10-09 02:38:15.654 14565 INFO powervc.glance.manager.manager [-] Image '10G_rhel_image' for PowerVC UUID d0f91ef2-5207-40f6-bcac-c70bc583ac50 was updated on the local hostingOS, and on PowerVC. Attempting to merge the changes together and update both with the result.
2014-10-09 02:38:15.656 14565 INFO powervc.glance.manager.manager [-] Performing update sync of image '10G_rhel_image' from merged master image to the local hosting OS for PowerVC UUID d0f91ef2-5207-40f6-bcac-c70bc583ac50
2014-10-09 02:38:15.905 14565 ERROR powervc.glance.manager.manager [-] An error occurred updating image '10G_rhel_image' for PowerVC UUID d0f91ef2-5207-40f6-bcac-c70bc583ac50: descriptor 'get' requires a 'dict' object but received a 'str'
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager Traceback (most recent call last):
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager File "/opt/ibm/openstack/powervc-driver/powervc/glance/manager/manager.py", line 1984, in _v2update_image
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager **attr_dict)
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager File "/usr/lib/python2.6/site-packages/glanceclient/v2/images.py", line 170, in update
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager image = self.get(image_id)
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager File "/usr/lib/python2.6/site-packages/glanceclient/v2/images.py", line 106, in get
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager return self.model(**body)
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager File "/usr/lib/python2.6/site-packages/glanceclient/common/utils.py", line 387, in _memoized_property
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager setattr(self, attr_name, fn(self))
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager File "/usr/lib/python2.6/site-packages/glanceclient/v2/images.py", line 36, in model
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager schema = self.schema_client.get('image')
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager TypeError: descriptor 'get' requires a 'dict' object but received a 'str'
2014-10-09 02:38:15.905 14565 TRACE powervc.glance.manager.manager
2014-10-09 02:38:15.926 14565 ERROR powervc.glance.manager.manager [-] Local hosting OS image '10G_rhel_image' for PowerVC UUID d0f91ef2-5207-40f6-bcac-c70bc583ac50 was not updated. The PowerVC image was also not updated. An attempt to synchronize both will be tried again during the next periodic image synchronization operation.
This issue happens because of the code changes of the component "glanceclient" in the Openstack Community.
Reviewed: https:/ /review. openstack. org/127425 /git.openstack. org/cgit/ stackforge/ powervc- driver/ commit/ ?id=4b7e6302fd4 25500fe99752e70 a1422887ef701b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4b7e6302fd42550 0fe99752e70a142 2887ef701b
Author: Eric_Zhao <email address hidden>
Date: Fri Oct 10 13:47:50 2014 +0800
Image updated failed during periodic sync
Image updated failed when the glance-powervc did the periodic
sync , it is because of the code changes of the component
glanceclient in the openstack community.
Change-Id: I149faeb1631c0f 996ff529325eb8a 71d9d92efc0
Closes-Bug: #1379637