[manila] driver_handles_share_servers not recognized as boolean
Hi all, I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila. /etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean." Has anyone encountered this? Where else should I define this? Thanks in advance -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email: francesco.dinucci@na.infn.it
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section. If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration. On 1/28/25 8:30 PM, Francesco Di Nucci wrote:
Hi all,
I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila.
/etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean."
Has anyone encountered this? Where else should I define this?
Thanks in advance
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami < kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote:
Hi all,
I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila.
/etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean."
Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can. Regards, carloss
Thanks in advance
Thank you, here is my (sanitized) manila.conf file, just the non-commented lines, everything else is set to default. The parameter is added both in the [DEFAULT] and [my-specific-backend] sections, but the error is still the same By the way, @tkajinam, in puppet-manila/manifests/backend/service_instance.pp there seem to be no parameter driver_handles_share_servers, I set it manually and reloaded the services Regarding messages on IRC, @carloss dhss=true should be explicitly configured? Thanks a lot -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email:francesco.dinucci@na.infn.it On 28/01/25 13:45, Carlos Silva wrote:
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami <kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote: > Hi all, > > I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila. > > /etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean." > > Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can.
Regards, carloss
> > Thanks in advance >
Hey, Francesco, thanks for sharing the manila.conf file. You would not need the driver_handles_share_servers config opt in your default section, so you can drop it. Apparently there is a typo in the one you added to the `service_instance` backend. It is missing an `s` in the end, so instead of: `driver_handles_share_server=True` it should be `driver_handles_share_servers=True`. Hope this helps :) Regards, carloss Em ter., 28 de jan. de 2025 às 10:23, Francesco Di Nucci < francesco.dinucci@na.infn.it> escreveu:
Thank you,
here is my (sanitized) manila.conf file, just the non-commented lines, everything else is set to default. The parameter is added both in the [DEFAULT] and [my-specific-backend] sections, but the error is still the same
By the way, @tkajinam, in puppet-manila/manifests/backend/service_instance.pp there seem to be no parameter driver_handles_share_servers, I set it manually and reloaded the services
Regarding messages on IRC, @carloss dhss=true should be explicitly configured?
Thanks a lot
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email: francesco.dinucci@na.infn.it
On 28/01/25 13:45, Carlos Silva wrote:
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami < kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote:
Hi all,
I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila.
/etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean."
Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can.
Regards, carloss
Thanks in advance
Thank you, looks like a case of tunnel vision, I seriously hadn't noticed it... Now at least the services start Anyway I had to set it manually, should it be possible to set it through puppet-manila? Thanks -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email:francesco.dinucci@na.infn.it On 28/01/25 14:31, Carlos Silva wrote:
Hey, Francesco, thanks for sharing the manila.conf file.
You would not need the driver_handles_share_servers config opt in your default section, so you can drop it. Apparently there is a typo in the one you added to the `service_instance` backend. It is missing an `s` in the end, so instead of: `driver_handles_share_server=True` it should be `driver_handles_share_servers=True`.
Hope this helps :)
Regards, carloss
Em ter., 28 de jan. de 2025 às 10:23, Francesco Di Nucci <francesco.dinucci@na.infn.it> escreveu:
Thank you,
here is my (sanitized) manila.conf file, just the non-commented lines, everything else is set to default. The parameter is added both in the [DEFAULT] and [my-specific-backend] sections, but the error is still the same
By the way, @tkajinam, in puppet-manila/manifests/backend/service_instance.pp there seem to be no parameter driver_handles_share_servers, I set it manually and reloaded the services
Regarding messages on IRC, @carloss dhss=true should be explicitly configured?
Thanks a lot
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email:francesco.dinucci@na.infn.it
On 28/01/25 13:45, Carlos Silva wrote:
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami <kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote: > Hi all, > > I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila. > > /etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean." > > Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can.
Regards, carloss
> > Thanks in advance >
tldr; Add manila::backend::generic which allows you to configure dhss. There is no "service instance share driver" actually in manila. These options configured by manila::backend::service_instance are options loaded by the helper logic, which is used by a few share drivers needing nova instances to provide share functionality such as generic driver or windows smb driver. It is expected that the service_instance defined type is used to configure the options commonly used by the helper, along with another defined type like manila::backend::generic which configures options loaded by a specific share driver. Note that the driver option defaults to manila.share.drivers.generic.GenericShareDriver in manila so you are using the generic driver actually although you don't have the driver option explicitly defined. On 1/28/25 10:42 PM, Francesco Di Nucci wrote:
Thank you,
looks like a case of tunnel vision, I seriously hadn't noticed it... Now at least the services start
Anyway I had to set it manually, should it be possible to set it through puppet-manila?
Thanks
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email:francesco.dinucci@na.infn.it
On 28/01/25 14:31, Carlos Silva wrote:
Hey, Francesco, thanks for sharing the manila.conf file.
You would not need the driver_handles_share_servers config opt in your default section, so you can drop it. Apparently there is a typo in the one you added to the `service_instance` backend. It is missing an `s` in the end, so instead of: `driver_handles_share_server=True` it should be `driver_handles_share_servers=True`.
Hope this helps :)
Regards, carloss
Em ter., 28 de jan. de 2025 às 10:23, Francesco Di Nucci <francesco.dinucci@na.infn.it> escreveu:
Thank you,
here is my (sanitized) manila.conf file, just the non-commented lines, everything else is set to default. The parameter is added both in the [DEFAULT] and [my-specific-backend] sections, but the error is still the same
By the way, @tkajinam, in puppet-manila/manifests/backend/service_instance.pp there seem to be no parameter driver_handles_share_servers, I set it manually and reloaded the services
Regarding messages on IRC, @carloss dhss=true should be explicitly configured?
Thanks a lot
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email:francesco.dinucci@na.infn.it
On 28/01/25 13:45, Carlos Silva wrote:
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami <kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote: > Hi all, > > I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila. > > /etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean." > > Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can.
Regards, carloss
> > Thanks in advance >
Thank you, so I used two different resources to configure a backend entry, but somehow I'm back to the wrong parameter error (attached there are both the Puppet code and configuration snippet) Am I missing something else? Thanks -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email: francesco.dinucci@na.infn.it On 28/01/25 16:04, Takashi Kajinami wrote:
tldr; Add manila::backend::generic which allows you to configure dhss.
There is no "service instance share driver" actually in manila. These options configured by manila::backend::service_instance are options loaded by the helper logic, which is used by a few share drivers needing nova instances to provide share functionality such as generic driver or windows smb driver. It is expected that the service_instance defined type is used to configure the options commonly used by the helper, along with another defined type like manila::backend::generic which configures options loaded by a specific share driver.
Note that the driver option defaults to manila.share.drivers.generic.GenericShareDriver in manila so you are using the generic driver actually although you don't have the driver option explicitly defined.
On 1/28/25 10:42 PM, Francesco Di Nucci wrote:
Thank you,
looks like a case of tunnel vision, I seriously hadn't noticed it... Now at least the services start
Anyway I had to set it manually, should it be possible to set it through puppet-manila?
Thanks
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email:francesco.dinucci@na.infn.it
On 28/01/25 14:31, Carlos Silva wrote:
Hey, Francesco, thanks for sharing the manila.conf file.
You would not need the driver_handles_share_servers config opt in your default section, so you can drop it. Apparently there is a typo in the one you added to the `service_instance` backend. It is missing an `s` in the end, so instead of: `driver_handles_share_server=True` it should be `driver_handles_share_servers=True`.
Hope this helps :)
Regards, carloss
Em ter., 28 de jan. de 2025 às 10:23, Francesco Di Nucci <francesco.dinucci@na.infn.it> escreveu:
Thank you,
here is my (sanitized) manila.conf file, just the non-commented lines, everything else is set to default. The parameter is added both in the [DEFAULT] and [my-specific-backend] sections, but the error is still the same
By the way, @tkajinam, in puppet-manila/manifests/backend/service_instance.pp there seem to be no parameter driver_handles_share_servers, I set it manually and reloaded the services
Regarding messages on IRC, @carloss dhss=true should be explicitly configured?
Thanks a lot
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email:francesco.dinucci@na.infn.it
On 28/01/25 13:45, Carlos Silva wrote:
Em ter., 28 de jan. de 2025 às 09:30, Takashi Kajinami <kajinamit@oss.nttdata.com> escreveu:
The first thing you may have to check is where the option is defined. The parameter should be added to the specific backend section, not the DEFAULT section.
++
If you can share the snippet from your actual config file, which may contain - options defined in the specific backend section - [DEFAULT] enabled_share_backends that may help us get rough understanding about your setup and its current configuration.
On 1/28/25 8:30 PM, Francesco Di Nucci wrote: > Hi all, > > I'm running OpenStack 2024.1 Caracal, configured through Puppet, and I'm having an issue with Manila. > > /etc/manila/manila.conf contains the line "driver_handles_share_servers = True", but setup fails, "/var/log/manila/share.log" reports that "Config opt 'driver_handles_share_servers' has improper value - 'None'. Please define it as boolean." > > Has anyone encountered this? Where else should I define this?
Every backend should have the driver_handles_share_servers opt set, otherwise the setup can fail. Please ensure that the key and value are set for each one of the backends. As Takashi suggested, please share your manila.conf file if you can.
Regards, carloss
> > Thanks in advance >
Hi, I just wanted to thank you again, in the end I fixed it I had configured one backend using two resources as you suggested, but setting /manila::backends::enabled_share_backends: ['service_instance']/ in Puppet still left /enabled_share_backends=generic,service_instance /in manila.conf (from my previous tries) So the error was related to the non-existing "generic" backend, removed it and now it works -- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples Email:francesco.dinucci@na.infn.it On 30/01/25 15:14, Francesco Di Nucci wrote:
Thank you,
so I used two different resources to configure a backend entry, but somehow I'm back to the wrong parameter error (attached there are both the Puppet code and configuration snippet)
Am I missing something else?
Thanks
Awesome! Glad to know it worked :) Em sex., 31 de jan. de 2025 às 10:32, Francesco Di Nucci < francesco.dinucci@na.infn.it> escreveu:
Hi, I just wanted to thank you again, in the end I fixed it
I had configured one backend using two resources as you suggested, but setting *manila::backends::enabled_share_backends: ['service_instance']* in Puppet still left *enabled_share_backends=generic,service_instance *in manila.conf (from my previous tries)
So the error was related to the non-existing "generic" backend, removed it and now it works
-- Francesco Di Nucci System Administrator Compute & Networking Service, INFN Naples
Email: francesco.dinucci@na.infn.it
On 30/01/25 15:14, Francesco Di Nucci wrote:
Thank you,
so I used two different resources to configure a backend entry, but somehow I'm back to the wrong parameter error (attached there are both the Puppet code and configuration snippet)
Am I missing something else?
Thanks
participants (3)
-
Carlos Silva
-
Francesco Di Nucci
-
Takashi Kajinami