Hello,
I am new to CVPySDK and Ansible.
I made successfuly a playbook which installation Agent on Linux machines.
Now I try to update agent (push) from the commcell.
I use the push_servicepack_and_hotfix method but it it returns an error 101 Response was not success.
How could I have more detail to debug this error ?
TASK >Push Service Packs and Hotfixes] ********************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: cvpysdk.exception.SDKException: Response was not success
fatal: alocalhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1634128027.0540986-7125-68037601934166/AnsiballZ_commvault.py\", line 102, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1634128027.0540986-7125-68037601934166/AnsiballZ_commvault.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1634128027.0540986-7125-68037601934166/AnsiballZ_commvault.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.commvault', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_commvault_payload_7gc73cgq/ansible_commvault_payload.zip/ansible/modules/commvault.py\", line 351, in <module>\n File \"/tmp/ansible_commvault_payload_7gc73cgq/ansible_commvault_payload.zip/ansible/modules/commvault.py\", line 338, in main\n File \"<string>\", line 1, in <module>\n File \"/root/workspace/playbooks-commvault/venv_cvlt/lib64/python3.6/site-packages/cvpysdk/commcell.py\", line 2096, in push_servicepack_and_hotfix\n maintenance_release_only=maintenance_release_only\n File \"/root/workspace/playbooks-commvault/venv_cvlt/lib64/python3.6/site-packages/cvpysdk/deployment/install.py\", line 340, in push_servicepack_and_hotfix\n raise SDKException('Response', '101')\ncvpysdk.exception.SDKException: Response was not success\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
My playbook, login is OK :
tasks:
- name: Commvault commcell initialization
block:
- name: Login
commvault:
operation: LOGIN
entity: {
webconsole_hostname: "#####",
commcell_username: "#####",
commcell_password: "#####"
}
register: commcell
- debug:
msg: "Login is done successfully"
rescue:
- debug:
msg: 'Login failed'
- name: Push Service Packs and Hotfixes
commvault:
operation: push_servicepack_and_hotfix
entity_type: commcell
commcell: "{{ commcell }}"
args:
{
client_computers: /"la7lnx0001"],
}
register: reg_install_job
Thanks in advance for your help
JF