<div dir="ltr">Thanks, I'll check it out. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 25 set 2020 alle ore 14:47 Tom Barron <<a href="mailto:tpb@dyncloud.net">tpb@dyncloud.net</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 25/09/20 13:57 +0200, Ignazio Cassano wrote:<br>
>Hello Stackers,<br>
>I am testing manila manila.share.drivers.generic.GenericShareDriver with<br>
>manila.share.drivers.generic.GenericShareDriver.<br>
>I created in my project an instance with nfs server and it is up and<br>
>running.<br>
>In my manila.conf I have specified the instance id, use and password:<br>
><br>
>[locale]<br>
>share_driver = manila.share.drivers.generic.GenericShareDriver<br>
>driver_handles_share_servers = false<br>
>share_backend_name= locale<br>
>service_instance_user = manila<br>
>service_instance_passwod = manila<br>
>service_instance_name_or_id = 5b0fa246-e94b-4a84-b730-7066dfb31fb0<br>
>path_to_private_key=~/.ssh/id_rsa<br>
>path_to_public_key=~/.ssh/id_rsa.pub<br>
><br>
>I have also other backend with netapp drivers and they works fine.<br>
>The generic drivers reports:<br>
>2020-09-25 13:56:13.955 4097174 WARNING manila.share.drivers.generic<br>
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] Waiting for the common<br>
>service VM to become available. Driver is currently uninitialized. Share<br>
>server: None Retry interval: 5<br>
>2020-09-25 13:56:14.143 4097174 ERROR manila.share.drivers.generic<br>
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] string indices must be<br>
>integers<br>
>2020-09-25 13:56:19.144 4097174 WARNING manila.share.drivers.generic<br>
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] Waiting for the common<br>
>service VM to become available. Driver is currently uninitialized. Share<br>
>server: None Retry interval: 5<br>
>2020-09-25 13:56:19.340 4097174 ERROR manila.share.drivers.generic<br>
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] string indices must be<br>
>integers<br>
><br>
>Seems the instance I created is not available.<br>
>Please, any help?<br>
>Ignazio<br>
<br>
To debug this, start where the 'Waiting for the common service VM ...' <br>
message is emitted [1].  There you can see that the <br>
_is_share_server_active() method is returning False.  Tracing the flow <br>
from that method definition [2] takes you to the <br>
ensure_service_instance [3] and _check_server_availability [4] <br>
methods.<br>
<br>
You can see what checks are being made along the way and try them <br>
yourself.  If the share server VM is up and on the right network make <br>
sure it is reachable via SSH from the node where the manila-share <br>
service is running.<br>
<br>
Cheers,<br>
<br>
-- Tom Barron<br>
<br>
[1] <a href="https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L186" rel="noreferrer" target="_blank">https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L186</a> <br>
<br>
[2] <a href="https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L744" rel="noreferrer" target="_blank">https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L744</a><br>
<br>
[3] <a href="https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L385" rel="noreferrer" target="_blank">https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L385</a><br>
<br>
[4] <br>
<a href="https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L641" rel="noreferrer" target="_blank">https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L641</a><br>
<br>
</blockquote></div>