Creating a bucket using s3_bucket module completes with ClientError: An error occurred (NoSuchTagSetError) when calling the GetBucketTagging operation: Unknown

Solution Verified - Updated -

Environment

  • Red Hat Ceph Storage 4.2z4
  • Ansible Amazon AWS collection

Issue

  • When using the s3_bucket module within Ansible Amazon AWS collection 2.x, the bucket is created but the Ansible task finishes with the following error:

      - 1083    An exception occurred during task execution. To see the full 
    traceback, use -vvv. The error was: ClientError: An error occurred 
    (NoSuchTagSetError) when calling the GetBucketTagging operation: 
    Unknown
    1084    fatal: [localhost]: FAILED! => {"boto3_version": "1.4.0", 
    "botocore_version": "1.4.57", "changed": false, "error": {"bucket_name": 
    "des-simpa-archive", "code": "NoSuchTagSetError"}, "msg": "Failed to 
    get bucket tags: An error occurred (NoSuchTagSetError) when calling 
    the GetBucketTagging operation: Unknown", "response_metadata": 
    {"host_id": "", "http_headers": {"accept-ranges": "bytes", "connection": 
    "Keep-Alive", "content-length": "233", "content-type": "application/xml", 
    "date": "Fri, 03 Dec 2021 08:43:18 GMT", "x-amz-request-id": 
    "tx0000000000000003dd4e5-0061a9d8a6-4bc9a1-dev1"}, 
    "http_status_code": 404, "request_id": 
    "tx0000000000000003dd4e5-0061a9d8a6-4bc9a1-dev1", 
    "retry_attempts": 0}}
    

Resolution

Root Cause

  • Known to appear when using Red Hat Ceph Storage 4.2z4 with Ansible Amazon AWS collection 2.x.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments