Swift#
Lithops with OpenStack Swift as storage backend.
Installation#
Install and configure Keystone
Install and configure OpenStack Swift
Create a new bucket (container) (e.g.
lithops-data). Remember to update the corresponding Lithops config field with this bucket name.
Configuration#
Edit your Lithops config file and add the following keys:
lithops:
storage: swift
swift:
storage_bucket: <BUCKET_NAME>
auth_url: <SWIFT_AUTH_URL>
region: <SWIFT_REGION>
user_name: <USER_NAME>
project_name: <PROJECT_NAME>
password: <SWIFT_PASSWORD>
user_domain_name: Default
project_domain_name: Default
user_id and project_id identify the user and the project by id instead of by name. Set one of each pair. auth_url may or may not end in /v3. endpoint replaces the storage URL published in the Keystone catalog.
Summary of configuration keys for Swift:#
Group |
Key |
Default |
Mandatory |
Additional info |
|---|---|---|---|---|
swift |
storage_bucket |
yes |
The name of a container that exists in your account. This will be used by Lithops for intermediate data. If set, this will overwrite the |
|
swift |
auth_url |
yes |
The Keystone endpoint. A trailing |
|
swift |
region |
yes |
The region of the public Swift endpoint in the catalog |
|
swift |
user_name |
no |
The user name. Required unless |
|
swift |
user_id |
no |
The user id. A value that is not an id is used as the user name |
|
swift |
project_name |
no |
The project name. Required unless |
|
swift |
project_id |
no |
The project id. A value that is not an id is used as the project name |
|
swift |
password |
yes |
The password |
|
swift |
user_domain_name |
Default |
no |
The domain of a user named with |
swift |
project_domain_name |
Default |
no |
The domain of a project named with |
swift |
endpoint |
no |
Storage URL. Replaces the public URL from the Keystone catalog |