]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/test/rgw/bucket_notification/README.rst: update RabbitMQ documentation. Fixes...
authorrkhudov <rhudov@gmail.com>
Thu, 29 Aug 2024 10:46:39 +0000 (11:46 +0100)
committerrkhudov <rhudov@gmail.com>
Thu, 29 Aug 2024 13:16:14 +0000 (14:16 +0100)
Signed-off-by: rkhudov <rhudov@gmail.com>
src/test/rgw/bucket_notification/README.rst

index 050a2e380c2947adbc0f9bcbb05af1be2493ba69..95e1e58a76d9f6bf83c4560e2e19c7be82641974 100644 (file)
@@ -133,6 +133,10 @@ Then you need to run the following command::
 
         sudo chkconfig rabbitmq-server on
 
+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`::
+
+        loopback_user.guest = false
+
 Finally, to start the RabbitMQ server you need to run the following command::
 
         sudo /sbin/service rabbitmq-server start
@@ -141,6 +145,18 @@ To confirm that the RabbitMQ server is running you can run the following command
 
         sudo /sbin/service rabbitmq-server status
 
+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).
+Default folder::
+
+        mkdir -p ~/.aws/models/s3/2006-03-01/
+        cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json ~/.aws/models/s3/2006-03-01/
+
+Custom folder::
+
+        mkdir -p /path/to/custom/folder/models/s3/2006-03-01/
+        cp /path/to/ceph/examples/rgw/boto3/service-2.sdk-extras.json /path/to/custom/folder/models/s3/2006-03-01/
+        export AWS_DATA_PATH=/path/to/custom/folder/
+
 After running `vstart.sh` and RabbitMQ server you're ready to run the AMQP tests::
 
         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::
 During these tests, the test script will restart the RabbitMQ server with the correct security configuration (``sudo`` privileges will be needed).
 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, 
 that assume the rabbitmq daemon running on the host as a service.
-