Redhat EX310 Exam

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Redhat EX310 Exam

Volume: 43 Questions + 10 Labs

Question: 1
You are working in an OpenStack environment using OpenVSwitch with Neutron, and you need
to quickly identify existing bridges. What command can you run to locate bridges?
Choose the correct answer:

A. openvswitch report

B. ovs-vsctl list-ifaces

C. ovs-vsctl list-br

D. ip netns

Answer: C

Question: 2
Linux bridges can be created persistently by ______ or temporarily using _____.
Choose the correct answer:

A. adding an additional route to the server, adding an IP with network-manager

B. creating an "ifcfg-*" file under /network-scripts, bridge-utils

C. editing /etc/hosts, nmcli

D. creating an executable script, ifconfig.

Answer: B

Question: 3
What command can you run to list database contents in a Linux environment running
OpenVSwitch?
Choose the correct answer:

A. ovs show-databases

B. show databases | mysql openvswitch

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

C. ovs-vsctl show

D. ovs-vsctl dbdump

Answer: C

Explanation:
The command line client for OpenVSwitch can be used to view, create, manage and delete
bridges created by OpenStack Neutron.

Question: 4
Linux ________ are a kernel feature the networking service uses to support multiple isolated
layer-2 networks with overlapping IP address ranges.
Choose the correct answer:

A. network namespaces

B. IP addresses

C. bridges

D. virtual NICs

Answer: A

Question: 5
_____ is the process of transparently connecting two networks segments together so that packets
can pass between the two as if they were a single logical network.
Choose the correct answer:

A. Carrying

B. networking

C. bridging

D. Datalinking

Answer: C

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

Question: 6
What command do you run to list all network namespaces in an environment?
Choose the correct answer:

A. netns ls

B. brutal show

C. ip netns

D. route -ns

Answer: C

Explanation:
The command "ip netns" will list network namespaces for virtual routers, DHCP spaces for
virtual machines, & LBaaS instances in OpenStack environments.

Question: 7
Where do network startup scripts live on a Linux server?
Choose the correct answer:

A. /boot/networks

B. ~/.net-config

C. /etc/sysconfig/network-scripts/

D. /etc/network/

Answer: C

Explanation:
Startup scripts for networks are located under /etc/sysconfig/network-scripts/.

Question: 8
You have been tasked with integrating OpenStack Nova, Cinder volumes, and Glance with Ceph.
Your datacenter will have 25 servers dedicated to each service, and your employers have
requested 3 replicas per pool. This company wants 50% of resources dedicated to Cinder
Volumes, 30% to VMs, and 20% to Glance. Using the Ceph PGCalc (http://ceph.com/pgcalc/),
calculate the placement groups count for each pool.

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

Choose the correct answer:

A. cinder-volumes = 1000, ephemeral-vms = 300, glance-images = 200

B. cinder-volumes = 10240, ephemeral-vms = 512, glance-images = 512

C. cinder-volumes = 50, ephemeral-vms = 30, glance-images = 20

D. cinder-volumes = 1024, ephemeral-vms = 512, glance-images = 256

Answer: D

Question: 9
You have been asked to create a new OSD pool named cinder-backups on a node named `node4`
with a PG size of 128. What is the correct command syntax?
Choose the correct answer:

A. ceph install --osd cinder-backups 128 node4

B. ceph launch osd cinder-backups

C. ceph osd pool create cinder-backups 128

D. rgw-admin create --size 128 cinder-backups

Answer: C

Explanation:
Run ceph --help if you ever need a reminder on how to create an OSD pool.

Question: 10
How many OSDs can exist per disk?
Choose the correct answer:

A. 3

B. 1

C. 8

D. The number of OSDs per disk can be adjusted by the administrator in ceph.conf

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

B. Ceph Charter Advisory Board

C. Ceph Tentacles

D. Red Hat Cephalocon

Answer: B

Explanation:
The Ceph charter advisory board was formed in 2015 after interest in using Ceph as a storage
backend increased exponentially, as demonstrated in the fall 2015 OpenStack User Survey.

Lab1. Upload a New Image to Glance Using Ceph Backend

OpenStack Controller:

1. Download CentOS-7-x86-64-GenericCloud-1503.qcow2 image from


http://cloud.centos.org/centos/7/images/ onto the Controller node.
2. Convert the image from .qcow2 to .raw format.
3. Source the keystonerc_admin credential file.
4. As admin, upload the image to Glance image service using OpenStack CLI. Make sure the
image is visible to all tenants in your environment, and that the container and disk format are
appropriate for the image format.

Ceph Admin Node:

5. Log in as the ceph user and move to the ~/ceph-config/ directory.


6. List images stored in RBD, paying special mind to the UUID returned.
7. Print out image details on ceph admin node using the UUID returned in the previous step.

Solution:

OpenStack Controller:

1. Download CentOS-7-x86-64-GenericCloud-1503.qcow2 image from


http://cloud.centos.org/centos/7/images/ onto the Controller node.
wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1503.qcow2

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

2. Convert the image from .qcow2 to .raw format.


qemu-img convert CentOS-7-x86_64-GenericCloud-1503.qcow2 CentOS-7-x86_64-GenericCloud-1503.img

3. Source the keystonerc_admin credential file.


source keystonerc_admin

4. As admin, upload the image to Glance image service using OpenStack CLI. Make sure the
image is visible to all tenants in your environment, and that the container and disk format are
appropriate for the image format.
openstack image create CentOS-7-x86_64-GenericCloud --file CentOS-7-x86_64-GenericCloud-1503.qcow2 --d
isk-format raw --container-format bare --public

Ceph Admin Node:

5. Log in as the ceph user and move to the ~/ceph-config/ directory.


ssh ceph@ceph1; cd ~/ceph-config/

6. List images stored in RBD, paying special mind to the UUID returned.
sudo rbd ls images

7. Print out image details on ceph admin node using the UUID returned in the previous step.
sudo rbd info images/$UUID

Lab2. Create a New Server Using Ceph Backend

OpenStack Controller:

1. Log in to the controller.


2. Source the keystonerc_admin or keystonerc_demo credential file.
3. List available images using the OpenStack CLI.
4. List available networks using the OpenStack CLI.
5. List server flavors using the OpenStack CLI.
6. Create a new m1.small fedora-atomic server attached to the Public network named
"cephvm-2" with the OpenStack CLI.

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

Ceph Admin Node:

7. After server build completes, log in to ceph1 as the ceph user.


8. Move into the ~/ceph-config/ directory.
9. List VMs stored in RBD.

Solution:

OpenStack Controller:

1. Log in to the controller.


ssh root@controller

2. Source the keystonerc_admin or keystonerc_demo credential file.


source keystonerc_admin OR source keystonerc_demo

3. List available images using the OpenStack CLI.


openstack image list

4. List available networks using the OpenStack CLI.


openstack network list

5. List server flavors using the OpenStack CLI.


openstack server list

6. Create a new m1.small fedora-atomic server attached to the Public network named
"cephvm-2" with the OpenStack CLI.
openstack server create cephvm-2 --flavor m1.small --image fedora-atomic --nic net-id=$PUBLIC_UUID

Ceph Admin Node:

7. After server build completes, log in to ceph1 as the ceph user.


ssh ceph@ceph1

8. Move into the ~/ceph-config/ directory.


cd ~/ceph-config/

9. List VMs stored in RBD.

Leading the way in IT testing and certification tools, www.examkiller.net


Redhat EX310 Exam

sudo rbd -p vms ls

Lab3. Create a Cinder Volume Using Ceph Backend

OpenStack Controller node:

1. Log in to the controller.


2. Source the keystonerc_admin or keystonerc_demo file.
3. Using the OpenStack CLI, create a new, 1GB Cinder volume named "ceph02" with the ceph
RBD backend.
4. After volume build completes, attach the volume to "cephvm-2", the server created in the
previous lab.

Ceph Admin node:

5. Log in to the Ceph admin node as ceph user.


6. Move into ~/ceph-config/ directory.
7. List all volumes stored in Ceph RBD.
8. With the UUID for the newly created volume, list out detailed information on the volume.

Solution:

OpenStack Controller node:

1. Log in to the controller.


ssh root@controller

2. Source the keystonerc_admin or keystonerc_demo file.


source keystonerc_admin

3. Using the OpenStack CLI, create a new, 1GB Cinder volume named "ceph02" with the ceph
RBD backend.
openstack volume create --type ceph --display-name="ceph02" 1

4. After volume build completes, attach the volume to "cephvm-2", the server created in the
previous lab.

Leading the way in IT testing and certification tools, www.examkiller.net

You might also like