Fedora Messaging
Total Page:16
File Type:pdf, Size:1020Kb
Fedora Messaging Jun 11, 2018 Contents 1 Getting started with fedmsg_meta_fedora_infrastructure3 1.1 Quick introduction to fedmsg_meta...................................3 2 List of Message Topics 5 2.1 anitya...................................................5 2.2 ansible.................................................. 22 2.3 askbot................................................... 24 2.4 autocloud................................................. 32 2.5 bodhi................................................... 39 2.6 bugzilla.................................................. 62 2.7 buildsys.................................................. 66 2.8 ci..................................................... 78 2.9 compose................................................. 101 2.10 copr.................................................... 121 2.11 datanommer............................................... 127 2.12 faf..................................................... 128 2.13 fas.................................................... 129 2.14 fedbadges................................................. 133 2.15 fedimg.................................................. 135 2.16 fedocal.................................................. 139 2.17 fedora_elections............................................. 146 2.18 fedoratagger............................................... 150 2.19 fmn.................................................... 156 2.20 git..................................................... 161 2.21 github................................................... 168 2.22 greenwave................................................ 225 2.23 hotness.................................................. 226 2.24 infragit.................................................. 243 2.25 irc..................................................... 246 2.26 jenkins.................................................. 246 2.27 kerneltest................................................. 249 2.28 koschei.................................................. 252 2.29 mailman................................................. 253 2.30 mbs.................................................... 256 2.31 mdapi................................................... 257 2.32 meetbot.................................................. 258 i 2.33 mirrormanager.............................................. 265 2.34 nagios................................................... 269 2.35 nuancier................................................. 272 2.36 openqa.................................................. 276 2.37 pagure.................................................. 282 2.38 pdc.................................................... 347 2.39 pkgdb................................................... 350 2.40 planet................................................... 379 2.41 pungi................................................... 380 2.42 rats.................................................... 386 2.43 releng................................................... 392 2.44 summershum............................................... 398 2.45 taskotron................................................. 401 2.46 trac.................................................... 403 2.47 waiverdb................................................. 414 2.48 wiki.................................................... 415 2.49 zanata................................................... 416 ii Fedora Messaging Information specific to the Fedora Project deployment of fedmsg. Contents 1 Fedora Messaging 2 Contents CHAPTER 1 Getting started with fedmsg_meta_fedora_infrastructure This project provides a mapping allowing to convert a specific fedmsg message into a single string of information describing the action of that lead to this message. 1.1 Quick introduction to fedmsg_meta Sometime an example is worth more than just words: import requests import fedmsg import fedmsg.meta config= fedmsg.config.load_config() fedmsg.meta.make_processors(**config) req= requests.get('https://apps.fedoraproject.org/datagrepper/raw/') data= req.json() for message in data['raw_messages']: print fedmsg.meta.msg2subtitle(message) print fedmsg.meta.msg2usernames(message) print fedmsg.meta.msg2packages(message) This simple script will retrieve recent messages from datagrepper and for each message returned will print a one-line description of the action as well as the persons and packages involved. 3 Fedora Messaging 4 Chapter 1. Getting started with fedmsg_meta_fedora_infrastructure CHAPTER 2 List of Message Topics This document lists all the topics coming out the Fedora Infrastructure fedmsg bus. Example messages are included as well as descriptions and sample output from fedmsg.meta. Note: All topics from Fedora Infrastructure are prefixed with org.fedoraproject.prod., but the topic_prefix is omitted here for brevity. For instance, the item listed as git.branch will actually be broadcast as org. fedoraproject.prod.git.branch. Note: Message bodies can contain some useful information, but be wary. We have done as good a job as we can securing fedmsg, but it is still a new system. If you receive a message from pkgdb claiming that “ralph” is the new owner of the kernel, you should still check with the actual pkgdb service that this is the case. Write code against fedmsg messages as a tip, but always check the authoritative source before taking any programmatic action. 2.1 anitya 2.1.1 anitya.distro.add These messages are published when a new Linux distribution is added to the database of anitya. You can view the history of messages with the anitya.distro.add topic or all anitya messages in datagrepper. {'i':4, 'msg':{'distro':{'name':'CentOS'}, 'message':{'agent':'foobar','distro':u'CentOS'}, 'project': None}, 'msg_id':u'2016-55d13473-2e48-4b6e-9542-3bc1882152ef', 'timestamp': 1467814080, 'topic':u'org.release-monitoring.prod.anitya.distro.add', 'username':'apache'} 5 Fedora Messaging The example message above, when passed to various routines in the fedmsg.meta module, will produce the fol- lowing outputs: fedmsg.meta.msg2title() anitya.distro.add fedmsg.meta.msg2subtitle() foobar added the distro named “CentOS” to anitya fedmsg.meta.msg2link() https://release-monitoring.org/distros fedmsg.meta.msg2agent() Unspecified fedmsg.meta.msg2usernames() set([‘foobar’]) fedmsg.meta.msg2packages() set([]) fedmsg.meta.msg2objects() set([‘distros/CentOS’]) fedmsg.meta.msg2icon() fedmsg.meta.msg2secondary_icon() 2.1.2 anitya.distro.edit These messages are published when a Linux distribution’s entry is edited in the anitya database. You can view the history of messages with the anitya.distro.edit topic or all anitya messages in datagrepper. {'crypto':'x509', 'i':5, 'msg':{'distro':{'name':'Debia'}, 'message':{'agent':'http://pingou.id.fedoraproject.org/', 'new':'Debian', 'old':'Debia'}, 'project': None}, 'msg_id':'2014-746c39cf-9fb0-4ed1-a817-d57bc901e027', 'timestamp': 1412328814, 'topic':'org.release-monitoring.prod.anitya.distro.edit', 'username':'apache'} The example message above, when passed to various routines in the fedmsg.meta module, will produce the fol- lowing outputs: fedmsg.meta.msg2title() anitya.distro.edit fedmsg.meta.msg2subtitle() pingou changed a distro name from “Debia” to “Debian” fedmsg.meta.msg2link() https://release-monitoring.org/distros fedmsg.meta.msg2agent() Unspecified fedmsg.meta.msg2usernames() set([‘pingou’]) fedmsg.meta.msg2packages() set([]) fedmsg.meta.msg2objects() set([‘distros/Debian’, ‘distros/Debia’]) fedmsg.meta.msg2icon() fedmsg.meta.msg2secondary_icon() 2.1.3 anitya.distro.remove These messages are published when an admin removes a distribution (in the anitya database. ) 6 Chapter 2. List of Message Topics Fedora Messaging You can view the history of messages with the anitya.distro.remove topic or all anitya messages in datagrepper. {'i':4, 'msg':{'distro':{'name':'Arch'}, 'message':{'agent':'http://pingou.id.fedoraproject.org/', 'distro':'Arch'}, 'project': None}, 'msg_id':'2014-745132e5-17eb-4785-8663-fa89801a08ee', 'timestamp': 1418315977, 'topic':'org.release-monitoring.prod.anitya.distro.remove', 'username':'pierrey'} The example message above, when passed to various routines in the fedmsg.meta module, will produce the fol- lowing outputs: fedmsg.meta.msg2title() anitya.distro.remove fedmsg.meta.msg2subtitle() pingou deleted the distro “Arch” fedmsg.meta.msg2link() https://release-monitoring.org/distros fedmsg.meta.msg2agent() Unspecified fedmsg.meta.msg2usernames() set([‘pingou’]) fedmsg.meta.msg2packages() set([]) fedmsg.meta.msg2objects() set([‘distros/Arch’]) fedmsg.meta.msg2icon() fedmsg.meta.msg2secondary_icon() 2.1.4 anitya.project.add These messages are published when someone adds a new project to anitya’s database. You can view the history of messages with the anitya.project.add topic or all anitya messages in datagrepper. {'crypto':'x509', 'i':8, 'msg':{'distro': None, 'message':{'agent':'http://ralph.id.fedoraproject.org/', 'project':'arrow'}, 'project':{'backend':'PyPI', 'created_on': 1412328939.0, 'homepage':'https://pypi.python.org/pypi/arrow', 'id': 5314, 'name':'arrow', 'regex': None, 'updated_on': 1412328939.0, 'version': None, 'version_url': None, 'versions': []}}, 'msg_id':'2014-c95e6b4c-d033-43d9-9eb1-e1f92ac87c75', 'timestamp': 1412328939, 'topic':'org.release-monitoring.prod.anitya.project.add', 'username':'apache'} The example message above, when passed to various routines in the fedmsg.meta module, will produce the fol- lowing outputs: 2.1. anitya 7 Fedora Messaging fedmsg.meta.msg2title() anitya.project.add