Ask Your Question
0

cinder-backup service can't read some opts in config file

asked 2016-09-27 03:43:29 -0600

jiekliao1314 gravatar image

When i use devstack to test cinder-backup with ceph backend,i got the error:

BackupDriverException: Backup driver reported an error: Could not determine which Swift endpoint to use. This can either be set in the service catalog or with the cinder.conf config option 'backup_swift_url'.

I use the cmd to start cinder-backup service in devstack:

/usr/local/bin/cinder-backup --config-file /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-bak.pid; fg || echo "c-bak failed to start" | tee "/opt/stack/status/stack/c-bak.failure"

And i indeed add the opts in /etc/cinder/cinder.conf about backup_driver:

[DEFAULT]
backup_driver  =  cinder.backup.drivers.ceph
backup_ceph_conf  =  /etc/ceph/ceph.conf
backup_ceph_user  =  cinder-backup
backup_ceph_chunk_size  =  134217728
backup_ceph_pool  =  backups
backup_ceph_stripe_unit  =  0
backup_ceph_stripe_count  =  0
restore_discard_excess_bytes  =  true

backup_driver always is swift,anyone can help me?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-09-27 22:19:36 -0600

jiekliao1314 gravatar image

I find the reason: When i copied the opts otherwhere to /etc/cinder/cinder.conf, some messy codes appeared and made cinder-backup could not recognise them. How stupid am i!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-27 03:38:42 -0600

Seen: 159 times

Last updated: Sep 27 '16