Wind River Support Network

HomeDefectsOVP-1461
Fixed

OVP-1461 : /etc/init.d/ovirt-engine causes setup_engine.sh to run itself recursively on first boot

Created: Dec 18, 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

Description

After booting an ovp-ovirt-engine image, there are two setup logs in {{/var/log/ovirt-engine}}.  The ovirt-engine init script runs {{setup_engine.sh}}, which in turn runs {{/sbin/service ovirt-engine start}}, which in turn runs {{setup_engine.sh}} again.  There is a {{/usr/share/ovirt-engine/.first_boot}} sentinel file that is supposed to prevent this, but that file gets removed only after {{setup_engine.sh}} completes; since we run the script recursively, the sentinel file is still there when we start the init script the second time.  Here is a log excerpt:
{noformat}
/var/log/ovirt-engine/engine-setup_2013_12_17_15_37_24.log

2013-12-17 15:42:04::DEBUG::setup_sequences::59::root:: running _startEngine
2013-12-17 15:42:04::DEBUG::engine-setup::1782::root:: using chkconfig to enable engine to load on system startup.
2013-12-17 15:42:04::DEBUG::common_utils::1199::root:: stopping ovirt-engine
2013-12-17 15:42:04::DEBUG::common_utils::1236::root:: executing action ovirt-engine on service stop
2013-12-17 15:42:04::DEBUG::common_utils::372::root:: Executing command --> '/sbin/service ovirt-engine stop'
2013-12-17 15:42:04::DEBUG::common_utils::410::root:: output = 
2013-12-17 15:42:04::DEBUG::common_utils::411::root:: stderr = 
2013-12-17 15:42:04::DEBUG::common_utils::412::root:: retcode = 0
2013-12-17 15:42:04::DEBUG::common_utils::1189::root:: starting ovirt-engine
2013-12-17 15:42:04::DEBUG::common_utils::1236::root:: executing action ovirt-engine on service start
2013-12-17 15:42:04::DEBUG::common_utils::372::root:: Executing command --> '/sbin/service ovirt-engine start'
2013-12-17 15:42:08::DEBUG::common_utils::410::root:: output = httpd (no pid file) not running
.
Welcome to oVirt Engine setup utility

WARNING: oVirt Engine setup has already been run on this host.
To remove all configuration and reset oVirt Engine please run engine-cleanup.
Please be advised that executing engine-setup without cleanup is not supported.
Stopping ovirt-engine service... Warning: Weak Password.
Error: mount point already exists in /etc/exports
Failed handling answer file: Error reading parameter NFS_MP from answer file
Please check log file /var/log/ovirt-engine/engine-setup_2013_12_17_15_42_05.log for more information
Starting engine-service:ESC[60G [  ESC[0;32mOKESC[0;39m  ]
{noformat}
To prevent recursion, we should remove the sentinel file before executing the {{setup_engine.sh}} script.

Steps to Reproduce

.../configure --enable-board=intel-atom-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-ovirt-engine+gdb+nfsd --enable-addons=wr-ovp ...
make all
make usb-image
[boot the rootfs]
[examine /var/log/ovirt-engine/engine-setup*.log]

Other Downloads


Live chat
Online