Bug 2183173

Summary: [abrt] python3-ansible-lint: run(): subprocess.py:571:run:subprocess.CalledProcessError: Command '['ansible-config', 'dump']' returned non-zero exit status 1.
Product: [Fedora] Fedora Reporter: Doncho Gunchev <dgunchev>
Component: python-ansible-compatAssignee: chedi toueiti <chedi.toueiti>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: chedi.toueiti, kevin, maxwell
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/d25688967eae086b81b625f52638df1130f72fa1
Whiteboard: abrt_hash:bbf579a6245b5717bdc4115d204edd693ce55d67;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-03 06:57:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
ansible-lint.yml none

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 ***