[Openstack] [heat][cinder] How to manage my volumes ?
Lars-Erik Helander
lars-erik.helander at proceranetworks.com
Thu Apr 27 07:01:16 UTC 2017
I am struggling to find a solution given the following:
- A cluster of two or more servers
- Each server has a storage volume attached
- If a server goes down (disappears) it should attach to the same (identical content) volume when it is re-created
- Minimal manual intervention for all life-cycle use cases
- Fully managed vi Heat
If it would be possible to define the following logic, it would be great, but I have not found any way to do this:
- For each server, pre-declare the name of the volume to attach
- When server is created and a volume with the pre-declared name exists, that volume is attached
- When a server is created and a volume with the pre-declared name does not exist, such a volume is automatically created
- When a server is deleted, its attached volume is deattached but not deleted (could do this using “deletion_policy: ‘Retain’” )
I would be happy to receive feedback on any idea that will take me closer to a solution.
I have tried to use “external_id:” in conjunction with OS::Cinder::Volume in order to get a pre-declared name for each volume, but that did not work as I expected it to. I ma currently on “Newton”.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170427/77a8475f/attachment.html>
More information about the Openstack
mailing list