Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common commands in openstack

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces what openstack commands are commonly used, the article is very detailed, has a certain reference value, interested friends must read it!

1. View the list of current tenants

[root@host ~ (keystone_admin)] # keystone tenant-list+--+ | id | name | enabled | +- -+ | 596489a9225d489eac574b8d254fdc43 | admin | True | | 3af9ddd5113d4c5ca2e7f3551afadecd | services | True | +-+

2. Check the virtual machine. There are three situations:

Nova list is commonly used. You can only view the virtual machines of admin tenants.

Nova list-- all |-- all-tenants to view the virtual machines of all tenants

Nova list-- tenant checks virtual machines under a tenant. For example, id of services tenant is: 3af9ddd5113d4c5ca2e7f3551afadecd [root@host ~ (keystone_admin)] # nova list-- tenant 3af9ddd5113d4c5ca2e7f3551afadecdWhen you talk about it- -+- -- + | ID | Name | Tenant ID | Status | Task State | Power State | Networks | | +-+-+ -+ | 3ad7ed7a-b4f8-43f2-8a62 -12fb1c977171 | Clover 1 | 7cf13dea611e45aa98fb0650a5e61d2b | ACTIVE |-| Running | ceph=192.8.9.13 | | 197e5716-853e-4fc7-a5fc-40f74e0cccdc | CMUE 2 | 7cf13dea611e45aa98fb0650a5e61d2b | ACTIVE |-| Running

3. Upload image

Glance image-create-name xxx-disk-format=qcow2-container-format=bare-is-public=True-file=/home/xxx.img

-the name displayed in openstack after name NAME uploads the image

-disk-format DISK_FORMAT image format. For more information on the formats supported by openstack, please see the official introduction.

-the container format of container-format CONTAINER_FORMAT images. It can be ami,ari,aki,ovf,bare. Default is bare.

-owner TENANT_ID the tenant can use this image

-the size of the size SIZE image

-min-disk DISK_GB the minimum size required for the image to start

-the minimum memory required for min-ram DISK_RAM to start this image

-location IMAGE_URL can use url address to upload images in the web interface. Currently, http protocol is supported.

-the local directory where the file FILE image resides

-checksum CHECKSUM image data verification

-is-public [True | False] whether to share this image; other users can also use this image to start instance after sharing

The above is all the contents of this article "what are the Common openstack commands?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report