Bug 1178531

Summary: [abrt] hash-slinger: sshfp:136:check_keytype:NameError: global name 'hostname' is not defined
Product: [Fedora] Fedora Reporter: Andrew Aylett <andrew>
Component: hash-slingerAssignee: Paul Wouters <pwouters>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: leighton, 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-06 02:31:59 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 Andrew Aylett 2015-01-04 15:44:33 UTC
Description of problem:
Playing with generating an SSHFP record, but without specifying any options.  Worked when I told it what to do properly, but shouldn't have crashed like this...

Version-Release number of selected component:
hash-slinger-2.5-2.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python /usr/bin/sshfp
executable:     /usr/bin/sshfp
kernel:         3.17.7-300.fc21.x86_64
runlevel:       N 5
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'

Potential duplicate: bug 1139033

Comment 1 Andrew Aylett 2015-01-04 15:44:36 UTC
Created attachment 975998 [details]
File: backtrace

Comment 2 Andrew Aylett 2015-01-04 15:44:37 UTC
Created attachment 975999 [details]
File: environ

Comment 3 Paul Wouters 2015-01-06 02:31:59 UTC

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

Comment 4 Fedora Update System 2015-01-06 15:02:11 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-13 16:34:20 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 6 Fedora Update System 2015-01-21 23:04:24 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 7 Fedora Update System 2015-01-21 23:06:09 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.