There are a couple of issues with the simple_message_to_bus script as it is deployed on log01 and how it's defined in Ansible:
simple_message_to_bus
/usr/bin
/usr/local/bin
PATH
/etc/crontab
nils@makake:~/src/fedora-infra/ansible (main)> scp log01.iad2.fedoraproject.org:/usr/bin/simple_message_to_bus /tmp simple_message_to_bus 100% 836 7.1KB/s 00:00 nils@makake:~/src/fedora-infra/ansible (main)> diff -u /tmp/simple_message_to_bus roles/fedora-messaging-utils/files/simple_message_to_bus --- /tmp/simple_message_to_bus 2021-08-18 16:45:31.858983083 +0200 +++ roles/fedora-messaging-utils/files/simple_message_to_bus 2021-08-12 11:57:01.881849876 +0200 @@ -1,12 +1,11 @@ #!/bin/sh -LOGHOST="$(hostname)" -MSGTOPIC_PREFIX="logging.stats" +MSGTOPIC_PREFIX="${MSGTOPIC_PREFIX:-logging.stats}" topic="${MSGTOPIC_PREFIX}.$1" shift sent_at="$(TZ=UTC date -Iseconds)" id="$(uuidgen -r)" -body="{\"loghost\": \"${LOGHOST}\"" -sep="," +body="{" +sep="" for body_piece; do key_type="${body_piece%%=*}" @@ -29,4 +28,3 @@ fedora-messaging publish - << EOF >/dev/null {"body": ${body}, "headers": {"fedora_messaging_schema": "base.message", "fedora_messaging_severity": 20, "sent-at": "${sent_at}"}, "id": "${id}", "queue": "queue", "topic": "${topic}"} EOF - nils@makake:~/src/fedora-infra/ansible (main)>
It follows that the version in Ansible still defaults to the logging.stats topic, but is missing the loghost preset in the body. All this needs to be fixed.
logging.stats
loghost
The Ansible repo defines for log01 that:
MSGTOPIC_PREFIX
MSGBODY_PRESET
Metadata Update from @nphilipp: - Issue tagged with: DNF Counting
Metadata Update from @nphilipp: - Issue assigned to nphilipp
PR: fedora-infra/ansible#777
This has been merged, but needs to be deployed still.
Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.