TOSCA property for ephemeral disk size

Asked by Chip Boling

Is there currently (or planned ) TOSCA property for specifying the ephemeral disk size much the 'disk_size' used for block storage.

Currently I am using a pre-created flavor and specifying that, but may need to make this a parameter in the template in the near future.

  - Chip

Question information

Language:
English Edit question
Status:
Answered
For:
tacker Edit question
Assignee:
Bob Haddleton Edit question
Last query:
Last reply:
Revision history for this message
Bob Haddleton (bob-haddleton) said :
#1

Hi Chip:

I assume you are interested in the case where you don't specify the flavor directly but use the num_cpus/etc to have the flavor automatically selected.

The TOSCA Simple Profile includes disk_size as a property of the host capability defined for a Compute:

topology_template:
  node_templates:
    my_server:
      type: tosca.nodes.Compute
      capabilities:
        # Host container properties
        host:
         properties:
           num_cpus: 1
           disk_size: 10 GB
           mem_size: 4096 MB

so the disk_size would be one of the factors used to select the appropriate flavor.

There are some sample templates in the Tacker git repo:

https://github.com/openstack/tacker/tree/master/samples/tosca-templates/vnfd

that show how this is used.

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask Chip Boling for more information if necessary.

To post a message you must log in.