Image remains in queued state for web-download when node_staging_uri end with "/"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Abhishek Kekane | ||
Queens |
Fix Committed
|
High
|
Abhishek Kekane |
Bug Description
The node_staging_uri has a default of file://
see: https:/
If operator does not set 'node_staging_uri' in glance-api.conf then importing image using web-download remains in queued state.
Steps to reproduce:
1. Ensure glance-api is running under mod_wsgi (add WSGI_MODE=mod_wsgi in local.conf and run stack.sh)
2. Do not set node_staging_uri in glance-api.conf
3. Create image using below curl command:
curl -i -X POST -H "x-auth-token: <auth-token>" http://
4. Import image using below curl command:
curl -i -X POST -H "Content-type: application/json" -H "x-auth-token: <auth-token>" http://
Expected result:
Image should be in active state.
Actual result:
Image remains in queued state.
API Logs:
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: DEBUG glance_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: DEBUG glance_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: Traceback (most recent call last):
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: func(*args, **kwargs)
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: self.base.
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: super(TaskProxy, self).run(executor)
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: self.base.
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: self.base.
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: executor.
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: super(TaskExecutor, self).begin_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: self._run(task_id, task.type)
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: flow = self._get_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: invoke_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: warn_on_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: verify_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: self._on_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: verify_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: verify_
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/usr/local/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: obj = plugin(
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: File "/opt/stack/
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: file_uri = separator.
Mar 07 09:26:07 ubuntu-16 glance-api[3499]: UnboundLocalError: local variable 'separator' referenced before assignment
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
summary: |
- 500 Error for web-download if node_staging_uri is not set + Image remains in queued state for web-download if node_staging_uri is + not set |
summary: |
- Image remains in queued state for web-download if node_staging_uri is - not set + Image remains in queued state for web-download when node_staging_uri + uses default value |
description: | updated |
Changed in glance: | |
status: | Invalid → In Progress |
importance: | Undecided → High |
tags: | added: queens-backport-potential |
summary: |
- Image remains in queued state for web-download when node_staging_uri - uses default value + Image remains in queued state for web-download when node_staging_uri end + with "/" |
Changed in glance: | |
milestone: | none → rocky-1 |
Fix proposed to Master :-> https:/ /review. openstack. org/#/c/ 550417/ 1