Under the Hood with Nova, Libvirt and KVM
Rafi Khardalian, CTO Metacloud
OPENSTACK SUMMIT | ATLANTA 2014
Under the Hood with Nova, Libvirt and KVM Rafi Khardalian, CTO - - PowerPoint PPT Presentation
Under the Hood with Nova, Libvirt and KVM Rafi Khardalian, CTO Metacloud OPENSTACK SUMMIT | ATLANTA 2014 Introduction NON-STOP PRIVATE CLOUD About Me Who am I and why am I here? OpenStack contributions to Nova Our unique
Rafi Khardalian, CTO Metacloud
OPENSTACK SUMMIT | ATLANTA 2014
NON-STOP PRIVATE CLOUD
NON-STOP PRIVATE CLOUD
QEMU versions provided by Ubuntu for Precise (12.04 LTS):
OpenStack Release QEMU Version Grizzly 1.0** Havana 1.5 Icehouse 2.0
Libvirt Versions Provided by Ubuntu for Precise (12.04 LTS):
OpenStack Release QEMU Version Grizzly 1.0.2** Havana 1.1.1 Icehouse 1.2.2
NON-STOP PRIVATE CLOUD
confused with scheduler)
§ Download image from Glance into instance_dir/_base and convert it to RAW (unless it already exists) § Create instance_dir/uuid/{disk, disk.local, disk.swap}
sad)
§ iSCSI: Connections made via tgt or iscsiadm § RBD: Generates XML for Libvirt; rest handled within QEMU
(from memory, not disk)
you should diagnose the issue when it does.
user’s request (example: resource exhaustion)
call them here
fix countless issues
even when blocked by the API
How hard reboot resolves most issues:
§ Should work, frequently does not in practice
migrations
access to the instance’s data (shared storage, i.e. NAS, SAN)
as part of the process.
QEMU running on the source and destination
What happens behind the scenes?
calls from the scheduler
files from Glance and create empty instance disks
domain is not running)
all hypervisors
not fit on the current hypervisor
“allow_resize_same_host = True”
connections
instance_dir_resize)
via SCP
snapshot
running
the same format as the instance’s original Glance image
Live snapshot workflow:
live snapshot
to the empty disk
break the mirror; we now have a copy of the instance disk
file
disk space to copy snapshots around
assume anything behaves a particular way.
as the configuration of Nova itself
consumes a fair amount of IO
NON-STOP PRIVATE CLOUD
NON-STOP PRIVATE CLOUD