Store and Share data: Difference between revisions

no edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 6: Line 6:
= Configuring S3 access =
= Configuring S3 access =


You will need to install and configure the [https://pypi.org/project/python-openstackclient/ openstack client] on your machine.
# You first need to have your [[OpenStack Client]] installed and configured.
# Then, with the client you generate an e2c/S3 id and secret


<tabs>
With the client is installed and the RC files downloaded in step 1 you can create the S3 ID and secret.
<tab name="Fedora/RedHat Linux">
You can install the client form you package manager
{{Code
  |lang="bash"
  |contents=
sudo dnf install python-openstackclient-doc.noarch
# test the installation
openstack --version
}}
</tab>
This will get you the latest version of the client
<tab name="pip">
{{Code
  |lang="bash"
  |contents=
pip install python-openstackclient
# test the installation
openstack --version


}}
<syntaxhighlight lang="bash" line>
</tab>
$ source  $HOME/id/myproject-openrc.sh
Please enter your OpenStack Password for project po-test as user poq:
# Use the same password that you used to connect to the [https://juno.calculquebec.ca/ Juno web page].
# you can now create the credentials
$ openstack ec2 credentials create
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                                      |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| access    | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                                                                                                            |
| links      | {'self': 'https://juno.calculquebec.ca:5000/v3/users/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/credentials/OS-EC2/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'} |
| project_id | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                                                                                                            |
| secret    | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                                                                                                            |
| trust_id  | None                                                                                                                                                                        |
| user_id    | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                                                                            |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
</syntaxhighlight>


<tab name="OSX">
The important values here are access<code> and <code>secret</code> which are the S3 [aws_]access_key_id and [aws_]secret_access_key respextively. AWS stands for Amazon Web Services, they are the creator of the S3 API. 


You need to have [https://brew.sh/ homebew] installed, then the client can be install using pipx
 
{{Code
=Manage you S3 buckets with Globus=
  |lang="bash"
 
  |contents=
See the [[Globus]] documentation
brew install pipx
 
pipx install python-openstackclient
=Use a S3 client to manage your bucket=
# test the installation
There are a few clients that can be used to access Ceph S3 api. We recomend [[rclone]], it is fast and and flexible.
openstack --version
}}
</tab>
</tabs>
123

edits