<html><body>
<p><font size="2" face="sans-serif">After updating the Cinder oslo rpc libraries to the latest (see <a href="https://review.openstack.org/#/c/23822/">https://review.openstack.org/#/c/23822/</a>), Cinder test_preattach_status_volume fails with the following:</font><br>
<br>
<font size="2" face="sans-serif">======================================================================</font><br>
<font size="2" face="sans-serif">FAIL: Ensure volume goes into pre-attaching state</font><br>
<font size="2" face="sans-serif">----------------------------------------------------------------------</font><br>
<font size="2" face="sans-serif">Traceback (most recent call last):</font><br>
<font size="2" face="sans-serif">  File "/mnt/home/openstack/dev/cinder/cinder/tests/test_volume.py", line 308, in test_preattach_status_volume</font><br>
<font size="2" face="sans-serif">    self.assertEqual(vol['status'], "available")</font><br>
<br>
<font size="2" face="sans-serif">and the test</font><br>
<br>
<font size="2" face="sans-serif">    def test_preattach_status_volume(self):</font><br>
<font size="2" face="sans-serif">        """Ensure volume goes into pre-attaching state"""</font><br>
<font size="2" face="sans-serif">        instance_uuid = '12345678-1234-5678-1234-567812345678'</font><br>
<font size="2" face="sans-serif">        mountpoint = "/dev/sdf"</font><br>
<font size="2" face="sans-serif">        volume = db.volume_create(self.context, {'size': 1,</font><br>
<font size="2" face="sans-serif">                                                 'status': 'available'})</font><br>
<font size="2" face="sans-serif">        volume_id = volume['id']</font><br>
<br>
<font size="2" face="sans-serif">        volume_api = cinder.volume.api.API()</font><br>
<font size="2" face="sans-serif">        volume_api.attach(self.context, volume, instance_uuid, mountpoint)</font><br>
<br>
<font size="2" face="sans-serif">        vol = db.volume_get(self.context, volume_id)</font><br>
<font size="2" face="sans-serif">        self.assertEqual(vol['status'], "available")</font><br>
<font size="2" face="sans-serif">        self.assertEqual(vol['attach_status'], None)</font><br>
<font size="2" face="sans-serif">        self.assertEqual(vol['instance_uuid'], None)</font><br>
<font size="2" face="sans-serif"><br>
I would expect volume_api.attach call to set the state to "in-use" (as the error shows it was) vs still being "available". Is this a legitimate bug that needs fixed or is the error caused by something in the oslo update?</font><br>
<br>
<font size="2" face="sans-serif">Thanks.</font><br>
<font size="2" face="sans-serif"><br>
Michael<br>
<br>
-------------------------------------------------<br>
Michael Fork<br>
Architect, OpenStack Development<br>
IBM Systems & Technology Group</font></body></html>