Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

2.2. Compute

This section outlines the top new features for the Compute service.
Guest Device Role Tagging and Metadata Injection
With this update, OpenStack Compute creates and injects an additional metadata file which allows the guest to identify the instance based on the tags - the type of device, the bus it is attached to, the device address, the MAC address or drive serial string, the network or disk device name.
The guest is allowed to interpret the data. When the device role tags are used, the data is available through the metadata server and the configuration drive. For example, an example metadata file is as follows:
{ "devices": [ {
        "type": "nic",
        "bus": "pci",
        "address": "0000:00:02.0",
        "mac": "01:22:22:42:22:21",
        "tags": ["nfvfunc1"]
    },    {
        "type": "disk",
        "bus": "scsi",
        "address": "1:0:2:0",
        "serial": "disk-vol-2352423",
        "tags": ["dbvolume"]
    }
}
Newly defined API policy defaults
The API policy defaults are now defined in code like configuration options. Because of this, the sample policy.json file that is shipped with the Compute service (nova) is empty and should only be necessary if you want to override the API policy from the defaults in the code.
To generate the policy file you can run:
# oslopolicy-sample-generator --config-file=/etc/nova/nova-policy-generator.conf