Bug 1918077 - Volume backups can be created in any Ceph pools like vms
Summary: Volume backups can be created in any Ceph pools like vms
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Cinder Bugs List
QA Contact: Evelina Shames
Andy Stillman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-20 01:14 UTC by Takashi Kajinami
Modified: 2023-07-29 08:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-2217 0 None None None 2022-11-24 08:41:22 UTC
Red Hat Knowledge Base (Solution) 5726721 0 None None None 2021-01-22 02:17:36 UTC

Description Takashi Kajinami 2021-01-20 01:14:16 UTC
Description of problem:

Currently CephBackupDriver implements backup containers as ceph pools in backend Ceph cluster.
It uses backups pool by default but user can select any pools by setting the target container when creating a backup.
This results in unexpected situation where users create backups in any other pools like vms, volumes or etc, because we use the same credential which has access to all pools.
We should restrict available pools for cinder-backup to ensure that volume backups are created in dedicated ceph pools.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Deploy overcloud with Ceph and cinder-backup

2. Create an empty volume
 $ openstack volume create testbackup

3. Create a backup from the volume, with a target container
 $ openstack volume backup create testbackup --container vms

Actual results:
The volume backup is created in vms pool, which should be dedicated for ephemeral disks

Expected results:
Cinder-backup fails (or rejects) to create the volume backup.


Additional info:

Comment 1 Takashi Kajinami 2021-01-20 01:16:21 UTC
This might need to be addressed by configuration side(to use dedicated user with access to only backups pools),
but I assigned this to openstack-cinder first to hear some thoughts from Cinder team.

Comment 2 Alan Bishop 2021-01-28 15:57:57 UTC
The cinder squad discussed this issue, and it highlights a deficiency in cinder's current design. The plan is to bring this to the cinder community by raising it in an upcoming cinder openstack meeting. Gorka identified a couple of alternative approaches to address the problem, which he intends to summarize in an email sent to the openstack-discuss mail list.


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