2021-07-26 10:39:47 +02:00
= bugzilla2fedmsg SOP
Receive events from bugzilla over the RH "unified messagebus" and
rebroadcast them over our own fedmsg bus.
2021-08-18 11:55:26 +02:00
Source code: https://github.com/fedora-infra/bugzilla2fedmsg
2021-07-26 10:39:47 +02:00
== Contact Information
Owner::
Messaging SIG, Fedora Infrastructure Team
Contact::
#fedora-apps, #fedora-fedmsg, #fedora-admin, #fedora-noc
Servers::
2024-07-12 14:41:16 +01:00
STG/PROD Openshift Clusters
2021-07-26 10:39:47 +02:00
Purpose::
Rebroadcast bugzilla events on our bus.
== Description
2024-07-12 14:41:16 +01:00
bugzilla2fedmsg is a small service running as a container in Openshift in the `bugzilla2fedmsg` project which receives events from bugzilla via the RH "unified messagebus" and rebroadcasts them to our fedmsg bus.
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
== Resources
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
- [1] Ansible Playbook: https://pagure.io/fedora-infra/ansible/blob/main/f/playbooks/openshift-apps/bugzilla2fedmsg.yml
- [2] Ansible Role: https://pagure.io/fedora-infra/ansible/blob/main/f/roles/openshift-apps/bugzilla2fedmsg
- [3] Code: https://github.com/fedora-infra/bugzilla2fedmsg
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
== Useful Commands
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
To look at logs, first authenticate with Openshift. Login to the console, and then retrieve a token. At the top right of the webconsole, click `copy login command`.
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
eg:
2021-08-18 11:55:26 +02:00
....
2024-07-12 14:41:16 +01:00
# Login with the token
oc login --token=sha256~_XXXXXXXXXXX --server=https://api.ocp.stg.fedoraproject.org:6443
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
# Switch to the bugzilla2fedmsg project
oc project bugzilla2fedmsg
Now using project "bugzilla2fedmsg" on server "https://api.ocp.stg.fedoraproject.org:6443".
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
# Retrieve a list of pods running in the project
oc get pods
NAME READY STATUS RESTARTS AGE
bugzilla2fedmsg-32-58px2 1/1 Running 0 43h
2021-07-26 10:39:47 +02:00
2024-07-12 14:41:16 +01:00
# Retrieve the logs from the bugzilla2fedmsg-32-58px2 pod
oc logs -f bugzilla2fedmsg-32-58px2
2021-07-26 10:39:47 +02:00
....
2024-07-12 14:41:16 +01:00
2021-07-26 10:39:47 +02:00
To restart the service, run:
....
2024-07-12 14:41:16 +01:00
# List the deploymentconfigs in the bugzilla2fedmsg project
oc get dc
NAME REVISION DESIRED CURRENT TRIGGERED BY
bugzilla2fedmsg 32 1 1 config,image(bugzilla2fedmsg:latest)
# Start a rollout of the deploymentconfig
oc rollout start bugzilla2fedmsg
2021-07-26 10:39:47 +02:00
....
== Internal Contacts
2024-07-12 14:41:16 +01:00
If we need to contact someone from the RH internal "unified messagebus" team, search for "unified messagebus" in source.