Bug 1154279

Summary: [abrt] fedmsg: core.py:86:__init__:KeyError: 'Could not find endpoint for fedmsg-relay. Try installing fedmsg-relay.'
Product: [Fedora] Fedora Reporter: Florian "der-flo" Lehner <dev>
Component: fedmsgAssignee: Ralph Bean <rbean>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: lmacken, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/85cf08c92105b2faeeb02f1f3ddaa72ba2aa0271
Whiteboard: abrt_hash:03dcf4ac046a1102908053e90c3174aa891ef840
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-20 02:09:15 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 Florian "der-flo" Lehner 2014-10-18 10:28:13 UTC
Description of problem:
$ fedmsg-logger
Traceback (most recent call last):
  File "/usr/bin/fedmsg-logger", line 9, in <module>
    load_entry_point('fedmsg==0.10.0', 'console_scripts', 'fedmsg-logger')()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/logger.py", line 114, in logger
    return command.execute()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/__init__.py", line 104, in execute
    return self.run()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/logger.py", line 101, in run
    fedmsg.init(**self.config)
  File "/usr/lib/python2.7/site-packages/fedmsg/__init__.py", line 59, in init
    __local.__context = fedmsg.core.FedMsgContext(**config)
  File "/usr/lib/python2.7/site-packages/fedmsg/core.py", line 86, in __init__
    raise KeyError("Could not find endpoint for fedmsg-relay."
KeyError: 'Could not find endpoint for fedmsg-relay. Try installing fedmsg-relay.'

Version-Release number of selected component:
fedmsg-0.10.0-1.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python /usr/bin/fedmsg-logger
executable:     /usr/bin/fedmsg-logger
kernel:         3.16.6-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
core.py:86:__init__:KeyError: 'Could not find endpoint for fedmsg-relay. Try installing fedmsg-relay.'

Traceback (most recent call last):
  File "/usr/bin/fedmsg-logger", line 9, in <module>
    load_entry_point('fedmsg==0.10.0', 'console_scripts', 'fedmsg-logger')()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/logger.py", line 114, in logger
    return command.execute()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/__init__.py", line 104, in execute
    return self.run()
  File "/usr/lib/python2.7/site-packages/fedmsg/commands/logger.py", line 101, in run
    fedmsg.init(**self.config)
  File "/usr/lib/python2.7/site-packages/fedmsg/__init__.py", line 59, in init
    __local.__context = fedmsg.core.FedMsgContext(**config)
  File "/usr/lib/python2.7/site-packages/fedmsg/core.py", line 86, in __init__
    raise KeyError("Could not find endpoint for fedmsg-relay."
KeyError: 'Could not find endpoint for fedmsg-relay. Try installing fedmsg-relay.'

Local variables in innermost frame:
self: <fedmsg.core.FedMsgContext object at 0x28c8350>
config: {'zmq_strict': False, 'topic': 'log', 'zmq_enabled': True, 'io_threads': 1, 'crl_location': 'https://fedoraproject.org/fedmsg/crl.pem', 'zmq_reconnect_ivl': 100, 'print_config': False, 'zmq_linger': 1000, 'routing_policy': {'org.fedoraproject.prod.announce.announcement': ['announce-lockbox.phx2.fedoraproject.org']}, 'ssldir': '/etc/pki/fedmsg', 'zmq_tcp_keepalive_cnt': 3, 'environment': 'dev', 'cert_prefix': 'shell', 'zmq_tcp_keepalive_intvl': 5, 'topic_prefix': 'org.fedoraproject', 'zmq_tcp_keepalive': 1, 'ca_cert_cache_expiry': 0, 'timeout': 2, 'ca_cert_cache': '/var/run/fedmsg/ca.crt', 'sign_messages': False, 'zmq_tcp_keepalive_idle': 60, 'config_filename': None, 'active': True, 'topic_prefix_re': 'org\\.fedoraproject\\.(dev|stg|prod)', 'persistent_store': None, 'crypto_validate_backends': ['x509'], 'modname': 'logger', 'high_water_mark': 0, 'logging': {'loggers': {'fedmsg': {'handlers': ['console'], 'propagate': False, 'level': 'INFO'}, 'moksha': {'handlers': ['console'], 'propagate': False, 'level': 'INFO'}}, 'version': 1, 'handlers': {'console': {'formatter': 'bare', 'class': 'logging.StreamHandler', 'stream': 'ext://sys.stdout', 'level': 'INFO'}}, 'formatters': {'bare': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s][%(name)10s %(levelname)7s] %(message)s'}}}, 'name': 'relay_inbound', 'ca_cert_location': 'https://fedoraproject.org/fedmsg/ca.crt', 'json_input': False, 'validate_signatures': False, 'zmq_reconnect_ivl_max': 1000, 'certnames': {}, 'logger_message': None, 'post_init_sleep': 0.5, 'crypto_backend': 'x509', 'routing_nitpicky': False, 'endpoints': {'fedora-infrastructure': ['tcp://hub.fedoraproject.org:9940']}, 'crl_cache_expiry': 10, 'crl_cache': '/var/run/fedmsg/crl.pem'}
name: 'relay_inbound'
method: 'connect'

Comment 1 Florian "der-flo" Lehner 2014-10-18 10:28:17 UTC
Created attachment 948093 [details]
File: backtrace

Comment 2 Florian "der-flo" Lehner 2014-10-18 10:28:19 UTC
Created attachment 948094 [details]
File: environ

Comment 3 Ralph Bean 2014-10-20 02:09:15 UTC
Hi, and thanks for reporting this, but I'd like to close it as not-a-bug.  The message in the traceback gives a suggestion about what to do to have fedmsg-logger operate in a meaningful way.  Thanks again, and if you need further help, feel free to ask in #fedora-apps on freenode.