Hi Team,
Greetings!
Could you please go through below mentioned -vvv output where i can see
required output under MSG ( highlighted in blue):
Can we get output of only MSG instead of listing all other output so that i
can seethe required output?
Thank you for your time and help.
TASK [*run ontap rest cli command for vol move resister variabele*]
************************************************************
***************************************************************
task path: /home/user1/facts/netapp_volume_move.yml:38
< removed some data >
"attempts": 1,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
*MSG:*
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (34 retries left).Result was: {
"attempts": 2,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
*MSG:*
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (33 retries left).Result was: {
"attempts": 3,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
*MSG:*
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (32 retries left).Result was: {
"attempts": 4,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
*MSG:*
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
< removed some data >
changed: [Cluster1] => {
"attempts": 5,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
}
}
*MSG:*
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'done', 'percent_complete':
100}], 'num_records': 3}
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
========
playbook
=========
Below is the the playbook and also mentioned output of TASK [run ontap
rest cli command for vol move resister variabele]
ansible-playbook netapp_volume_move.yml
---
- hosts: all
connection: local
gather_facts: false
collections:
- netapp.ontap
vars_files:
vars:
login: &login
username: "{{ admin_username }}"
password: "{{ admin_password }}"
https: true
validate_certs: false
use_rest: Always
# feature_flags:
# trace_apis: true
tasks:
- name: block section task
block:
- name: Volum move initiated
na_ontap_volume:
<<: *login
aggregate_name: ssd_a1_04
vserver: "{{ vserver }}"
name: "{{ name }}"
hostname: "{{ inventory_hostname }}"
register: ontap_volume
no_log: false
- name: run ontap rest cli command for vol move resister variabele
netapp.ontap.na_ontap_rest_cli:
<<: *login
hostname: "{{ inventory_hostname }}"
command:
'volume/move?fields=percent-complete,state,destination-aggregate'
params:
volume: '*'
vserver: '*'
destination-aggregate: '*'
verb: 'GET'
register: variable_data
until: variable_data.msg.records|selectattr('percent_complete',
'ne', 100)|list| length == 0
retries: 35
delay: 30
- name: Run debug task
debug:
var=variable_data.msg.records
(python3_venv) $
====================
result:
=====================
(python3_venv) $ ansible-playbook netapp_volume_move.yml -vvv
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug
13 2020, 07:46:32) [GCC 4.8.5 20150623
(Red Hat 4.8.5-39)]. This feature will be removed from ansible-core in
version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ansible-playbook [core 2.11.12]
config file = /home/user1/facts/ansible.cfg
configured module search path = ['/home/user1/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location =
/apps/python3_venv/lib/python3.6/site-packages/ansible
ansible collection location =
/home/user1/.ansible/collections:/usr/share/ansible/collections
executable location = /apps/python3_venv/bin/ansible-playbook
python version = 3.6.8 (default, Aug 13 2020, 07:46:32) [GCC 4.8.5
20150623 (Red Hat 4.8.5-39)]
jinja version = 3.0.2
libyaml = True
Using /home/user1/facts/ansible.cfg as config file
host_list declined parsing /home/user1/facts/inventory/DEV/hosts.yml as it
did not pass its verify_file() method
script declined parsing /home/user1/facts/inventory/DEV/hosts.yml as it did
not pass its verify_file() method
Parsed /home/user1/facts/inventory/DEV/hosts.yml inventory source with yaml
plugin
redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug
redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: netapp_volume_move.yml
************************************************************************************************************************************************************
1 plays in netapp_volume_move.yml
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
PLAY [all]
**********************************************************************************************************************************************************************************
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
META: ran handlers
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
TASK [Volum move initiated]
*****************************************************************************************************************************************************************
task path: /home/user1/facts/netapp_volume_move.yml:24
<Cluster1> ESTABLISH LOCAL CONNECTION FOR USER: user1
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167
`" && echo ansible-tmp-1687409979.04913-10950-22668945714167="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167
`" ) && sleep 0'
<Cluster1> Attempting python interpreter discovery
<Cluster1> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v
'"'"'/usr/bin/python'"'"'; command -v '"'"'python3.9'"'"'; command -v
'"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v
'"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v
'"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v
'"'"'/usr/libexec/platform-python'"'"'; command -v
'"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND &&
sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_volume.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmpyk5tyq1j TO
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167/AnsiballZ_na_ontap_volume.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167/
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167/AnsiballZ_na_ontap_volume.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167/AnsiballZ_na_ontap_volume.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687409979.04913-10950-22668945714167/
> /dev/null 2>&1 && sleep 0'
changed: [Cluster1] => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": true,
"invocation": {
"module_args": {
"aggr_list": null,
"aggr_list_multiplier": null,
"aggregate_name": "ssd_a1_04",
"atime_update": null,
"auto_provision_as": null,
"auto_remap_luns": null,
"cert_filepath": null,
"check_interval": 60,
"comment": null,
"compression": null,
"cutover_action": null,
"efficiency_policy": null,
"encrypt": null,
"export_policy": null,
"feature_flags": {},
"force_restore": null,
"force_unmap_luns": null,
"from_name": null,
"from_vserver": null,
"group_id": null,
"hostname": "Cluster1",
"http_port": null,
"https": true,
"inline_compression": null,
"is_infinite": false,
"is_online": true,
"junction_path": null,
"key_filepath": null,
"language": null,
"name": "user1_test_clone3",
"nas_application_template": null,
"nvfail_enabled": null,
"ontapi": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"percent_snapshot_space": null,
"preserve_lun_ids": null,
"qos_adaptive_policy_group": null,
"qos_policy_group": null,
"size": null,
"size_change_threshold": 10,
"size_unit": "gb",
"sizing_method": null,
"snapdir_access": null,
"snapshot_auto_delete": null,
"snapshot_policy": null,
"snapshot_restore": null,
"space_guarantee": null,
"space_slo": null,
"state": "present",
"tiering_policy": null,
"time_out": 180,
"type": null,
"unix_permissions": null,
"use_rest": "Always",
"user_id": null,
"username": "user1",
"validate_certs": false,
"volume_security_style": null,
"vserver": "svm2",
"vserver_dr_protection": null,
"wait_for_completion": true
}
},
"modify": {
"aggregate_name": "ssd_a1_04"
}
}
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
TASK [run ontap rest cli command for vol move resister variabele]
***************************************************************************************************************************
task path: /home/user1/facts/netapp_volume_move.yml:38
<Cluster1> ESTABLISH LOCAL CONNECTION FOR USER: user1
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133
`" && echo ansible-tmp-1687409981.3215845-10986-170223569972133="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133
`" ) && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_cli.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmp0xvrlu40 TO
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133/AnsiballZ_na_ontap_rest_cli.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133/
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687409981.3215845-10986-170223569972133/
> /dev/null 2>&1 && sleep 0'
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (35 retries left).Result was: {
"attempts": 1,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
MSG:
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998
`" && echo ansible-tmp-1687410012.5154507-10986-194750717210998="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998
`" ) && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_cli.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmp62va_1q_ TO
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998/AnsiballZ_na_ontap_rest_cli.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998/
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687410012.5154507-10986-194750717210998/
> /dev/null 2>&1 && sleep 0'
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (34 retries left).Result was: {
"attempts": 2,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
MSG:
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068
`" && echo ansible-tmp-1687410043.258642-10986-9337563152068="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068
`" ) && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_cli.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmp1d45ynly TO
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068/AnsiballZ_na_ontap_rest_cli.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068/
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687410043.258642-10986-9337563152068/
> /dev/null 2>&1 && sleep 0'
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (33 retries left).Result was: {
"attempts": 3,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
MSG:
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304
`" && echo ansible-tmp-1687410074.0302222-10986-29882595310304="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304
`" ) && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_cli.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmpr6quwepc TO
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304/AnsiballZ_na_ontap_rest_cli.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304/
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687410074.0302222-10986-29882595310304/
> /dev/null 2>&1 && sleep 0'
FAILED - RETRYING: run ontap rest cli command for vol move resister
variabele (32 retries left).Result was: {
"attempts": 4,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
},
"retries": 36
}
MSG:
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'healthy',
'percent_complete': 98}], 'num_records': 3}
<Cluster1> EXEC /bin/sh -c 'echo ~user1 && sleep 0'
<Cluster1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
/home/user1/.ansible/tmp `"&& mkdir "` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535
`" && echo ansible-tmp-1687410104.7785237-10986-246365905929535="` echo
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535
`" ) && sleep 0'
Using module file
/apps/python3_venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_cli.py
<Cluster1> PUT
/home/user1/.ansible/tmp/ansible-local-10941hhll8xxo/tmpy8vvt7gd TO
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535/AnsiballZ_na_ontap_rest_cli.py
<Cluster1> EXEC /bin/sh -c 'chmod u+x
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535/
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c '/usr/bin/python
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535/AnsiballZ_na_ontap_rest_cli.py
&& sleep 0'
<Cluster1> EXEC /bin/sh -c 'rm -f -r
/home/user1/.ansible/tmp/ansible-tmp-1687410104.7785237-10986-246365905929535/
> /dev/null 2>&1 && sleep 0'
changed: [Cluster1] => {
"attempts": 5,
"changed": true,
"invocation": {
"module_args": {
"body": {},
"cert_filepath": null,
"command": "volume/move?fields=percent-complete,state",
"feature_flags": {},
"hostname": "Cluster1",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"params": {
"volume": "*",
"vserver": "*"
},
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "Always",
"username": "user1",
"validate_certs": false,
"verb": "GET"
}
}
}
MSG:
{'records': [{'vserver': 'svm1', 'volume': 'svm1_mp_v3', 'state': 'done',
'percent_complete': 100}, {'vserver': 'svm2', 'volume':
'user1_test_clone2', 'state': 'done', 'percent_complete': 100}, {'vserver':
'svm2', 'volume': 'user1_test_clone3', 'state': 'done', 'percent_complete':
100}], 'num_records': 3}
Read vars_file '/home/user1/facts/cred_file_Privileged_account.yml'
On Thu, Jun 22, 2023 at 4:04 PM Vladimir Botka <[email protected]> wrote:
> On Thu, 22 Jun 2023 10:55:32 +0000
> Aharonu <[email protected]> wrote:
>
> > ...
> > Can we get output of only MSG instead of listing all other output so
> that i
> > can see the required output?
>
> This is the list of the records *variable_data.msg.records*
>
> I can't provide you with better answer without "Minimal reproducible
> example". https://en.wikipedia.org/wiki/Minimal_reproducible_example
>
> --
> Vladimir Botka
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CANGEjuWY%2Bhry9rOGxqe_089X3%3DAMfDFuCbYm-EsUXwAd_j1amQ%40mail.gmail.com.