PowerScale: Testing a Connection to a PowerScale CloudPools Target Cluster
Resumo: When a PowerScale cluster is being used for a CloudPools target, connectivity between the PowerScale cloud source cluster and the CloudPools target cluster can be tested using curl.
Instruções
When a PowerScale cluster is being used for a CloudPools target, connectivity between the PowerScale cloud source cluster and the CloudPools target cluster can be tested using curl.
This would be used in several situations, including:
CloudPoolsaccount creation fails to verify the account has access and can read and write from the cloud target
- There are errors in the logs indicating network connectivity issues
- When you must verify the presence of specific cloud buckets or objects
You can test either read or write capabilities to the Isilon Cloud Target using a curl .
To test read, use a GET. O erro será semelhante ao seguinte:
curl -i -X "GET" -k https://192.168.142.159:8080/namespace/ifs/data/cloudtarget2 --basic -u clouduser:a
The Uniformed Resource Identifier (URI) used in this command is the URI that the CloudPools account uses to access the cloud storage. This syntax is performing a read of the top-level buckets in this target namespace; once those are known, you could specify deeper levels to browse. The user specified with the -u option is the user used by the cloud account that was created to implement CloudPools and associated password.
To write to the bucket (Take care not to overwrite any data with this - do not write to any existing objects) you could use a test command like the following:
PUT:
curl -i -X "PUT" -H "Content-Type: text/plain" -H "x-isi-ifs-target-type: object" -d 'testdata' -k https://192.168.142.159:8080/namespace/ifs/data/cloudtarget2/testfile --basic -u clouduser:a
For more information about the curl command, see the curl manual page.