hubblestack / quasar Goto Github PK
View Code? Open in Web Editor NEWHubble's Reporting System. This repo is deprecated, please use https://github.com/hubblestack/hubble-salt
Home Page: https://hubblestack.io
License: Apache License 2.0
Hubble's Reporting System. This repo is deprecated, please use https://github.com/hubblestack/hubble-salt
Home Page: https://hubblestack.io
License: Apache License 2.0
For Pulsar and Nova, but this error is just for Nova
When specifying an array of indexers it throws an error
[INFO ] Options: {"index": "hubble_audit", "token": "TOOOP-SEEC-REET-TOE-KENNNNN", "sourcetype": "hubble_audit", "indexer": ["hostname1.fqdn.tld", "hostname2.fqdn.tld"]}
[ERROR ] Unhandled exception running hubble.audit
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/utils/schedule.py", line 557, in handle_func
self.returners[ret_str](ret)
File "/var/cache/salt/minion/extmods/returners/splunk_nova_return.py", line 49, in returner
hec = http_event_collector(http_event_collector_key, http_event_collector_host)
File "/var/cache/salt/minion/extmods/returners/splunk_nova_return.py", line 204, in __init__
self.server_uri = "".join(buildURI)
TypeError: sequence item 1: expected string, list found
I would expect it to jump randomly between all entries for load balancing, until one is found that works (doesn't timeout or otherwise throw an error).
We should only host returners here that are specialized in some way for hubble. Otherwise we have to maintain and update them. We're much better off just using the returners that ship with salt, because they get bugfixes.
Thoughts?
2016-08-22 16:20:31,430 [salt.minion ][ERROR ][496] The return failed for job 20160822162030254018 string indices must be integers, not str
2016-08-22 16:20:31,431 [salt.minion ][ERROR ][496] Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 1418, in _thread_return
)](ret)
File "/var/cache/salt/minion/extmods/returners/splunk_nebula_return.py", line 59, in returner
for query_result in query_results['data']:
TypeError: string indices must be integers, not str
Pulsar uses the fqdn grain and nova uses the minion id. We need to decide which one to use and make sure it's consistent.
If nova can't fetch the data, it will return (False, 'No nova modules/data have been loaded.โ)
, which stacktraces splunk_nova_return:
[ERROR ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'tuple' object has no attribute 'get'
Traceback (most recent call last):
File "hubble.py", line 5, in <module>
File "hubblestack/daemon.py", line 52, in run
File "hubblestack/daemon.py", line 75, in main
File "hubblestack/daemon.py", line 249, in run_function
File "/opt/hubble/hubble-libs/hubblestack/extmods/returners/splunk_nova_return.py", line 90, in returner
for fai in data.get('Failure', []):
AttributeError: 'tuple' object has no attribute 'get'
Traceback (most recent call last):
File "hubble.py", line 5, in <module>
File "hubblestack/daemon.py", line 52, in run
File "hubblestack/daemon.py", line 75, in main
File "hubblestack/daemon.py", line 249, in run_function
File "/opt/hubble/hubble-libs/hubblestack/extmods/returners/splunk_nova_return.py", line 90, in returner
for fai in data.get('Failure', []):
AttributeError: 'tuple' object has no attribute 'get'
Failed to execute script hubble
Should be easy to fix, just need to check for the tuple.
If a proper SSL cert is available, we should be able to configurable that to turn it on (default is currently hardcoded to not verify)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.