Wind River Support Network

HomeDefectsOVP-1131
Fixed

OVP-1131 : vdsm's CACHED_CONFIGUREVARS values are wrong for fsck and ntpq

Created: Sep 5, 2013    Updated: Mar 11, 2016
Resolved Date: Oct 11, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.8
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

In the vdsm recipe, we include the following settings in CACHED_CONFIGUREVARS:

  ac_cv_path_FSCK_PATH='/sbin/fsck'
  ac_cv_path_NTPQ_PATH='/usr/bin/ntpq'

We don't include /sbin/fsck from util-linux, and ntpq is in /usr/sbin.

Workaround

Install export/RPMS/x86_64/util-linux-fsck-2.21.1-r7.2.x86_64.rpm on the node, and make a link between /usr/sbin/ntpq and /usr/bin/ntpq.

Steps to Reproduce

.../configure --enable-board=intel-xeon-core --enable-kernel=preempt-rt+xfs --enable-rootfs=ovp-ovirt-node+third-party-engine+gdb --enable-addons=wr-ovp ...
make all
ls -l export/dist/sbin/fsck export/dist/usr/bin/ntpq

If you boot the node, you will see messages like this in vdsm-reg.log:

  MainThread::DEBUG::2013-09-05 11:59:21,749::deployUtil::759::root::setHostTime start.
  MainThread::DEBUG::2013-09-05 11:59:21,750::deployUtil::134::root::['/usr/bin/ntpq', '-c', 'rv']
  MainThread::ERROR::2013-09-05 11:59:21,766::deployUtil::145::root::Traceback (most recent call last):
    File "/usr/share/vdsm-reg/deployUtil.py", line 139, in _logExec
      p = subprocess.Popen(argv, stdin=stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
      errread, errwrite)
    File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory
Live chat
Online