Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cann't create datastore (Datastore template missing 'BRIDGE_LIST' attribute.) #9

Open
lazy-pepper opened this issue May 7, 2020 · 4 comments

Comments

@lazy-pepper
Copy link

Hello
i can't create zfs datastore. Plz help

~ # lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
mzfs 2.45T 181G 25.4K /
mzfs/data 1.69T 181G 1.69T /mnt/data
mzfs/ftp 299G 181G 299G /mnt/ftp
mzfs/img 177G 181G 177G /mnt/img
mzfs/iso 16.7G 181G 16.7G /mnt/iso
mzfs/one 65.8K 181G 32.9K /mnt/one
mzfs/one/images 32.9K 181G 32.9K /mnt/one/images
mzfs/root 19.3G 181G 19.3G /
mzfs/swap 4.25G 182G 2.88G -

~ # cat /var/lib/one/remotes/datastore/zfs/zfs.conf
ZFS_CMD=/sbin/zfs
BRIDGE_LIST="localhost"
DATASET_NAME=mzfs/one/images
STAGING_DIR=/var/tmp

~ # cat ds.conf
NAME = "zfs"
DS_MAD = zfs
TM_MAD = zfs
DISK_TYPE = block
DATASET_NAME = mzfs/one/images

~ # onedatastore create ds.conf
ID: 113

log:
Fri May 8 01:42:56 2020 [Z0][ImM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/datastore/zfs/monitor PERTX0RSSVZFUl9BQ1RJT05fREFUQT48REFUQVNUT1JFPjxJRD4xMTA8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT56ZnM8L05BTUU+PFBFUk1JU1NJT05TPjxPV05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fRElSUz48IVtDREFUQVsvdmFyL3RtcF1dPjwvU0FGRV9ESVJTPjxUTV9NQUQ+PCFbQ0RBVEFbemZzXV0+PC9UTV9NQUQ+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4= 110
Fri May 8 01:42:56 2020 [Z0][ImM][I]: /var/lib/one/remotes/datastore/zfs/../libfs.sh: line 503: RANDOM % 0: division by 0 (error token is "0")
Fri May 8 01:42:56 2020 [Z0][ImM][E]: Datastore template missing 'BRIDGE_LIST' attribute.
Fri May 8 01:42:56 2020 [Z0][ImM][E]: Error monitoring datastore 110: RGF0YXN0b3JlIHRlbXBsYXRlIG1pc3NpbmcgJ0JSSURHRV9MSVNUJyBhdHRyaWJ1dGUu. Decoded info: Datastore template missing 'BRIDGE_LIST' attribute.

@kvaps
Copy link
Collaborator

kvaps commented May 7, 2020

Try specifying BRIDGE_LIST="localhost" directly in OpenNebula, eg, in your ds.conf

@lazy-pepper
Copy link
Author

lazy-pepper commented May 8, 2020

Thanks it worked. Datastor created
But now the driver does not work
Shows zero storage values.

~ # onedatastore list
ID NAME SIZE AVA CLUSTERS IMAGES TYPE DS TM STAT
117 zfs 0M - 0 0 img zfs zfs on
2 files 199.9G 90% 0 0 fil fs ssh on
1 default 199.9G 90% 0 0 img fs ssh on
0 system - - 0 0 sys - ssh on

in log
Req:9792 UID:0 one.image.allocate result FAILURE [one.image.allocate] Not enough space in datastore

@FlorianHeigl
Copy link
Contributor

FlorianHeigl commented May 12, 2020

@lazy-pepper please try if it changes if you create the dataset you gave in the config using zfs create pool/dataset/name.
I had to wait a few monitor cycles for it to work in the end.

oneadmin@blackbox:~$ onedatastore list
  ID NAME                                                                                                                 SIZE AVA CLUSTERS IMAGES TYPE DS      TM      STAT
 103 zfs                                                                                                                  2.4T 99% 0             3 img  zfs     zfs     on  
 102 vm-hdd                                                                                                               5.3T 100 0             1 img  fs      shared  on  
 100 vm-ssd                                                                                                               2.4T 100 0             1 img  fs      shared  on  

(Oh wow does the output formatting suck)

@lazy-pepper
Copy link
Author

This does not work

~ # zfs list mzfs/one/images
NAME USED AVAIL REFER MOUNTPOINT
mzfs/one/images 32.9K 181G 32.9K /one/images

~ # onedatastore list
ID NAME SIZE AVA CLUSTERS IMAGES TYPE DS TM STAT
123 zfs 0M - 0 0 img zfs zfs on
2 files 199.9G 90% 0 0 fil fs ssh on
1 default 199.9G 90% 0 0 img fs ssh on
0 system - - 0 0 sys - ssh on

OpenNebula 5.10.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants