Closed robinsg closed 2 years ago
@robinsg we'll look into the issue and get back to you.
Thank you.
I'm converting my playbook from the v1.3 collection which worked fine.
what change did you make in your playbook? ibm_svc_manage_flashcopy module was introduced in v1.4.0
I changed the module name and then used the attributes as per my post above.
As I mentioned the other modules I changed to create the fcconsistgrp and target volumes work fine, it’s just this one module that appears to work but doesn’t.
If I go in the GUI and try to map the source and target volumes it works fine.
Glenn Robinson IBM Power Systems and Storage Specialist E: Glenn. @.*** M: +44 7930 946274
On 23 Jun 2022, at 16:03, Shilpi-J @.***> wrote:
what change did you make in your playbook?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
@robinsg You are facing problem because target volume that has been specified in the playbook TEST_ansible_test_delete_me_l01 already exists.
In Ansible module(AM) ibm_svc_manage_flashcopy, we have automated the target volume creation along with the FC mapping creation. So when you are creating FC map through ibm_svc_manage_flashcopy, target volume should not exist in your system. If exists, AM will return the message target [<target volume name>] already exists, fcmap would not be created.
.
In GUI, you did not face this problem because it takes two steps - creation of target volume and creation of FlashCopy mapping.
Ah, I see. That's a change from the original collection action.
I will remove the previous step which creates the target volume and test this out.
Ok, that all works now I understand that the module does not require a target volume which already exists.
I think a future update would be to have a target_exists attribute to allow us to use existing volumes.
Thanks for you help.
The module was designed in this way to ease the flashcopy management.
But thanks for the suggestion, we can discuss this internally and if there seems to be a value addition in providing such attribute, we will definitely add it.
Having said that, we are bringing up FlashCopy 2.0 in Ansible in 2Q22.
SUMMARY I'm trying to create a Flashcopy mapping using the ibm.spectrum_virtualize.ibm_svc_manage_flashcopy module.
I have tried this on collection version 1.7 and 1.8 but get the same results.
I specify a target volume, which has just been created but when I run ansible to create the mapping I get a message telling me that the target already exists.
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat Enterprise Linux Server release 7.9 (Maipo)
STEPS TO REPRODUCE
EXPECTED RESULTS
I'm now expecting source volume (ansible_test_delete_me_l01) to be mapped to target volume (TEST_ansible_test_delete_me_l01) with a mapping name of testmap_01 and assigned to consistency group TEST_ANSIBLE_TEST.
ACTUAL RESULTS
Prior to this I have used the SV modules to create the FC consistency group and thr target volume.