Bug 2214448

Summary: Failed to delete an image
Product: Red Hat OpenStack Reporter: Itzik Brown <itbrown>
Component: cephAssignee: Giulio Fidente <gfidente>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Yogev Rabl <yrabl>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16.1 (Train)CC: cyril, eharney, jdurgin, lhh, mhicks
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-27 12:37:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Itzik Brown 2023-06-13 02:38:56 UTC
Description of problem:
When trying to delete an image I get the following:
openstack image delete 9ed02781-75a0-4d56-81a1-5cf639dba2e4
Failed to delete image with name or ID '9ed02781-75a0-4d56-81a1-5cf639dba2e4': HTTP 502 Proxy Error: Proxy Error: The proxy server received an invalid: response from an upstream server.: The proxy server could not handle the request DELETE&nbsp;/v2/images/9ed02781-75a0-4d56-81a1-5cf639dba2e4.: Reason: Error reading from remote server
Failed to delete 1 of 1 images.

Looking at glance logs I see:
2023-06-12 14:25:43.603 66 DEBUG glance_store._drivers.rbd [req-b200e05b-3a5a-444e-bb4f-9a90264d197b 58f68553999d419dbc38a107a0b075fb 21291899b1a94d198af3145c1b2054bf - default default] Snap Operating Exception [errno 2] error setting image b'9ed02781-75a0-4d56-81a1-5cf639dba2e4' to snapshot b'snap' Snapshot does not exist. _delete_image /usr/lib/python3.6/site-packages/glance_store/_drivers/rbd.py:453

Version-Release number of selected component (if applicable):
RHOS-16.1-RHEL-8-20221206.n.1

How reproducible:
First time that I see it

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Cyril Roelandt 2023-06-13 12:18:09 UTC
Do we really have all the logs in the tarball? I cannot find the Glance logs you mentioned:

$ grep -ril "/usr/lib/python3.6/site-packages/glance_store/_drivers/rbd.py:453"
grep: var/lib/tripleo-config/container-startup-config/step_5: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_1: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_3: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_2: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_4: Permission denied
$ grep -ril "Snapshot does not exist"
grep: var/lib/tripleo-config/container-startup-config/step_5: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_1: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_3: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_2: Permission denied
grep: var/lib/tripleo-config/container-startup-config/step_4: Permission denied
$

Comment 7 Cyril Roelandt 2023-06-27 12:37:16 UTC
OK, let's close it for now:)