Bug 1716043

Summary: [abrt] fedora-easy-karma: already_commented(): fedora-easy-karma:776:already_commented:KeyError: 'anonymous'
Product: [Fedora] Fedora Reporter: Dmitri Smirnov <cserpentis>
Component: fedora-easy-karmaAssignee: Till Maas <opensource>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: gbcox, gtwilliams, lewk, louzaoh, mhroncok, opensource, renault
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/4d30c01620c929f990535f180e5261219e841ea2
Whiteboard: abrt_hash:4983d118efe3c25eae6151cdc8ad8c016b8b662d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-02 21:22:52 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: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Dmitri Smirnov 2019-06-01 09:13:13 UTC
Description of problem:
When running fedora easy karma after all the lists have been downloaded a key error is shown for:

Traceback (most recent call last):
  File "/usr/bin/fedora-easy-karma", line 851, in <module>
    fek = FedoraEasyKarma()
  File "/usr/bin/fedora-easy-karma", line 628, in __init__
    self.already_commented(update, self.options.fas_username):
  File "/usr/bin/fedora-easy-karma", line 776, in already_commented
    if not comment["anonymous"] and comment["user"]["name"] == user:
KeyError: 'anonymous'

Version-Release number of selected component:
fedora-easy-karma-0-0.40.20181206gitb6d97e0.fc30

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/bin/fedora-easy-karma --fas-username=cserpentis '--default-comment=works for me' --default-karma=1
crash_function: already_commented
exception_type: KeyError
executable:     /usr/bin/fedora-easy-karma
interpreter:    python3-3.7.3-3.fc30.x86_64
kernel:         5.1.5-300.fc30.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 [/usr/bin/fedora-easy-karma:776] already_commented
#2 [/usr/bin/fedora-easy-karma:628] __init__
#3 [/usr/bin/fedora-easy-karma:851] <module>

Comment 1 Dmitri Smirnov 2019-06-01 09:13:16 UTC
Created attachment 1575894 [details]
File: backtrace

Comment 2 Dmitri Smirnov 2019-06-01 09:13:17 UTC
Created attachment 1575895 [details]
File: cgroup

Comment 3 Dmitri Smirnov 2019-06-01 09:13:18 UTC
Created attachment 1575896 [details]
File: cpuinfo

Comment 4 Dmitri Smirnov 2019-06-01 09:13:19 UTC
Created attachment 1575897 [details]
File: environ

Comment 5 Dmitri Smirnov 2019-06-01 09:13:20 UTC
Created attachment 1575898 [details]
File: mountinfo

Comment 6 Dmitri Smirnov 2019-06-01 09:13:21 UTC
Created attachment 1575899 [details]
File: namespaces

Comment 7 Dmitri Smirnov 2019-06-01 09:13:22 UTC
Created attachment 1575900 [details]
File: open_fds

Comment 8 Garry T. Williams 2019-06-24 03:04:22 UTC
Similar problem has been detected:

Ran command: fedora-easy-karma --bodhi-request-limit=20 and result was:

found 334 testing updates
Traceback (most recent call last):
  File "/usr/bin/fedora-easy-karma", line 851, in <module>
    fek = FedoraEasyKarma()
  File "/usr/bin/fedora-easy-karma", line 628, in __init__
    self.already_commented(update, self.options.fas_username):
  File "/usr/bin/fedora-easy-karma", line 776, in already_commented
    if not comment["anonymous"] and comment["user"]["name"] == user:
KeyError: 'anonymous'

reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -s /usr/bin/fedora-easy-karma --bodhi-request-limit=20
crash_function: already_commented
exception_type: KeyError
executable:     /usr/bin/fedora-easy-karma
interpreter:    python3-3.7.3-3.fc30.x86_64
kernel:         5.1.9-300.fc30.x86_64
package:        fedora-easy-karma-0-0.40.20181206gitb6d97e0.fc30
reason:         fedora-easy-karma:776:already_commented:KeyError: 'anonymous'
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Miro HronĨok 2019-07-02 21:22:52 UTC

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