cinder-backup cannot backup data to a separate ceph cluster

Bug #1713489 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Cinder-backup Charm
Fix Released
Undecided
Nobuto Murata

Bug Description

cinder, cinder-ceph and ceph-mon are related to offer a cinder backend for OpenStack. To backup data from the cluster, I'd like to use cinder-backup and relate to a separate cluster named ceph-mon-backup instead of the original ceph cluster.

In that case, cinder will have one /etc/ceph/ceph.conf and it has only one "mon host" line of the original cluster.

cinder-backup charm should set "backup_ceph_conf = /var/lib/charm/cinder-backup/ceph.conf" line in cinder.conf to use a different cluster and "mon host".
https://docs.openstack.org/ocata/config-reference/block-storage/backup/ceph-backup-driver.html

[/etc/cinder/cinder.conf]
...
backup_driver = cinder.backup.drivers.ceph
backup_ceph_pool = cinder-backup
backup_ceph_user = cinder-backup
...

root@juju-111d21-6-lxd-1:~# ll /etc/ceph/ceph.conf
lrwxrwxrwx 1 root root 27 Aug 28 05:35 /etc/ceph/ceph.conf -> /etc/alternatives/ceph.conf
root@juju-111d21-6-lxd-1:~# ll /etc/alternatives/ceph.conf
lrwxrwxrwx 1 root root 36 Aug 28 05:35 /etc/alternatives/ceph.conf -> /var/lib/charm/cinder-ceph/ceph.conf
root@juju-111d21-6-lxd-1:~# ll /var/lib/charm/*/*
-rw-r--r-- 1 root root 453 Aug 28 12:35 /var/lib/charm/cinder-backup/ceph.conf
-rw-r--r-- 1 root root 455 Aug 28 05:37 /var/lib/charm/cinder-ceph/ceph.conf

Tags: cpe-onsite
Nobuto Murata (nobuto)
description: updated
Revision history for this message
Nobuto Murata (nobuto) wrote :

test bundle

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-cinder-backup (master)

Reviewed: https://review.openstack.org/498526
Committed: https://git.openstack.org/cgit/openstack/charm-cinder-backup/commit/?id=14f6f2885bf763082bd64f03c9b258b38afaff79
Submitter: Jenkins
Branch: master

commit 14f6f2885bf763082bd64f03c9b258b38afaff79
Author: Nobuto Murata <email address hidden>
Date: Mon Aug 28 23:51:45 2017 +0700

    Use proper ceph.conf generated by ceph-backup relation

    When a primary Ceph cluster is used as a volume backend and a secondary
    cluster as a backup backend, target Ceph mon addresses will be
    different. But previously both Cinder volume and backup services use the
    same /etc/ceph/ceph.conf generated by cinder-ceph and ceph-mon relation.
    Instead, use separete ceph.conf files based on relation types.

    Change-Id: I1d82db179b41b0c01d2a217838384ac71ef7bdad
    Closes-Bug: #1713489

Changed in charm-cinder-backup:
status: New → Fix Committed
James Page (james-page)
Changed in charm-cinder-backup:
milestone: none → 17.08
James Page (james-page)
Changed in charm-cinder-backup:
status: Fix Committed → Fix Released
Nobuto Murata (nobuto)
Changed in charm-cinder-backup:
assignee: nobody → Nobuto Murata (nobuto)
Ante Karamatić (ivoks)
tags: added: cpe-onsite
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.