Stage call returns 500 internal server error when image does not exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Abhishek Kekane |
Bug Description
If user tries to stage data to unexisting image then it fails with 500 internal server error.
Ideally it should return 404 HTTNotFound error to the user.
Steps to reproduce:
1. Run image-stage with any random id command
$ glance image-stage abcd --file <file_name>
Output:
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
Glance API logs:
Nov 21 10:12:29 devstack <email address hidden>[19195]: pdict['tenant'] = self.tenant
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Nov 21 10:12:29 devstack <email address hidden>[19195]: ERROR glance.
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
description: | updated |
Changed in glance: | |
importance: | Undecided → High |
milestone: | none → queens-2 |
Fix proposed to branch: master /review. openstack. org/521806
Review: https:/