使用openstack 相关命令,查询角色列表信息,以文本形式提交查询命令和结果到答题框。
[root@controller ~]# openstack role list +----------------------------------+-------+ | ID | Name | +----------------------------------+-------+ | 1c3383ec0e994dcaae444450804a03b7 | user | | ec688cc3896f49eeaa5d16040363cc7e | admin | +----------------------------------+-------+ |
视频下载地址
pan.baidu.com/s/1dOJkpwxE9K_oXxxHiHwb8Q 提取码: 9gdc
播放器下载地址https://www.360dhf.cn/dhfplayer.html
播放器账号xiandian 密码123456 网校名称:云计算
更多课程可以到某宝 搜索“先电云计算”
使用openstack 相关命令,查询admin项目信息,将操作命令和输出结果以文本形式提交到答题框。
[root@controller ~]# openstack project show admin +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Admin Project | | domain_id | 3a2445341a3c4305b0b861aed3f72e85 | | enabled | True | | id | 902e1f79ebc64b0b93f80f75bc4cc6e0 | | is_domain | False | | name | admin | | parent_id | 3a2445341a3c4305b0b861aed3f72e85 | +-------------+----------------------------------+ |
使用openstack 相关命令,查询用户列表信息,以文本形式提交查询命令和结果到答题框。
[root@controller ~]# openstack user list +----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 0c7726488c6046009c443c68239ef6a2 | demo | | 11b7e35c2654460b9d55a305402e38c7 | admin | | 19bb74b9715d4bae8e22d74694a8eb37 | nova | | 30f5e01ea657469ab70edb7efad40772 | glance | | 54aa4f98f39d4fb69a592fa601c1b9f4 | swift | | 80d2bd53f98d44659b16e6517633bf3b | neutron | +----------------------------------+---------+ |
使用openstack 相关命令,查询admin用户详细信息,以文本形式提交查询命令和结果到答题框。
[root@controller ~]# openstack user show admin +-----------+----------------------------------+ | Field | Value | +-----------+----------------------------------+ | domain_id | 3a2445341a3c4305b0b861aed3f72e85 | | enabled | True | | id | 11b7e35c2654460b9d55a305402e38c7 | | name | admin | +-----------+----------------------------------+ |
使用openstack 相关命令,查询服务列表信息,以文本形式提交查询命令和结果到答题框。
[root@controller ~]# openstack service list +----------------------------------+----------+--------------+ | ID | Name | Type | +----------------------------------+----------+--------------+ | 2cbcd9968e1346099342d09c9f0e0686 | swift | object-store | | 6427f65a96ff45bf8dc7afba3e6b2ae8 | neutron | network | | aa22e28090574faa80fbb8b8b5bcce85 | keystone | identity | | c67ae102be904419b31ecebab0f16b90 | nova | compute | | fb8c2c71345d461990d47ee7cc43830c | glance | image | +----------------------------------+----------+--------------+ |
根据平台安装步骤安装至镜像服务,在控制节点使用提供的脚本iaas-install-glance.sh安装glance组件。使用镜像文件CentOS_7.2-x86_64_XD.qcow2创建glance镜像centos_7-x86_64,格式为qcow2。
[root@controller ]# glance image-create --name 'centos_7-x86_64' --disk-format qcow2 --container-format bare --progress</opt/iaas/images/CentOS_7.2_x86_64_XD.qcow2 [=============================>] 100% +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | ea197f4c679b8e1ce34c0aa70ae2a94a | | container_format | bare | | created_at | 2017-08-28T11:46:24Z | | disk_format | qcow2 | | id | 45a25a2c-f6ab-48b9-9f8e-96b9da5cc031 | | min_disk | 0 | | min_ram | 0 | | name | centos_7-x86_64 | | owner | 902e1f79ebc64b0b93f80f75bc4cc6e0 | | protected | False | | size | 400752640 | | status | active | | tags | [] | | updated_at | 2017-08-28T11:46:39Z | | virtual_size | None | | visibility | private | +------------------+--------------------------------------+ |
使用glance 相关命令查询glance镜像列表,将镜像上传的命令以及查询命令连同命令的执行结果提交到答题框。
[root@controller ]# glance image-create --name 'centos_7-x86_64' --disk-format qcow2 --container-format bare --progress</opt/iaas/images/CentOS_7.2_x86_64_XD.qcow2 [=============================>] 100% +------------------+--------------------------------------+ | Property | Value | +------------------+--------------------------------------+ | checksum | ea197f4c679b8e1ce34c0aa70ae2a94a | | container_format | bare | | created_at | 2017-08-28T11:46:24Z | | disk_format | qcow2 | | id | 45a25a2c-f6ab-48b9-9f8e-96b9da5cc031 | | min_disk | 0 | | min_ram | 0 | | name | centos_7-x86_64 | | owner | 902e1f79ebc64b0b93f80f75bc4cc6e0 | | protected | False | | size | 400752640 | | status | active | | tags | [] | | updated_at | 2017-08-28T11:46:39Z | | virtual_size | None | | visibility | private | +------------------+--------------------------------------+ [root@controller ]# glance image-list +--------------------------------------+------------------------+ | ID | Name | +--------------------------------------+------------------------+ | cb2adaa3-a784-495c-8089-9f6f8e5d9370 | centos7 | | 45a25a2c-f6ab-48b9-9f8e-96b9da5cc031 | centos_7-x86_64 | | 3fd9f77f-63e9-4ffc-9cc4-c8a9fb12716a | xiandian_iaas-allinone | +--------------------------------------+------------------------+ |
使用systemctl 相关命令,在一条命令中查询glance组件中所有服务的状态信息,查询命令连同命令的执行结果提交到答题框。
[root@controller ~]# systemctl status openstack-glance-api.service openstack-glance-registry.service ● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2017-08-28 03:39:44 EDT; 4h 9min ago Main PID: 29128 (glance-api) CGroup: /system.slice/openstack-glance-api.service ├─29128 /usr/bin/python2 /usr/bin/glance-api ├─29214 /usr/bin/python2 /usr/bin/glance-api ├─29215 /usr/bin/python2 /usr/bin/glance-api ├─29216 /usr/bin/python2 /usr/bin/glance-api ├─29217 /usr/bin/python2 /usr/bin/glance-api ├─29218 /usr/bin/python2 /usr/bin/glance-api ├─29219 /usr/bin/python2 /usr/bin/glance-api ├─29220 /usr/bin/python2 /usr/bin/glance-api ├─29221 /usr/bin/python2 /usr/bin/glance-api ├─29222 /usr/bin/python2 /usr/bin/glance-api ├─29223 /usr/bin/python2 /usr/bin/glance-api ├─29224 /usr/bin/python2 /usr/bin/glance-api ├─29225 /usr/bin/python2 /usr/bin/glance-api ├─29226 /usr/bin/python2 /usr/bin/glance-api ├─29227 /usr/bin/python2 /usr/bin/glance-api ├─29228 /usr/bin/python2 /usr/bin/glance-api └─29230 /usr/bin/python2 /usr/bin/glance-api
Aug 28 07:41:51 controller glance-api[29128]: /usr/lib/python2.7/site-packag...e Aug 28 07:41:51 controller glance-api[29128]: expire_on_commit=expire_on_com...) Aug 28 07:41:52 controller glance-api[29128]: /usr/lib/python2.7/site-packag...e Aug 28 07:41:52 controller glance-api[29128]: expire_on_commit=expire_on_com...) Aug 28 07:41:56 controller glance-api[29128]: /usr/lib/python2.7/site-packag...e Aug 28 07:41:56 controller glance-api[29128]: expire_on_commit=expire_on_com...) Aug 28 07:46:39 controller glance-api[29128]: /usr/lib/python2.7/site-packag.... Aug 28 07:46:39 controller glance-api[29128]: self._verify_signature_if_need...) Aug 28 07:46:39 controller glance-api[29128]: /usr/lib/python2.7/site-packag.... Aug 28 07:46:39 controller glance-api[29128]: self.image.extra_properties)):
● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server Loaded: loaded (/usr/lib/systemd/system/openstack-glance-registry.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2017-08-28 03:39:44 EDT; 4h 9min ago Main PID: 29121 (glance-registry) CGroup: /system.slice/openstack-glance-registry.service ├─29121 /usr/bin/python2 /usr/bin/glance-registry ├─29196 /usr/bin/python2 /usr/bin/glance-registry ├─29197 /usr/bin/python2 /usr/bin/glance-registry ├─29198 /usr/bin/python2 /usr/bin/glance-registry ├─29199 /usr/bin/python2 /usr/bin/glance-registry ├─29200 /usr/bin/python2 /usr/bin/glance-registry ├─29201 /usr/bin/python2 /usr/bin/glance-registry ├─29202 /usr/bin/python2 /usr/bin/glance-registry ├─29203 /usr/bin/python2 /usr/bin/glance-registry ├─29204 /usr/bin/python2 /usr/bin/glance-registry ├─29205 /usr/bin/python2 /usr/bin/glance-registry ├─29206 /usr/bin/python2 /usr/bin/glance-registry ├─29207 /usr/bin/python2 /usr/bin/glance-registry ├─29208 /usr/bin/python2 /usr/bin/glance-registry ├─29209 /usr/bin/python2 /usr/bin/glance-registry ├─29210 /usr/bin/python2 /usr/bin/glance-registry └─29211 /usr/bin/python2 /usr/bin/glance-registry
Aug 28 03:56:39 controller glance-registry[29121]: /usr/lib/python2.7/site-pa... Aug 28 03:56:39 controller glance-registry[29121]: expire_on_commit=expire_on... Aug 28 03:57:09 controller glance-registry[29121]: /usr/lib/python2.7/site-pa... Aug 28 03:57:09 controller glance-registry[29121]: expire_on_commit=expire_on... Aug 28 04:00:23 controller glance-registry[29121]: /usr/lib/python2.7/site-pa... Aug 28 04:00:23 controller glance-registry[29121]: expire_on_commit=expire_on... Aug 28 04:00:29 controller glance-registry[29121]: /usr/lib/python2.7/site-pa... Aug 28 04:00:29 controller glance-registry[29121]: expire_on_commit=expire_on... Aug 28 04:01:28 controller glance-registry[29121]: /usr/lib/python2.7/site-pa... Aug 28 04:01:28 controller glance-registry[29121]: expire_on_commit=expire_on... Hint: Some lines were ellipsized, use -l to show in full. |
根据平台安装步骤安装至nova计算服务,在控制节点使用提供的脚本iaas-install-nova-controller.sh、在计算节点使用提供的脚本iaas-install-nova-compute.sh,安装nova组件。
使用nova相关命令查询计算节点虚拟机监控器的状态,将命令和结果以文本形式提交到答题框。
[root@controller ~]# nova hypervisor-stats +----------------------+-------+ | Property | Value | +----------------------+-------+ | count | 2 | | current_workload | 0 | | disk_available_least | 959 | | free_disk_gb | 988 | | free_ram_mb | 14266 | | local_gb | 1268 | | local_gb_used | 280 | | memory_mb | 31674 | | memory_mb_used | 17408 | | running_vms | 3 | | vcpus | 32 | | vcpus_used | 8 | +----------------------+-------+ |