openscanhub / fedora-infra

Deployment configurations for the Fedora infrastructure.
https://openscanhub.fedoraproject.org
GNU General Public License v3.0
1 stars 1 forks source link

Set up UMB configurations #3

Open siteshwar opened 9 months ago

siteshwar commented 9 months ago

OpenScanHub supports sending notifications through UMB. This issue tracks setting up UMB configurations for the Fedora infrastructure.

kdudka commented 9 months ago

OpenScanHub does not send any messages to UMB for scans triggered by osh-cli. Are you going to use the interface for integration with Errata Tool in the public deployment? If not, there is no point in configuring UMB.

siteshwar commented 9 months ago

OpenScanHub does not send any messages to UMB for scans triggered by osh-cli. Are you going to use the interface for integration with Errata Tool in the public deployment? If not, there is no point in configuring UMB.

I have been asked about it by @lachmanfrantisek for Packit integration. So unless they have similar workflow like Errata, I will skip working on this issue.

nirik commented 9 months ago

Just FYI, fedora has it's own message bus. It's usually interacted with via: https://github.com/fedora-infra/fedora-messaging (It's a rabbitmq/AMQP cluster with some schemas on top).

siteshwar commented 5 months ago

OpenScanHub does not support rabbitmq in upstream.

We may have to use polling for task logs/state through osh-cli command for PackIt integration.

EDIT: However, it supports AMQP. We need to verify current messaging implementation would work with the Fedora infrastructure.

lachmanfrantisek commented 5 months ago

I hope implementing result/status reporting to Fedora-messaging might be easier than implementing polling in Packit.

siteshwar commented 5 months ago

https://pagure.io/fedora-infrastructure/issue/11853

siteshwar commented 1 week ago

For my own reference:

Messages Packit listens https://github.com/packit/deployment/blob/ac1dd10bc2be07c1d7b20825aab871e08490d254/secrets/packit/prod/fedora.toml.j2#L49

Fedora messaging consumer for Packit Service https://github.com/packit/packit-service-fedmsg

Callbacks https://github.com/packit/packit-service-fedmsg/blob/main/packit_service_fedmsg/callbacks.py

Thanks @lbarcziova for the links!

siteshwar commented 1 week ago

https://pagure.io/fedora-infra/ansible/pull-request/2244#request_diff