the download function of GlanceImageService can not work

Bug #1333536 reported by Hua Wang
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

the download function of GlanceImageService in cinder/image/glance.py can not work.
line 265: location = self.get_location(context, image_id)
                    o = urlparse.urlparse(location)
 get_location function return a tuple, urlparse.urlparse can not parse a tuple

another problem: when the input parameter data is None, and 'file' in CONF.allowed_direct_url_schemes
shutil.copyfileobj(f, data) will copy file into None, the program will crash.

Revision history for this message
Vincent Hou (houshengbo) wrote :

Are you using glance api v2?

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote : Bug Cleanup

Closing stale bug. If this is still an issue please reopen.

Changed in cinder:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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