This repository contains a tool to publish messages onto a rabbitmq queue.
The tool was written to simulate Nova VM instance creation and deletion
messages for consumption by OpenStack Designate.
-
Place the amqppublisher.py and createsimscript.sh scripts into the same directory.
-
Edit the createsimscript.sh script and modify the variables for the local environment.
-
Run the createsimscript.sh script:
./createsimscript.sh
The script will create a script called simnova_.sh. That script will be used to simulate Nova VM instance creation and deletion.
-
Run the simnova_.sh script to simulate Nova VM instance creation:
./simnova_.sh create
-
run the simnova_.sh script to simulate Nova VM instance deletion:
./simnova_.sh delete
The system this tool will be run on has:
- Keystone client
- Python 2.6 or higher
This tool was inspired by the rabbitmq-utilites found here:
https://github.com/kumarcv/rabbitmq-utilities