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

Add: crashes Postgres logic; crashes sync with Redmine #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yaarith
Copy link
Contributor

@yaarith yaarith commented Sep 2, 2021

  • Add the crashes schema DDL, and the script to populate it.

  • Add the crashes-redmine sync bot, which updates Ceph's bug tracker (tracker.ceph.com) with anonymized telemetry crashes.

New files:
  - db_create_crash.sql:
    Holds the DDL to create 'crash' schema and its tables.
  - import_crashes.py:
    The script that populates 'crash' schema.

Signed-off-by: Yaarit Hatuka <[email protected]>
The first version of the bot that syncs anonymized telemetry crashes
with Ceph's Redmine bug tracker (tracker.ceph.com).

Signed-off-by: Yaarit Hatuka <[email protected]>
@yaarith yaarith requested a review from liewegas September 2, 2021 00:37
@yaarith
Copy link
Contributor Author

yaarith commented Sep 2, 2021

TODOs will be handled in the next version of the bot

@yaarith
Copy link
Contributor Author

yaarith commented Sep 2, 2021

refining the crash signature will be added next

telemetry db):
./crashes_redmine_sync.py --prod

Log files are written to the directory where this program resides.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any config to point to a different directory (maybe at a later date)?

# True - use redminelib ; False - use direct db access
USE_REDMINELIB_ALL_ISSUES = False

LOG_FILE = f"{datetime.now().strftime('%Y-%m-%d_%H:%M:%S')}_telemetry_to_redmine.log"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there value in a user assigned prefix or suffix to this filename?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants