Deploying an S3 data source with custom SSL certificate
Important: The following procedure applies only to IBM Storage Scale version 6.0.0.x.
For IBM Storage Scale 6.0.1.x and later, custom Transport Layer Security (TLS) certificates are configured automatically when you create a data source. Specify the certificate secret name in the Certificate settings section. Certificate rotation occurs automatically when the secret is updated. Follow the standard procedure described in Creating a data source.
Procedure (IBM Storage Scale 6.0.0.x only)
- For Filesystem with IBM Storage Scale version
6.0.0.x, create a data source for an S3 bucket, which has a custom Secure Sockets Layer (SSL)
certificate by adding bucket name, end-point, secret key, and access key details as mentioned in
Creating a data source.
The data source status is updated to
Authentication Failureas the SSL cannot be processed. - Log in to the IBM Storage Scale 6.0.0.x cluster.
- Get the AFM cache fileset name by listing the configuration details on the filesystem with the
following command, and identify the one for the S3 bucket you just tried to
add:
mmafmcoskeys all get --report - Retrieve the
fileset-namefrom the export map, which is in the following format:<bucket-name>:<fileset-name>-exportmap=<keys> - Copy the TLS certificate on a path, for example at /var/cas/tls-cert/sample-cert.pem.
- Run the following command to re-create the fileset and make it
Active:mmafmcosconfig <fs> <fileset-name> --endpoint 'https://<fileset-name>-exportmap:443' --object-fs --bucket <bucket-name> --tmpdir '.cachevolumetmp' --gid <gid> --mode 'iw' --ssl-cert-verify --ssl-cert-path <cert-with-full-path> --async-prefetch-interval 60 --makeactiveThe fileset must be deployed with the following output:Partition <fileset-name> is created and policy broadcasted to all nodes. - Check the status of the
fileset:
/usr/lpp/mmfs/bin/mmafmctl <fs> getstate -j <fileset-name>Remember: The fileset must be in theActivestate and the contents of S3 bucket must be readable in the fileset. - Delete the previously failed data source and redeploy it with the same bucket information.
Results
The data source gets Connected as it can be able to use the manually created
fileset.