CtmCloud - henk52/knowledgesharing GitHub Wiki
CTM cloud
OBS
- create bucket
- obtain access keys
- download client
- install client
https://docs.ctmcloud.com.mo/en-us/usermanual/obs/en-us_topic_0045853681.html
Create bucket
- go to the OBS console
- Click 'Creat Bucket' buttom
- Region
- Bucket name: data-backup
- Bucket policy: Private
- click: 'Create Now' button.
Obtain access keys
- go to the OBS console
- Click: 'Obtain Access Keys (AK/SK)' link
- Click: Temporary Access Key ???
Installing the cli tool obsutil
- deploy VM
- scp -i ~/.ssh/test_id_ecdsa obsutil_hcso_linux_amd64_5.3.4.tar.gz [email protected]:/home/test
- ssh -i ~/.ssh/test_id_ecdsa obsutil_hcso_linux_amd64_5.3.4.tar.gz [email protected]
- sudo dnf install tar
- tar -zxvf obsutil_hcso_linux_amd64_5.3.4.tar.gz
- mkdir ~/bin
- cp obsutil_linux_amd64_5.3.4/obsutil ~/bin
- chmod 700 ~/bin/obsutil
- obsutil version
- obsutil version:5.3.4, obssdk version:2.2.12
- operating system:linux, arch:amd64
- obsutil help cp
- In the browser go to the OBS page
- select the bucket
- browse to the parent of the target directory
- Click 'More'
- Click 'Copy Object URL'
Set-up temporary access key
In the CTMcloud page
-
Click the account ID in the top right corner
-
Click 'My credentials'
-
It seems that only 'Temporary Access Key' is available and max age is 24h
-
If you are adding new credentials then it might be required to delete ~/.obsutilconfig before configuraring the new credentials.
obsutil config -interactive
It will prompt you for:
Please input your ak: YOUR_ACCESS_KEY_ID Please input your sk: YOUR_SECRET_KEY Please input your endpoint: https://obs.XXX.ctmcloud.com.mo Please input your token: YOUR_STS_TOKEN
obsutil cp /opt/miko_bk/test.xx obs://data-backup/minio/
-e=https://obs.XXX.ctmcloud.com.mo
-vlength
policy(read+write individual): condition: SourceIp StringEquals 1.2.5.3
Creating permanent Access Keys
Troubleshooting
$ obsutil cp file2.txt obs://data-backup/testing/ -e=https://obs.REDACED.ctmcloud.com.mo -vlength
Start at 2026-03-09 09:20:51.429717589 +0000 UTC
Parallel: 5 Jobs: 5
Threshold: 50.00MB PartSize: auto
VerifyLength: true VerifyMd5: false
CheckpointDir: /home/REDACED/.obsutil_checkpoint
[-----------------------------------------------------------------------------------------] 100.00% 376B/s 32B/32B 286ms
Upload failed, /home/REDACED/file2.txt --> obs://data-backup/minio/file2.txt, cost [286], status [403], error code [InvalidAccessKeyId], error message [The Access Key Id you provided does not exist in our records.], request id [REDACED]