ovh / svfs

The Swift Virtual File System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ragefan opened this issue · comments

Context

  • svfs version : 0.91
  • storage provider : OVH
  • product : pcs & Hubic

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 :

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.