Nova Profile

Nova Profile

The nova profile instantiates nodes that are associated with nova server instances.

Properties

admin_pass
Password for the administrator account.
auto_disk_config
Whether the disk partition is done automatically.
availability_zone
Name of availability zone for running the server.
config_drive
Whether config drive should be enabled for the server.
flavor
ID of flavor used for the server.
image
ID of image to be used for the new server.
key_name
Name of Nova keypair to be injected to server.
name
Name of the server. When omitted, the node name will be used.
user_data
User data to be exposed by the metadata server.
block_device_mapping_v2
List properties:
boot_index
Define the boot order of the device
delete_on_termination
Whether to delete the volume when the server stops.
destination_type
Volume destination type, must be ‘volume’ or ‘local’
device_name
Name of the device(e.g. vda, xda, ….).
device_type
Type of the device(e.g. disk, cdrom, …).
disk_bus
Bus of the device.
guest_format
Specifies the disk file system format(e.g. swap, ephemeral, …).
source_type
Volume source type, must be one of ‘image’, ‘snapshot’, ‘volume’ or ‘blank’
uuid
ID of the source image, snapshot or volume
volume_size
Size of the block device in MB(for swap) and in GB(for other formats)
context
Customized security context for operating servers.
metadata
A collection of key/value pairs to be associated with the server created. Both key and value must be <=255 chars.
networks
List properties:
fixed_ip
Fixed IP to be used by the network.
floating_ip
The floating IP address to be associated with this port.
floating_network
The network on which to create a floating IP
network
Name or ID of network to create a port on.
port
Port ID to be used by the network.
security_groups
List properties:
Name of a security group
personality
List properties:
contents
Contents of the file to be injected.
path
In-instance path for the file to be injected.
scheduler_hints
A collection of key/value pairs to be associated with the Scheduler hints. Both key and value must be <=255 chars.
security_groups
List properties:
Name of a security group

Sample

Below is a typical spec for a nova profile:

type: os.nova.server
version: 1.0
properties:
  name: cirros_server
  flavor: 1
  image: "cirros-0.3.5-x86_64-disk"
  key_name: oskey
  networks:
   - network: private
  metadata:
    test_key: test_value
  user_data: |
    #!/bin/sh
    echo 'hello, world' > /tmp/test_file
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.