Run into 500 error during delete image
Bug #1238604 reported by
Feilong Wang
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Stuart McLaren | ||
Havana |
Fix Released
|
High
|
Stuart McLaren |
Bug Description
Recreate steps:
1. Enable delayed delete
delayed_delete = True
2. Create a new image by:
glance image-create --name flwang_1 --container-format bare --disk-format qcow2 --is-public yes --location https:/
3. Delete image by:
glance image-delete flwang_1
You will see an error like below, but the image has been deleted, in 'pending-delete' state.
Request returned failure status.
HTTPInternalSer
Changed in glance: | |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in glance: | |
importance: | Undecided → High |
Changed in glance: | |
milestone: | none → icehouse-rc1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
After investigation, I think there are two places we should improve, though seems it's not a bug.
1. We are using /var/lib/glance as the default scrubber data dir. However, generally the /var/lib need root permission. So user will run into permission problem by default.
2. We're using lockutils in line https:/ /github. com/openstack/ glance/ blob/master/ glance/ store/scrubber. py#L168 however, in glance-api.conf and glance- scrubber. conf, we didn't configure it by default. So this line will fail with error "value required for option: lock_path".