After volume.refresh we forget the volume is locally attached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinderlib |
Fix Released
|
Undecided
|
Gorka Eguileor |
Bug Description
If we locally attach a volume and we call the refresh method on it then we cannot just call the detach method on the volume directly or we'll get the following exception:
2020-03-19 14:44:50.256 29142 CRITICAL cinder [req-8b9d5c3e-
2020-03-19 14:44:50.256 29142 ERROR cinder Traceback (most recent call last): 2020-03-19 14:44:50.256 29142 ERROR cinder File "<stdin>", line 1, in <module>
2020-03-19 14:44:50.256 29142 ERROR cinder File "/home/
2020-03-19 14:44:50.256 29142 ERROR cinder raise exception.
2020-03-19 14:44:50.256 29142 ERROR cinder cinderlib.
2020-03-19 14:44:50.256 29142 ERROR cinder
So this works:
volume.attach()
volume.detach()
But this doesn't:
volume.attach()
volume.refresh()
volume.detach()
Changed in cinderlib: | |
assignee: | nobody → Gorka Eguileor (gorka) |
Fix proposed to branch: master /review. opendev. org/713964
Review: https:/