Open sumedhak27 opened 2 years ago
Faulty Tests:
Issue Description: The above-mentioned tests are failing on ceph cluster deployed in the virtual machine environment. When the same tests are performed using REST API, we get the appropriate response. (403 Forbidden)
Hi @sumedhak27 Did you find out what went wrong causing these tests to fail? I started seeing these tests failing today
Faulty Tests:
Issue Description: The above-mentioned tests are failing on ceph cluster deployed in the virtual machine environment. When the same tests are performed using REST API, we get the appropriate response. (403 Forbidden)
Ceph/S3-tests Failure Output
The test is to set the Authorization header to "" (empty), from the debug request header log we can see that the Authorization header was not set to "". ```bash $ S3TEST_CONF=./s3tests.motr.conf virtualenv/bin/nosetests s3tests_boto3.functional.test_headers:test_bucket_create_bad_authorization_empty -v 2>&1 | tee -a cephtest.log s3tests_boto3.functional.test_headers.test_bucket_create_bad_authorization_empty ... FAIL ====================================================================== FAIL: s3tests_boto3.functional.test_headers.test_bucket_create_bad_authorization_empty ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/ceph-tests/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/root/ceph-tests/s3-tests/s3tests_boto3/functional/test_headers.py", line 500, in test_bucket_create_bad_authorization_empty e = _add_header_create_bad_bucket(headers) File "/root/ceph-tests/s3-tests/s3tests_boto3/functional/test_headers.py", line 113, in _add_header_create_bad_bucket e = assert_raises(ClientError, client.create_bucket, Bucket=bucket_name) File "/root/ceph-tests/s3-tests/s3tests_boto3/functional/utils.py", line 21, in assert_raises raise AssertionError("%s not raised" % excName) AssertionError: ClientError not raised -------------------- >> begin captured logging << -------------------- botocore.hooks: DEBUG: Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane botocore.hooks: DEBUG: Changing event name from before-call.apigateway to before-call.api-gateway botocore.hooks: DEBUG: Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict botocore.hooks: DEBUG: Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration botocore.hooks: DEBUG: Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 botocore.hooks: DEBUG: Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search botocore.hooks: DEBUG: Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section botocore.hooks: DEBUG: Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask botocore.hooks: DEBUG: Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section botocore.hooks: DEBUG: Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search botocore.hooks: DEBUG: Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section botocore.loaders: DEBUG: Loading JSON file: /root/ceph-tests/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/data/endpoints.json botocore.loaders: DEBUG: Loading JSON file: /root/ceph-tests/s3-tests/virtualenv/lib/python3.6/site-packages/botocore/data/sdk-default-configuration.json botocore.hooks: DEBUG: Event choose-service-name: calling handlerTest output using REST API
```bash ~/ceph-client ⌚ 4:29:18 $ cd /root/ceph-client ; /usr/bin/env /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64/bin/java -ag entlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:34569 -cp /tmp/cp_bbidnu5w7per3qn9hi9pyfa63 .jar com.seagate.ceph_client.CephAdminAPIClient Date: Mon, 4 Apr 2022 10:35:34 GMT HeaderString: PUT Mon, 4 Apr 2022 10:35:34 GMT /hehe Auth: HTTP/1.1 403 ForbiddenResponse Content is: {"Code":"AccessDenied","BucketName":"hehe","RequestId":"tx000008d3648d298f720bc-00624ac9f7-1050-default","HostId":"1050-default-default"} ```