Bug 2214448 - Failed to delete an image
Summary: Failed to delete an image
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ceph
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Giulio Fidente
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-13 02:38 UTC by Itzik Brown
Modified: 2023-06-27 12:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-27 12:37:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-25765 0 None None None 2023-06-13 02:40:28 UTC

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 /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:)


Note You need to log in before you can comment on or make changes to this bug.