Enable RBD backend for location option
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/
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-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | ubuntu-rbd-hack |
| owner | 19292b3b597b4ec
| 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/
It seems to be harmless but this might lead to another bug report, what do you think?
Thanks.
Changed in glance: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/28325
Review: https:/