Tuesday, July 30, 2019

OpenStack Interview Questions

1) Explain OpenStack.

OpenStack is an open source and free set of software tools or cloud computing platform which is used for managing and building cloud computing platform for private and public cloud.
OpenStack is referred as the future of Cloud Computing.

2) What are the modular architectural components of OpenStack?

Following is a list of OpenStack modular architectural components:
  • Dashboard
  • Compute
  • Networking
  • Object Storage
  • Block Storage
  • Identity service
  • Image Service
  • Telemetry
  • Orchestration
  • Database Service etc.

3) What are the advantages/benefits of using OpenStack?

Advantages/Benefits of using OpenStack:
  • OpenStack can be used to develop any software as a service (SAAS) applications, for new developments or to improve existing solutions.
  • It can be used as a strong foundation to deliver self-service storage to IT users.
  • It provides easy to handle storage at lower costs.
  • It can deliver on-demand objective or block storage with higher scalability.
  • An enterprise can save a lot of licensing fees by switching virtual machines running on VMware to OpenStack.

4) What is "role" and "tenant" in OpenStack?

role: It specifies the authorization level of the user.
Tenant: It specifies a group of users.

5) What are the storage types allowed by OpenStack compute?

OpenStack supports two types of storage:
1. Persistent Storage or volume storage
2. Ephemeral Storage
Persistent Storage / Volume Storage: It is persistent and independent of any particular instance. This storage is created by users. There are three types of persistent storage:
  • Object storage: It is used to access binary objects through the REST API.
  • Block storage: It offers access-to-block storage devices by affixing volumes their current VM instances.
  • Shared File System storage: It provides a set of services to manage multiple files together for storage and exchange with multiple users at one time.
  • Ephemeral Storage: The ephemeral storage specifies a single instance. It is a temporary and short-lived storage that is disappeared once the VM is terminated.

6) What is hypervisor? Which type of hypervisors are supported in OpenStack?

Hypervisor is a software or hardware tool which is used to create and run a virtual machine. OpenStack supports a variety of hypervisors like VMware, Citrix, and Microsoft etc.

7) Which is the most important identity service in OpenStack?

Keystone is the most important and preferred Identity Service in OpenStack. It executes the complete OpenStack Identity API.

8) What are the different networking options used in OpenStack?

The networking options used in Open Stack are:
  • Flat DHCP Network Manager: It is used to fetch IP addresses from the subnet for VM instances but IP addresses to VM are assigned via DHCP (Dynamic Host Configuration Protocol).
  • Flat Network Manager: It is used to fetch IP addresses from the subnet for VM instances, and then injected into the image on launch.
  • VLAN Network Manager: : VLAN provides more secure and separate network to VMs. It has a physical switch to offer separate virtual network and separate IP range and bridge for each tenant. It is more preferable choice.

9) Which commands are used to pause and un-pause (resume) an instance?

For Pausing: $nova pause INSTANCE_NAME
For Un-pausing: $novaunpause INSTANCE_NAME

10) Where the OpenStack images are stored?

Glance is the image manager for OpenStack. So OpneStack images are stored in:
  1. Default: /var/lib/glance/images/  

11) What is Token in OpenStack?

Token is a type of authentication like password-based validation. It is generated when the user inserts the credential and authenticate as a keystone user then Tokens can be used to access OpenStack services without any revalidation.

12) How can you create a Token?

Users first need to authenticate their Keystone credentials to create a token.

13) Explain is OpenStack Python SDK?

Python SDK (Software Development Kit) is used to help users to write applications for performing automation tasks in Python by calling Python objects.
It provides a platform to work with multiple OpenStack services at one place.

14) Explain is the role of API server in OpenStack?

In OpenStack, an API server provides an interface for the external world to interact with the cloud infrastructure.

15) What are the commands used to generate key pairs in OpenStack?

Commands used to generate key pairs in OpenStack:
  • ssh-keygen
  • cd.ssh
  • nova keypair-add -pub_key id_rsa.pub mykey

16) Which hardware is required for networking in OpenStack?

In OpenStack,networking can be done with following hardware:
  • Networks
  • Routers
  • Subnets
  • Ports
  • Vendor Plugins

17) Which command is used to manage floating IP addresses in OpenStack?

nova floating-ip-*

18) Explain the usage of Cinder in OpenStack?

OpenStack Cinder is used to handle block storage in the context of OpenStack.

19) What is the use of $ nova floating-ip-pool-list command in OpenStack?

The $ nova floating-ip-pool-list command is used to list IP address information in OpenStack.

20) Explain the term "flavor" in OpenStack?

The term "flavor" is an available hardware configuration for a server, which defines the size of a virtual server that can be launched.

No comments:

Post a Comment

Get max value for identity column without a table scan

  You can use   IDENT_CURRENT   to look up the last identity value to be inserted, e.g. IDENT_CURRENT( 'MyTable' ) However, be caut...