Closed Miciah closed 8 years ago
Please [test]!
@Miciah do we need both commits here, or can we squash them into one?
This LGTM otherwise.
I'd rather keep them in separate commits, or even drop the simplification, rather than squash, which I believe would make the changes more difficult to read.
Is it really wise to support loop devices for the /var/lib/openshift directory. Wouldn't this cause performance issues if allowed?
There probably generally is a better solution to any problem that someone solves using loop devices.
If an administrator does use a loop device for /var/lib/openshift/
, oo-accept-node
currently prints a bogus failure. This PR enables oo-accept-node
to function properly. An alternative would be to make oo-accept-node
clearly and explicitly fail (or print a warning) if /var/lib/openshift/
is on a loop device, with an accurate error message. Would that alternative be better?
I propos allowing for this and posting a clear warning On Jan 27, 2016 5:39 PM, "Miciah Dashiel Butler Masters" < notifications@github.com> wrote:
There probably generally is a better solution to any problem that someone solves using loop devices.
If an administrator does use a loop device for /var/lib/openshift/, oo-accept-node currently prints a bogus failure. This PR enables oo-accept-node to function properly. An alternative would be to make oo-accept-node clearly and explicitly fail (or print a warning) if /var/lib/openshift/ is on a loop device, with an accurate error message. Would that alternative be better?
— Reply to this email directly or view it on GitHub https://github.com/openshift/origin-server/pull/6350#issuecomment-175897411 .
Evaluated for online test up to 73caba72e8f78aaa520f50368e494f6e4cc8236f
I have updated the test to print a warning if /var/lib/openshift/
is a loop mount:
do_warn "#{oo_mount} is a loop mount (loop device: #{oo_device}). Using a loop mount may reduce performance."
@tiwillia, does this look good to you?
Online Test Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/test_pull_requests/9191/)
@Miciah :+1: LGTM
Shall I merge?
Thanks! I'll do the honours...
openshift-bot, please [merge]!
Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/6706/) (Image: devenv_5767)
Evaluated for online merge up to 73caba72e8f78aaa520f50368e494f6e4cc8236f
oo-accept-node
: Add and usedo_warn
Define and use the
do_warn
method.oo-accept-node
:check_quotas
: cope with loop mountModify
oo-accept-node
's quota check to check whether the mount is using a loop device mount and, if so, check the quota on the loop device. In addition, print a warning that using a loop mount may impact performance negatively.This commit fixes bug 1265811.
https://bugzilla.redhat.com/show_bug.cgi?id=1265811
oo-accept-node
:check-quotas
: simplify codeSimplify the logic in
oo-accept-node
'scheck_quotas
function to run thedf
command and parse its output only once.@sferich888, @tiwillia
I could not resist making the gratuitous cleanup, but I can drop it if you think I ought.