Configure Mirantis Openstack (9.2) Volume Backups to write to external Swift Object Storage

asked 2017-03-06 10:30:04 -0500

JaredK gravatar image

updated 2017-03-13 12:58:43 -0500

I'm trying to configure my Mirantis Openstack 9.2 installation to use an External swift based object store. Currently, the ObjectStore, and Glance images are properly configured to do this. However, I can not get the Cinder Volume Backups to use the external storage.

My Cinder.conf file has the following values:

# egrep -v "#|^$" /etc/cinder/cinder.conf | grep swift
backup_swift_url = http://10.246.22.187:9024/v1/
backup_swift_auth_url = http://192.168.0.5:5000/v3
swift_catalog_info = object-store:swift:publicURL
backup_swift_auth = per_user
backup_swift_auth_version = 3
backup_swift_container = volumebackups
backup_swift_object_size = 52428800
backup_swift_block_size = 32768
backup_swift_retry_attempts = 3
backup_swift_retry_backoff = 2
backup_swift_enable_progress_timer = true
backup_driver = cinder.backup.drivers.swift

The problem is that volume backups appear to be working, but no data is being written to the external storage. I assume OpenStack is still writing to its own internal storage. I've restarted all services, and even restarted all OpenStack nodes after making my configuration changes, but I can not get it to recognize the configured Swift URL (backup_swift_url = http://10.246.22.187:9024/v1/)

The cinder-all.log file shows the following information:

# grep "req-735e793a-224b-4710-8774-7d7b7e8a1d7c" /var/log/cinder-all.log
    <158>Mar  2 15:56:43 controller cinder-api: 2017-03-02 15:56:43.824 5306 INFO cinder.api.openstack.wsgi [req-735e793a-224b-4710-8774-7d7b7e8a1d7c 513e8bd7deb34978a3c80d2d9ff8be13 ae61553f11514167a5d6a11098e14ba4 - - -] POST http://10.246.27.174:8776/v2/ae61553f11514167a5d6a11098e14ba4/backups
    <158>Mar  2 15:56:43 controller cinder-api: 2017-03-02 15:56:43.826 5306 INFO cinder.api.contrib.backups [req-735e793a-224b-4710-8774-7d7b7e8a1d7c 513e8bd7deb34978a3c80d2d9ff8be13 ae61553f11514167a5d6a11098e14ba4 - - -] Creating backup of volume 81abe70c-981e-48c7-a081-c47255eb4839 in container jaredwashere2
    <158>Mar  2 15:56:43 controller cinder-api: 2017-03-02 15:56:43.895 5306 INFO cinder.volume.api [req-735e793a-224b-4710-8774-7d7b7e8a1d7c 513e8bd7deb34978a3c80d2d9ff8be13 ae61553f11514167a5d6a11098e14ba4 - - -] Volume info retrieved successfully.
    <158>Mar  2 15:56:44 controller cinder-api: 2017-03-02 15:56:44.043 5306 INFO cinder.api.openstack.wsgi [req-735e793a-224b-4710-8774-7d7b7e8a1d7c 513e8bd7deb34978a3c80d2d9ff8be13 ae61553f11514167a5d6a11098e14ba4 - - -] http://10.246.27.174:8776/v2/ae61553f11514167a5d6a11098e14ba4/backups returned with HTTP 202
    <158>Mar  2 15:56:44 controller cinder-api: 2017-03-02 15:56:44.045 5306 INFO eventlet.wsgi.server [req-735e793a-224b-4710-8774-7d7b7e8a1d7c 513e8bd7deb34978a3c80d2d9ff8be13 ae61553f11514167a5d6a11098e14ba4 - - -] 192.168.0.5 "POST /v2/ae61553f11514167a5d6a11098e14ba4/backups HTTP/1.1" status: 202  len: 631 time: 0.2255578

Is it possible that there is additional configuration information, other than '/etc/cinder/cinder.conf', I may be missing?

edit retag flag offensive close merge delete

Comments

"jaredwashere2" must be configured somewhere. Where is it?

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-06 20:33:50 -0500 )edit

In addition to the 'backup_swift_container' config parameter, the volume backup UI also asks for a backup location. 'jaredwashere2' was what I used to see what happens if I use something other than was specified. It didn't matter what I used, I could not get the config settings to be recognized

JaredK gravatar imageJaredK ( 2017-03-07 10:07:05 -0500 )edit