Enable RBD backend for location option

Bug #1176994 reported by Sébastien Han
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Sébastien Han

Bug Description

Currently only 's3', 'swift', 'http' are supported with the --location option of glance client. It's not that difficult to implement it with an RBD backend, simply change the line 278 form the file /glance/api/v1/images.py with:

 for scheme in ['s3', 'swift', 'http', 'rbd']:

It seems to be working for me after the change:

$ glance image-create --size 2147483648 --name ubuntu-rbd-hack --store rbd --disk-format raw --container-format ovf --location rbd://ubuntu-raw
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | None |
| container_format | ovf |
| created_at | 2013-05-06T15:29:26 |
| deleted | False |
| deleted_at | None |
| disk_format | raw |
| id | 0d47c421-b079-44ff-bcc5-ee711d500512 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | ubuntu-rbd-hack |
| owner | 19292b3b597b4ecc9a41103cc312a42f |
| protected | False |
| size | 2147483648 |
| status | active |
| updated_at | 2013-05-06T15:29:26 |
+------------------+--------------------------------------+

The only thing I noticed, is that I might have raised another (bug?) not implemented feature here:

Skipping store.set_acls... not implemented. set_acls glance/store/__init__.py:304

It seems to be harmless but this might lead to another bug report, what do you think?

Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28325

Changed in glance:
assignee: nobody → Sébastien Han (sebastien-han)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/28325
Committed: http://github.com/openstack/glance/commit/e16cffe432ade6fc8d22d422c490bdea8506596f
Submitter: Jenkins
Branch: master

commit e16cffe432ade6fc8d22d422c490bdea8506596f
Author: leseb <email address hidden>
Date: Mon May 6 18:41:19 2013 +0200

    Add RBD support with the location option

    Currently only 's3', 'swift', 'http' are supported
    with the --location option of glance client.

    Change-Id: I8300314cf246d7ad42c2353d4c122c4ff2b831f7
    Fixes: bug #1176994

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-1 → 2013.2
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.