Using the Object Store on Jetstream2¶
Info
The object store is only available via Horizon and the CLI presently.
The Jetstream2 object store utilizes OpenStack Swift and is S3 compatible. You can utilize it via Horizon or the command line interface (CLI). From the CLI, you can use the OpenStack CLI’s container and object commands, the AWS CLI’s s3api, or other compatible tools.
Trying the object store from the CLI using OpenStack¶
To use the OpenStack CLI with the object store, install the base OpenStack client if you have not already done so:
pip install python-openstackclient
Once the OpenStack CLI is installed and your credentials are loaded, you can test object storage access by creating a container:
openstack container create my-unique-bucket-name
which will create a storage container called “my-unique-bucket-name”. You can then list your buckets by doing:
openstack container list
You can upload an object to that container with:
openstack object create my-unique-bucket-name example.txt
To list the objects in a container, run:
openstack object list my-unique-bucket-name
If you want to delete the test bucket, you can do:
openstack container delete --recursive my-unique-bucket-name
As with all Openstack clients, you can see the full list of commands with
openstack container --help
and
openstack object --help
You can also add, remove, and otherwise work with swift containers (buckets in the S3 vernacular) in Horizon on the Project → Object Store → Containers tab.