AWX Backup (Operator) is not work at Redhat Openshift 4.15.0, Write awx object to pvc Error

swlee
Wed, 13 Mar 2024 01:37:34 +0000
Get Help

Hi there, I was install AWX Operator in RedHat Openshift, And i Need to Craete AWX Backup use by AWX Operator.

But, When I execute AWX Backup, I can see error that like this.

Operator Version is 2.12.0

TASK [Write awx object to pvc] ********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: too many values to unpack (expected 2)
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1710292924.5279477-5572-226092363804075/AnsiballZ_k8s_cp.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1710292924.5279477-5572-226092363804075/AnsiballZ_k8s_cp.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/opt/ansible/.ansible/tmp/ansible-tmp-1710292924.5279477-5572-226092363804075/AnsiballZ_k8s_cp.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.kubernetes.core.plugins.modules.k8s_cp', init_globals=dict(_module_fqn='ansible_collections.kubernetes.core.plugins.modules.k8s_cp', _modlib_path=modlib_path),\n  File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code...
-------------------------------------------------------------------------------
{"level":"error","ts":"2024-03-13T01:22:07Z","logger":"logging_event_handler","msg":"","name":"swleeback","namespace":"awx","gvk":"awx.ansible.com/v1beta1, Kind=AWXBackup","event_type":"runner_on_failed","job":"4819447133874507710","EventData.Task":"Write awx object to pvc","EventData.TaskArgs":"","EventData.FailedTaskPath":"/opt/ansible/roles/backup/tasks/awx-cro.yml:30","error":"[playbook task failed]","stacktrace":"github.com/operator-framework/ansible-operator-plugins/internal/ansible/events.loggingEventHandler.Handle\n\tansible-operator-plugins/internal/ansible/events/log_events.go:111"}
{"level":"error","ts":"2024-03-13T01:22:07Z","logger":"runner","msg":"\u001b[0;34mansible-playbook [core 2.15.3]\u001b[0m\r\n\u001b[0;34m  config file = /etc/ansible/ansible.cfg\u001b[0m\r\n\u001b[0;34m  configured module search path = ['/usr/share/ansible/openshift']\u001b[0m\r\n\u001b[0;34m  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible\u001b[0m\r\n\u001b[0;34m  ansible collection location = /opt/ansible/.ansible/collections:/usr/share/ansible/collections\u001b[0m\r\n\u001b[0;34m  executable location = /usr/local/bin/ansible-playbook\u001b[0m\r\n\u001b[0;34m  python version = 3.9.16 (main, May 31 2023, 12:21:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3)\u001b[0m\r\n\u001b[0;34m  jinja version = 3.1.2\u001b[0m\r\n\u001b[0;34m  libyaml = True\u001b[0m\r\n\u001b[0;34mUsing /etc/ansible/ansible.cfg as config file\u001b[0m\r\n\u001b[0;34mSkipping callback 'awx_display', as we already have a stdout callback.\u001b[0m\n\u001b[0;34mSkipping callback 'default', a...
----- Ansible Task Status Event StdOut (awx.ansible.com/v1beta1, Kind=AWXBackup, swleeback/awx) -----
PLAY RECAP *********************************************************************
localhost                  : ok=38   changed=6    unreachable=0    failed=1    skipped=8    rescued=0    ignored=0

I use Storage Class local lvm like this.

How can i solve that errors?

Thanks.

2 posts - 2 participants