Bug 2183173 - [abrt] python3-ansible-lint: run(): subprocess.py:571:run:subprocess.CalledProcessError: Command '['ansible-config', 'dump']' returned non-zero exit status 1.
Summary: [abrt] python3-ansible-lint: run(): subprocess.py:571:run:subprocess.CalledPr...
Keywords:
Status: CLOSED DUPLICATE of bug 2213747
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ansible-compat
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: chedi toueiti
QA Contact:
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:bbf579a6245b5717bdc4115d204...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-30 13:46 UTC by Doncho Gunchev
Modified: 2023-08-03 06:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-03 06:57:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (5.26 KB, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
File: cpuinfo (2.89 KB, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
File: environ (2.81 KB, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
File: mountinfo (2.98 KB, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
File: namespaces (172 bytes, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
File: open_fds (491 bytes, text/plain)
2023-03-30 13:46 UTC, Doncho Gunchev
no flags Details
ansible-lint.yml (4.52 KB, text/plain)
2023-06-21 07:50 UTC, Doncho Gunchev
no flags Details

Description Doncho Gunchev 2023-03-30 13:46:04 UTC
Description of problem:
I have the following environment variables:

LC_ADDRESS=C.UTF-8
LC_COLLATE=C.UTF-8
LC_CTYPE=C.UTF-8
LC_IDENTIFICATION=C.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_MESSAGES=C.UTF-8
LC_MONETARY=en_CA.UTF-8
LC_NAME=C.UTF-8
LC_NUMERIC=en_CA.UTF-8
LC_PAPER=en_CA.UTF-8
LC_TELEPHONE=C.UTF-8
LC_TIME=en_CA.UTF-8

After setting everything to C.UTF-8 it works.

Version-Release number of selected component:
python3-ansible-lint-1:6.10.0-1.fc37

Additional info:
reporter:       libreport-2.17.4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-pycharm-576c151c26be4743b9eead383c63e8c7.scope
cmdline:        /usr/bin/python3 -sP /usr/bin/ansible-lint -q --parseable --format json --config-file /home/dgunchev/git/Admin-repo/ansible/common/.config/ansible-lint.yml --project-dir /tmp/4402059753490065980 /tmp/4402059753490065980/.config/ansible-lint.yml
crash_function: run
exception_type: subprocess.CalledProcessError
executable:     /usr/bin/ansible-lint
interpreter:    python3-3.11.2-1.fc37.x86_64
kernel:         6.2.7-200.fc37.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 [/usr/lib64/python3.11/subprocess.py:571] run
#2 [/usr/lib64/python3.11/subprocess.py:466] check_output
#3 [/usr/lib/python3.11/site-packages/ansible_compat/config.py:422] __init__
#4 [/usr/lib/python3.11/site-packages/ansible_compat/runtime.py:96] __init__
#5 [/usr/lib/python3.11/site-packages/ansiblelint/app.py:48] __init__
#6 [/usr/lib/python3.11/site-packages/ansiblelint/app.py:332] get_app
#7 [/usr/lib/python3.11/site-packages/ansiblelint/__main__.py:239] main
#8 [/usr/lib/python3.11/site-packages/ansiblelint/__main__.py:344] _run_cli_entrypoint
#9 [/usr/bin/ansible-lint:8] <module>

Comment 1 Doncho Gunchev 2023-03-30 13:46:07 UTC
Created attachment 1954677 [details]
File: backtrace

Comment 2 Doncho Gunchev 2023-03-30 13:46:08 UTC
Created attachment 1954678 [details]
File: cpuinfo

Comment 3 Doncho Gunchev 2023-03-30 13:46:09 UTC
Created attachment 1954679 [details]
File: environ

Comment 4 Doncho Gunchev 2023-03-30 13:46:11 UTC
Created attachment 1954680 [details]
File: mountinfo

Comment 5 Doncho Gunchev 2023-03-30 13:46:12 UTC
Created attachment 1954681 [details]
File: namespaces

Comment 6 Doncho Gunchev 2023-03-30 13:46:13 UTC
Created attachment 1954682 [details]
File: open_fds

Comment 7 Doncho Gunchev 2023-03-30 13:47:09 UTC
PS: This was run from within PyCharm. I am running PyCharm with LC_*=C.UTF-8 and it works fine.

Comment 8 Parag Nemade 2023-05-29 08:26:56 UTC
To reproduce this issue, we need your file /home/dgunchev/git/Admin-repo/ansible/common/.config/ansible-lint.yml
Can you attache it here?

Comment 9 Doncho Gunchev 2023-06-21 07:50:26 UTC
Created attachment 1971834 [details]
ansible-lint.yml

Attaching, sorry for the delay.

Comment 10 Parag Nemade 2023-06-21 09:05:36 UTC
Thanks. I checked config looks good. I now checked backtrace attached here.
It appears this is the issue in python-ansible-compat package
See
  File "/usr/lib/python3.11/site-packages/ansible_compat/config.py", line 422, in __init__
    config_dump = subprocess.check_output(
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Comment 11 Parag Nemade 2023-08-03 06:57:31 UTC

*** This bug has been marked as a duplicate of bug 2213747 ***


Note You need to log in before you can comment on or make changes to this bug.