Bug 1178531 - [abrt] hash-slinger: sshfp:136:check_keytype:NameError: global name 'hostname' is not defined
Summary: [abrt] hash-slinger: sshfp:136:check_keytype:NameError: global name 'hostname...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hash-slinger
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:8421b9e9aaf117c80292b44e391...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-04 15:44 UTC by Andrew Aylett
Modified: 2015-01-21 23:06 UTC (History)
2 users (show)

Fixed In Version: hash-slinger-2.6-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-06 02:31:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (719 bytes, text/plain)
2015-01-04 15:44 UTC, Andrew Aylett
no flags Details
File: environ (3.59 KB, text/plain)
2015-01-04 15:44 UTC, Andrew Aylett
no flags Details

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.


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