Start a Conversation

Unsolved

L

8 Posts

767

October 18th, 2021 13:00

ansible vplex dellemc_vplex_consistency_group bug ?

Ansible 2.9, dellemc-vplex-ansible modules release 1.2

Has anyone been able to run this module successfully ? If so, can you share your syntax ? I'm using the exact same syntax that is shown in their guide (see below) but I can't get it to work, the 'cluster-name' parameter is suspicious because that is not listed as a required parameter in their consistency_group.py module plugin and is usually not needed for distributed storage. I tried with and without,all unsuccessful.

Anyway I tried different combinations and can not make it work, it complains that the CG already exists and can't be created. I know there are different ways to get this info, I just need this module to work so that I can remove VV from the CG (I tried with the 'absent-in-cg' as well just like the guide with the same error message).

    - name : Fetching the VV from their Consistency Group
      dellemc_vplex_consistency_group :
        vplexhost : '{ {execute_hostname}}'
        verifycert : '{ {verifycert}}'
        vplexuser : '{ {ansible_user}}'
        vplexpassword : '{ {ansible_password}}'    
        cluster_name : "cluster-1"
        cg_name : "ansible_cg"
        state : "present"
 

October 26th, 2021 02:00

In order to remove VV from CG, we have two parameters, those are virtual_volumes and virtual_volume_state.

 

- name: Remove virtual volumes from Consistency group
  dellemc_vplex_consistency_group:
      vplexhost: "{ { vplexhost }}"
      vplexuser: "{ { vplexuser }}"
      vplexpassword: "{ { vplexpassword }}"
      verifycert: "{ { verifycert }}"
      cluster_name: "{ { cluster_name }}"
      cg_name: "{ { new_cg_name }}"
      virtual_volumes: [ 'virtual_volumes-1','virtual_volumes-2']
      virtual_volume_state: "absent-in-cg"
      state: "present"

October 26th, 2021 15:00

Thank you for posting, did that code work for you ? I've tried on mine and could not make it work, I simplified my original post because I could not make the vv removal work, but that was my original intent: to remove VV from a CG.

My vplex is 6.2 and I think they changed the structure of the API. I was able to make it work by working directly with the vplex API and it uses a different structure.

No Events found!

Top