Week 9

Compute Operations (Nova)

OPS3 - Virtualization and Cloud Infrastructure

1. Introduction to OpenStack Compute (Nova)

Section 1 Checkpoint

Summary:

Reflection:

2. Nova Component Anatomy

2.1 The Global Components (Control Plane)

2.2 The Node Components (Data Plane)

Section 2 Checkpoint

Summary:

Reflection:

3. The Scheduling Algorithm (The Decision Process)

3.1 Pass 1: Filtering (Qualifying)

The first pass is designed to remove any hosts that are incapable of running the instance. It works like a sieve.

3.2 Pass 2: Weighting (Ranking)

Once the invalid hosts are removed, the second pass ranks the remaining candidates to find the "best" fit. The default RamWeigher checks the free RAM on each host.

Section 3 Checkpoint

Summary:

Reflection:

4. The Instance Lifecycle (State Machine)

Section 4 Checkpoint

Summary:

Reflection:

5. Operations Cookbook (CLI): Launching Nebula Inc.

Below are the commands to execute this activation.

5.1 Defining Flavors (Capacity)

In a physical data center, you buy specific server models. In OpenStack, we abstract this capacity into what the platform calls Flavors (Instance Types in AWS/Azure). A Flavor is a virtual hardware template that defines the resource limits (vCPU, RAM, Disk).

The Provider vs. Consumer Role:

1. Listing Existing Flavors (The Menu) Before creating new ones, check what is available.

2. Creating a Custom Flavor (The Chef) For "Nebula Inc.", we need a custom "Micro" size for cheap testing. We will name it m1.nebula_micro.

Naming Convention Decoding:

5.2 Securing Access (Keys & Groups)

Security in the cloud is a two-layered approach. First, we must secure Identity (proving who you are) using Keypairs. Second, we must secure the Network (controlling traffic flow) using Security Groups. You cannot access a VM unless both of these layers are correctly configured.

5.2.1 Keypairs (Login Access)

Generating a Keypair

5.2.2 Security Groups (The Virtual Firewall)

In traditional networking, firewalls are physical appliances sitting at the edge of the network. In Cloud Computing, we use Security Groups. A Security Group is a virtual firewall that is applied directly to the network interface (vNIC) of an instance, regardless of where it runs in the data center.

Figure 3: Security Group Architecture - How the Open vSwitch Agent filters packets on the Hypervisor before they reach the VM

Concept (General Cloud) Security groups operate on specific principles:

CLI: Configuring the Firewall We must explicitly open ports for SSH and Web access.

5.3 Launching Instances

The server create command brings together the Flavor, Image, Network, Key, and Security Group to instantiate a VM.

Boot Command

5.4 Day 2 Operations (Debugging & Access)

Floating IPs (Public Access) To access the VM from the internet, map a public IP to it.

Console Logs (Troubleshooting) If a VM fails to become reachable (e.g., no network), check the boot logs.

Section 5 Checkpoint

Summary:

Reflection:

6. Industry Comparison: The "Polyglot" Cloud Engineer

6.1 Concept Mapping

Concept OpenStack Term AWS Term Azure Term
Compute Provider Nova EC2 (Service) Azure Compute (Microsoft.Compute)
Size Template Flavor (e.g., m1.small) Instance Type (e.g., t2.micro) VM Size (e.g., Standard_B1s)
Firewall Security Group Security Group Network Security Group (NSG)
Login Key Keypair Key Pair SSH Key
Default User cirros, ubuntu ec2-user, ubuntu azureuser
### 6.2 CLI Rosetta Stone
Below is the exact same "Launch Instance" workflow translated into the three major languages of the cloud.

1. Create a "Flavor" (Size)

2. Create a Firewall

3. Launch the Instance (The "Hello World" of Cloud) Notice how similar the flags are across all three platforms.

OpenStack (Nova)

AWS (EC2)

Azure (Compute)

Section 6 Checkpoint

Summary:

Reflection:

7. Summary and Next Steps

Preparing for Week 10

Next week, we tackle Storage and Persistence. A web server is useless if it loses all its data when it reboots. We will explore Cinder (Block Storage) to give our instances persistent hard drives.

Checklist:

8. Additional Resources

9. Lab Exercises

Summary

Review the key concepts covered in this week's material

Questions?