Hi Ondra,

Thanks for your patience with my so many questions.

Finally I search a Redhat defect https://bugzilla.redhat.com/show_bug.cgi?id=1222566, and it seems caused by lacking of libvirt network "vdsm-ovirtmgmt". After I create the network by hook, then the host could be deployed successfully.

Hook files under /usr/lib64/vdsm/vdsm/hooks/before_vdsm_start:

vdsm-ovirtmgmt.xml:
<network>
        <name>vdsm-ovirtmgmt</name>
        <forward mode='bridge'/>
        <bridge name='ovirtmgmt'/>
</network>


20-setupDefaultNetwork:
#!/bin/sh

VIRSH=/usr/bin/virsh
SOURCEDIR=$(dirname $(readlink -f $0))
DEFAULTNET=vdsm-ovirtmgmt

if ! $VIRSH net-dumpxml $DEFAULTNET &>/dev/null; then
        $VIRSH net-define $SOURCEDIR/vdsm-ovirtmgmt.xml
fi


Regards,
Kai

On Fri, May 27, 2016 at 6:53 PM, Ondřej Svoboda <osvoboda@redhat.com> wrote:
Kai,

please also take a look at /var/log/ovirt-engine/engine.log

VDSM stores the engine's request for capabilities in vdsm.log, and logs Setup Networks actions in supervdsm.log.

I'll inspect logs you sent me privately. Can you please make the engine logs available to the list?

Thanks,
Ondra

----- Original Message -----
> From: "Kai Kang" <kai.7.kang@gmail.com>
> To: devel@ovirt.org
> Sent: Friday, May 27, 2016 11:34:38 AM
> Subject: [ovirt-devel] [vdsm] what happens to ovirmgmt during new host        deployment?
>
> Hi,
>
> I sent mails to ovirt-user maillist for help. But it seems there is no useful
> info in vdsm.log and supervdsm.log. I want to debug the code and so ask for
> help here.
>
> I am using ovirt 3.6.4.1 and vdsm 4.17.24. When deploy a new host, bridge
> ovirtmgmt has been created with port eth0. But it fails with:
>
> Host dell12 does not comply with the cluster Default networks, the following
> networks are missing on host: 'ovirtmgmt'
>
>
> I can make ovirtmgmt work by selecting the tab 'Hosts' -> node name(dell12)
> -> subtab 'Network Interface', click 'Setup Host Networks', drag ovirtmgmt
> to link with ethernet interface eth0.
>
> What engine did to bridge ovirtmgmt during new host deployment? Just call
> "getVdsCaps" to check whether ovirtmgmt is ready or sent setupNetwork
> command to configure ovirtmgmt? Which part of vdsm code should I check
> please?
>
> Thanks a lot.
>
> --Kai
>
> _______________________________________________
> Devel mailing list
> Devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel