OpenStack Interview Question and Answers


1.      Does Python support Object Oriented Scripting?
Yes. It supports both OOP and procedure oriented programming. It has features which make you to use the program code for many functions other than Python. It is very powerful in OOP and procedure Oriented programming when compared to powerful languages like C or Java.
2.      Describe about the libraries of Python?
Python Library is very huge and has extensive libraires. They help U do various things involving CGI, documentation generation, web browsers, XML, HTML, cryptography, Tk, threading, database access, web browsing, OS, subprocess, etc. Besides the standard libraries of Python there are many other librarires such as Twisted, wx python, python imaging library, etc.
4.      Explain what is OpenStack?
4.
OpenStack is a set of software tools for managing and building cloud computing platforms for private and public clouds. It’s a free and open source software cloud computing platform.
5.      Mention what are the three components that make modular architecture of
5. OpenStack?
5.
The three components that make modular architecture for OpenStack are
OpenStack Compute: For managing large networks of the virtual machine
s
OpenStack Object Storage: A storage system that provides support for both block
 storage and object storage
Image Service: The delivery service provides discovery and registration for virtual disk
 images


6.      Give an overview of OpenStack Services?
6.
OpenStack offers services like
Keystone: Provides authorization and authentication for users
Glance: Manages images in different formats
Cinder: Provides persistent block storage
Neutron: Enables users to create and attach interfaces to networks
Nova: Provides instances on user's demand
Swift: Storage platform integrated directly into applications
Ceilometer: Openstack for billing
Heat: Allows automated infrastructure deployment
7.      What does “role” and “tenant” indicates in OpenStack?
7.
In OpenStack, a tenant is referred for the group of users while role indicates the authorization
 level of the user.
8.      Explain what hypervisor is and what type of hypervisor does OpenStack supports?
Hypervisor is a piece of computer software or hardware that creates and run virtual machines. A
 system on which one or more virtual machines is defined is referred as host machine.
 The types of hypervisor that supports OpenStack are
·         KVM
·
·         VMware
·
·         Containers
·
·         Xen and HyperV
9.      What are the two types of storage does OpenStack Compute provides?
9.
OpenStack provides two classes of block storage,
Ephemeral Storage: It is associated with a single unique instance. Based on the
 instance, the size is defined. When the instance associated with it is terminated, data on
 ephemeral storage ceases to exist
.
Volume Storage: This storage is not dependent on any particular instance and is
 persistent. Volumes are user created and within Quota
.
10.  What are the basic functions of Identity Service in OpenStack?
10.
The basic functions of Identity Service is

User Management: It tracks the users and their permissions
.
Service Catalog: It provides a catalog of available services with their API endpoints
.
11.  What are the main components of identity user management?
11.
Users: It is a digital representation of a person, service or system who uses OpenStack
 cloud services
Tenants: A container used to group or isolate resource or identity objects. Depending on service operator a tenant may map to a customer, account, organization or project
.
Roles: A role includes a set of rights and privileges. A role determines what operations
 a user is permitted to perform in a given tenant
12.  Mention what are the networking options used in OpenStack?
12.
The networking options used in OpenStack are
Flat Network Manager: IP addresses for VM instances are fetched from the subnet,
 and then injected into the image on launch
Flat DHCP Network Manager: IP addresses for VM instances are fetched from the
 subnet specified by the network administrator
VLAN Network Manager: Compute creates a VLAN and bridge; DHCP server is started
 for each VLAN to pass out IP addresses to VM instances.
13.  What is the meaning of term “Cinder” in OpenStack service?
13.
For handling persistent storage for virtual machines, OpenStack provides the service referred as
 Cinder. There are multiple backends for cinder. The one that is utilized by default is LVM, called
 Cinder-Volumes.
14.  List out the storage locations for VM images in OpenStack?
14.
OpenStack Object Storage
Filesystem
S3
HTTP
RBD or Rados Block Device
GridFS
15.  Explain what is Cells in OpenStack?
15.
Cells functionality enables you to scale an OpenStack Compute cloud in a more simplistic way.
 When this functionality is enabled, the hosts in an OpenStack Compute cloud are partitioned
 into group called cells. Cells are configured as trees.
16.  For networking, what hardware is used in OpenStack?
16.
In OpenStack, networking is done in following ways
Networks
Routers
Subnets
Ports
Vendor Plugins
17.  Explain how you can transfer volume from one owner to another in OpenStack?
17.
You can transfer a volume from one owner to another by using the command cinder transfer*.
18.  What is the command to manage floating IP addresses in OpenStack?
18.
nova floating-ip-*
19.  What is bare-metal node and what does it comprised of?
19.
It gives access to control bare metal driver, through which you can control physical hardware
 resources on the same network.
Bare metal node is comprised of two separate components
Bare metal node Orchestrator: It’s a management software, which acts as a dispatcher
 to all nodes in the cluster.
Bare metal node Operating System: It is a base software, which runs on each node in
 the cluster.
20.  Mention what is the command to remove network interface from bare-metal node?
20.
To remove network interface from bare-metal node command used is bare-metal – interface
remove.
21.  Explain what is the function of Cinder Scheduler?
21.
Cinder Scheduler or routing volume create requests to the appropriate volume service
22.  Explain what is Token in OpenStack?
22.
Token is an alpha-numeric string which allows access to a certain set of services depending
upon the access level of the user
23.  Explain about OpenStack Python SDK?
23.
For writing python scripts and managing in Openstack cloud, SDK (Software Development Kit)
 is used. The SDK implements Python binding to the OpenStack API, which enables you to
 achieve automation tasks in Python by making calls on Python objects instead of making REST
 calls directly.
24.  What is the command used for pause and unpause an instance?
24.
To pause an instance, command used is $ nova pause INSTANCE_NAME
To unpause an instance, command used is $ nova unpause INSTANCE_NAME
25.  What is the command used to list IP address information?
25.
$ nova floating-ip-pool-list
26.  What is the meaning of term “flavor” in OpenStack?
26.
A flavour is an available hardware configuration for a server, which defines the size of a virtual
 server that can be launched.

Comments