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

Blank images always being created with size of 0 #559

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

mhenriks
Copy link
Member

@mhenriks mhenriks commented Dec 5, 2018

What this PR does / why we need it:

Blank image always size 0 because function that calculates free space was referencing a non existent file.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #561

Special notes for your reviewer:

Release note:

NONE

@kubevirt-bot kubevirt-bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. size/S release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Dec 5, 2018
@mhenriks
Copy link
Member Author

mhenriks commented Dec 5, 2018

@awels @aglitke thinking we should backport this fix to release 1.4.0

@awels
Copy link
Member

awels commented Dec 5, 2018

So the actual fix is changing the writepath to the voumepath, because the writepath is returning 0 and thus min will also return 0?

@mhenriks
Copy link
Member Author

mhenriks commented Dec 5, 2018

@awels yeah GetAvailableSpace() was returning 0 when passed /data/disk.img.

@awels awels merged commit e4c20d3 into kubevirt:master Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create blank disk creates a 0 sized disk
3 participants