3.3.
重要
3.3.1.
流程
$ glance image-create-via-import \ --container-format bare \ --name <image-name> \ --import-method web-download \ --uri <uri> \ --store <store>
- 注意
$ openstack image show <image-id> | grep stores
3.3.2.
注意
流程
$ glance image-create-via-import \ --container-format bare \ --name <image-name> \ --import-method web-download \ --uri <uri> \ --stores <store-1>,<store-2>,<store-3>
3.3.3.
流程
$ glance image-create-via-import \ --container-format bare \ --name <image-name> \ --import-method web-download \ --uri <uri> \ --stores <store-1>,<store-2>,<store-3>
- 注意
如需更多信息,请参阅 第 3.3.4 节 “”。
验证
$ openstack image show <image-id> | grep stores
3.3.4.
注意
流程
$ openstack image show <image-id>
| os_glance_failed_import | | os_glance_importing_to_stores | central,dcn0,dcn1 | status | importing
$ watch openstack image show <image-id>
| os_glance_failed_import | | os_glance_importing_to_stores | dcn0,dcn1 | status | importing
| os_glance_failed_import | dcn0 | os_glance_importing_to_stores | dcn1 | status | importing
| os_glance_failed_import | dcn0 | os_glance_importing_to_stores | | status | active
3.3.5.
- 这是默认设置。
3.3.6.
流程
$ openstack image import <image_id> \ --store <store_id>\ --import-method copy-image
$ openstack image import <image-id> \ --stores <store-1>,<store-2> \ --import-method copy-image
$ openstack image list --include-stores
3.3.7.
注意
重要
3.3.8.
流程
$ openstack image import <image-id> \ --all-stores true \ --import-method copy-image
$ openstack image list --include-stores
3.3.9.
流程
$ openstack image delete --store <store-id> <image-id>
警告
3.3.10.
流程
$ openstack image show ID | grep "stores" | stores | default_backend,dcn1,dcn2
$ openstack image list --include-stores | ID | Name | Stores | 2bd882e7-1da0-4078-97fe-f1bb81f61b00 | cirros | default_backend,dcn1,dcn2
$ openstack image show ID -c properties | properties | (--- cut ---) locations='[{'url': 'rbd://79b70c32-df46-4741-93c0-8118ae2ae284/images/2bd882e7-1da0-4078-97fe-f1bb81f61b00/snap', 'metadata': {'store': 'default_backend'}}, {'url': 'rbd://63df2767-8ddb-4e06-8186-8c155334f487/images/2bd882e7-1da0-4078-97fe-f1bb81f61b00/snap', 'metadata': {'store': 'dcn1'}}, {'url': 'rbd://1b324138-2ef9-4ef9-bd9e-aa7e6d6ead78/images/2bd882e7-1da0-4078-97fe-f1bb81f61b00/snap', 'metadata': {'store': 'dcn2'}}]', (--- cut --)
rbd://79b70c32-df46-4741-93c0-8118ae2ae284/images/2bd882e7-1da0-4078-97fe-f1bb81f61b00/snap', 'metadata': {'store': 'default_backend'}}
- 每个 Ceph 集群都有唯一的 FSID。