1-What is OpenStack?
OpenStack is a cloud computing project aimed at providing infrastructure as a service (IaaS). OpenStack is a set of software components for managing and building Cloud Computing platforms for private and public clouds. OpenStack is an Open Source Cloud Computing platform.
2-Define OpenStack key components?
3-What are services generally run on a controller node?
4-What are the services generally run on a Compute Node?
5-Tell me the command how to spin a VM from Command Line?
# openstack server create --flavor {flavor-name} --image {Image-Name-Or-Image-ID} --nic net-id={Network-ID} --security-group {Security_Group_ID} –key-name {Keypair-Name} <VM_Name>
6-How to list the network namespace of a tenant in OpenStack?
# ip netns list
7-How to execute a command inside the network namespace in OpenStack?
# ip netns exec {network-space} <command>
8-How to upload and download a cloud image in Glance from the command line?
A Cloud image can be uploaded in a glance from command using OpenStack command,
~# openstack image create --disk-format qcow2 --container-format bare --public --file {Name-Cloud-Image}.qcow2 <Cloud-Image-Name>
Use below OpenStack command to download a cloud image from the command line,
~# glance image-download --file <Cloud-Image-Name> --progress <Image-ID>
9- How to reset the error state of a VM into active in OpenStack env?
There are some scenarios where some VMs went to an error state and this error state can be changed into an active state using the below commands,
~# nova reset-state --active {Instance_id}
10-How to get a list of available Floating IPs from the command line?
~]# openstack ip floating list | grep None
11-How to get a list of VMs which are provisioned on a specific Compute node?
#openstack server list –all-projects –long -c Name -c Host | grep -i {Compute-Node-Name}
12- How to view the console log of an OpenStack instance from the command line?
Console logs of an instance can be viewed from the command line using the following commands,
First, get the ID of an instance and then use the below command,
~# openstack console log show {Instance-id}
13-How to get the console URL of an OpenStack instance?
Console URL of an instance can be retrieved from the command line using the below OpenStack command,
~# openstack console url show {Instance-id}