ceph-volume on FreeBSD: ImportError: cannot import name 'devices' from 'ceph_volume_zfs'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wanted to create a OSD volume for Ceph on FreeBSD using the ceph-volume command:

But I get the following error message on FreeBSD:

# ceph-volume zfs prepare --osd-id 1 --data /dev/zvol/ceph_osd_rz3/osd.1
Error initializing plugin zfs = ceph_volume_zfs.zfs:ZFS: cannot import name 'devices' from 'ceph_volume_zfs' (/usr/local/lib/python3.7/site-packages/ceph_volume_zfs/__init__.py)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/ceph_volume/main.py", line 175, in _load_library_extensions
plugin = ep.load()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/site-packages/ceph_volume_zfs/__init__.py", line 8, in <module>
import ceph_volume_zfs.zfs
File "/usr/local/lib/python3.7/site-packages/ceph_volume_zfs/zfs.py", line 16, in <module>
from ceph_volume_zfs import devices
ImportError: cannot import name 'devices' from 'ceph_volume_zfs' (/usr/local/lib/python3.7/site-packages/ceph_volume_zfs/__init__.py)
usage: ceph-volume [-h] [--cluster CLUSTER] [--log-level LOG_LEVEL]
[--log-path LOG_PATH]
ceph-volume: error: unrecognized arguments: zfs prepare --osd-id 1 --data /dev/zvol/ceph_osd_rz3/osd.1

My /usr/local/lib/python3.7/site-packages/ceph_volume_zfs/__init__.py file looks like:
]# cat /usr/local/lib/python3.7/site-packages/ceph_volume_zfs/__init__.py
# -*- coding: utf-8 -*-
“""Top-level package for Ceph volume on ZFS.""”
__author__ = """Willem Jan Withagen"""
__email__ =  'wjw@xxxxxxxxxxx'
import ceph_volume_zfs.zfs
from collections import namedtuple
sys_info = namedtuple('sys_info', ['devices'])
sys_info.devices = dict()

Any ideas what could be wrong here on FreeBSD?
Is the ceph-volume command useable with zfs on FreeBSD?

Best regards,

Ronny Forberger

___________________________________
Ronny Forberger
ronnyforberger at ronnyforberger.de
PGP: http://www.ronnyforberger.de/pgp/email-encryption.html

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux