glance with cinder backend, when i download the same image server times at the same time,the download request may be failed

Bug #1979259 reported by anguoming
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glance_store
New
Undecided
Unassigned

Bug Description

I use the master branch;
The glance-api node has 6 workers in my test environment;
My image use cinder as backend and cinder use iscsi volume type. When i download an image server times at the same time,one of the requests is failed,as below message:

2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder [None req-94870f62-c42e-4037-abf6-4d19d79c4d4e 218bcc59c6ca47f49e6d9a8282deb307 e55dac2d24f74b5e99e95afc95c069c4 - default default] Exception while accessing to cinder volume 9ffa69c2-10aa-4104-b88d-8b5c7f7fe9e9.: FileNotFoundError: [Errno 2] No such file or directory: '/dev/sdh'
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder Traceback (most recent call last):
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder File "/var/lib/kolla/venv/lib/python3.6/site-packages/glance_store/_drivers/cinder.py", line 566, in _open_cinder_volume
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder backend=self.backend_group), \
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder File "/usr/lib64/python3.6/contextlib.py", line 81, in __enter__
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder return next(self.gen)
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder File "/var/lib/kolla/venv/lib/python3.6/site-packages/glance_store/_drivers/cinder.py", line 414, in temporary_chown
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder orig_uid = os.stat(path).st_uid
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder FileNotFoundError: [Errno 2] No such file or directory: '/dev/sdh'
2022-06-20 11:11:28.101 18 ERROR glance_store._drivers.cinder
2022-06-20 11:11:28.102 18 DEBUG glance_store.common.attachment_state_manager [None req-94870f62-c42e-4037-abf6-4d19d79c4d4e 218bcc59c6ca47f49e6d9a8282deb307 e55dac2d24f74b5e99e95afc95c069c4 - default default] Got _AttachmentState get_state /var/lib/kolla/venv/lib/python3.6/site-packages/glance_store/common/attachment_state_manager.py:110

anguoming (agm-daydayup)
summary: - glance with cinder backend, we i download the same image server times at
- the same time,the download request may be failed
+ glance with cinder backend, when i download the same image server times
+ at the same time,the download request may be failed
anguoming (agm-daydayup)
affects: glance → glance-store
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.