[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

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

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

This is a multi-part message in MIME format. --------------08C8DDF9E0371823C5D9D79A Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 <osvoboda@redhat.com <mailto: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 <mailto:kai.7.kang@gmail.com>> > To: devel@ovirt.org <mailto: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 <mailto:Devel@ovirt.org> > http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
--------------08C8DDF9E0371823C5D9D79A Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <p>Thank you Kai for describing you solution!<br> <br> However, I think the ovirtmgmt network should be created automatically. I will forward this issue on.<br> <br> <br> <br> Cheers, Ondra<br> </p> <br> <div class="moz-cite-prefix">On 31.5.2016 05:04, Kai Kang wrote:<br> </div> <blockquote cite="mid:CADC9Kmp1-vz2u_S0zr6PZwJ-G4rz1mHoQ+M_su64MtB4vcrAqQ@mail.gmail.com" type="cite"> <div dir="ltr">Hi Ondra, <div><br> </div> <div>Thanks for your patience with my so many questions.</div> <div><br> </div> <div>Finally I search a Redhat defect <a moz-do-not-send="true" href="https://bugzilla.redhat.com/show_bug.cgi?id=1222566">https://bugzilla.redhat.com/show_bug.cgi?id=1222566</a>, 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.</div> <div><br> </div> <div>Hook files under /usr/lib64/vdsm/vdsm/hooks/before_vdsm_start:</div> <div><br> </div> <div>vdsm-ovirtmgmt.xml:<br> </div> <div> <div><network></div> <div> <name>vdsm-ovirtmgmt</name></div> <div> <forward mode='bridge'/></div> <div> <bridge name='ovirtmgmt'/></div> <div></network></div> </div> <div><br> </div> <div><br> </div> <div>20-setupDefaultNetwork:<br> </div> <div> <div>#!/bin/sh</div> <div><br> </div> <div>VIRSH=/usr/bin/virsh</div> <div>SOURCEDIR=$(dirname $(readlink -f $0))</div> <div>DEFAULTNET=vdsm-ovirtmgmt</div> <div><br> </div> <div>if ! $VIRSH net-dumpxml $DEFAULTNET &>/dev/null; then</div> <div> $VIRSH net-define $SOURCEDIR/vdsm-ovirtmgmt.xml</div> <div>fi</div> </div> <div><br> </div> <div><br> </div> <div>Regards,</div> <div>Kai</div> </div> <div class="gmail_extra"><br> <div class="gmail_quote">On Fri, May 27, 2016 at 6:53 PM, Ondřej Svoboda <span dir="ltr"><<a moz-do-not-send="true" href="mailto:osvoboda@redhat.com" target="_blank">osvoboda@redhat.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kai,<br> <br> please also take a look at /var/log/ovirt-engine/engine.log<br> <br> VDSM stores the engine's request for capabilities in vdsm.log, and logs Setup Networks actions in supervdsm.log.<br> <br> I'll inspect logs you sent me privately. Can you please make the engine logs available to the list?<br> <br> Thanks,<br> Ondra<br> <div> <div class="h5"><br> ----- Original Message -----<br> > From: "Kai Kang" <<a moz-do-not-send="true" href="mailto:kai.7.kang@gmail.com">kai.7.kang@gmail.com</a>><br> > To: <a moz-do-not-send="true" href="mailto:devel@ovirt.org">devel@ovirt.org</a><br> > Sent: Friday, May 27, 2016 11:34:38 AM<br> > Subject: [ovirt-devel] [vdsm] what happens to ovirmgmt during new host deployment?<br> ><br> > Hi,<br> ><br> > I sent mails to ovirt-user maillist for help. But it seems there is no useful<br> > info in vdsm.log and supervdsm.log. I want to debug the code and so ask for<br> > help here.<br> ><br> > I am using ovirt 3.6.4.1 and vdsm 4.17.24. When deploy a new host, bridge<br> > ovirtmgmt has been created with port eth0. But it fails with:<br> ><br> > Host dell12 does not comply with the cluster Default networks, the following<br> > networks are missing on host: 'ovirtmgmt'<br> ><br> ><br> > I can make ovirtmgmt work by selecting the tab 'Hosts' -> node name(dell12)<br> > -> subtab 'Network Interface', click 'Setup Host Networks', drag ovirtmgmt<br> > to link with ethernet interface eth0.<br> ><br> > What engine did to bridge ovirtmgmt during new host deployment? Just call<br> > "getVdsCaps" to check whether ovirtmgmt is ready or sent setupNetwork<br> > command to configure ovirtmgmt? Which part of vdsm code should I check<br> > please?<br> ><br> > Thanks a lot.<br> ><br> > --Kai<br> ><br> </div> </div> > _______________________________________________<br> > Devel mailing list<br> > <a moz-do-not-send="true" href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br> > <a moz-do-not-send="true" href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a><br> </blockquote> </div> <br> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:Devel@ovirt.org">Devel@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/devel">http://lists.ovirt.org/mailman/listinfo/devel</a></pre> </blockquote> <br> </body> </html> --------------08C8DDF9E0371823C5D9D79A--
participants (3)
-
Kai Kang
-
Ondřej Svoboda
-
Ondřej Svoboda