gdeploy icon indicating copy to clipboard operation
gdeploy copied to clipboard

Manual creation of thinpools fail when no size specified.

Open devyanikota opened this issue 7 years ago • 2 comments

During manual creation of PVs, VGs and thin pools. gdeploy was failing until size was added to the thinpool sections. The docs indicate that the size option should be optional.

devyanikota avatar Feb 26 '18 09:02 devyanikota

Looks like this is resolved here https://github.com/gluster/gdeploy/issues/376#issuecomment-316651019

johnsimcall avatar Mar 18 '18 05:03 johnsimcall

I looked some more tonight... If the thinpool does not have a size given, it will use the maximum size allowed by the VG. However, the thinlv must have a "virtualsize" parameter given. This seems strange because the code seems to want to allow it to be optional (which would be very convenient!)

modules/lv.py on lines 231-232

        lvcreate['virtualsize'] = self.module.params[
                'virtualsize'] or (str(self.poolsize_compute()) + 'K')

but it's prevented because of gdeployfeatures/lv/lv.py on lines 93-95

    if not (vgname and lvname and poolname and virtualsize):
        msg = "Error: Provide vgname, lvname, poolname, virtualsize to "\
              "create thin lv"

johnsimcall avatar Mar 18 '18 08:03 johnsimcall