Project

General

Profile

Bug #47785

mgr/dashboard: unable to remove rbd image with name containing /

Added by Erkki Seppälä over 3 years ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - RBD
Target version:
-
% Done:

100%

Source:
Community (user)
Tags:
backport_processed
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Steps to reproduce:

1) Create an image containing character / with qemu-img:

echo helloworld > data; qemu-img convert data rbd:images/./debian-template

2) Go to https://mgr/block/rbd, find the created image and choose 'Delete' from the red drop-down menu

3) Confirm deletion

4) Witness 404 error popup appearing on the right. Web browser console shows the following exchange:

DELETE https://mgr/api/block/image/images%2F.%2Fdebian-template
{
  "detail": "(404, 'Image not found')",
  "code": 404,
  "component": null,
  "status": 404,
  "task": {
    "name": "rbd/delete",
    "metadata": {
      "image_spec": "images/./debian-template" 
    }
  }
}

5) Close the dialog and refresh the list; witness the image not having been removed.


Related issues

Copied to Dashboard - Backport #48377: octopus: mgr/dashboard: unable to remove rbd image with name containing / Rejected

History

#1 Updated by Lenz Grimmer over 3 years ago

  • Backport set to octopus

Thank for the report!

#2 Updated by Tiago Melo over 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Tiago Melo

#3 Updated by Tiago Melo over 3 years ago

  • Pull request ID set to 37719

Ceph CLI and dashboard doesn't allow us to create RBD images with '/' in its name, so this PR will simply disable all actions if the image name is invalid (contains '/' or '@').

I was not able to use qemu-img to create an invalid image in a pacific cluster, so this was only reproduceable in octopus.

#4 Updated by Tiago Melo over 3 years ago

  • Status changed from In Progress to Fix Under Review

#5 Updated by Ernesto Puerta over 3 years ago

  • Status changed from Fix Under Review to Closed

#6 Updated by Ernesto Puerta over 3 years ago

  • Status changed from Closed to Pending Backport

#7 Updated by Nathan Cutler over 3 years ago

  • Copied to Backport #48377: octopus: mgr/dashboard: unable to remove rbd image with name containing / added

#8 Updated by Ernesto Puerta almost 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 139 to Component - RBD

#9 Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed

#10 Updated by Konstantin Shalygin 11 months ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF