The nova.compute.arch Module

Constants and helper APIs for dealing with CPU architectures

The constants provide the standard names for all known processor architectures. Many have multiple variants to deal with big-endian vs little-endian modes, as well as 32 vs 64 bit word sizes. These names are chosen to be identical to the architecture names expected by libvirt, so if ever adding new ones, ensure it matches libvirt’s expectation.

canonicalize(name)

Canonicalize the architecture name

Parameters:name – architecture name to canonicalize
Returns:a canonical architecture name
from_host()

Get the architecture of the host OS

Returns:the canonicalized host architecture
is_valid(name)

Check if a string is a valid architecture

Parameters:name – architecture name to validate
Returns:True if @name is valid

Previous topic

The nova.compute.api Module

Next topic

The nova.compute.build_results Module

Project Source

This Page