Skip to Main Content
IBM System Storage Ideas Portal


This portal is to open public enhancement requests against IBM System Storage products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Under review
Created by Guest
Created on Apr 15, 2024

ibm.storage_virtualize.ibm_svcinfo_command module to have filtervalue options available for use

The ability to have the filtervalue option available would enable searching through lsvdisk to be a much more efficient when it comes to utilising the Ansible Collection. It would reduce the dependency on having to handle the large output from an lsvdisk command that currently presents issues with Ansible Tower and allow us to narrow down the set considerably, ensuring that we produce more readable Ansible Code.

The benefits would be realised by others who are embarking on an Infrastructure as Code journey, essentially allowing users the same functionality that they currently see from CLI and Python to be used via Ansible.

The way it would work is instead of gathering the total output of the lsvdisk command and pulling out the necessary data that we are looking for we could use a simple command with -filtervalue.

Current

- name: Get vdisk_UID Details
  ibm_svcinfo_command:
    command: "svcinfo lsvdisk"
    clustername: "{{ ibm_url }}"
    username: "{{ ansible_user }}"
    password: "{{ ansible_password }}"
  register: lsvdisk_output
  
- set_fact:
    volume_name: "{{ lsvdisk_array | selectattr('vdisk_UID', 'search', item.sample_lun_id) | map(attribute='name') }}"
    relationship_name: "{{ lsvdisk_array | selectattr('vdisk_UID', 'search', item.sample_lun_id) | map(attribute='RC_name') }}"
    iogrp: "{{ lsvdisk_array | selectattr('vdisk_UID', 'search', item.sample_lun_id) | map(attribute='IO_group_id') }}"
    mdiskgrp: "{{ lsvdisk_array | selectattr('vdisk_UID', 'search', item.sample_lun_id) | map(attribute='mdisk_grp_id') }}"

    

Proposed

- name: Get vdisk_UID Details
  ibm_svcinfo_command:
    command: "svcinfo lsvdisk -filtervalue vdisk_UID=<VDISK_UID>"
    clustername: "{{ ibm_url }}"
    username: "{{ ansible_user }}"
    password: "{{ ansible_password }}"
  register: lsvdisk_output

 

  

Idea priority Low