root@cssosbe04-b04:/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook# ansible-playbook -vvv create_rcg_ts09_playbook.yml ansible-playbook 2.7.2 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/stack/hpe3par_ansible_module/Modules'] ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Using /etc/ansible/ansible.cfg as config file /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet yaml requirements, check plugin documentation if this is unexpected Skipping due to inventory source not existing or not being readable by the current user /etc/ansible/hosts did not meet ini requirements, check plugin documentation if this is unexpected /etc/ansible/hosts did not meet auto requirements, check plugin documentation if this is unexpected [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_remote_copy_group_playbook.yml statically imported: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/delete_remote_copy_group_playbook.yml PLAYBOOK: create_rcg_ts09_playbook.yml ************************************************************************************************************ 1 plays in create_rcg_ts09_playbook.yml PLAY [localhost] ********************************************************************************************************************************** TASK [Gathering Facts] **************************************************************************************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/create_rcg_ts09_playbook.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552 `" && echo ansible-tmp-1543579941.6076066-125088346216552="` echo /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552 `" ) && sleep 0' Using module file /usr/local/lib/python3.5/dist-packages/ansible/modules/system/setup.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-15705lpzrq4v7/tmpf7_3yg_1 TO /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552/AnsiballZ_setup.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552/ /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552/AnsiballZ_setup.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543579941.6076066-125088346216552/ > /dev/null 2>&1 && sleep 0' ok: [localhost] META: ran handlers TASK [CREATERCG:TS09, Create a remote copy group with invalid target name - Negative testing] ***************************************************** task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/create_rcg_ts09_playbook.yml:5 ok: [localhost] => { "ansible_facts": { "domain": "test_domain", "keep_snap": false, "local_snap_cpg": null, "local_user_cpg": null, "remote_copy_group_name": "ansible_CreateRCG-003", "remote_copy_targets": [ { "snap_cpg": null, "target_mode": "sync", "target_name": "InvalidTargetName", "user_cpg": null } ], "state": "present", "storage_system_ip": "192.168.67.6", "storage_system_password": "3pardata", "storage_system_username": "3paradm" }, "ansible_included_var_files": [ "/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/properties/create_rcg_ts09_properties.yml" ], "changed": false } TASK [Create RCG] ********************************************************************************************************************************* task path: /home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/tasks/create_remote_copy_group_playbook.yml:2 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0' <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416 `" && echo ansible-tmp-1543579943.497265-103900478396416="` echo /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416 `" ) && sleep 0' Using module file /home/stack/hpe3par_ansible_module/Modules/hpe3par_remote_copy.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-15705lpzrq4v7/tmpzmvlc19n TO /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416/AnsiballZ_hpe3par_remote_copy.py <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416/ /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416/AnsiballZ_hpe3par_remote_copy.py && sleep 0' <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1543579943.497265-103900478396416/ > /dev/null 2>&1 && sleep 0' fatal: [localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "admit_volume_targets": null, "different_secondary_wwn": false, "discard_new_data": false, "domain": "test_domain", "full_sync": false, "keep_snap": false, "local_groups_direction": false, "local_remote_volume_pair_list": [], "local_snap_cpg": null, "local_user_cpg": null, "modify_targets": null, "no_resync_snapshot": false, "no_snapshot": false, "recovery_action": null, "remote_copy_group_name": "ansible_CreateRCG-003", "remote_copy_targets": [ { "snap_cpg": null, "target_mode": "sync", "target_name": "InvalidTargetName", "user_cpg": null } ], "remove_secondary_volume": false, "skip_initial_sync": false, "skip_promote": false, "skip_start": false, "skip_sync": false, "snapshot_name": null, "source_port": null, "starting_snapshots": null, "state": "present", "stop_groups": false, "storage_system_ip": "192.168.67.6", "storage_system_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "storage_system_username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "target_mode": null, "target_name": null, "target_port_wwn_or_ip": null, "unset_snap_cpg": false, "unset_user_cpg": false, "volume_auto_creation": false, "volume_name": null } }, "msg": "Remote Copy Group creation failed | Forbidden (HTTP 403) 194 - specified target is not a target of remote copy group" } to retry, use: --limit @/home/stack/virendra_new/hpe3par_ansible_test/rcg-playbook/create_rcg_ts09_playbook.retry PLAY RECAP **************************************************************************************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=1