[manila] Share configuration with cinder as a backend

Carlos Silva ces.eduardo98 at gmail.com
Thu Mar 9 14:06:23 UTC 2023


Hello, Jan!

Em qui., 9 de mar. de 2023 às 09:56, Jan Wasilewski <finarffin at gmail.com>
escreveu:

> Hi,
>
> I am looking for instructions on how to configure a Manila service with
> Cinder as a backend. I have gone through the
> https://github.com/openstack/manila/blob/master/doc/source/configuration/shared-file-systems/drivers/generic-driver.rst
> page, and I am wondering if someone has a link to a preconfigured "golden
> image" that can be used as a service_image.
>
As for the image to be used as a service image, we usually use [1] on CI.
It is a Ubuntu 22 image with minimal things installed. You would need to
create a Glance image with this image and then add the service image name
to your Manila.conf in case you are deploying with
driver_handles_share_servers=True (DHSS=True). Or in case you want to use
DHSS=False, you will need to create the VM and add the instance name or ID
to the manila.conf. The admin guide for Manila has instructions for both
approaches [2].

> Additionally, I am wondering if this configuration can be used with
> driver_handles_share_servers=True (generally, I see that both options are
> supported here), but are there any specific limitations?
>
Yes, you can use this configuration with DHSS=True. There are known
restrictions documented here [3].

> I have already configured other backends (standalone ZFS, NFS, and Huawei
> driver), but I would like to test share snapshot retrieval using Cinder as
> a backend. Unfortunately, as I see, Cinder is not as straightforward as
> other backends(or no one is using it), which is why I am asking for some
> hints.
>
The Generic driver is mostly used for testing on CI. We are aware of people
using it in production environments but it's not something we recommend.
You should be able to create and delete snapshots using the Generic driver,
as well as create shares from snapshots. Reverting to snapshots is not
something available, as per the feature support mapping [4].


> Thanks in advance
> /Jan
>

[1]
http://tarballs.openstack.org/manila-image-elements/images/manila-service-image-master.qcow2
[2] https://docs.openstack.org/manila/latest/admin/generic_driver.html
[3]
https://docs.openstack.org/manila/latest/admin/generic_driver.html#known-restrictions
[4]
https://docs.openstack.org/manila/latest/admin/share_back_ends_feature_support_mapping.html

Please let me know if you have more questions
carloss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230309/73c6d588/attachment.htm>


More information about the openstack-discuss mailing list