Bug 1139033

Summary: [abrt] hash-slinger: sshfp:136:check_keytype:NameError: global name 'hostname' is not defined
Product: [Fedora] Fedora Reporter: Leighton Sheppard <leighton>
Component: hash-slingerAssignee: Paul Wouters <pwouters>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: andrew, pwouters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/1e6b25d27a8a918104cbf41613137fc5810360e9
Whiteboard: abrt_hash:8421b9e9aaf117c80292b44e3914997101fbf8b9
Fixed In Version: hash-slinger-2.6-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 23:04:25 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: environ none

Description Leighton Sheppard 2014-09-07 16:02:40 UTC
Version-Release number of selected component:
hash-slinger-2.5-1.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python /usr/bin/sshfp
executable:     /usr/bin/sshfp
kernel:         3.15.10-201.fc20.x86_64
runlevel:       N 3
type:           Python
uid:            1000

Truncated backtrace:
sshfp:136:check_keytype:NameError: global name 'hostname' is not defined

Traceback (most recent call last):
  File "/usr/bin/sshfp", line 374, in <module>
    main()
  File "/usr/bin/sshfp", line 359, in main
    data = sshfp_from_file(khfile, args)
  File "/usr/bin/sshfp", line 127, in sshfp_from_file
    fingerprints.append(process_records(data, wantedHosts))
  File "/usr/bin/sshfp", line 169, in process_records
    if not check_keytype(keytype):
  File "/usr/bin/sshfp", line 136, in check_keytype
    print >> sys.stderr, "Could only find key type %s for %s" % (keytype, hostname)
NameError: global name 'hostname' is not defined

Local variables in innermost frame:
keytype: 'ecdsa-sha2-nistp256'
algo: 'rsa'

Comment 1 Leighton Sheppard 2014-09-07 16:02:42 UTC
Created attachment 935171 [details]
File: backtrace

Comment 2 Leighton Sheppard 2014-09-07 16:02:43 UTC
Created attachment 935172 [details]
File: environ

Comment 3 Paul Wouters 2015-01-06 02:31:59 UTC
*** Bug 1178531 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2015-01-06 15:02:12 UTC
hash-slinger-2.6-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/hash-slinger-2.6-1.fc20

Comment 5 Fedora Update System 2015-01-07 01:28:34 UTC
Package hash-slinger-2.6-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hash-slinger-2.6-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-0302/hash-slinger-2.6-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-01-13 16:34:21 UTC
hash-slinger-2.6-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/hash-slinger-2.6-1.fc21

Comment 7 Fedora Update System 2015-01-21 23:04:25 UTC
hash-slinger-2.6-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-01-21 23:06:10 UTC
hash-slinger-2.6-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.