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

lvol - lvcreate snapshot "**%ORIGIN" fails #1630

Closed
draculacowboy83 opened this issue Jan 13, 2021 · 5 comments · Fixed by #7053
Closed

lvol - lvcreate snapshot "**%ORIGIN" fails #1630

draculacowboy83 opened this issue Jan 13, 2021 · 5 comments · Fixed by #7053
Labels
bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type) python3 system

Comments

@draculacowboy83
Copy link

draculacowboy83 commented Jan 13, 2021

SUMMARY

When i want to create a lvm snapshot with the module lvol and the option size : 20%ORIGIN for example,
it fails :

"Snapshot Volumes are not supported"

This option is valid according to lvcreate(8).

ISSUE TYPE
  • Bug Report
COMPONENT NAME

lvol

ANSIBLE VERSION
ansible --version
ansible 2.9.14
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/var/lib/awx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, Apr 16 2020, 01:36:27) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
CONFIGURATION

OS / ENVIRONMENT

OS : Linux REDHAT 7

STEPS TO REPRODUCE
- name: "[BACKUP] create snapshots" 
  lvol:
    vg: "{{ item.value.vg }}"
    lv: "{{ item.key }}"
    snapshot: "{{ item.key }}_{{ snap_suffix }}"
    size: 20%ORIGIN
  with_dict: "{{ ansible_lvm.lvs }}" 
EXPECTED RESULTS

Creation of lvm snapshot.
On redhat 7 :
lvcreate -s -l 20%ORIGIN --name lv_***_snap_suffix /dev/vg***/lv_***
Logical volume "lv_***_snap_suffix" created.

ACTUAL RESULTS
{
    "msg": "Snapshot Volumes are not supported",
    "invocation": {
        "module_args": {
            "pvs": null,
            "force": false,
            "vg": "vg01",
            "lv": "lv_***",
            "resizefs": false,
            "state": "present",
            "thinpool": null,
            "snapshot": "lv_***_snap_suffix",
            "active": true,
            "shrink": true,
            "opts": null,
            "size": "20%ORIGIN"
        }
    },
    "_ansible_no_log": false,
    "changed": false,
    "item": {
        "key": "lv_***",
        "value": {
            "size_g": "***",
            "vg": "vg***"
        }
    },
    "ansible_loop_var": "item",
    "_ansible_item_label": {
        "key": "lv_***",
        "value": {
            "size_g": "***",
            "vg": "vg***"
        }
    }
}

@ansibullbot
Copy link
Collaborator

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added module module plugins plugin (any type) system labels Jan 13, 2021
@ansibullbot
Copy link
Collaborator

@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type) python3 system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants