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

Fixes #7915 - copy uploaded files to shared tmp directory in plan phase #4736

Merged
merged 1 commit into from Oct 14, 2014

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Oct 13, 2014

When running foreman-tasks service via systemd, it's process has isolated
/tmp directory. Copy the uploaded files to shared location in web server
process before getting to the dynflow executor so that it can read the data.

@bbuckingham
Copy link
Member

APJ, tested on production install and it works great!

@iNecas
Copy link
Member Author

iNecas commented Oct 13, 2014

Did some updates to make the tests passing, ready for re-review

@@ -10,6 +10,9 @@
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.

require 'fileutils'
require 'English'
Copy link
Member

Choose a reason for hiding this comment

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

@iNecas, curious, why is 'English' required?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's because of https://github.com/Katello/katello/pull/4736/files#diff-acda6ac6712e66fc9557b7631a8befbfR47 , $ERROR_INFO, that rubocop suggested over $!

@bbuckingham
Copy link
Member

ACK

iNecas added a commit that referenced this pull request Oct 14, 2014
Fixes #7915 - copy uploaded files to shared tmp directory in plan phase
@iNecas iNecas merged commit e229678 into Katello:master Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants