Fixed
Created: Dec 17, 2013
Updated: Mar 11, 2016
Resolved Date: Jan 7, 2014
Found In Version: 5.0.1.10
Fix Version: 5.0.1.11,6.0
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace
In addition to the {{/etc/default/volatiles}}
problems that I reported in OVP-1451, another
bug showed up -- see the 'grep' error below:
{noformat}
/var/log/ovirt-engine/engine.log
2013-12-13 03:38:53,494 ERROR [org.ovirt.engine.core.utils.hostinstall.OpenSslCAWrapper] (VdsDeploy) Sign Certificate request failed with exit code 1
2013-12-13 03:38:53,495 ERROR [org.ovirt.engine.core.utils.hostinstall.OpenSslCAWrapper] (VdsDeploy) Sign Certificate request script errors:
null/etc/pki/ovirt-engine/SignReq.sh: line 33: grep: command not found
unable to write certificate
139823733995176:error:09072007:PEM routines:PEM_write_bio:BUF lib:pem_lib.c:644:
Using configuration from openssl.conf
I am unable to access the certs directory
certs: Permission denied
unable to write 'random state'
{noformat}
This error comes from a bad path setting in
{{packaging/fedora/engine-service.py.in}}.
The following upstream commit fixes the bug
(after it migrated to two new files from its
original file!):
{noformat}
commit 6ed5d0ae74ebcbb440e721914b6d0ce3be5851a9
Author: Alon Bar-Lev <alonbl@redhat.com>
Date: Mon Jun 10 22:00:37 2013 +0300
packaging: service: modify PATH to include /sbin /bin
Change-Id: I0e9f0489b822fb2d1a52f28dc88d302cc066e861
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
diff --git a/packaging/services/ovirt-engine-notifier.py b/packaging/services/ovirt-engine-notifier.py
index cb695e2..530c211 100755
--- a/packaging/services/ovirt-engine-notifier.py
+++ b/packaging/services/ovirt-engine-notifier.py
@@ -143,7 +143,7 @@ class Daemon(service.Daemon):
self._engineEnv = os.environ.copy()
self._engineEnv.update({
- 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
+ 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'LANG': 'en_US.UTF-8',
'LC_ALL': 'en_US.UTF-8',
'CLASSPATH': '',
diff --git a/packaging/services/ovirt-engine.py b/packaging/services/ovirt-engine.py
index bfb1d12..a868678 100755
--- a/packaging/services/ovirt-engine.py
+++ b/packaging/services/ovirt-engine.py
@@ -406,7 +406,7 @@ class Daemon(service.Daemon):
self._engineEnv = os.environ.copy()
self._engineEnv.update({
- 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
+ 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'LANG': 'en_US.UTF-8',
'LC_ALL': 'en_US.UTF-8',
'ENGINE_DEFAULTS': config.ENGINE_DEFAULT_FILE,
{noformat}
Edit the /etc/pki/ovirt-engine/SignReq.sh file to set PATH to
a reasonable value.
.../configure --enable-board=intel-xeon-core --enable-kernel=preempt-rt --enable-rootfs=ovp-ovirt-engine+gdb+nfsd --enable-addons=wr-ovp ...
make all
make usb-image
[boot the engine image]
[create a node image that sets vdc_host_name in vdsm-reg.conf to the engine]
[boot the node image]
[watch the node fail to register]
[check the /var/log/ovirt-engine/engine.log file on the engine host]