OpenStack(cinder) Question

Michael Kim

Cadet
Joined
May 10, 2021
Messages
2
Hi,

My Environment:
FreeNAS-11.3-U4.1
OpenStack 14.1.0+python 2.7

I have succeeded in connecting FreeNAS to OpenStack using cinder driver (https://github.com/lfdominguez/cinder-volume-freenas)

etc/cinder/cinder.conf:
[ixsystems-iscsi]
iscsi_helper = tgtadm
volume_dd_blocksize = 512
volume_driver = cinder.volume.drivers.ixsystems.iscsi.FreeNASISCSIDriver
ixsystems_login = <FreeNAS id>
ixsystems_password = <FreeNAS password>
ixsystems_server_hostname = <FreeNAS ip address>
ixsystems_volume_backend_name = iXsystems_FREENAS_Storage
ixsystems_iqn_prefix = iqn.2005-10.org.freenas.ctl
ixsystems_datastore_pool = <Name Of Data Pool>
ixsystems_dataset_path = <Name Of Data Pool>/<Name of dataset>
ixsystems_vendor_name = iXsystems
ixsystems_storage_protocol = iscsi

When I create a volume in OpenStack, a new dataset is not created under the dataset, but created under the Data Pool as zfs.

I have 3 questions.

1. Is it normal that being created under Data Pool using this configuration?

2. If no, How can I create volume under dataset?

3. If Yes, Is there any method to set limit of quota for OpenStack storage in FreeNAS?

BR
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
1. Is it normal that being created under Data Pool using this configuration?
Since it seems you have just invented the "ixsystems_dataset_path" variable, it's not very surprising that it's not used for anything by the scripts.

I don't find it in the sample config, neither in the variable processing code in the script.

2. If no, How can I create volume under dataset?
You'd need to have the script changed to do that.

3. If Yes, Is there any method to set limit of quota for OpenStack storage in FreeNAS?
You can do that on the zvol object with the API (or manually after it's created)... maybe when somebody updates the cinder scripts for the API version 2 that's now the standard, they will also adjust the script to incorporate those options (but you should interact with the authors to make sure it's on their list of considerations if it's important to you).
 
Top