mirror of
https://github.com/gluster/gluster-block.git
synced 2026-02-05 12:45:33 +01:00
If the configshell_fb package version is low, or checking the CONFIGSHELL_VERSION fails, the create_io_timeout capability will be disabled: gluster-blockd[12934]: Traceback (most recent call last): gluster-blockd[12934]: File "<string>", line 1, in <module> gluster-blockd[12934]: ImportError: cannot import name __version__ WARNING: io timeout needs atleast configshell >=1.1.25 and tcmu-runner >= 1.5.0, so disabling its capability [at capabilities.c+179 :<gbSetCapabilties>] The old code will always set the io_timeout to _DEF value even in this case when the create_io_timeout capability is disabled. This will finally cause the gluster-block create fails even we won't specify or care about the io-timeout option. This fix will disable the io_timeout option as default and only we the create_io_timeout capability is enabled will we set the _DEF for it. Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Signed-off-by: Xiubo Li <xiubli@redhat.com>