RHEL H cannot start vdsmd

Latest response

I am getting this boot.log message:

 

vdsm: libvirt already configured for vdsm
Starting iscsid:
initctl: Unknown job: libvirtd
vdsm: one of the dependent services did not start, error code 1
 

Also, when I run "initctl start libvirtd", I get the "Unknown job: libvirtd" error again.

 

/etc/init/libvirtd.conf  is a symbolic link to /usr/share/doc/libvirt-0.9.4/libvirtd.upstart

 

If I copy this libvirtd.upstart to replace the link, then libvirtd will start, and vdsm will start also.

 

On reboot, the symbolic link is recreated and I am back to the same problem.

 

Does anyone have an idea about all this?

My channel subscriptions are:

rhel-x86_64-rhev-mgmt-agent-6-beta
rhel-x86_64-server-6
rhel-x86_64-server-6-beta
 

Thanks

Responses

It looks like this Bugzilla addresses my problem.   Unfortunately, I cannot access the bug.

I was just looking at this when you've placed this update.

 

This is already fixed and is targeted for the GA version.

 

The fix is similar to what you did when you've copied the file instead of soft link, so you should be good to continue as is.

 

In the current release that you have:

 

    packaged=`/bin/rpm -ql libvirt | /bin/grep libvirtd.upstart | \
                 /usr/bin/tail -1`
    target=/etc/init/libvirtd.conf
    installed=`/bin/readlink -f "$target"`

    if [[ "$packaged" != "$installed" ]];
    then
        /bin/ln -sf "$packaged" "$target" || return 1
        /sbin/initctl reload-configuration
    fi

 

The fix:

    packaged=`/bin/rpm -ql libvirt | /bin/grep libvirtd.upstart | \
                 /usr/bin/tail -1`
    target=/etc/init/libvirtd.conf

    if ! diff -q "$packaged" "$target" >/dev/null;
    then
        /bin/cp -p "$packaged" "$target" || return 1
        /sbin/initctl reload-configuration
    fi

I updated /etc/init.d/vdsmd with the changes you sent.  It works perfectly.

Thanks