<div dir="ltr">Hi folks,<div><br></div><div>This weekend, the patch "<span style="color:rgb(0,0,0);font-size:9pt;font-weight:bold">Snapshot and volume objects</span>" (<a href="https://review.openstack.org/#/c/133566">https://review.openstack.org/#/c/133566</a>) was merged and this one broke our HDS HBSD driver and the respective CI.</div><div><br></div><div>When CI tries to run tempest.api.volume.admin.test_snapshots_actions the following error is shown:</div><div><br></div><div><div>2015-03-04 14:00:34.368 ERROR oslo_messaging.rpc.dispatcher [req-c941792b-963f-4a7d-a6ac-9f1d9f823fd1 915289d113dd4f9db2f2a792c18b3564 984bc8d228c8497689dde60dc2b8f300] Exception during messag</div><div>e handling: '<class 'cinder.objects.snapshot.Snapshot'>' object has no attribute 'snapshot_metadata'</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     executor_callback))</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     executor_callback)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 156, in lso_inner1</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return lso_inner2(inst, context, snapshot, **kwargs)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 431, in inner</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 155, in lso_inner2</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return f(*_args, **_kwargs)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 635, in delete_snapshot</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     snapshot.save()</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 625, in delete_snapshot</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     self.driver.delete_snapshot(snapshot)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return f(*args, **kwargs)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/drivers/hitachi/hbsd_iscsi.py", line 314, in delete_snapshot</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     self.common.delete_snapshot(snapshot)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/drivers/hitachi/hbsd_common.py", line 635, in delete_snapshot</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     is_vvol = self.get_snapshot_is_vvol(snapshot)</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/drivers/hitachi/hbsd_common.py", line 189, in get_snapshot_is_vvol</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return self.get_is_vvol(snapshot, 'snapshot_metadata')</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/drivers/hitachi/hbsd_common.py", line 183, in get_is_vvol</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     return self.get_value(obj, name, 'type') == 'V-VOL'</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/drivers/hitachi/hbsd_common.py", line 176, in get_value</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     if obj.get(name):</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/objects/base.py", line 615, in get</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher     self.__class__, key))</div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher AttributeError: '<class 'cinder.objects.snapshot.Snapshot'><b>' object has no attribute 'snapshot_metadata'</b></div><div>2015-03-04 14:00:34.368 TRACE oslo_messaging.rpc.dispatcher</div></div><div><br></div><div>Before merging the patch, the CI ran successfully on Patchset,38 (<a href="http://177.84.241.119:10000/66/133566/38/silent/hitachi-hbsd-iscsi/17ee25e/">http://177.84.241.119:10000/66/133566/38/silent/hitachi-hbsd-iscsi/17ee25e/</a>) which already changed the files involved in this bug. Is it possible to CI run the tempest tests on Devstack with no patch (triggered by Zuul) applied? The CI didn't run the latest Patchset (41), because we had an infrastructure problem (power failures) during the weekend and the beginning of the week. </div><div><br></div><div><div>I checked the patch merged and I saw that it has changed a lot of snapshots files. In some files the "snapshot_metadata" was removed and replaced to "metadata". I think the best approach is to fix the driver, but until the bug is not fixed and reviewed, the Cinder CI will be offline. Could you guys give an extra priority for review this bug fix when I submit the patch, once it was working (the CI was in checking mode) before the patch merged?</div><div><br></div><div>Regards,</div>-- <br><div class="gmail_signature"><div dir="ltr"><div><b>Marcus Vinícius Ramires do Nascimento</b></div><div><a href="mailto:marcusvrn@gmail.com" target="_blank">marcusvrn@gmail.com</a></div></div></div>
</div></div>