Wind River Support Network

HomeDefectsOVP-927
Fixed

OVP-927 : error of vdsmd first start: sed: can't read /etc/sysconfig/libvirtd: No such file or directory

Created: Jul 20, 2013    Updated: Mar 11, 2016
Resolved Date: Dec 2, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.10
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
======================
There is an error when starting the libvirtd daemon for the first time:

sed: can't read /etc/sysconfig/libvirtd: No such file or directory

It is caused by that no default libvirtd conf file is provided.

Expected Behavior
======================
Is it possible to provide a default conf file and let the error gone?

Observed Behavior
======================
vdsmd report error when it is firstly running.

Logs
======================
root@wr-ovirt-node-01:~# service vdsmd start
Configuring a self-signed VDSM host certificate:

Configuring libvirt for vdsm...
sed: can't read /etc/sysconfig/libvirtd: No such file or directory
stopped /usr/bin/dnsmasq (pid 2194)
Starting multipathd...
Starting multipathd daemon:
Starting ntpd...
Starting ntpd: /usr/sbin/ntpd is already running
2292
done
Starting networking...
Configuring network interfaces... ifup: interface lo already configured
ifup: interface eth0 already configured
done.
Disconnecting iSCSI targets
iscsiadm: No matching sessions found
Stopping iSCSI initiator service
Starting iSCSI initiator service iscsid
Setting up iSCSI targets
iscsiadm: No records found
stopped /usr/bin/dnsmasq (pid 4605)
2013-07-20 07:12:06.288+0000: 4835: info : libvirt version: 1.0.3
2013-07-20 07:12:06.288+0000: 4835: debug : virLogParseOutputs:1287 : outputs=1:file:/var/log/libvirtd.log
Starting up vdsm daemon:
vdsm startvdsm start

Misc Info 
======================
N/A

Workaround

The error didn't lead to vdsmd failure.
And it only occurs on the first running.

Steps to Reproduce

step 1; configure --enable-board=intel-xeon-core --enable-rootfs=ovp-ovirt-node --enable-addons=wr-ovp --enable-parallel-pkgbuilds=5 --enable-jobs=5
step 2; make fs
step 3; boot target, and run command:
service vdsmd start
Live chat
Online