Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing functionality to create volume snapshots #23

Open
onitake opened this issue Aug 17, 2020 · 0 comments
Open

Missing functionality to create volume snapshots #23

onitake opened this issue Aug 17, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@onitake
Copy link

onitake commented Aug 17, 2020

SUMMARY

Migrated from: ansible/ansible#53264

There is currently no CloudStack module that can create volume snapshots.

The cs_volume module has a snapshot parameter, but apparently, it's only used to create a new volume from a snapshot.

I request a full-featured cs_volumesnapshot module that wraps the API calls:

  • createSnapshot
  • createSnapshotFromVMSnapshot
  • deleteSnapshot
  • listSnapshots
  • revertSnapshot

A separate cs_volumesnapshotpolicy module may also be useful, wrapping

  • createSnapshotPolicy
  • deleteSnapshotPolicies
  • listSnapshotPolicies
  • updateSnapshotPolicy
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

lib/ansible/modules/cloud/cloudstack

ADDITIONAL INFORMATION

Example usage of the module would look like this:

- name: create volume snapshot
  cs_volumesnapshot:
    name: web-vm-1-volume-snapshot-1
    volume: web-vm-1-volume
  delegate_to: localhost

- name: create volume snapshot from VM snapshot
  cs_volumesnapshot:
    name: web-vm-1-volume-snapshot-1
    volume: web-vm-1-volume
    vmsnapshot: web-vm-1-snapshot-1
  delegate_to: localhost

- name: revert to volume snapshot
  cs_volumesnapshot:
    name: web-vm-1-volume-snapshot-1
    state: reverted
  delegate_to: localhost

- name: delete volume snapshot
  cs_volumesnapshot:
    name: web-vm-1-volume-snapshot-1
    state: absent
  delegate_to: localhost
@resmo resmo added enhancement New feature or request help wanted Extra attention is needed labels Aug 25, 2020
@onitake onitake changed the title CloudStack modules are missing functionality to create volume snapshots Missing functionality to create volume snapshots Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants