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

Ansible svcinfo with lsvolumesnapshot fails with: filtervalue is not supported in command. #51

Open
ryoung1us opened this issue Oct 18, 2024 · 2 comments

Comments

@ryoung1us
Copy link

SUMMARY

ibm.storage_virtualize.ibm_svcinfo_command with svcinfo lsvolumesnapshot and a filtervalue fails with:
filtervalue is not supported in command

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ibm.storage_virtualize.ibm_svcinfo_command

ANSIBLE VERSION

``ansible [core 2.14.9]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/ansibleservice/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.9/site-packages/ansible
ansible collection location = /home/ansibleservice/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.9.18 (main, Jan 4 2024, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True


##### COLLECTION VERSION
<!--- Paste verbatim output from "ansible-galaxy collection list <namespace>.<collection>"  between the quotes
for example: ansible-galaxy collection list community.general
-->
```ibm.storage_virtualize  2.5.0
CONFIGURATION
CALLBACKS_ENABLED(/etc/ansible/ansible.cfg) = ['timer', 'profile_tasks', 'profile_roles']
CONFIG_FILE() = /etc/ansible/ansible.cfg
DEFAULT_BECOME(/etc/ansible/ansible.cfg) = True
DEFAULT_BECOME_ASK_PASS(/etc/ansible/ansible.cfg) = False
DEFAULT_BECOME_METHOD(/etc/ansible/ansible.cfg) = sudo
DEFAULT_BECOME_USER(/etc/ansible/ansible.cfg) = root
DEFAULT_EXECUTABLE(/etc/ansible/ansible.cfg) = /bin/bash
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 100
DEFAULT_REMOTE_USER(/etc/ansible/ansible.cfg) = ansibleservice
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 100
OS / ENVIRONMENT

5.14.0-362.24.1.el9_3.s390x #1 SMP Thu Feb 15 07:18:07 EST 2024 s390x s390x s390x GNU/Linux

STEPS TO REPRODUCE
  - name: Run svcinfo lvvolumesnapshot
      ibm.storage_virtualize.ibm_svcinfo_command:
        command:  "svcinfo lsvolumesnapshot -filtervalue snapshot_name:ansible_bootvol_test2rgy "
        clustername: "cluster1"
        username: "{{fs95_admin}}"
        password: "{{admin_pass}}"
        log_path: /tmp/ansible.log

EXPECTED RESULTS

We expect to be able to list volume snapshots with the same filter capability as the CLI.

ACTUAL RESULTS

fatal: [localhost]: FAILED! => {"changed": false, "msg": "'filtervalue' is not supported in command."}

@sumitguptaibm
Copy link
Collaborator

Please note that filtervalue is not directly support via ibm_svcinfo_command module.
A new feature has been added in ibm_svc_info module to ues the filtervalue.
Kindly use the following task, and let us know the feedback.

  • name: Run svcinfo lvvolumesnapshot
    ibm.storage_virtualize.ibm_svc_info:
    clustername: "cluster1"
    username: "{{fs95_admin}}"
    password: "{{admin_pass}}"
    gather_subset: volumesnapshot
    filtervalue: "snapshot_name:ansible_bootvol_test2rgy"
    log_path: /tmp/ansible.log

@sumitguptaibm
Copy link
Collaborator

Hi @ryoung1us ,
Can you please let me know if you have any further queries with respect to filtervalue usage? If none, I'd like to close this defect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants