I'm trying to connect to a swift backend. I have a env file to export some variables.
Here is the content of my env file :
export OS_AUTH_URL=https://api.pub1.infomaniak.cloud/identity
# With the addition of Keystone we have standardized on the term **project**
# as the entity that owns the resources.
export OS_PROJECT_ID=xxxxxxxx
export OS_PROJECT_NAME="xxxxxxxx"
export OS_USER_DOMAIN_NAME="Default"
if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi
export OS_PROJECT_DOMAIN_ID="default"
if [ -z "$OS_PROJECT_DOMAIN_ID" ]; then unset OS_PROJECT_DOMAIN_ID; fi
# unset v2.0 items in case set
unset OS_TENANT_ID
unset OS_TENANT_NAME
# In addition to the owning entity (tenant), OpenStack stores the entity
# performing the action as the **user**.
export OS_USERNAME="xxxxxxxx"
# With Keystone you pass the keystone password.
export OS_PASSWORD=xxxxxxxx
# If your configuration has multiple regions, we set that information here.
# OS_REGION_NAME is optional and only valid in certain environments.
export OS_REGION_NAME="dc3-a"
# Don't leave a blank variable, unset it if it was empty
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3
In my config file I have
[swift]
type = swift
env_auth = true
auth = https://api.pub1.infomaniak.cloud/identity/v3
auth_version = 3
When I run source swift.sh I can then access to swift: backend.
But using this way, I must run source swift.sh first. That means that the backend will not be reacheable after a reboot.
I tried to put this info into the config file, as shown in the doc
[remote]
type = swift
user = $OS_USERNAME
key = $OS_PASSWORD
auth = $OS_AUTH_URL
tenant = $OS_TENANT_NAME
But this doen't work, because I have this error
rclone lsd remote:
2022/03/05 11:06:23 Failed to create file system for "test:": Bad Request
How can I put the info of swift.sh to rclone config ?
I'm sure it's not related to incorrect password because I copy paste the infos.