Professional Documents
Culture Documents
2. Describe OpenStack.
Most multinational organizations define OpenStack as the future of Cloud Computing. The
Internet and large volumes of data together have instigated the purpose of cloud computing, and
OpenStack is one such platform to create and handle massive groups of virtual machines through
a Graphical User Interface. It is a set of efficient software tools to manage private and public
cloud computing platforms.
Openstack is free, open-source software and works similar to Linux.
3. Explain what is OpenStack?
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.
Answer: The OpenStack is the most popular open source cloud computing platform that
provides virtual machine resources and IaaS (Infrastructure as a Service) services to most
of the customers. It captures the market in the future of cloud computing. All the services
provided by the OpenStack can be accessed and managed through the GUI based user
interface. The several benefits of the OpenStack Cloud Computing are mentioned below
OpenStack boosts the business by eliminating maintenance services.
It improves agility and high availability.
Improves Efficiency and provides cloud infrastructure.
It provides great services for on-demand infrastructure services within no time.
OpenStack gives the opportunity of building own data center in turn which provides
more control over the data being managed and controlled.
OpenStack enables rapid development.
OpenStack boosts high scalability and effective resource utilization.
Dashboard
Compute
Networking
Object Storage
Block Storage
Identity service
Image Service
Telemetry
Orchestration
Database Service
etc.
25. What is Hypervisor and what are the different types of Hypervisors supported by
the OpenStack Cloud?
38. 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.
KVM
VMware
Containers
Xen and HyperV
39. What are the two types of storage does OpenStack Compute provides?
OpenStack provides two classes of block storage,
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.
Networks
Routers
Subnets
Ports
Vendor Plugins
47. Explain how you can transfer volume from one owner to another in OpenStack?
You can transfer a volume from one owner to another by using the command cinder transfer*.
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.
50. Mention what is the command to remove network interface from bare-metal node?
To remove network interface from bare-metal node command used is bare-metal – interface
remove.
Bare metal node Operating System: It is a base software, which runs on each node in the cluster.
Bare metal node Orchestrator: It’s management software, which acts as a dispatcher to all nodes
in the cluster.
55. What Are Data Privacy Concerns In Openstack, How Those Can Be Remediated?
Answer: Data residency: Concerns over who owns data in the cloud and whether the cloud
operator can be ultimately trusted as a custodian of this data have been significant issues in the
past.(IT Certification Courses – E Learning Portal)
Data disposal:– Best practices suggest that the operator sanitize cloud system media (digital and
non-digital) before disposal, release out of organization control or release for reuse.
Data not securely erased:- This may be remediated with database and/or system configuration for
auto vacuuming and periodic free-space wiping.
Instance memory scrubbing, Cinder volume data, Image service delay delete feature.
56. What You Will Do In Case Of Server Failure?
Answer: If a server is having hardware issues, it is a good idea to make sure the Object Storage
services are not running. This will allow Object Storage to work around the failure while you
troubleshoot.
If the server just needs a reboot or a small amount of work that should only last a couple of
hours, then it is probably best to let Object Storage work around the failure and get the machine
fixed and back online. When the machine comes back online, replication will make sure that
anything missing during the downtime will get updated.
If you cannot replace the drive immediately, then it is best to leave it unmounted, and remove the
drive from the ring. This will allow all the replicas that were on that drive to be replicated
elsewhere until the drive is replaced. Once the drive is replaced, it can be re-added to the ring.
Answer: Wide adoption of an open-source, open-standards cloud should be huge for everyone. It
means customers won’t have to fear lock-in and technology companies can participate in a
growing market that spans cloud providers. Companies are already using OpenStack to provide
public clouds, support, training and system integration services, and hardware and software
products.
A great analogy comes from the early days of the Internet: the transition away from fractured,
proprietary flavors of UNIX toward open-source Linux. An open cloud stands to provide the
same benefits for large-scale cloud computing that the Linux standard provided inside the server.
Answer: This is the most asked Openstack Interview Questions in an interview. OpenFlow rule
is defined as the reaching path of the data packet from source to destination in cloud computing.
Answer: If a server is having hardware issues, it is a smart thought to ensure the Object Storage
services are not running. This will permit Object Storage to work around the disappointment
while you investigate.
If the server simply needs a reboot or a little measure of work that should just last two or three
hours, at that point, it is most likely best to let Object Storage work around the disappointment
and recover the machine settled and on the web. At the point, when the machine returns online,
replication will ensure that anything absent amid the downtime will get refreshed.
If you can’t supplant the drive instantly, at that point, it is best to abandon it unmounted and
expel the drive from the ring. This will permit every one of the limitations that were on that drive
to be reproduced somewhere else until the point when the drive is supplanted. Once the drive is
supplanted, it can be re-added to the ring.
Answer: Most multinational firms characterize OpenStack as the bright future of Cloud
Computing. The Internet and extensive volumes of data together have incited the reason for
cloud computing, and OpenStack is one such platform to make and handle the vast group of
virtual machines through the Graphical User Interface. It is an arrangement of proficient software
tools to oversee private and open distributed computing stages.
OpenStack is free, open-source software and works like Linux.
Answer: Horizon: the main GUI in OpenStack; the primary part administrators see and get a
thought of the present tasks in the cloud.
Nova: head figuring engine to deal with various virtual machines and computing tasks.
Swift: robust and reliable storage framework for objects and files helping engineers to allude to
an extraordinary identifier and OpenStack chooses where to store the information.
Cinder: like a common PC storage system, it is a block storage framework in OpenStack for
getting files speedier speed.
Neutron: guarantees proficient availability between parts amid deployment.
Keystone: a focal character list of all OpenStack cloud clients and gives different mapping
systems to get to strategies against Keystone.
Glance: picture specialist provider where pictures are the virtual copies of the hard disks. Permits
utilizing the images as layouts amid sending of new occasions.
Ceilometer: part giving billings services and other telemetry facilities to cloud clients. Keeps up
a record of the part framework used by every client.
Heat (Orchestration Engine): Allows designers to organize/show and store the cloud application
prerequisites and assets required in the file, in this manner keeping up the cloud framework.
Answer: Token is referred to as the validation required for any kind of authentication. The
generation of Token mainly occurs after the insertion of the various credentials which are done
by the users. Any type of services provided by OpenStack can be accessed by Token. However,
the token can be used for a specified period and after that, it has to be renewed. The credentials
of the users must be authentic to create a token.
Answer: Nova scheduler dispatches the request for new virtual machines to the correct to
compute nodes based on configured weights and filters. Basically, it checks the different
compute nodes based on some algorithms which helps it to create a virtual machine on which
compute node.
65. 22. Define the bare-metal node. What are its components?
Answer: The hardware resources can be controlled by users with the help of bare metal nodes
which gives the users the right to control the bare metal driver. Its components are –
1. Bare metal node operating system – The is considered to be the software base for various
nodes present in the cluster.
2. Bare metal node orchestrator – All the nodes when dispatched in the cluster is managed by this
software.
Answer: If there is an instance of creating some new functions, the notification is mainly given
by the Filter Scheduler. It also helps in filtering these notifications according to their importance.
Compute Nodes are the ones with whom it works. The hosts which are unfiltered get created at
first and by the help of their specific properties, it gets filtered. Such filtered hosts are needed
according to the total number of instances.
67. 24. What are the various functions of the command ‘nova’?
68. 25. How can you overcome any type of sudden server failure?
Answer: During the failure of the server or when the server is not seen to be perfectly
functioning then the Object Storage services should not be running. Hence, it is best to close
them to this problem arises. This is because to know the solution, troubleshooting must be done.
Closing the object storage service will allow it to work or function while troubleshooting is still
going on. However, often such failure just needs rebooting and hence for this work which
doesn’t require much time, the object storage service doesn’t need to be closed. Update to this
service will be added once the machine gets online after rebooting. Removing the drive from the
ring is the best idea when the driver can’t be replaced. But if it can be replaced, then it can be
added back to the ring.
Volume Storage: It is persistent and not dependent on any particular instance. Volumes are
created by users and within Quota
Ephemeral Storage: It is associated with a single instance. They effectively disappear when a
virtual machine is terminated.
70. What are the two types of storage does OpenStack Compute provides?
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.
Answer: A flavor is an available hardware configuration for a server, which defines the size of a
virtual server that can be launched.
An OpenStack deployment may require compliance activities for many purposes, such as
regulatory and legal requirements, customer needs, privacy considerations, and security best
practices. The Compliance function is important for the business and its customers.
Answer: The sanitization process removes information from the media such that the information
cannot be retrieved or reconstructed. Sanitization techniques, including clearing, purging,
cryptographic erase, and destruction, prevent the disclosure of information to unauthorized
individuals when such media is reused or released for disposal.
Answer: Orchestration is an orchestration engine that provides the possibility to launch multiple
composite cloud applications based on templates in the form of text files that can be treated like
code.
77. Mention What Are The Three Components That Make Modular Architecture Of
Openstack?
Answer: The three components that make modular architecture for OpenStack are:
Answer: The CPU Pinning is defined as the process of reserving the physical core parts of
virtual machines specified as per the requirement. It is also called the process of isolating the
CPU.
80. Specify what are the three parts that make the OpenStack modular architecture?
Answer: The three parts that make modular architecture for OpenStack are:
OpenStack Compute: For overseeing extensive systems of the virtual machine.
OpenStack Object Storage: The storage framework that offers help for both object storage and
block storage.
Image Service: The conveyance service gives disclosure and enlistment to virtual disk pictures.
1. Horizon – This is the basic component of OpenStack and is also the most important operator
2. Swift – Files, and objects are mainly stored here and certain information also gets stored.
3. Nova – Various kinds of computing tasks are handled by this engine called Nova.
4. Cinder – This refers to a specific kind of block storage system and files can be accessed at a
very fast rate with the help of this.
5. Keystone – All the identities of the various users of OpenStack is known to be the Keystone.
6. Neutron – It connects the various deployment components.
7. Glance – The hard disk consists of various copies virtually and these are provided by Glance.
8. Heat – This is known to be an illustrating engine which stores various cloud applications in
files and hence the infrastructure is well maintained.
9. Ceilometer – The users are provided billing services by this.
Answer: Users: It is a digital representation of a person, service or system who uses OpenStack
cloud services
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
Tenants: A container used to group or isolate resources or identity objects. Depending on
service operator a tenant may map to a customer, account, organization or project.
Answer: For instance, analyzing the access logs of Identity service or its replacement
authentication system would alert us to failed logins, frequency, origin IP, whether the events are
restricted to select accounts and other pertinent information. Log analysis supports detection.
84. What Are Data Privacy Concerns In OpenStack? How Can Those Be Remediated?
Answer: Data residency: Concerns over who possesses data in the cloud and whether the cloud
administrator can be at last trusted as a caretaker of this data have been critical issues previously.
Data disposal: Best practices recommend that the administrator cleans cloud framework media
(non-digital and digital) before to disposal, discharge out of organization or release for reuse.
Data not safely deleted: This might be remediated with the database as well as framework setup
for auto vacuuming and intermittent free-space wiping.
Instance memory scouring, Cinder volume data, Image service delay delete feature.
Answer: It grants access to control bare metal driver that handles the provisioning of OpenStack
Compute physical equipment using the standard cloud APIs and devices like Heat. It is by and
large utilized for single inhabitant clouds like high-performance figuring. For utilizing the
exposed metal driver, a system interface must be made with the uncovered metal hub embedded
into it. After a while, clients can dispatch an occasion from the node. Clients can likewise list and
delete the bare metal nodes by expelling the related system instances.
Answer: Flavors are virtual equipment layouts exhibit in OpenStack, which characterize the
memory sizes of hard disks, RAM, and so on. Flavors represent various parameters like ID,
Name, Memory_MB, Disk, and others, giving a decision of Virtual Machine to the client simply
like having a physical server. OpenStack dashboard likewise enables clients to alter a flavor by
erasing the current one and making another with the comparable name and parameters.
By utilizing command, sudo nova-oversee client makes client name.
Answer: Bare-metal node grants access to control bare-metal driver that handles the
provisioning of OpenStack Compute physical hardware utilizing the standard cloud APIs and
tools like Heat. It is generally used for single-tenant clouds like high-performance cluster
computing. For using the bare-metal driver, a network interface must be created with the bare-
metal node inserted into it. Afterward, users can launch an instance from the node. Users can
also list and delete bare-metal nodes by removing the associated network instances.
Answer: Pack-stack utility uses the puppet as the configuration management tool for automating
the OpenStack installation. In the background, the puppet pushes the configuration to the nodes
based on the answer file configuration.
Answer: Swift is the object-based storage that bypasses the file system structure. We can
directly upload and download the different objects on swift storage. It is used, where the read is
more and write, are less to objects. Swift is equivalent to Amazon S3.
~# ip netns list
qdhcp-a51635b1-d023-419a-93b5-39de47755d2d
haproxy
vrouter
Q:9 How to upload and download a cloud image in Glance from command line?
Ans: A Cloud image can be uploaded in glance from command using beneath openstack
command,
Use below openstack command to download a cloud image from command line,
Q:11 How to get list of available Floating IPs from command line?
Ans: Available floating ips can be listed using the below command,
~]# openstack server create --flavor m1.tiny --image cirros --nic net-
02 nonprod_testvm
Q:13 How to get list of VMs which are provisioned on a specific Compute node?
Ans: Let’s assume we want to list the vms which are provisioned on compute-0-
19, use below
i compute-0-19
Q:14 How to view the console log of an openstack instance from command line?
Ans: 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,
Q:16 How to create a bootable cinder / block storage volume from command
line?
Ans: To Create a bootable cinder or block storage volume (assume 8 GB) , refer
the below steps:
display-name cirros-bootable-vol 8
Q:17 How to list all projects or tenants that has been created in your
opentstack?
Ans: Projects or tenants list can be retrieved from the command using the
below openstack command,
o Public Endpoint
o Internal Endpoint
o Admin Endpoint
Use below openstack command to view endpoints of each openstack service,
root@compute-0-15:~#
Q:21 How to add new rules to the existing SG(Security Group) from command
line in openstack?
Ans: New rules to the existing SG in openstack can be added using the neutron command,
Group-Name
Q:22 How to view the OVS bridges configured on Controller and Compute
Nodes?
Ans: OVS bridges on Controller and Compute nodes can be viewed using below command,
Packets leaving the n/w interface of an instance goes through the linux bridge (qbr)
using the virtual interface qvo. The interface qvb is connected to the Linux Bridge &
interface qvo is connected to integration bridge (br-int). The qvo port on integration
bridge has an internal VLAN tag that gets appended to packet header when a packet
reaches to the integration bridge.
Q:24 What is the role of Tunnel Bridge (br-tun) on the compute node?
Ans: The tunnel bridge (br-tun) translates the VLAN tagged traffic from
integration bridge to the tunnel ids using OpenFlow rules.
Q:27 How to display the information about a OpenFlow switch (like ports, no.
of tables, no of buffer)?
Ans: Let’s assume we want to display the information about OpenFlow switch (br-int), run the
following command,
n_tables:254, n_buffers:256
1(patch-tun): addr:3a:c6:4f:bd:3e:3b
config: 0
state: 0
2(qvob35d2d65-f3): addr:b2:83:c4:0b:42:3a
config: 0
state: 0
………………………………………
Q:28 How to display the entries for all the flows in a switch?
Ans: Flows entries of a switch can be displayed using the command ‘ovs-ofctl dump-flows‘
Let’s assume we want to display flow entries of OVS integration bridge (br-int),
Q:29 What are Neutron Agents and how to list all neutron agents?
Ans: OpenStack neutron server acts as the centralized controller, the actual network
configurations are executed either on compute and network nodes. Neutron agents are software
entities that carry out configuration changes on compute or network nodes. Neutron agents
communicate with the main neutron service via Neuron API and message queue.