#9518 [fedora-messaging] sent message is not listed in datagrepper
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by lrossett.

Describe what you would like us to do:


I am sending messages to fedora messaging but I am not seeing those in datagrepper:

topic: org.centos.prod.gitlab.redhat.centos-stream.rpms.time.push
username: gitlab-centos
exchange: amq.topic
virtual host: /pubsub
queue: gitlab-centos

I am using the fedora_messaging library to parse the message, sample code (to make sure it is using the expected schema):

from fedora_messaging import message

def fedora_messaging(data, topic, headers, **kwargs):
  """Return a parsed message for fedora messaging."""
  msg = message.Message(
    topic=topic,
    headers=headers,
    body=data)
  msg.queue = kwargs.get('queue')

  return json.loads(message.dumps(msg).rstrip())

Am I missing something so that datagrepper is not recognizing it as a valid message body?

Thanks


Metadata Update from @smooge:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: low-gain, low-trouble, ops

3 years ago

Metadata Update from @pingou:
- Issue assigned to pingou

3 years ago

After some investigation we were able to figure that the messages arrived find on the rabbitmq cluster.
The issue seemed to be on the datanommer side.

Moving the sender to be fully fedora-messaging solved the issue: https://apps.fedoraproject.org/datagrepper/raw?rows_per_page=5&delta=127800&category=gitlab \รณ/

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done