Skip to content

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 <yaarit@redhat.com>
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 <yaarit@redhat.com>
@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