Skip to content

Commit 682cc90

Browse files
committed
src/test/rgw/bucket_notification/README.rst: update RabbitMQ documentation. Fixes: https://tracker.ceph.com/issues/67768
Signed-off-by: rkhudov <[email protected]>
1 parent 2b76893 commit 682cc90

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/test/rgw/bucket_notification/README.rst

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ Then you need to run the following command::
133133

134134
sudo chkconfig rabbitmq-server on
135135

136+
Update rabbitmq-server configuration to allow access to the guest user from anywhere on the network. Uncomment or add line to rabbirmq configuration, usually `/etc/rabbitmq/rabbirmq.comf`::
137+
138+
loopback_user.guest = false
139+
136140
Finally, to start the RabbitMQ server you need to run the following command::
137141

138142
sudo /sbin/service rabbitmq-server start
@@ -141,6 +145,18 @@ To confirm that the RabbitMQ server is running you can run the following command
141145

142146
sudo /sbin/service rabbitmq-server status
143147

148+
Add [boto3 extension](https://github.com/ceph/ceph/tree/main/examples/rgw/boto3#introduction) as it's required for bucket notification tests. You can use the default folder or create a custom one, more information [here](https://github.com/boto/botocore/blob/develop/botocore/loaders.py#L33).
149+
Default folder::
150+
151+
mkdir -p ~/.aws/models/s3/2006-03-01/
152+
cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json ~/.aws/models/s3/2006-03-01/
153+
154+
Custom folder::
155+
156+
mkdir -p /path/to/custom/folder/models/s3/2006-03-01/
157+
cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json /path/to/custom/folder/models/s3/2006-03-01/
158+
export AWS_DATA_PATH=/path/to/custom/folder/
159+
144160
After running `vstart.sh` and RabbitMQ server you're ready to run the AMQP tests::
145161

146162
BNTESTS_CONF=bntests.conf python -m nose -s /path/to/ceph/src/test/rgw/bucket_notification/test_bn.py -v -a 'amqp_test'
@@ -156,4 +172,3 @@ To run the RabbitMQ SSL security tests use the following::
156172
During these tests, the test script will restart the RabbitMQ server with the correct security configuration (``sudo`` privileges will be needed).
157173
For that reason it is not recommended to run the `amqp_ssl_test` tests, that assumes a manually configured rabbirmq server, in the same run as `amqp_test` tests,
158174
that assume the rabbitmq daemon running on the host as a service.
159-

0 commit comments

Comments
 (0)