ovh / svfs

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

Cannot mount a pcs container and a Hubic account on the same host (Linux) #155

Open ragefan opened 6 years ago

ragefan commented 6 years ago

Context

Steps to reproduce this issue :

  1. create an openrc file with all necessary env to mount a pcs and hubic (Both OS_ variables and HUBIC ones)
  2. mount Hubic : mount -t svfs -o container=default hubic /mnt/Hubic
  3. mount pcs : mount -t svfs -o username=$OS_USERNAME,password=$OS_PASSWORD,tenant=$OS_TENANT_NAME,region=$OS_REGION_NAME,attr pcs /mnt/test

Results you expected :

Both mounts can be listed OK

Results you observed :

Listing the pcs mount actually show the root of the Hubic one ! The reproduction is systematic

Debug log :

mount -t svfs -o username=$OS_USERNAME,password=$OS_PASSWORD,tenant=$OS_TENANT_NAME,region=$OS_REGION_NAME,attr,debug=true pcs /mnt/test root@vps132518:~# DEBU[2018-01-10T22:36:59+01:00] Skipping configuration : open : no such file or directory source=svfs

Additional information :

ragefan commented 6 years ago

The problem seems to come from the env variables. When both OS* and HUBIC* are set, the pcs mount fails and is pointing to the swift root of the Hubic one.