]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
debug debug
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 3 Aug 2023 19:08:16 +0000 (21:08 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 3 Aug 2023 19:52:22 +0000 (21:52 +0200)
debug

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/rgw_multisite.yml

index a995fd0d4a6922b34e2e11f3cc8351d2f74694eb..aad63a3ab0b923dfad6201a1f43f968e147e8afc 100644 (file)
         - set_radosgw_address
         - container_binary
 
+    - name: install epel-release
+      package:
+        name: epel-release
+        state: present
+      register: result
+      until: result is succeeded
+
     - name: install s3cmd
       package:
         name: s3cmd
         state: present
       register: result
       until: result is succeeded
-      when: not containerized_deployment | bool
 
     - name: generate and upload a random 10Mb file - containerized deployment
       shell: >
-        {{ container_binary }} run --rm --name=rgw_multisite_test --entrypoint=bash {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} -c 'dd if=/dev/urandom of=/tmp/testinfra-{{ item.rgw_realm }}.img bs=1M count=10;
+        {{ container_binary }} run --rm --name=rgw_multisite_test -v /bin/s3cmd:/bin/s3cmd -v /usr/lib/python3.6/site-packages/S3:/usr/lib/python3.6/site-packages/S3 --entrypoint=bash {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} -c 'dd if=/dev/urandom of=/tmp/testinfra-{{ item.rgw_realm }}.img bs=1M count=10;
         s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} mb s3://testinfra-{{ item.rgw_realm }};
         s3cmd --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} put /tmp/testinfra-{{ item.rgw_realm }}.img s3://testinfra-{{ item.rgw_realm }}'
       with_items: "{{ rgw_instances_host }}"
@@ -47,7 +53,7 @@
 
     - name: get info from replicated file - containerized deployment
       command: >
-        {{ container_binary }} run --rm --name=rgw_multisite_test --entrypoint=s3cmd {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} info s3://testinfra-{{ item.rgw_realm }}/testinfra-{{ item.rgw_realm }}.img
+        {{ container_binary }} run --rm --name=rgw_multisite_test -v /bin/s3cmd:/bin/s3cmd -v /usr/lib/python3.6/site-packages/S3:/usr/lib/python3.6/site-packages/S3 --entrypoint=s3cmd {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --no-ssl --access_key={{ item.system_access_key }} --secret_key={{ item.system_secret_key }} --host={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} --host-bucket={{ item.radosgw_address }}:{{ item.radosgw_frontend_port }} info s3://testinfra-{{ item.rgw_realm }}/testinfra-{{ item.rgw_realm }}.img
       with_items: "{{ rgw_instances_host }}"
       register: result
       retries: 60