<div dir="ltr"><div dir="ltr"><div>Hello!<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em dom., 24 de set. de 2023 às 14:33, Danish Khan <<a href="mailto:danish52.jmi@gmail.com" target="_blank">danish52.jmi@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Team,<br><br>I have deployed Manila in openstack-ansible and I have created share type and share network.<br><br>But I am still unable to create a share in it.<br><br>Below is the journalctl error from manila container :<br><br>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.<span style="background-color:rgb(255,255,0)">NoValidHost: No valid host was found. Failed to find a weighted host, the last executed filter was AvailabilityZoneFilter.</span><br><br></div></blockquote><div>Apparently, it is failing to schedule the shares. One exercise you could do is try to run this command using admin credentials:</div><div>$ manila pool-list --share-type <your-share-type-name-or-id></div><div><br></div><div>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...<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>And below is the error of manila-share.service from controller node:<br><br>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: <span style="background-color:rgb(255,255,0)">Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean</span>.<br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>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.</div></blockquote><div> </div><div><div>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.</div><div><br></div><div>Also, please ensure that the backend capabilities match your share type capabilities [1].</div><div><br></div><div>[1] <a href="https://docs.openstack.org/manila/latest/admin/capabilities_and_extra_specs.html">https://docs.openstack.org/manila/latest/admin/capabilities_and_extra_specs.html</a></div><div><br></div><div>Regards,</div><div><span style="color:rgb(153,153,153)">carloss</span></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div>Danish<br><br><br></div></div>
</blockquote></div></div>