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

aix_filesystem: _validate_vg not passing vg name to lsvg_cmd #8151

Closed
1 task done
amazzatenta opened this issue Mar 25, 2024 · 2 comments · Fixed by #8176
Closed
1 task done

aix_filesystem: _validate_vg not passing vg name to lsvg_cmd #8151

amazzatenta opened this issue Mar 25, 2024 · 2 comments · Fixed by #8176
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@amazzatenta
Copy link

Summary

When using the community.general.aix_filesystem module to create a filesystem and passing the vg parameter to the module. The _validate_vg function fails to pass the vg variable to the in line 245

Issue Type

Bug Report

Component Name

aix_filesystem

Ansible Version

$ ansible --version
ansible [core 2.15.9]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.18 (main, Sep 22 2023, 17:58:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/bin/python3.9)
  jinja version = 3.1.3
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /usr/share/ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 8.4.0  

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

tasks:
    - name: Create our filesystem
      community.general.aix_filesystem:
        filesystem: "{{fs_name}}"
        size: "{{fs_size | default('1G')}}"
        vg: "{{fs_vg |default('rootvg')}}"
        state: present

Expected Results

Create a new logical volume on the specified vg.

Actual Results

FAILED! => {"changed": false, "msg": "Failed executing /usr/sbin/lsvg command."}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@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

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Mar 25, 2024
@felixfontein felixfontein changed the title _validate_vg not passing vg name to lsvg_cmd aix_filesystem: _validate_vg not passing vg name to lsvg_cmd Mar 25, 2024
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 plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants