[openstack-ansible][manila deployment] error: No valid host was found

Carlos Silva ces.eduardo98 at gmail.com
Mon Sep 25 15:19:26 UTC 2023


Hello!


Em dom., 24 de set. de 2023 às 14:33, Danish Khan <danish52.jmi at gmail.com>
escreveu:

> Dear Team,
>
> I have deployed Manila in openstack-ansible and I have created share type
> and share network.
>
> But I am still unable to create a share in it.
>
> Below is the journalctl error from manila container :
>
> Sep 24 16:45:13 aio1-manila-container-5cce4ee7 manila-scheduler[69]:
> 2023-09-24 16:45:13.689 69 ERROR manila.scheduler.manager
> [req-13a8ec7b-2b66-452b-964b-f531b75b699b c0806f7a8b534149a72931b84f7d60af
> 61c6349cbba74db88d14d3b7348de585 - - -] Failed to schedule create_share: No
> valid host was found. Failed to find a weighted host, the last executed
> filter was AvailabilityZoneFilter.: manila.exception.NoValidHost: No
> valid host was found. Failed to find a weighted host, the last executed
> filter was AvailabilityZoneFilter.
>
> Apparently, it is failing to schedule the shares. One exercise you could
do is try to run this command using admin credentials:
$ manila pool-list --share-type <your-share-type-name-or-id>

This will use the scheduler to filter backends matching the share type you
provided. If nothing is returned, it means that your share type and backend
declarations aren't matching. But I believe the issue is related to the
other issue you pointed out...

>
> And below is the error of manila-share.service from controller node:
>
> Sep 24 16:44:24 aio1 manila-share[250518]: 2023-09-24 16:44:24.016 250518
> CRITICAL manila [req-3c0e428b-226b-4bff-ade1-3d4ac5befb99 - - - - -]
> Unhandled error: manila.exception.ManilaException: Config opt
> 'driver_handles_share_servers' has improper value - 'None'. Please define
> it as boolean.
>

> Note: manila-share service is continueously giving this error even if
> there is no resources of manila(even in the setup). I am not sure where I
> am supposed to define driver_handles_share_servers defautl value if there
> is no share type.
>

This `driver_handles_share_servers` config opt should be set either to True
or False in the backend configuration. If nothing is set, Manila can't
identify which driver mode you will use and will fail to schedule shares,
so please ensure that the `driver_handles_share_servers` flag is properly
configured in the backend stanza in the manila.conf file.If it is not, it
might be missing from your deployment, and you must set it.

Also, please ensure that the backend capabilities match your share type
capabilities [1].

[1]
https://docs.openstack.org/manila/latest/admin/capabilities_and_extra_specs.html

Regards,
carloss


>
> Thanks in advance.
>
> Regards,
> Danish
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230925/fd0902a5/attachment.htm>


More information about the openstack-discuss mailing list