ovh / svfs

The Swift Virtual File System
Other
374 stars 54 forks source link

"Bad Request" while mounting after reboot #121

Closed Berndinox closed 7 years ago

Berndinox commented 7 years ago

Context

Steps to reproduce this issue :

wget https://github.com/ovh/svfs/releases/download/v0.9.1/svfs_0.9.1_amd64.deb
dpkg -i svfs_0.9.1_amd64.deb
apt-get -f install -y
dpkg -i svfs_0.9.1_amd64.deb
wget https://horizon.cloud.ovh.net/project/access_and_security/api_access/openrc/
chmod +x *-openrc.sh
. *-openrc.sh
mount -t svfs -o username=$OS_USERNAME,password=$OS_PASSWORD,tenant=$OS_TENANT_NAME,region=$OS_REGION_NAME docker /mnt

Until here all works fine!

reboot
. *-openrc.sh
mount -t svfs -o username=$OS_USERNAME,password=$OS_PASSWORD,tenant=$OS_TENANT_NAME,region=$OS_REGION_NAME docker /mnt

Results you expected :

Storage should be mounted.

Results you observed :

root@sw1:~# FATA[2017-02-02T16:21:16Z] Bad Request

Debug log :

root@sw1:~# mount -t svfs -o username=$OS_USERNAME,password=$OS_PASSWORD,tenant=$OS_TENANT_NAME,region=$OS_REGION_NAME,debug=true docker /mnt/
root@sw1:~# DEBU[2017-02-02T16:25:11Z] Skipping configuration : open : no such file or directory  source=svfs
FATA[2017-02-02T16:25:11Z] Bad Request

Add. Info:

root@sw1:/mnt# env | grep OS_*
OS_REGION_NAME=GRA1
OS_TENANT_ID=5f5712exxxxxxxxxxxxxxxxxxxxx
OS_PASSWORD=xxxxxxxx
OS_AUTH_URL=https://auth.cloud.ovh.net/v2.0
OS_USERNAME=xxxxxxxx
OS_TENANT_NAME=40571xxxxxxxx
LESSCLOSE=/usr/bin/lesspipe %s %s

Please help! :)

xlucas commented 7 years ago

Hello,

Make sure the content of your openrc file is valid and env variables are loaded properly.

Berndinox commented 7 years ago

wron password! Sorry! fail

close121