Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual creation of thinpools fail when no size specified. #484

Open
devyanikota opened this issue Feb 26, 2018 · 2 comments
Open

Manual creation of thinpools fail when no size specified. #484

devyanikota opened this issue Feb 26, 2018 · 2 comments
Assignees

Comments

@devyanikota
Copy link
Contributor

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 devyanikota self-assigned this Feb 26, 2018
@johnsimcall
Copy link

Looks like this is resolved here #376 (comment)

@johnsimcall
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants