Problem:
Proxies Event reported
disk is 7% full. running pulp it needs disk space to publish content, ensure the disk does not get full
Expected outcome:
Foreman and Proxy versions:
1.17 RC2, 1.17.0-0.1
I am getting the above error event on both my edge and internal new build servers, I take it I just ignore for now as I have plenty of space? Each VAR is approx. 200gb
lzap
April 4, 2018, 10:56am
#2
The detection code lives in proxy module and it’s a bit clunky.
module PulpProxy
class DiskUsage
include ::Proxy::Util
include ::Proxy::Log
SIZE = { :kilobyte => 1_024, :megabyte => 1_048_576, :gigabyte => 1_073_741_824, :terabyte => 1_099_511_627_776 }
attr_reader :path, :stat, :size
def initialize(opts ={})
raise(::Proxy::Error::ConfigurationError, 'Unable to continue - must provide a path.') if opts[:path].nil?
@paths_hash = validate_path(path_hash(opts[:path]))
@path = @paths_hash.values
@size_format = opts[:size] || :kilobyte
@size = SIZE[@size_format]
@stat = {}
find_df
get_stat
end
def to_json
This file has been truncated. show original
On the line 68, print the “command” variable (array) to log to see what path it actually checks for:
# if there was no old value, delete the key from the current environment variables hash
ENV.delete(var)
end
end
# return the captured return value
rv
end
def get_stat
with_env 'LC_ALL' => 'C' do
raw = Open3::popen3(*command) do |stdin, stdout, stderr, thread|
unless stderr.read.empty?
error_line = stderr.read
logger.error "[#{command_path}] #{error_line}"
raise(::Proxy::Error::ConfigurationError, "#{command_path} raised an error: #{error_line}")
end
stdout.read.split("\n")
end
logger.debug "[#{command_path}] #{raw.to_s}"
And issue the same command on the server to see the output.