Ask Your Question

How to use owncloud as swift backend?

asked 2015-05-17 22:50:04 -0600

ebyenjoys gravatar image


I have a working swift cluster(Juno) with keystone authentication.

Below are my swift basic credentials for the account jimmy.

root@proxy-27:~# swift -A --os-username=jimmy --os-password=a --os-tenant-name=jimmy list

I am trying to integrate owncloud as a dashboard to control my object storage data. I have seen a section called external storage under the owncloud where I can configure the swift credentials.image description

I suppose credentials as follows:

Username: jimmy

Bucket : films

Region : Regionone (default, I haven't specified any regions)



Service Name: service

URL of identity Service:

API key: I really don't know what is an API key and I am stuck in here,

Timeout: 10

Kindly correct if I am wrong in any of the credentials above. It would really great if someone can sort out this and help me to list my object data.


edit retag flag offensive close merge delete


Thanks Bro.! Resolved it. :)

ebyenjoys gravatar imageebyenjoys ( 2015-05-18 00:57:36 -0600 )edit

4 answers

Sort by » oldest newest most voted

answered 2015-05-18 00:58:53 -0600

ebyenjoys gravatar image

It worked out...! Issue was with the service,it should be provided as in the name of service end point.

edit flag offensive delete link more

answered 2015-07-03 16:09:42 -0600

dsoltesz gravatar image

updated 2015-07-03 17:10:46 -0600

Here is how to get the info needed for Owncloud Enterprise or Community v8 Primary or External Storage intergration with OpenStack Swift.

To verify the needed fields for Primary and External Object Storage integration the following command can be run from the ownCloud server or any system running Linux or Mac OS with curl installed.

    $ curl -s https://my.swiftstack.cluster/auth/v2.0/ -d  \ 
      '{"auth":{"passwordCredentials":{"username":"myUserName","password":"myPassword"}}}' \
      | json_pp

Please note that if http is used then the https after the –s switch should be changed to match. Also, the \ on the first line is not to be included, it is simply to mark that this should be a single command.

Below is the response from a SwiftStack cluster with user “syncNshare” configured as a local user on the SwiftStack controller.


   "access" : {
      "user" : {
         "name" : "syncNshare",
         "id" : "syncNshare",
         "roles" : [
               "id" : "syncNshare",
               "name" : "syncNshare"
               "name" : "AUTH_syncNshare",
               "id" : "AUTH_syncNshare"
      "token" : {
         "id" : "AUTH_tk26eba16be2b14031a4c5087aa55d2fbd",
         "expires" : "2015-06-09T00:35:50Z",
         "tenant" : {
            "name" : "AUTH_syncNshare",
            "id" : "AUTH_syncNshare"
      "serviceCatalog" : [
            "endpoints" : [
                  "tenantId" : "AUTH_syncNshare",  ←Tenant Name
                  "publicURL" : "https:// lab.swift.stack /v1/AUTH_syncNshare",
                  "versionId" : 1,
                  "region" : "default"  ←Region
            "name" : "Swift Object Storage (http://lab.swift.stack)",  ←Service Name
            "type" : "object-store"

For External Storage application plug in the values as follows to OwnCloud.

Username = Username
Bucket = Swift Container
Region = Get from region value above
API Key = leave blank
Tenantname = TenantID from above
Password = password
Service Name = name key from above
URL of identity endpoint = Url used for Swift Auth in my example it was (https://my.swiftstack.cluster/auth/v2.0/)
TimeOut = leave blank

Here are some pics:

image description

image description

image description

I hope this helps others looking to use OwnCloud and OpenStack Swift,


edit flag offensive delete link more

answered 2015-05-17 23:24:18 -0600

sunnyarora gravatar image

As i understand API Key is required for Rackspace Cloud Files. This is not required for OpenStack Swift. Leave it empty.

edit flag offensive delete link more

answered 2015-07-01 17:26:42 -0600

Stephanie Fuller gravatar image

I found that even though the documentation SAID that the API Key was not required, I did not get a green light until I put something in that space.

edit flag offensive delete link more


Actually, that might have been fixed from Juno to Kilo build because my new system that is kilo truly does not require the API key field.

Stephanie Fuller gravatar imageStephanie Fuller ( 2015-07-02 17:23:50 -0600 )edit

API key is not must. Its used for service like amazon S3.

ebyenjoys gravatar imageebyenjoys ( 2015-07-04 08:57:12 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-17 22:50:04 -0600

Seen: 2,268 times

Last updated: Jul 03 '15