Thank you Kai for describing you solution!

However, I think the ovirtmgmt network should be created automatically. I will forward this issue on.



Cheers, Ondra


On 31.5.2016 05:04, Kai Kang wrote:
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 <[email protected] <mailto:[email protected]>> 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" <[email protected]
    <mailto:[email protected]>>
    > To: [email protected] <mailto:[email protected]>
    > 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
    > [email protected] <mailto:[email protected]>
    > http://lists.ovirt.org/mailman/listinfo/devel




_______________________________________________
Devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/devel

_______________________________________________
Devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/devel

Reply via email to