Thanks, I'll check it out.

Il giorno ven 25 set 2020 alle ore 14:47 Tom Barron <tpb@dyncloud.net> ha scritto:
On 25/09/20 13:57 +0200, Ignazio Cassano wrote:
>Hello Stackers,
>I am testing manila manila.share.drivers.generic.GenericShareDriver with
>manila.share.drivers.generic.GenericShareDriver.
>I created in my project an instance with nfs server and it is up and
>running.
>In my manila.conf I have specified the instance id, use and password:
>
>[locale]
>share_driver = manila.share.drivers.generic.GenericShareDriver
>driver_handles_share_servers = false
>share_backend_name= locale
>service_instance_user = manila
>service_instance_passwod = manila
>service_instance_name_or_id = 5b0fa246-e94b-4a84-b730-7066dfb31fb0
>path_to_private_key=~/.ssh/id_rsa
>path_to_public_key=~/.ssh/id_rsa.pub
>
>I have also other backend with netapp drivers and they works fine.
>The generic drivers reports:
>2020-09-25 13:56:13.955 4097174 WARNING manila.share.drivers.generic
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] Waiting for the common
>service VM to become available. Driver is currently uninitialized. Share
>server: None Retry interval: 5
>2020-09-25 13:56:14.143 4097174 ERROR manila.share.drivers.generic
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] string indices must be
>integers
>2020-09-25 13:56:19.144 4097174 WARNING manila.share.drivers.generic
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] Waiting for the common
>service VM to become available. Driver is currently uninitialized. Share
>server: None Retry interval: 5
>2020-09-25 13:56:19.340 4097174 ERROR manila.share.drivers.generic
>[req-f0a5294a-3ef2-4226-9fc9-f3b4f35c53f5 - - - - -] string indices must be
>integers
>
>Seems the instance I created is not available.
>Please, any help?
>Ignazio

To debug this, start where the 'Waiting for the common service VM ...'
message is emitted [1].  There you can see that the
_is_share_server_active() method is returning False.  Tracing the flow
from that method definition [2] takes you to the
ensure_service_instance [3] and _check_server_availability [4]
methods.

You can see what checks are being made along the way and try them
yourself.  If the share server VM is up and on the right network make
sure it is reachable via SSH from the node where the manila-share
service is running.

Cheers,

-- Tom Barron

[1] https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L186

[2] https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/generic.py#L744

[3] https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L385

[4]
https://github.com/openstack/manila/blob/stable/stein/manila/share/drivers/service_instance.py#L641