Override backup endpoint
#
Pre-task:- cluster1 - IP: 10.32.20.242
- New Cube Storage endpoint - IP: 10.32.20.242
#
cluster1: CLI > cluster > checkcluster1> clustercluster1:cluster> check Service Status Report ClusterLink ok [ link(v) clock(v) dns(v) ] ClusterSys ok [ bootstrap(v) license(v) ] ClusterSettings ok [ etcd(v) ] HaCluster ok [ hacluster(v) ] MsgQueue ok [ rabbitmq(v) ] IaasDb ok [ mysql(v) ] VirtualIp ok [ vip(v) haproxy_ha(v) ] Storage ok [ ceph(v) ceph_mon(v) ceph_mgr(v) ceph_mds(v) ceph_osd(v) ceph_rgw(v) rbd_target(v) ] ApiService ok [ haproxy(v) httpd(v) lmi(v) memcache(v) ] SingleSignOn ok [ keycloak(v) ] Compute ok [ nova(v) ] Baremetal ok [ ironic(v) ] Network ok [ neutron(v) ] Image ok [ glance(v) ] BlockStor ok [ cinder(v) ] FileStor ok [ manila(v) ] ObjectStor ok [ swift(v) ] Orchestration ok [ heat(v) ] LBaaS ok [ octavia(v) ] DNSaaS ok [ designate(v) ] K8SaaS ok [ k3s(v) rancher(v) ] InstanceHa ok [ masakari(v) ] DisasterRecovery ok [ freezer(v) ] BusinessLogic ok [ mistral(v) murano(v) cloudkitty(v) senlin(v) watcher(v) ] ApiManager ok [ tyk(v) redis(v) mongodb(v) ] DataPipe ok [ zookeeper(v) kafka(v) ] Metrics ok [ monasca(v) telegraf(v) grafana(v) ] LogAnalytics ok [ filebeat(v) auditbeat(v) logstash(v) es(v) kibana(v) ] Notifications ok [ influxdb(v) kapacitor(v) ]cluster1:cluster>
#
Check for availble tuningCLI > tuning > dump
cluster1:tuning> dump
Published Tunings----------------------------------------------------------------Name Description Default|Min|Maxcinder.backup.override Enable override cinder backup configurations. [False]cinder.backup.type Set cinder backup storage type <cube-storage|cube-swift>. ["" (Any)]cinder.backup.endpoint Set cinder backup storage endpoint. ["" (Any)]cinder.backup.account Set cinder backup storage account. ["" (Any)]cinder.backup.secret Set cinder backup storage account secret. ["" (Any)]cinder.backup.pool Set cinder backup storage pool. ["" (Any)]
#
configure tuning - cinder.backup.overrideCLI > tuning > configure
1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.overrideEnter tuning value: trueEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.override = true (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true---------------------------------------------------------------
#
configure tuning - cinder.backup.endpoint1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.endpointEnter tuning value: 10.32.20.242Enable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.endpoint = 10.32.20.242 (Enabled) enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242---------------------------------------------------------------
#
configure tuning - cinder.backup.secret1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.secretEnter tuning value: adminEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.account = admin (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin---------------------------------------------------------------
#
configure tuning - type (cube-storage|cube-swift)#
cinder.backup.type - cube-storage1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.type Enter tuning value: cube-storageEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.account = admin (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin [x] cinder.backup.type cube-storage ---------------------------------------------------------------
#
apply tuning - cube-storage1: modify tunings2: apply3: exitEnter index: 2enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.account admin [x] cinder.backup.type cube-storage---------------------------------------------------------------Apply the changes?Enter 'YES' to confirm: YESApplying policy changes.Policy changes were successfully applied.
#
Create a backup from a volume
#
Verify we are using a remote ceph backend for cinder backup# cat /etc/cinder/ceph_backup.conf# minimal ceph.conf for c6e64c49-09cf-463b-9d1c-b6645b4b3b85[global] fsid = c6e64c49-09cf-463b-9d1c-b6645b4b3b85 mon_host = [v2:10.32.20.242:3300/0,v1:10.32.20.242:6789/0] rbd concurrent management ops = 20 auth cluster required = none auth service required = none auth client required = none
#
Verify volume backup actually created in the ceph backend❯ ssh [email protected]Warning: Permanently added '10.32.20.242' (ECDSA) to the list of known hosts.Password:Welcome to the Cube ApplianceLast login: Fri May 21 09:37:50 2021 from 10.32.0.200# rbd ls volume-backupsvolume-7761b349-7301-4fc4-b98f-6f4273bd8feb.backup.72f3b1ae-26fc-4e3e-8fee-7b9d4eab7382#
#
cinder.backup.type - cube-swift1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.type Enter tuning value: cube-swiftEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.account = admin (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin [x] cinder.backup.type cube-swift ---------------------------------------------------------------
#
cinder.backup.account1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.account Enter tuning value: adminEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.account = admin (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin [x] cinder.backup.type cube-swift [x] cinder.backup.account admin ---------------------------------------------------------------
#
cinder.backup.pool1: modify tunings2: apply3: exitEnter index: 1Select action:1: Add2: Delete3: UpdateEnter index: 1Enter tuning name: cinder.backup.pool Enter tuning value: adminEnable the tuning:1: Enabled2: DisabledEnter index: 1
Adding tuning: cinder.backup.pool = admin (Enabled)enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin [x] cinder.backup.type cube-swift [x] cinder.backup.account admin [x] cinder.backup.pool admin ---------------------------------------------------------------
#
apply tuning - cube-swift1: modify tunings2: apply3: exitEnter index: 2enabled name value--------------------------------------------------------------- [x] cinder.backup.override true [x] cinder.backup.endpoint 10.32.20.242 [x] cinder.backup.secret admin [x] cinder.backup.type cube-swift [x] cinder.backup.account admin [x] cinder.backup.pool admin ---------------------------------------------------------------Apply the changes?Enter 'YES' to confirm: YESApplying policy changes.Policy changes were successfully applied.