How to use a persistent volume?

Asked by Pedro Sousa

Hi,

can anybody tell me how do I use a persistent volume (cinder) in tacker or if this is supported?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
tacker Edit question
Assignee:
Sridhar Ramaswamy Edit question
Solved by:
Sridhar Ramaswamy
Solved:
Last query:
Last reply:
Revision history for this message
Best Sridhar Ramaswamy (srics-r) said :
#1

My understanding is you are looking for a support similar to the one provided by HOT template,

https://github.com/openstack/heat-templates/blob/96a0b0b3d2af2dbb266d1048360ab6992dc3ca3e/hot/vm_with_cinder.yaml

.. but using TOSCA template and Tacker.

We don't this support yet. However we can extend Tacker's TOSCA to support this. In fact, in the OASIS TOSCA group, there is a proposal to model "VirtualStorage" for a VDU. I'll register a blueprint for this to see if some one can help to implement this.

Revision history for this message
Pedro Sousa (pgsousa) said :
#2

Thanks Sridhar Ramaswamy, that solved my question.

Revision history for this message
futangw (futangw) said :
#3

Tacker supports creating multiple volumes but only attaches one volume. is this the one you are looking for?
...
node_templates:
   VDU:
      ...
      requirements:
        - local_storage:
             node: lstorage
             relathionship:
                type: tosca.relationships.AttachesTo
                device: /dev/vdb

   lstorage:
      type: tosca.nodes.BlockStorage
      properties:
        size: 10 GB
...

also refer to https://bugs.launchpad.net/tacker/+bug/1649459, looks it's going to solve this too.