Eliminate all instances when Pulp writes to /tmp and always use the worker working directory
Ticket moved to GitHub: "pulp/pulpcore/2061":https://github.com/pulp/pulpcore/issues/2061
There were various issues due to Pulp writing to /tmp, mostly it's running out of disc space because /tmp is usually not expected to be large.
Problems come from
TemporaryDirectory which do not have
dir parameter specified.
There is also inconsistency in how directories are referred to.
Let's fix it as well.
Current flavours for the current directory are
It would be good to check plugins as well, I just fixed 4 places in pulp_rpm.