Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27283

MariaDB S3 storgae - MinIO (Couldn't resolve host name)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.6.5
    • None
    • Storage Engine - S3
    • OS: Debian GNU/Linux 10
      MariaDB:
      - mariadb-server-10.6 - 1:10.6.5+maria~buster
      - mariadb-plugin-s3 1:10.6.5+maria~buster

    Description

      I have MinIO S3 storage
      Hostname: staging.s3.example.com

      MariaDB S3 config:

      s3.cnf

      [mariadbd]

      plugin-maturity = alpha
      plugin-load-add = ha_s3
      s3=ON
      s3-host-name=staging.s3.example.com
      s3-protocol-version = Original
      s3-bucket=databases-on-object-storage
      s3-access-key=mariadb
      s3-secret-key=xxxxxxx
      s3-region=test-central-1
      s3-use-http=OFF
      s3-protocol-version=Original

      [aria_s3_copy]
      s3-host-name=staging.s3.example.com
      s3-protocol-version = Original
      s3-bucket=databases-on-object-storage
      s3-access-key=mariadb
      s3-secret-key=xxxxxxx
      s3-region=test-central-1
      s3-port=80
      s3-use-http=ON
      s3-protocol-version=Original
      verbose=1
      op=to

      When I try to run the aria_s3_copy test I get the following result:

      Command:
      aria_s3_copy --force --op=to --database=test --compress --verbose --s3_debug=true --s3_block_size=4M s3_test
      Result:
      aria_s3_copy: Got error from put_object(test/s3_test/frm): 5 Couldn't resolve host name

      Error source:

      [libmarias3] /home/buildbot/buildbot/build/mariadb-10.6.5/storage/maria/libmarias3/src/request.c:127 URI: *http://databases-on-object-storage.staging.s3.example.com/test/s3_test/aria*
      [libmarias3] /home/buildbot/buildbot/build/mariadb-10.6.5/storage/maria/libmarias3/src/request.c:388 Signature data1: HEAD

      [libmarias3] /home/buildbot/buildbot/build/mariadb-10.6.5/storage/maria/libmarias3/src/request.c:605 Header: host:databases-on-object-storage.storage.staging.s3.example.com

      Same result when I am trying the *ALTER TABLE old_table ENGINE=S3 *command.

      How can it be used the path style?

      Example:
      https://staging.s3.example.com/databases-on-object-storage

      Attachments

        Activity

          People

            Unassigned Unassigned
            hegedussz Szabolcs Hegedus
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.