“1+X中级B卷:对象存储管理”的版本间的差异
来自CloudWiki
(未显示2个用户的2个中间版本) | |||
第4行: | 第4行: | ||
参考实训:[[Cinder、Swift运维]] | 参考实训:[[Cinder、Swift运维]] | ||
==操作步骤== | ==操作步骤== | ||
− | |||
− | |||
− | + | [root@xiandian ~]# openstack container create examtest | |
+ | |||
+ | <nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | +---------------------------------------+-----------+------------------------------------+ | ||
+ | |||
+ | | account | container | x-trans-id | | ||
+ | |||
+ | +---------------------------------------+-----------+------------------------------------+ | ||
+ | |||
+ | | AUTH_0ab2dbde4f754b699e22461426cd0774 | examtest | tx9e7b54f8042d4a6ca5ccf-005a93daf3 | | ||
+ | |||
+ | +---------------------------------------+-----------+------------------------------------+ | ||
+ | </nowiki> | ||
+ | |||
+ | [root@xiandian ~]# openstack container list | ||
+ | |||
+ | <nowiki> | ||
+ | |||
+ | +----------+ | ||
+ | |||
+ | | Name | | ||
+ | |||
+ | +----------+ | ||
+ | |||
+ | | examtest | | ||
+ | |||
+ | +----------+ | ||
+ | </nowiki> | ||
+ | |||
+ | [root@xiandian ~]# openstack object create examtest aaa.txt | ||
+ | |||
+ | <nowiki> | ||
+ | |||
+ | +---------+-----------+----------------------------------+ | ||
+ | |||
+ | | object | container | etag | | ||
+ | |||
+ | +---------+-----------+----------------------------------+ | ||
+ | |||
+ | | aaa.txt | examtest | 45226aa24b72ce0ccc4ff73eefe2e26f | | ||
+ | |||
+ | +---------+-----------+----------------------------------+ | ||
+ | </nowiki> | ||
+ | |||
+ | [root@xiandian ~]# openstack object list examtest | ||
+ | |||
+ | <nowiki> | ||
+ | |||
+ | +---------+ | ||
+ | |||
+ | | Name | | ||
+ | |||
+ | +---------+ | ||
+ | |||
+ | | aaa.txt | | ||
+ | |||
+ | +---------+ | ||
+ | </nowiki> |
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 | +---------+