Skip to content

Commit a13d03b

Browse files
committed
docs: document how to republish event
1 parent 3b663fa commit a13d03b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/operator-guide/rabbitmq.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ kubectl -n openstack exec -it rabbitmq-server-0 -c rabbitmq -- rabbitmqadmin --v
6262
kubectl -n openstack cp rabbitmq-server-0:/tmp/test.json -c rabbitmq /tmp/test.json
6363
```
6464

65+
### Republish captured message
66+
67+
1. Save the exact JSON body of the message/event into file (see commands above how to get that).
68+
2. Republish like this:
69+
70+
```bash
71+
cat /tmp/full-unpacked.json| kubectl -n openstack exec -it rabbitmq-server-0 -c rabbitmq -- rabbitmqadmin --vhost=ironic publish exchange=ironic routing_key=ironic_versioned_notifications.info
72+
```
73+
6574
### To dump, print, list-events, and requeue an openstack notifications rabbitmq queue
6675

6776
use [OpenStack RabbitMQ Queue Dump Tool](https://github.com/rackerlabs/understack/tree/main/examples/openstack-notifications)

0 commit comments

Comments
 (0)