Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMQP Output: declares default exchange #1295

Closed
ghost opened this issue Aug 16, 2018 · 2 comments
Closed

AMQP Output: declares default exchange #1295

ghost opened this issue Aug 16, 2018 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Milestone

Comments

@ghost
Copy link

ghost commented Aug 16, 2018

The default exchange must not be declared AFAIK

@ghost ghost added this to the 1.1.0 milestone Aug 16, 2018
@ghost ghost added bug Indicates an unexpected problem or unintended behavior component: bots labels Aug 16, 2018
@ghost
Copy link
Author

ghost commented Aug 21, 2018

RabbitMQ error log:

{amqp_error,access_refused,"operation not permitted on the default exchange",
            'exchange.declare'}

@ghost
Copy link
Author

ghost commented Aug 21, 2018

IntelMQ log:

2018-08-16 17:09:24,558 - amqp-output - ERROR - Bot initialization failed.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/intelmq/lib/bot.py", line 86, in __init__
    self.init()
  File "/usr/lib/python3/dist-packages/intelmq/bots/outputs/amqptopic/output.py", line 37, in init
    self.connect_server()
  File "/usr/lib/python3/dist-packages/intelmq/bots/outputs/amqptopic/output.py", line 58, in connect_server
    durable=self.durable)
  File "/usr/lib/python3/dist-packages/pika/adapters/blocking_connection.py", line 2207, in exchange_declare
    self._flush_output(declare_ok_result.is_ready)
  File "/usr/lib/python3/dist-packages/pika/adapters/blocking_connection.py", line 1181, in _flush_output
    raise exceptions.ChannelClosed(method.reply_code, method.reply_text)
pika.exceptions.ChannelClosed: (403, 'ACCESS_REFUSED - operation not permitted on the default exchange')

@ghost ghost self-assigned this Aug 21, 2018
@ghost ghost modified the milestones: 1.1.0, 1.0.6 Aug 21, 2018
@ghost ghost closed this as completed in 4a2f85a Aug 21, 2018
ghost pushed a commit that referenced this issue Sep 3, 2018
Maintenance release 1.0.6

1.0.6 Bugfix release (2018-08-31)

\# Bots
\## Collectors
- `bots.collectors.rt.collector_rt`: Log ticket id for downloaded reports.

\## Parsers
- `bots.parsers.shadowserver`:
  - if required fields do not exist in data, an exception is raised, so the line will be dumped and not further processed.
  - fix a bug in the parsing of column `cipher_suite` in ssl poodle reports (#1288).

\## Experts
- Reverse DNS Expert: ignore all invalid results and use first valid one (#1264).
- `intelmq/bots/experts/tor_nodes/update-tor-nodes`: Use check.torproject.org as source as internet2.us is down (#1289).

\## Outputs
- `bots.output.amqptopic`:
  - The default exchange must not be declared (#1295).
  - Unencodable characters are prepended by backslashes by default. Otherwise Unicode characters can't be encoded and sent (#1296).
  - Gracefully close AMQP connection on shutdown of bot.

\# Documentation
- Bots: document redis cache parameters.
- Installation documentation: Ubuntu needs universe repositories.

\# Packaging
- Dropped support for Ubuntu 17.10, it reached its End of Life as of 2018-07-19.

\# Tests
- Drop tests for Python 3.3 for the mode with all requirements, as some optional dependencies do not support Python 3.3 anymore.
- `lib.test`: Add parameter `compare_raw` (default: `True`) to `assertMessageEqual`, to optionally skip the comparison of the raw field.
- Add tests for RT collector.
- Add tests for Shadowserver Parser:
  - SSL Poodle Reports.
  - Helper functions.

\# Tools
- `intelmqctl list` now sorts the output of bots and queues (#1262).
- `intelmqctl`: Correctly handle the corner cases with collectors and outputs for getting/sending messages in the bot debugger (#1263).
- `intelmqdump`: fix ordering of dumps in a file in runtime. All operations are applied to a sorted list (#1280).

\# Contrib
- `cron-jobs/update-tor-nodes`: Use check.torproject.org as source as internet2.us is down (#1289).
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

No branches or pull requests

0 participants