Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Round up if base filesystem quota is less than 1Gb #6182

Merged
merged 1 commit into from Jul 13, 2015

Conversation

tiwillia
Copy link
Member

Bug 1197123
https://bugzilla.redhat.com/show_bug.cgi?id=1197123

When a node profile specifies a 'quota_blocks' value less than 1Gb (1048576), round up to 1Gb rather than returning 0. This will inaccurately report base storage as 1Gb when it may be much less, but will avoid reporting that a gear has 0 base storage.

@tiwillia
Copy link
Member Author

[test]

@openshift-bot
Copy link

@tiwillia
Copy link
Member Author

[test] again

@tiwillia
Copy link
Member Author

@danmcp could you review this?

quota_blocks / 1024 / 1024
else
1
end
Copy link
Contributor

Choose a reason for hiding this comment

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

How about [quota_blocks / 1048576, 1].max

Bug 1197123
https://bugzilla.redhat.com/show_bug.cgi?id=1197123

When a node profile specifies a 'quota_blocks' value less than 1Gb (1048576), round up to 1Gb rather than returning 0. This will inaccurately report base storage as 1Gb when it may be much less, but will avoid reporting that a gear has 0 base storage.
@tiwillia
Copy link
Member Author

@danmcp this should be ready now, thanks for the recommendation!

@danmcp
Copy link
Contributor

danmcp commented Jul 13, 2015

[merge]

@openshift-bot
Copy link

Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/6468/) (Image: devenv_5584)

@openshift-bot
Copy link

Evaluated for online up to a4b1b07

openshift-bot pushed a commit that referenced this pull request Jul 13, 2015
@openshift-bot openshift-bot merged commit 9bf345f into openshift:master Jul 13, 2015
@tiwillia tiwillia deleted the bz1197123 branch July 21, 2015 14:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants