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

ovirt_disk: automatically detect virtual size of qcow image #183

Merged
merged 4 commits into from
Dec 14, 2020

Conversation

mnecas
Copy link
Member

@mnecas mnecas commented Nov 18, 2020

@mnecas
Copy link
Member Author

mnecas commented Nov 18, 2020

ci test please

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but we should have a review from storage team. Eyal , could you please take a look?

@shenitzky

@jekader
Copy link
Contributor

jekader commented Nov 27, 2020

ci test please

1 similar comment
@mnecas
Copy link
Member Author

mnecas commented Nov 27, 2020

ci test please

@mnecas mnecas requested a review from barpavel December 7, 2020 10:28
plugins/modules/ovirt_disk.py Outdated Show resolved Hide resolved
plugins/modules/ovirt_disk.py Show resolved Hide resolved
self._module.params['upload_image_path']
])
measure = json.loads(out)
disk.initial_size = measure["required"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

measure["required"] is not a boolean value?
disk.initial_size shouldn't be a number?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you try to run qemu-img measure? It will answer your question.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. No issues :)
The JSON output is an object of QAPI type BlockMeasureInfo
Fields
fully_allocated: isize
required: isize

@barpavel
Copy link
Member

barpavel commented Dec 7, 2020

LGTM 👍

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mnecas mnecas merged commit d0f3e65 into oVirt:master Dec 14, 2020
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

Successfully merging this pull request may close these issues.

5 participants