nstallons / Dell-Customer-Ansible

Ansible playbook for onboarding new poweredge servers utilizing OME and iDRAC.
1 stars 0 forks source link

Ansible template issue when deployed #1

Open farhadsaifuddin opened 2 years ago

farhadsaifuddin commented 2 years ago

TASK [Deploy template on one or multiple devices.] ***** task path: /home/ansiblesvc/ansible/onboarding.yml:77 <10.158.22.37> ESTABLISH LOCAL CONNECTION FOR USER: ansiblesvc <10.158.22.37> EXEC /bin/sh -c 'echo ~ansiblesvc && sleep 0' <10.158.22.37> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/ansiblesvc/.ansible/tmp"&& mkdir "echo /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888" && echo ansible-tmp-1657916527.7089689-99335-233027641740888="echo /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888" ) && sleep 0' Using module file /home/ansiblesvc/.ansible/collections/ansible_collections/dellemc/openmanage/plugins/modules/ome_template.py <10.158.22.37> PUT /home/ansiblesvc/.ansible/tmp/ansible-local-99227oxnjgour/tmpfai4jzdn TO /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888/AnsiballZ_ome_template.py <10.158.22.37> EXEC /bin/sh -c 'chmod u+x /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888/ /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888/AnsiballZ_ome_template.py && sleep 0' <10.158.22.37> EXEC /bin/sh -c '/usr/bin/python3.6 /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888/AnsiballZ_ome_template.py && sleep 0' <10.158.22.37> EXEC /bin/sh -c 'rm -f -r /home/ansiblesvc/.ansible/tmp/ansible-tmp-1657916527.7089689-99335-233027641740888/ > /dev/null 2>&1 && sleep 0' The full traceback is: File "/tmp/ansible_dellemc.openmanage.ome_template_payload_due7hb8r/ansible_dellemc.openmanage.ome_template_payload.zip/ansible_collections/dellemc/openmanage/plugins/modules/ome_template.py", line 824, in main File "/tmp/ansible_dellemc.openmanage.ome_template_payload_due7hb8r/ansible_dellemc.openmanage.ome_template_payload.zip/ansible_collections/dellemc/openmanage/plugins/module_utils/ome.py", line 172, in invoke_request raise err File "/tmp/ansible_dellemc.openmanage.ome_template_payload_due7hb8r/ansible_dellemc.openmanage.ome_template_payload.zip/ansible_collections/dellemc/openmanage/plugins/module_utils/ome.py", line 169, in invoke_request resp = open_url(url, data=data, *url_kwargs) File "/tmp/ansible_dellemc.openmanage.ome_template_payload_due7hb8r/ansible_dellemc.openmanage.ome_template_payload.zip/ansible/module_utils/urls.py", line 1390, in open_url unredirected_headers=unredirected_headers) File "/tmp/ansible_dellemc.openmanage.ome_template_payload_due7hb8r/ansible_dellemc.openmanage.ome_template_payload.zip/ansible/module_utils/urls.py", line 1294, in open r = urllib_request.urlopen(urlopen_args) File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/usr/lib64/python3.6/urllib/request.py", line 532, in open response = meth(req, response) File "/usr/lib64/python3.6/urllib/request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib64/python3.6/urllib/request.py", line 570, in error return self._call_chain(args) File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain result = func(args) File "/usr/lib64/python3.6/urllib/request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) fatal: [10.158.22.37]: FAILED! => { "changed": false, "error_info": { "error": { "@Message.ExtendedInfo": [ { "Message": "Unable to process the request because of an internal error.", "MessageArgs": [], "MessageId": "CGEN6008", "RelatedProperties": [], "Resolution": "Retry the operation. If the issue persists, contact your system administrator.", "Severity": "Critical" } ], "code": "Base.1.0.GeneralError", "message": "A general error has occurred. See ExtendedInfo for more information." } }, "invocation": { "module_args": { "attributes": null, "ca_path": null, "command": "deploy", "device_group_names": [], "device_id": [], "device_service_tag": [ "B40BSZ2" ], "hostname": "10.158.22.37", "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "port": 443, "template_id": null, "template_name": "Ansible Demo Template", "template_view_type": "Deployment", "timeout": 30, "username": "admin", "validate_certs": false } }, "msg": "HTTP Error 400: 400" }

nstallons commented 2 years ago

Please post on https://github.com/dell/dellemc-openmanage-ansible-modules for issues.