Saturday, January 23, 2021

OpenStack commands

1) OpenStack command to upload image to glance

openstack image create --public --disk-format qcow2 --container-format bare \
--file <qcow2-file>  <image-name>

openstack image create --public --disk-format qcow2 --container-format bare \
--file CentOS-7.7-x86_64-GenericCloud-1908.qcow2  \ 
CentOS-7.7-x86_64-GenericCloud-1908

2) OpenStack command to download image from glance registry.

          openstack image save --file <file-name> <image-id>
          openstack image save --file CentOS-7.9-custom.qcow2 f73ebc8f-cc4c-46a3-969e-f85c619fe73
 
 3) OpenStack command to list tenant instance.
          openstack server list 
 
4) OpenStack command to list instances from all tenant (use admin RC file).
          openstack server list --all
 
5) OpenStack command to list instances ID from all tenant (use admin RC file).
          openstack server list --all -c ID

 


No comments:

Post a Comment

Terraform - OpenStack "The server timed out waiting for the request"

 I used terraform script to create instances on OpenStack Train. The OpenStack cloud is located on a remote data center. Due to the high net...