1+X中级B卷:对象存储管理

来自CloudWiki
Cloud17讨论 | 贡献2020年11月24日 (二) 14:20的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

题目

使用提供的“all-in-one”虚拟机,使用openstack命令,创建名为examtest的容器并查询,上传一个aaa.txt(可自行创建)文件到这个容器中并查询。依次将操作命令和返回结果以文本形式提交到答题框。

参考实训:Cinder、Swift运维

操作步骤

[root@xiandian ~]# openstack container create examtest


   


+---------------------------------------+-----------+------------------------------------+

| account | container | x-trans-id |

+---------------------------------------+-----------+------------------------------------+

| AUTH_0ab2dbde4f754b699e22461426cd0774 | examtest | tx9e7b54f8042d4a6ca5ccf-005a93daf3 |

+---------------------------------------+-----------+------------------------------------+

[root@xiandian ~]# openstack container list


+----------+

| Name |

+----------+

| examtest |

+----------+

[root@xiandian ~]# openstack object create examtest aaa.txt


+---------+-----------+----------------------------------+

| object | container | etag |

+---------+-----------+----------------------------------+

| aaa.txt | examtest | 45226aa24b72ce0ccc4ff73eefe2e26f |

+---------+-----------+----------------------------------+

[root@xiandian ~]# openstack object list examtest


+---------+

| Name |

+---------+

| aaa.txt |

+---------+