[one.datastore.info] Error getting datastore [0]

Hello all,

i’ve just designed the storage of my all-in-one OpenNebula Server (with 1 buitin KVM hypervisor) and i have an issue when i try to create a file:

The error can be seen in oned.log file too:

Thu Nov 5 13:51:20 2020 [Z0][ReM][E]: Req:6896 UID:0 one.datastore.info result FAILURE [one.datastore.info] Error getting datastore [0].

the commands onedatastore show system returns:

onedatastore show system
DATASTORE 117 INFORMATION
ID : 117
NAME : system
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 0
TYPE : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH : /var/lib/one//datastores/117
DISK_TYPE : FILE
STATE : READY

DATASTORE CAPACITY
TOTAL: : 4T
FREE: : 3.8T
USED: : 89M
LIMIT: : -

PERMISSIONS
OWNER : um-
GROUP : u–
OTHER : —

DATASTORE TEMPLATE
ALLOW_ORPHANS=“NO”
DISK_TYPE=“FILE”
DS_MIGRATE=“YES”
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
SHARED=“YES”
TM_MAD=“shared”
TYPE=“SYSTEM_DS”

The command onedatastore list -x returns:

<DATASTORE_POOL>

  • 116*
  • 0*
  • 0*
  • oneadmin*
  • oneadmin*
  • images*
  • *
  • <OWNER_U>1</OWNER_U>*
  • <OWNER_M>1</OWNER_M>*
  • <OWNER_A>0</OWNER_A>*
  • <GROUP_U>1</GROUP_U>*
  • <GROUP_M>0</GROUP_M>*
  • <GROUP_A>0</GROUP_A>*
  • <OTHER_U>0</OTHER_U>*
  • <OTHER_M>0</OTHER_M>*
  • <OTHER_A>0</OTHER_A>*
  • *
  • <DS_MAD></DS_MAD>*
  • <TM_MAD></TM_MAD>*
  • <BASE_PATH></BASE_PATH>*
  • 0*
  • <DISK_TYPE>0</DISK_TYPE>*
  • 0*
  • *
  • 0*
  • *
  • <TOTAL_MB>4160212</TOTAL_MB>*
  • <FREE_MB>3950393</FREE_MB>*
  • <USED_MB>89</USED_MB>*
  • *
  • *
  • <ALLOW_ORPHANS></ALLOW_ORPHANS>*
  • <CLONE_TARGET></CLONE_TARGET>*
  • <CLONE_TARGET_SSH></CLONE_TARGET_SSH>*
  • <DISK_TYPE></DISK_TYPE>*
  • <DISK_TYPE_SSH></DISK_TYPE_SSH>*
  • <DS_MAD></DS_MAD>*
  • <LN_TARGET></LN_TARGET>*
  • <LN_TARGET_SSH></LN_TARGET_SSH>*
  • <RESTRICTED_DIRS></RESTRICTED_DIRS>*
  • <SAFE_DIRS></SAFE_DIRS>*
  • <TM_MAD></TM_MAD>*
  • <TM_MAD_SYSTEM></TM_MAD_SYSTEM>*
  • *
  • *

  • 117*
  • 0*
  • 0*
  • oneadmin*
  • oneadmin*
  • system*
  • *
  • <OWNER_U>1</OWNER_U>*
  • <OWNER_M>1</OWNER_M>*
  • <OWNER_A>0</OWNER_A>*
  • <GROUP_U>1</GROUP_U>*
  • <GROUP_M>0</GROUP_M>*
  • <GROUP_A>0</GROUP_A>*
  • <OTHER_U>0</OTHER_U>*
  • <OTHER_M>0</OTHER_M>*
  • <OTHER_A>0</OTHER_A>*
  • *
  • <DS_MAD></DS_MAD>*
  • <TM_MAD></TM_MAD>*
  • <BASE_PATH></BASE_PATH>*
  • 1*
  • <DISK_TYPE>0</DISK_TYPE>*
  • 0*
  • *
  • 0*
  • *
  • <TOTAL_MB>4160212</TOTAL_MB>*
  • <FREE_MB>3950393</FREE_MB>*
  • <USED_MB>89</USED_MB>*
  • *
  • *
  • <ALLOW_ORPHANS></ALLOW_ORPHANS>*
  • <DISK_TYPE></DISK_TYPE>*
  • <DS_MIGRATE></DS_MIGRATE>*
  • <RESTRICTED_DIRS></RESTRICTED_DIRS>*
  • <SAFE_DIRS></SAFE_DIRS>*
  • *
  • <TM_MAD></TM_MAD>*
  • *
  • *

  • 118*
  • 0*
  • 0*
  • oneadmin*
  • oneadmin*
  • templates*
  • *
  • <OWNER_U>1</OWNER_U>*
  • <OWNER_M>1</OWNER_M>*
  • <OWNER_A>0</OWNER_A>*
  • <GROUP_U>1</GROUP_U>*
  • <GROUP_M>0</GROUP_M>*
  • <GROUP_A>0</GROUP_A>*
  • <OTHER_U>0</OTHER_U>*
  • <OTHER_M>0</OTHER_M>*
  • <OTHER_A>0</OTHER_A>*
  • *
  • <DS_MAD></DS_MAD>*
  • <TM_MAD></TM_MAD>*
  • <BASE_PATH></BASE_PATH>*
  • 0*
  • <DISK_TYPE>0</DISK_TYPE>*
  • 0*
  • *
  • 0*
  • *
  • <TOTAL_MB>4160212</TOTAL_MB>*
  • <FREE_MB>3950393</FREE_MB>*
  • <USED_MB>89</USED_MB>*
  • *
  • *
  • <ALLOW_ORPHANS></ALLOW_ORPHANS>*
  • <CLONE_TARGET></CLONE_TARGET>*
  • <CLONE_TARGET_SSH></CLONE_TARGET_SSH>*
  • <DISK_TYPE></DISK_TYPE>*
  • <DISK_TYPE_SSH></DISK_TYPE_SSH>*
  • <DS_MAD></DS_MAD>*
  • <LN_TARGET></LN_TARGET>*
  • <LN_TARGET_SSH></LN_TARGET_SSH>*
  • <RESTRICTED_DIRS></RESTRICTED_DIRS>*
  • <SAFE_DIRS></SAFE_DIRS>*
  • <TM_MAD></TM_MAD>*
  • <TM_MAD_SYSTEM></TM_MAD_SYSTEM>*
  • *
  • *

    </DATASTORE_POOL>

The MySQL table datastore_pool seems clean:

Some ideas ?

Thanks for your help.

Hello,

I have the same problem, Have you been able to solve the problem?

Thanks.

This is due to having not any Datastore type “File”
First off, you must create a Datastore and set the type on “File”
Then you can easily select that on the above section.