rabbitmq doesn't work, guest user is crippled

Bug #1832621 reported by Benjamin Taft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
New
Undecided
Unassigned

Bug Description

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [ ] This doc is inaccurate in this way: ______
- [ ] This is a doc addition request.
- [x] I have a fix to the document that I can paste below including example: input and output.

If you have a troubleshooting or support issue, use the following resources:

 - Ask OpenStack: http://ask.openstack.org
 - The mailing list: http://lists.openstack.org
 - IRC: 'openstack' channel on Freenode

-----------------------------------
Release: 2013.2.1.dev4233 on 2018-10-03 16:14
SHA: c0efcf9f52c096ed67269083a370584384b9bb27
Source: https://git.openstack.org/cgit/openstack/api-site/tree/firstapp/source/introduction.rst
URL: https://developer.openstack.org/firstapp-shade/introduction.html

The bug occurs when the user tries to generate some fractals. The api instance cannot communicate with the worker instance. The reason for this is that, in the example code, the worker application attempts to log in to the amqp service as 'guest' (the default user), and the current version of RabbitMQ does not allow the 'guest' user to log in to the queue from a remote host. The solution that I found (after a LOT of Googling) involved creating a new account.

To make the appcontroller instance work, I modified the user data to run some rabbitmcqctl commands. I created a new user, 'fractal', with the password 'Mandelbrot'. I then gave 'fractal' the user tag 'administrator', and set its permissions to 'can do everything'.

rabbitmqctl add_user fractal Mandelbrot
rabbitmqctl set_user_tags fractal administrator
rabbitmqctl set_permissions -p / fractal ".*" ".*" ".*"

It seems to me that a more elegant solution would be to modify the install shell in the openstack repository, but I don't have the time or training to do that myself.

To make the worker instance function, I modified its user data so that its faafo invocation used "-m fractal:Mandelbrot@IP_ADDRESS:5672/" instead of "-m guest:guest@IP_ADDRESS:5672".

I hope this helps, and am very grateful for the excellent tutorials on the openstack site!

Ben Taft

Tags: firstapp
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.