Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-13744

Storage page does not show S3 being used

    XMLWordPrintable

    Details

    • Severity:
      Medium

      Description

      The Storage Summary page in Artifactory (as well as the StorageREST API as shown below) does not mention that S3 is being used at all. It used to show the provider, such as GCS, S3, etc with 0/infinity usage. But now there is no indication that S3 is being used, despite the fact that deployments and resolution both work from S3.

      Steps to reproduce:
      1. Setup a new Artifactory instance of 5.0.1
      2. Create ha-node.properties, db.properties, binarystore.xml (see configuration below), and include the JDBC driver in $ARTIFACTORY_HOME/tomcat/lib
      3. Startup this node and ensure it's successful
      4. As the lenientLimit is set to 1 in the configuration, there is no need to startup the second node, however for testing purposes I did, and it made no difference in the storage summary page
      5. Click on Admin->Advanced->Storage and notice the Storage page does not show S3 at all.

      Binarystore.xml used:
      <config version="2">
      <chain>
      <provider id="cache-fs-eventual" type="cache-fs">
      <provider id="sharding-cluster-eventual" type="sharding-cluster">
      <sub-provider id="eventual-cluster" type="eventual-cluster">
      <provider id="retry" type="retry">
      <provider id="s3" type="s3"/>
      </provider>
      </sub-provider>
      <redundancy>1</redundancy>
      <lenientLimit>1</lenientLimit>
      <dynamic-provider id="remote-s3" type="remote"/>
      </provider>
      </provider>
      </chain>

      <provider id="s3" type="s3">
      <endpoint>http://s3.amazonaws.com</endpoint>
      <identity>******************</identity>
      <credential>*************</credential>
      <path>path</path>
      <bucketName>bucket-name</bucketName>
      </provider>
      </config>

      Storagesummary REST API:
      $ curl -uadmin:password http://localhost:8081/artifactory/api/storageinfo | python -m json.tool

      {
      "binariesSummary":

      { "artifactsCount": "13", "artifactsSize": "9.18 MB", "binariesCount": "34", "binariesSize": "44.19 MB", "itemsCount": "19", "optimization": "481.46%" }

      ,
      "fileStoreSummary":

      { "freeSpace": "19.62 GB (64.58%)", "storageDirectory": "/home/daniela/art-s3-nonfs/artifactory-pro-5.0.1/data/cache", "storageType": "user-chain", "totalSpace": "30.39 GB", "usedSpace": "10.76 GB (35.42%)" }

      ,

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              daniela Daniel Augustine
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-13744 -
                  SYNCHRONIZED
                  • Last Sync Date: