Bug 1100584
Summary: | [host-deploy] host-deploy should be able to work with (remote) /tmp as noexec | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Jiri Belka <jbelka> |
Component: | ovirt-engine-core | Assignee: | Alon Bar-Lev <alonbl> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | bazulay, bugs, dougsland, ecohen, gklein, iheim, lsurette, rbalakri, Rhev-m-bugs, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | ovirt-engine-3.5.0_beta | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-17 12:39:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jiri Belka
2014-05-23 07:13:30 UTC
host-deploy cannot guess where to put files. you can always set TMPDIR environment to different directory on that host. you can also modify the BootstrapCommand vdc_options to use alternate directory per your choice. best I can do is allow OVIRT_TMPDIR environment and override TMPDIR at host. This is probably easy fix: # mount -o remount,noexec /tmp # cat > /tmp/test #!/bin/bash echo Hello World! # chmod u+x /tmp/test # /tmp/test -bash: /tmp/test: Permission denied # bash /tmp/test Hello World! (In reply to Jiri Belka from comment #2) > This is probably easy fix: > > # mount -o remount,noexec /tmp > # cat > /tmp/test > #!/bin/bash > echo Hello World! > # chmod u+x /tmp/test > # /tmp/test > -bash: /tmp/test: Permission denied > # bash /tmp/test > Hello World! I would like to avoid assumption of: 1. scripts. 2. the interpreter that is used (switch from shell to python and similar). Added OVIRT_TMPDIR to allow override TMPDIR. Example: /etc/profile.d/ovirt-tmpdir.sh --- export OVIRT_TMPDIR=/var/tmp --- ok, ovirt-host-deploy-java-1.3.0-0.0.master.20140629072144.gitdc1f589.el6.noarch setting env on host and re-added host into ovirt env. Every 0.5s: ls -al /testovic Mon Jul 14 14:52:33 2014 total 12 drwxr-xr-x. 3 root root 4096 Jul 14 14:52 . dr-xr-xr-x. 25 root root 4096 Jul 14 14:47 .. drwx------. 4 root root 4096 Jul 14 11:35 ovirt-UkU56KVf3m oVirt 3.5 has been released and should include the fix for this issue. |