Nova- oVirt Driver : Adding NIC to VM

--730575183-487886442-1401277560=:31141 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,=0A=0AI am working on Nova - oVirt driver. I was able to test the VM= life cycle successfully - spawn, suspend, resume, shuttof, start and termi= nate.=0A=0AI am now exploring the Neutron integration in oVirt. I have impo= rted the Network (Net1) form Openstack to oVirt.=A0=0A=0AI get the below er= ror when I try to add a NIC (for imported Net1) to the VM (created by Nova-= oVirt driver), having the same MAC address which is assigned in Openstack (= Port Details page).=0A=0A=0A"Error while executing action Add NIC to VM: Fa= iled to communicate with the external provider."=0A=0AHowever, I am able to= add a NIC with different MAC address.=A0=0A=0AWhat changes needs to be don= e to add a NIC with MAC address as assigned by Neutron? Please suggest.=0A= =0AI am using oVirt=A03.4.0-1.fc19.=0A=0AThank you.=0A=0ARegards,=0AUdaya K= iran --730575183-487886442-1401277560=:31141 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:10pt"><div id=3D"yiv9884252= 913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"">Hi All,</div><di= v id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"= "><br class=3D"" style=3D""></div><div id=3D"yiv9884252913yui_3_16_0_1_1401= 272434291_10471" class=3D"" style=3D"background-color: transparent;">I am w= orking on Nova - oVirt driver. I was able to test the VM life cycle success= fully - spawn, suspend, resume, shuttof, start and terminate.</div><div id= =3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"back= ground-color: transparent;"><br class=3D"" style=3D""></div><div id=3D"yiv9= 884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"background-c= olor: transparent;">I am now exploring the Neutron integration in oVirt. I = have imported the Network (Net1) form Openstack to oVirt. </div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"b= ackground-color: transparent;"><span class=3D"" style=3D"background-color: = transparent;"><br class=3D"" style=3D""></span></div><div id=3D"yiv98842529= 13yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"background-color: t= ransparent;"><span class=3D"" style=3D"background-color: transparent;">I ge= t the below error when I try to add a NIC (for imported Net1) to the VM (cr= eated by Nova-oVirt driver), having the same MAC address which is assigned = in Openstack (Port Details page).</span><br class=3D"" style=3D""></div><di= v id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"= background-color: transparent;"><span class=3D"" style=3D"background-color:= transparent;"><br class=3D"" style=3D""></span></div><div id=3D"yiv9884252= 913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"background-color: = transparent;"><span class=3D"" style=3D"background-color: transparent;">"Er= ror while executing action Add NIC to VM: Failed to communicate with the external provider."</span></div><div id=3D"= yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"backgrou= nd-color: transparent;"><br class=3D"" style=3D""></div><div id=3D"yiv98842= 52913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"background-color= : transparent;">However, I am able to add a NIC with different MAC address.= </div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class= =3D"" style=3D"background-color: transparent;"><span style=3D"background-co= lor: transparent;" class=3D""><br class=3D"" style=3D""></span></div><div i= d=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D""><= span style=3D"background-color: transparent;" class=3D"">What changes needs= to be done to add a NIC with MAC address as assigned by Neutron? Please su= ggest.</span></div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471= " class=3D"" style=3D"background-color: transparent;"><br class=3D"" style= =3D""></div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"b= ackground-color: transparent;">I am using oVirt <span class=3D"" style= =3D"font-family: 'Arial Unicode MS', Arial, sans-serif;">3.4.0-1.fc19.</spa= n></div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"= " style=3D"background-color: transparent;"><br class=3D"" style=3D""></div>= <div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471" class=3D"" style= =3D"background-color: transparent;">Thank you.</div><div id=3D"yiv988425291= 3yui_3_16_0_1_1401272434291_10471" class=3D"" style=3D"background-color: tr= ansparent;"><br class=3D"" style=3D""></div><div id=3D"yiv9884252913yui_3_1= 6_0_1_1401272434291_10471" class=3D"" style=3D"background-color: transparen= t;">Regards,</div><div id=3D"yiv9884252913yui_3_16_0_1_1401272434291_10471"= class=3D"" style=3D"">Udaya Kiran</div></div></body></html> --730575183-487886442-1401277560=:31141--

----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "users" <users@ovirt.org> Sent: Wednesday, May 28, 2014 2:46:00 PM Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi All,
I am working on Nova - oVirt driver. I was able to test the VM life cycle successfully - spawn, suspend, resume, shuttof, start and terminate.
I am now exploring the Neutron integration in oVirt. I have imported the Network (Net1) form Openstack to oVirt.
I get the below error when I try to add a NIC (for imported Net1) to the VM (created by Nova-oVirt driver), having the same MAC address which is assigned in Openstack (Port Details page).
"Error while executing action Add NIC to VM: Failed to communicate with the external provider."
However, I am able to add a NIC with different MAC address.
What changes needs to be done to add a NIC with MAC address as assigned by Neutron? Please suggest.
Could you attach the neutron server log (/etc/neutron/server.log) from the external network provider ?
I am using oVirt 3.4.0-1.fc19.
Thank you.
Regards, Udaya Kiran
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Regards,</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; f= ont-family: 'times new roman', 'new york', times, serif; font-style: normal= ; background-color: transparent;" class=3D""><span class=3D"" style=3D"">Ud= aya Kiran</span></div> <div class=3D"qtdSeparateBR"><br><br></div><div clas= s=3D"yahoo_quoted" style=3D"display: block;"> <div style=3D"font-family: ti= mes new roman, new york, times, serif; font-size: 10pt;" class=3D""> <div s= tyle=3D"font-family: times new roman, new york, times, serif; font-size: 12=
<br class=3D"" style=3D""> <div class=3D"" style=3D""><br clear=3D"none" c= lass=3D"" style=3D""><br clear=3D"none" class=3D"" style=3D"">----- Origina= l Message -----<br clear=3D"none" class=3D"" style=3D"">> From: "Udaya K= iran P" <<a shape=3D"rect" ymailto=3D"mailto:ukiran770@yahoo.in" href=3D= "mailto:ukiran770@yahoo.in" class=3D"" style=3D"">ukiran770@yahoo.in</a>>= ;<br clear=3D"none" class=3D"" style=3D"">> To: "users" <<a shape=3D"= rect" ymailto=3D"mailto:users@ovirt.org" href=3D"mailto:users@ovirt.org" cl= ass=3D"" style=3D"">users@ovirt.org</a>><br clear=3D"none" class=3D"" st= yle=3D"">> Sent: Wednesday, May 28, 2014 2:46:00 PM<br clear=3D"none" cl= ass=3D"" style=3D"">> Subject: [ovirt-users] Nova- oVirt Driver : Adding= NIC to VM<br clear=3D"none" class=3D"" style=3D"">> <br clear=3D"none" = class=3D"" style=3D"">> Hi All,<br clear=3D"none" class=3D"" style=3D"">= > <br clear=3D"none" class=3D"" style=3D"">> I am working on Nova - o= Virt driver. I was able to test the VM life cycle<br clear=3D"none" class=3D"" style=3D""= > successfully - spawn, suspend, resume, shuttof, start and terminate.<= br clear=3D"none" class=3D"" style=3D"">> <br clear=3D"none" class=3D"" =
---724232154-667451249-1402983979=:33635 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Moti,=0A=0ASorry for the delayed response.=0A=0AThe command neutron agen= t-list on the neutron server gives the alive status as xxx, for the neutron= -ovs-agent that is installed on the oVirt Host.=A0However, I am able to imp= ort the network from OpenStack into oVirt.=0A=0AThe port for the mac_addres= s assigned is already created in the neutron server. Therefore, when I try = to add it again, it gives error, port already exists.=0A=0AHow do I attach = this port to the VM in oVirt.=0A=0AHow do I interact with the neutron-ovs-a= gent to get the port and assign to oVirt VM.=0A=0APlease suggest your input= s.=0A=0AThank You.=0A=0ARegards,=0AUdaya Kiran=0A=0A=0AOn Wednesday, 28 May= 2014 5:54 PM, Moti Asayag <masayag@redhat.com> wrote:=0A =0A=0A=0A=0A=0A--= --- Original Message -----=0A> From: "Udaya Kiran P" <ukiran770@yahoo.in>= =0A> To: "users" <users@ovirt.org>=0A> Sent: Wednesday, May 28, 2014 2:46:0= 0 PM=0A> Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM=0A> = =0A> Hi All,=0A> =0A> I am working on Nova - oVirt driver. I was able to te= st the VM life cycle=0A> successfully - spawn, suspend, resume, shuttof, st= art and terminate.=0A> =0A> I am now exploring the Neutron integration in o= Virt. I have imported the=0A> Network (Net1) form Openstack to oVirt.=0A> = =0A> I get the below error when I try to add a NIC (for imported Net1) to t= he VM=0A> (created by Nova-oVirt driver), having the same MAC address which= is=0A> assigned in Openstack (Port Details page).=0A> =0A> "Error while ex= ecuting action Add NIC to VM: Failed to communicate with the=0A> external p= rovider."=0A> =0A> However, I am able to add a NIC with different MAC addre= ss.=0A> =0A> What changes needs to be done to add a NIC with MAC address as= assigned by=0A> Neutron? Please suggest.=0A> =0A=0ACould you attach the ne= utron server log (/etc/neutron/server.log) from the =0Aexternal network pro= vider ?=0A=0A=0A> I am using oVirt 3.4.0-1.fc19.=0A> =0A> Thank you.=0A> = =0A> Regards,=0A> Udaya Kiran=0A> =0A> ____________________________________= ___________=0A> Users mailing list=0A> Users@ovirt.org=0A> http://lists.ovi= rt.org/mailman/listinfo/users=0A> ---724232154-667451249-1402983979=:33635 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:10pt"><div class=3D"" style= =3D""><span class=3D"" style=3D"">Hi Moti,</span></div><div class=3D"" styl= e=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', = 'new york', times, serif; font-style: normal; background-color: transparent= ;"><span class=3D"" style=3D""><br class=3D"" style=3D""></span></div><div = class=3D"" style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'tim= es new roman', 'new york', times, serif; font-style: normal; background-col= or: transparent;"><span class=3D"" style=3D"">Sorry for the delayed respons= e.</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-fam= ily: 'times new roman', 'new york', times, serif; font-style: normal; backg= round-color: transparent;" class=3D""><br class=3D"" style=3D""></div><div = style=3D"background-color: transparent;" class=3D""><span class=3D"" style= =3D"">The command neutron agent-list on the neutron server gives the alive status as xxx, for the neutron-ovs-agen= t that is installed on the oVirt Host. </span><span style=3D"backgroun= d-color: transparent;">However, I am able to import the network from OpenSt= ack into oVirt.</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 1= 3px; font-family: 'times new roman', 'new york', times, serif; font-style: = normal; background-color: transparent;" class=3D""><span class=3D"" style= =3D""><br class=3D"" style=3D""></span></div><div style=3D"color: rgb(0, 0,= 0); font-size: 13px; font-family: 'times new roman', 'new york', times, se= rif; font-style: normal; background-color: transparent;" class=3D""><span c= lass=3D"" style=3D"">The port for the mac_address assigned is already creat= ed in the neutron server. Therefore, when I try to add it again, it gives e= rror, port already exists.</span></div><div style=3D"color: rgb(0, 0, 0); f= ont-size: 13px; font-family: 'times new roman', 'new york', times, serif; f= ont-style: normal; background-color: transparent;" class=3D""><span class=3D"" style=3D""><br= class=3D"" style=3D""></span></div><div style=3D"color: rgb(0, 0, 0); font= -size: 13px; font-family: 'times new roman', 'new york', times, serif; font= -style: normal; background-color: transparent;" class=3D""><span class=3D""= style=3D"">How do I attach this port to the VM in oVirt.</span></div><div = style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roma= n', 'new york', times, serif; font-style: normal; background-color: transpa= rent;" class=3D""><span class=3D"" style=3D""><br class=3D"" style=3D""></s= pan></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: = 'times new roman', 'new york', times, serif; font-style: normal; background= -color: transparent;" class=3D""><span class=3D"" style=3D"">How do I inter= act with the </span><span style=3D"font-size: 10pt;" class=3D"">neutron-ovs= -agent to get the port and assign to oVirt VM.</span></div><div style=3D"co= lor: rgb(0, 0, 0); font-size: 10pt; font-family: 'times new roman', 'new york', times, serif; font-style: norm= al; background-color: transparent;" class=3D""><span style=3D"font-size: 10= pt;" class=3D""><br></span></div><div style=3D"color: rgb(0, 0, 0); font-si= ze: 13px; font-family: 'times new roman', 'new york', times, serif; font-st= yle: normal; background-color: transparent;" class=3D""><span style=3D"font= -size: 10pt;" class=3D"">Please suggest your inputs.</span></div><div style= =3D"color: rgb(0, 0, 0); font-size: 10pt; font-family: 'times new roman', '= new york', times, serif; font-style: normal; background-color: transparent;= " class=3D""><span style=3D"font-size: 10pt;" class=3D""><br></span></div><= div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new = roman', 'new york', times, serif; font-style: normal; background-color: tra= nsparent;" class=3D""><span style=3D"font-size: 10pt;" class=3D"">Thank You= .</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-fami= ly: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparen= t;" class=3D""><br></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px= ; font-family: 'times new roman', 'new york', times, serif; font-style: nor= mal; background-color: transparent;" class=3D""><span class=3D"" style=3D""= pt;" class=3D""> <div dir=3D"ltr" class=3D"" style=3D""> <font size=3D"2" f= ace=3D"Arial" class=3D"" style=3D""> On Wednesday, 28 May 2014 5:54 PM, Mot= i Asayag <masayag@redhat.com> wrote:<br class=3D"" style=3D""> </font> </div> <br class=3D"" style=3D""= style=3D"">> I am now exploring the Neutron integration in oVirt. I have= imported the<br clear=3D"none" class=3D"" style=3D"">> Network (Net1) f= orm Openstack to oVirt.<br clear=3D"none" class=3D"" style=3D"">> <br cl= ear=3D"none" class=3D"" style=3D"">> I get the below error when I try to= add a NIC (for imported Net1) to the VM<br clear=3D"none" class=3D"" style= =3D"">> (created by Nova-oVirt driver), having the same MAC address whic= h is<br clear=3D"none" class=3D"" style=3D"">> assigned in Openstack (Po= rt Details page).<br clear=3D"none" class=3D"" style=3D"">> <br clear=3D= "none" class=3D"" style=3D"">> "Error while executing action Add NIC to = VM: Failed to communicate with the<br clear=3D"none" class=3D"" style=3D"">= > external provider."<br clear=3D"none" class=3D"" style=3D"">> <br clear=3D"none" class=3D"" style=3D"">> However, I a= m able to add a NIC with different MAC address.<br clear=3D"none" class=3D"= " style=3D"">> <br clear=3D"none" class=3D"" style=3D"">> What change= s needs to be done to add a NIC with MAC address as assigned by<br clear=3D= "none" class=3D"" style=3D"">> Neutron? Please suggest.<br clear=3D"none= " class=3D"" style=3D"">> <br clear=3D"none" class=3D"" style=3D""><br c= lear=3D"none" class=3D"" style=3D"">Could you attach the neutron server log= (/etc/neutron/server.log) from the <br clear=3D"none" class=3D"" style=3D"= ">external network provider ?<div class=3D"" id=3D"yqtfd79667" style=3D""><= br clear=3D"none" class=3D"" style=3D""><br clear=3D"none" class=3D"" style= =3D"">> I am using oVirt 3.4.0-1.fc19.<br clear=3D"none" class=3D"" styl= e=3D"">> <br clear=3D"none" class=3D"" style=3D"">> Thank you.<br cle= ar=3D"none" class=3D"" style=3D"">> <br clear=3D"none" class=3D"" style= =3D"">> Regards,<br clear=3D"none" class=3D"" style=3D"">> Udaya Kira= n<br clear=3D"none" class=3D"" style=3D"">> <br clear=3D"none" class=3D"" style=3D"">> _= ______________________________________________<br clear=3D"none" class=3D""= style=3D"">> Users mailing list<br clear=3D"none" class=3D"" style=3D""=
> <a shape=3D"rect" ymailto=3D"mailto:Users@ovirt.org" href=3D"mailto:U= sers@ovirt.org" class=3D"" style=3D"">Users@ovirt.org</a><br clear=3D"none"= class=3D"" style=3D"">> <a shape=3D"rect" href=3D"http://lists.ovirt.or= g/mailman/listinfo/users" target=3D"_blank" class=3D"" style=3D"">http://li= sts.ovirt.org/mailman/listinfo/users</a><br clear=3D"none" class=3D"" style= =3D"">> <br clear=3D"none" class=3D"" style=3D""></div><br class=3D"" st= yle=3D""><br class=3D"" style=3D""></div> </div> </div> </div> </div></bo= dy></html> ---724232154-667451249-1402983979=:33635--

----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 8:46:19 AM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
Sorry for the delayed response.
The command neutron agent-list on the neutron server gives the alive status as xxx, for the neutron-ovs-agent that is installed on the oVirt Host. However, I am able to import the network from OpenStack into oVirt.
The port for the mac_address assigned is already created in the neutron server. Therefore, when I try to add it again, it gives error, port already exists.
How do I attach this port to the VM in oVirt.
In the ovirt-neutron integration the ports are allocated for the vm by ovirt. The ovirt-engine creates the port on the neutron server and bind it to the vm nic: 1. Click on the specific vm 2. Select the 'Vm Interfaces' sub tab 3. Add a vm interface, and select the profile/network of Net1 (the imported neutron network). At this point, you should see on your neutron server the created port (by 'neutron port-list'). The mac address for that port will be the one selected by the engine. You can provide your own custom mac address (as long it is unique). Once the vm is started or if the nic was added while the vm is running (hotplug), the vdsm-hook-openstacknet will wire the port to the integration bridge and the neutron-ovs-agent will become aware of it. Could you elaborate about your use-cases and what would you like to achieve with ovirt-neutron ? You can also ping me (masayag) on #ovirt (oftc.net) Regards, Moti
How do I interact with the neutron-ovs-agent to get the port and assign to oVirt VM.
Please suggest your inputs.
Thank You.
Regards, Udaya Kiran
On Wednesday, 28 May 2014 5:54 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "users" <users@ovirt.org> Sent: Wednesday, May 28, 2014 2:46:00 PM Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi All,
I am working on Nova - oVirt driver. I was able to test the VM life cycle successfully - spawn, suspend, resume, shuttof, start and terminate.
I am now exploring the Neutron integration in oVirt. I have imported the Network (Net1) form Openstack to oVirt.
I get the below error when I try to add a NIC (for imported Net1) to the VM (created by Nova-oVirt driver), having the same MAC address which is assigned in Openstack (Port Details page).
"Error while executing action Add NIC to VM: Failed to communicate with the external provider."
However, I am able to add a NIC with different MAC address.
What changes needs to be done to add a NIC with MAC address as assigned by Neutron? Please suggest.
Could you attach the neutron server log (/etc/neutron/server.log) from the external network provider ?
I am using oVirt 3.4.0-1.fc19.
Thank you.
Regards, Udaya Kiran
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

=0A> > Sent: Wednesday, May 28, 2014 2:46:00 PM=0A> > Subject: [ovirt-user= s] Nova- oVirt Driver : Adding NIC to VM=0A> > =0A> > Hi All,=0A> > =0A> > = I am working on Nova - oVirt driver. I was able to test the VM life cycle= =0A> > successfully - spawn, suspend, resume, shuttof, start and terminate.= =0A> > =0A> > I am now exploring the Neutron integration in oVirt. I have i= mported the=0A> > Network (Net1) form Openstack to oVirt.=0A> > =0A> > I ge= t the below error when I try to add a NIC (for imported Net1) to the VM=0A>= (created by Nova-oVirt driver), having the same MAC address which is=0A>= assigned in Openstack (Port Details page).=0A> > =0A> > "Error while exe= cuting action Add NIC to VM: Failed to communicate with the=0A> > external =
---2097401939-678094741-1402997843=:46839 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Moti,=0A=0AThankYou for your inputs.=0A=0AI want a VM to be launched in = oVirt, through Nova. i.e., When I say,launch new instance in OpenStack, int= ernally VM should get created in oVirt Host, with the same mac address as a= ssigned by OpenStack, get added to the same Network as selected in OpenStac= k.=A0=0A=0AI am able to spawn a VM =A0and run through the complete the full= lifecycle (spawn, pause, reboot, terminate etc).=A0=0A=0ANow, I am looking= at how can I add NIC with the same mac address. I see port is already been= created at the OpenStack end.=0A=0AShould I Hot plug it?=0A=0Aor=0A=0APrev= ent Neutron from creating port initially and later use the port created by = the oVirt to Neutron?=A0=0A=0APlease suggest your thoughts on this.=0A=0A= =0ARegards,=0AUdaya Kiran=0A=0A=0AOn Tuesday, 17 June 2014 2:33 PM, Moti As= ayag <masayag@redhat.com> wrote:=0A =0A=0A=0A=0A=0A----- Original Message -= ----=0A> From: "Udaya Kiran P" <ukiran770@yahoo.in>=0A> To: "Moti Asayag" <= masayag@redhat.com>=0A> Cc: "users" <users@ovirt.org>=0A> Sent: Tuesday, Ju= ne 17, 2014 8:46:19 AM=0A> Subject: Re: [ovirt-users] Nova- oVirt Driver : = Adding NIC to VM=0A> =0A> Hi Moti,=0A> =0A> Sorry for the delayed response.= =0A> =0A> The command neutron agent-list on the neutron server gives the al= ive status=0A> as xxx, for the neutron-ovs-agent that is installed on the o= Virt Host.=0A> =A0However, I am able to import the network from OpenStack i= nto oVirt.=0A> =0A> The port for the mac_address assigned is already create= d in the neutron=0A> server. Therefore, when I try to add it again, it give= s error, port already=0A> exists.=0A> =0A> How do I attach this port to the= VM in oVirt.=0A=0AIn the ovirt-neutron integration the ports are allocated= for the vm by ovirt.=0AThe ovirt-engine creates the port on the neutron se= rver and bind it to the=0Avm nic:=0A1. Click on the specific vm=0A2. Select= the 'Vm Interfaces' sub tab=0A3. Add a vm interface, and select the profil= e/network of Net1 (the imported neutron=0Anetwork).=0A=0AAt this point, you= should see on your neutron server the created port (by 'neutron port-list'= ).=0AThe mac address for that port will be the one selected by the engine.= =0AYou can provide your own custom mac address (as long it is unique).=0A= =0AOnce the vm is started or if the nic was added while the vm is running (= hotplug),=0Athe vdsm-hook-openstacknet will wire the port to the integratio= n bridge and=0Athe neutron-ovs-agent will become aware of it.=0A=0ACould yo= u elaborate about your use-cases and what would you like to achieve=0Awith = ovirt-neutron ? =0A=0AYou can also ping me (masayag) on #ovirt (oftc.net)= =0A=0ARegards,=0A=0AMoti=0A=0A> =0A> How do I interact with the neutron-ovs= -agent to get the port and assign to=0A> oVirt VM.=0A> =0A> Please suggest = your inputs.=0A> =0A> Thank You.=0A> =0A> Regards,=0A> Udaya Kiran=0A> =0A>= =0A> On Wednesday, 28 May 2014 5:54 PM, Moti Asayag <masayag@redhat.com> w= rote:=0A>=A0 =0A> =0A> =0A> =0A> =0A> ----- Original Message -----=0A> > Fr= om: "Udaya Kiran P" <ukiran770@yahoo.in>=0A> > To: "users" <users@ovirt.org= provider."=0A> > =0A> > However, I am able to add a NIC with different MAC = address.=0A> > =0A> > What changes needs to be done to add a NIC with MAC a= ddress as assigned by=0A> > Neutron? Please suggest.=0A> > =0A> =0A> Could = you attach the neutron server log (/etc/neutron/server.log) from the=0A> ex= ternal network provider ?=0A> =0A> =0A> > I am using oVirt 3.4.0-1.fc19.=0A=
=0A> > Thank you.=0A> > =0A> > Regards,=0A> > Udaya Kiran=0A> > =0A> > = _______________________________________________=0A> > Users mailing list=0A= Users@ovirt.org=0A> > http://lists.ovirt.org/mailman/listinfo/users=0A>=
><br clear=3D"none">> To: "Moti Asayag" <<a shape=3D"rect" ymailt= o=3D"mailto:masayag@redhat.com" href=3D"mailto:masayag@redhat.com">masayag@= redhat.com</a>><br clear=3D"none">> Cc: "users" <<a shape=3D"rect"= ymailto=3D"mailto:users@ovirt.org" href=3D"mailto:users@ovirt.org">users@o= virt.org</a>><br clear=3D"none">> Sent: Tuesday, June 17, 2014 8:46:1= 9 AM<br clear=3D"none">> Subject: Re: [ovirt-users] Nova- oVirt Driver := Adding NIC to VM<br clear=3D"none">> <br clear=3D"none">> Hi Moti,<b= r clear=3D"none">> <br clear=3D"none">> Sorry for the delayed respons= e.<br clear=3D"none">> <br clear=3D"none">> The command neutron agent= -list on the neutron server gives the alive status<br clear=3D"none">> a= s xxx, for the neutron-ovs-agent that is installed on the oVirt Host.<br clear=3D"none">> However, I am= able to import the network from OpenStack into oVirt.<br clear=3D"none">&g= t; <br clear=3D"none">> The port for the mac_address assigned is already= created in the neutron<br clear=3D"none">> server. Therefore, when I tr= y to add it again, it gives error, port already<br clear=3D"none">> exis= ts.<br clear=3D"none">> <br clear=3D"none">> How do I attach this por= t to the VM in oVirt.<br clear=3D"none"><br clear=3D"none">In the ovirt-neu=
3. Add a vm interface, and select the profile/network of Net1 (the importe= d neutron<br clear=3D"none">network).<br clear=3D"none"><br clear=3D"none">= At this point, you should see on your neutron server the created port (by 'neutron port-list').<br c= lear=3D"none">The mac address for that port will be the one selected by the= engine.<br clear=3D"none">You can provide your own custom mac address (as = long it is unique).<br clear=3D"none"><br clear=3D"none">Once the vm is sta= rted or if the nic was added while the vm is running (hotplug),<br clear=3D= "none">the vdsm-hook-openstacknet will wire the port to the integration bri= dge and<br clear=3D"none">the neutron-ovs-agent will become aware of it.<br= clear=3D"none"><br clear=3D"none">Could you elaborate about your use-cases= and what would you like to achieve<br clear=3D"none">with ovirt-neutron ? = <br clear=3D"none"><br clear=3D"none">You can also ping me (masayag) on #ov= irt (oftc.net)<br clear=3D"none"><br clear=3D"none">Regards,<div class=3D"y= qt3554842181" id=3D"yqtfd20341"><br clear=3D"none">Moti<br clear=3D"none"><= br clear=3D"none">> <br clear=3D"none">> How do I interact with the n= eutron-ovs-agent to get the
---2097401939-678094741-1402997843=:46839 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:10pt"><div><span>Hi Moti,</= span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family:= 'times new roman', 'new york', times, serif; font-style: normal; backgroun= d-color: transparent;"><span><br></span></div><div style=3D"color: rgb(0, 0= , 0); font-size: 13px; font-family: 'times new roman', 'new york', times, s= erif; font-style: normal; background-color: transparent;"><span>ThankYou fo= r your inputs.</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13= px; font-family: 'times new roman', 'new york', times, serif; font-style: n= ormal; background-color: transparent;"><span><br></span></div><div style=3D= "color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new= york', times, serif; font-style: normal; background-color: transparent;"><= span>I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch new instance in OpenStack, internally VM should get created in = oVirt Host, with the same mac address as assigned by OpenStack, get added t= o the same Network as selected in OpenStack. </span></div><div style= =3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', '= new york', times, serif; font-style: normal; background-color: transparent;= "><span><br></span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px= ; font-family: 'times new roman', 'new york', times, serif; font-style: nor= mal; background-color: transparent;"><span>I am able to spawn a VM an= d run through the complete the full lifecycle (spawn, pause, reboot, termin= ate etc). </span></div><div style=3D"color: rgb(0, 0, 0); font-size: 1= 3px; font-family: 'times new roman', 'new york', times, serif; font-style: = normal; background-color: transparent;"><span><br></span></div><div style= =3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', '= new york', times, serif; font-style: normal; background-color: transparent;"><= span>Now, I am looking at how can I add NIC with the same mac address. I se= e port is already been created at the OpenStack end.</span></div><div style= =3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', '= new york', times, serif; font-style: normal; background-color: transparent;= "><span><br></span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px= ; font-family: 'times new roman', 'new york', times, serif; font-style: nor= mal; background-color: transparent;"><span>Should I Hot plug it?</span></di= v><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times n= ew roman', 'new york', times, serif; font-style: normal; background-color: = transparent;"><span><br></span></div><div style=3D"color: rgb(0, 0, 0); fon= t-size: 13px; font-family: 'times new roman', 'new york', times, serif; fon= t-style: normal; background-color: transparent;"><span>or</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new rom= an', 'new york', times, serif; font-style: normal; background-color: transp= arent;"><span><br></span></div><div style=3D"color: rgb(0, 0, 0); font-size= : 13px; font-family: 'times new roman', 'new york', times, serif; font-styl= e: normal; background-color: transparent;"><span>Prevent Neutron from creat= ing port initially and later use the port created by the oVirt to Neutron?&= nbsp;</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-= family: 'times new roman', 'new york', times, serif; font-style: normal; ba= ckground-color: transparent;"><span><br></span></div><div style=3D"color: r= gb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', t= imes, serif; font-style: normal; background-color: transparent;"><span styl= e=3D"background-color: transparent;">Please suggest your thoughts on this.<= /span><br></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-fa= mily: 'times new roman', 'new york', times, serif; font-style: normal; backgroun= d-color: transparent;"><span><br></span></div><div style=3D"color: rgb(0, 0= , 0); font-size: 13px; font-family: 'times new roman', 'new york', times, s= erif; font-style: normal; background-color: transparent;"><span>Regards,</s= pan></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: = 'times new roman', 'new york', times, serif; font-style: normal; background= -color: transparent;"><span>Udaya Kiran</span></div> <div class=3D"qtdSepar= ateBR"><br><br></div><div class=3D"yahoo_quoted" style=3D"display: block;">= <div style=3D"font-family: 'times new roman', 'new york', times, serif; fo= nt-size: 10pt;"> <div style=3D"font-family: 'times new roman', 'new york', = times, serif; font-size: 12pt;"> <div dir=3D"ltr"> <font size=3D"2" face=3D= "Arial"> On Tuesday, 17 June 2014 2:33 PM, Moti Asayag <masayag@redhat.c= om> wrote:<br> </font> </div> <br><br> <div class=3D"y_msg_container"><= br clear=3D"none"><br clear=3D"none">----- Original Message -----<br clear=3D= "none">> From: "Udaya Kiran P" <<a shape=3D"rect" ymailto=3D"mailto:u= kiran770@yahoo.in" href=3D"mailto:ukiran770@yahoo.in">ukiran770@yahoo.in</a= tron integration the ports are allocated for the vm by ovirt.<br clear=3D"n= one">The ovirt-engine creates the port on the neutron server and bind it to= the<br clear=3D"none">vm nic:<br clear=3D"none">1. Click on the specific v= m<br clear=3D"none">2. Select the 'Vm Interfaces' sub tab<br clear=3D"none"= port and assign to<br clear=3D"none">> oVirt VM.<br clear=3D"none">>= <br clear=3D"none">> Please suggest your inputs.<br clear=3D"none">>= <br clear=3D"none">> Thank You.<br clear=3D"none">> <br clear=3D"non= e">> Regards,<br clear=3D"none">> Udaya Kiran<br clear=3D"none">> = <br clear=3D"none">> <br clear=3D"none">> On Wednesday, 28 May 2014 5= :54 PM, Moti Asayag <<a shape=3D"rect" ymailto=3D"mailto:masayag@redhat.= com" href=3D"mailto:masayag@redhat.com">masayag@redhat.com</a>> wrote:<b= r clear=3D"none">> <br clear=3D"none">> <br clear=3D"none">>= <br clear=3D"none">> <br clear=3D"none">> <br clear=3D"none">> --= --- Original Message -----<br clear=3D"none">> > From: "Udaya Kiran P= " <<a shape=3D"rect" ymailto=3D"mailto:ukiran770@yahoo.in" href=3D"mailt= o:ukiran770@yahoo.in">ukiran770@yahoo.in</a>><br clear=3D"none">> >= ; To: "users" <<a shape=3D"rect" ymailto=3D"mailto:users@ovirt.org" href=3D"mailto:users@ovirt.org">users@ovirt.org</a>><br clear=3D"none">= > > Sent: Wednesday, May 28, 2014 2:46:00 PM<br clear=3D"none">> &= gt; Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM<br clear= =3D"none">> > <br clear=3D"none">> > Hi All,<br clear=3D"none">= > > <br clear=3D"none">> > I am working on Nova - oVirt driver.= I was able to test the VM life cycle<br clear=3D"none">> > successfu= lly - spawn, suspend, resume, shuttof, start and terminate.<br clear=3D"non= e">> > <br clear=3D"none">> > I am now exploring the Neutron in= tegration in oVirt. I have imported the<br clear=3D"none">> > Network= (Net1) form Openstack to oVirt.<br clear=3D"none">> > <br clear=3D"n= one">> > I get the below error when I try to add a NIC (for imported = Net1) to the VM<br clear=3D"none">> > (created by Nova-oVirt driver),= having the same MAC address which is<br clear=3D"none">> > assigned = in Openstack (Port Details page).<br clear=3D"none">> > <br clear=3D"none">> > "E= rror while executing action Add NIC to VM: Failed to communicate with the<b= r clear=3D"none">> > external provider."<br clear=3D"none">> > = <br clear=3D"none">> > However, I am able to add a NIC with different= MAC address.<br clear=3D"none">> > <br clear=3D"none">> > What= changes needs to be done to add a NIC with MAC address as assigned by<br c= lear=3D"none">> > Neutron? Please suggest.<br clear=3D"none">> >= ; <br clear=3D"none">> <br clear=3D"none">> Could you attach the neut= ron server log (/etc/neutron/server.log) from the<br clear=3D"none">> ex= ternal network provider ?<br clear=3D"none">> <br clear=3D"none">> <b= r clear=3D"none">> > I am using oVirt 3.4.0-1.fc19.<br clear=3D"none"=
> > <br clear=3D"none">> > Thank you.<br clear=3D"none">> &= gt; <br clear=3D"none">> > Regards,<br clear=3D"none">> > Udaya= Kiran<br clear=3D"none">> > <br clear=3D"none">> > _____________________________________________= __<br clear=3D"none">> > Users mailing list<br clear=3D"none">> &g= t; <a shape=3D"rect" ymailto=3D"mailto:Users@ovirt.org" href=3D"mailto:User= s@ovirt.org">Users@ovirt.org</a><br clear=3D"none">> > <a shape=3D"re= ct" href=3D"http://lists.ovirt.org/mailman/listinfo/users" target=3D"_blank= ">http://lists.ovirt.org/mailman/listinfo/users</a><br clear=3D"none">> = ></div><br><br></div> </div> </div> </div> </div></body></html> ---2097401939-678094741-1402997843=:46839--

----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 12:37:23 PM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
ThankYou for your inputs.
I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch new instance in OpenStack, internally VM should get created in oVirt Host, with the same mac address as assigned by OpenStack, get added to the same Network as selected in OpenStack.
I am able to spawn a VM and run through the complete the full lifecycle (spawn, pause, reboot, terminate etc).
Now, I am looking at how can I add NIC with the same mac address. I see port is already been created at the OpenStack end.
Should I Hot plug it?
or
Prevent Neutron from creating port initially and later use the port created by the oVirt to Neutron?
This seems like the right approach.
Please suggest your thoughts on this.
Regards, Udaya Kiran
On Tuesday, 17 June 2014 2:33 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 8:46:19 AM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
Sorry for the delayed response.
The command neutron agent-list on the neutron server gives the alive status as xxx, for the neutron-ovs-agent that is installed on the oVirt Host. However, I am able to import the network from OpenStack into oVirt.
The port for the mac_address assigned is already created in the neutron server. Therefore, when I try to add it again, it gives error, port already exists.
How do I attach this port to the VM in oVirt.
In the ovirt-neutron integration the ports are allocated for the vm by ovirt. The ovirt-engine creates the port on the neutron server and bind it to the vm nic: 1. Click on the specific vm 2. Select the 'Vm Interfaces' sub tab 3. Add a vm interface, and select the profile/network of Net1 (the imported neutron network).
At this point, you should see on your neutron server the created port (by 'neutron port-list'). The mac address for that port will be the one selected by the engine. You can provide your own custom mac address (as long it is unique).
Once the vm is started or if the nic was added while the vm is running (hotplug), the vdsm-hook-openstacknet will wire the port to the integration bridge and the neutron-ovs-agent will become aware of it.
Could you elaborate about your use-cases and what would you like to achieve with ovirt-neutron ?
You can also ping me (masayag) on #ovirt (oftc.net)
Regards,
Moti
How do I interact with the neutron-ovs-agent to get the port and assign to oVirt VM.
Please suggest your inputs.
Thank You.
Regards, Udaya Kiran
On Wednesday, 28 May 2014 5:54 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "users" <users@ovirt.org> Sent: Wednesday, May 28, 2014 2:46:00 PM Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi All,
I am working on Nova - oVirt driver. I was able to test the VM life cycle successfully - spawn, suspend, resume, shuttof, start and terminate.
I am now exploring the Neutron integration in oVirt. I have imported the Network (Net1) form Openstack to oVirt.
I get the below error when I try to add a NIC (for imported Net1) to the VM (created by Nova-oVirt driver), having the same MAC address which is assigned in Openstack (Port Details page).
"Error while executing action Add NIC to VM: Failed to communicate with the external provider."
However, I am able to add a NIC with different MAC address.
What changes needs to be done to add a NIC with MAC address as assigned by Neutron? Please suggest.
Could you attach the neutron server log (/etc/neutron/server.log) from the external network provider ?
I am using oVirt 3.4.0-1.fc19.
Thank you.
Regards, Udaya Kiran
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Sent: Tuesday, June 17, 2014 8:46:19 AM=0A> > Subject: Re: [ovirt-users]= Nova- oVirt Driver : Adding NIC to VM=0A> > =0A> > Hi Moti,=0A> > =0A> > S= orry for the delayed response.=0A> > =0A> > The command neutron agent-list = on the neutron server gives the alive status=0A> > as xxx, for the neutron-= ovs-agent that is installed on the oVirt Host.=0A> > =A0However, I am able = to import the network from OpenStack into oVirt.=0A> > =0A> > The port for =
=0A> > > I am working on Nova - oVirt driver. I was able to test the V= M life cycle=0A> > > successfully - spawn, suspend, resume, shuttof, start = and terminate.=0A> > > =0A> > > I am now exploring the Neutron integration = in oVirt. I have imported the=0A> > > Network (Net1) form Openstack to oVir= t.=0A> > > =0A> > > I get the below error when I try to add a NIC (for impo= rted Net1) to the=0A> > > VM=0A> > > (created by Nova-oVirt driver), having=
--1733456068-2106443944-1403005886=:95039 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Moti,=0A=0AFew more thoughts..=0A=0A1) Can I bypass the ovirt-neutron dr= iver, =A0to make ovirt to add NIC only within it and not going to OpenStack= - as to avoid port already exists error?=0A=0A2) Delete the port created = =A0by OpenStack, in my driver code and recreate same via oVirt by allow it = to be created through oVirt?=0A=0A=0APlease suggest your inputs.=0A=0A=0ATh= anks much.=0A=0ARegards,=0AUdaya Kiran=0A=0A=0AOn Tuesday, 17 June 2014 4:5= 5 PM, Moti Asayag <masayag@redhat.com> wrote:=0A =0A=0A=0A=0A=0A----- Origi= nal Message -----=0A> From: "Udaya Kiran P" <ukiran770@yahoo.in>=0A> To: "M= oti Asayag" <masayag@redhat.com>=0A> Cc: "users" <users@ovirt.org>=0A> Sent= : Tuesday, June 17, 2014 12:37:23 PM=0A> Subject: Re: [ovirt-users] Nova- o= Virt Driver : Adding NIC to VM=0A> =0A> Hi Moti,=0A> =0A> ThankYou for your= inputs.=0A> =0A> I want a VM to be launched in oVirt, through Nova. i.e., = When I say,launch=0A> new instance in OpenStack, internally VM should get c= reated in oVirt Host,=0A> with the same mac address as assigned by OpenStac= k, get added to the same=0A> Network as selected in OpenStack.=0A> =0A> I a= m able to spawn a VM =A0and run through the complete the full lifecycle=0A>= (spawn, pause, reboot, terminate etc).=0A> =0A> Now, I am looking at how c= an I add NIC with the same mac address. I see port=0A> is already been crea= ted at the OpenStack end.=0A> =0A> Should I Hot plug it?=0A> =0A> or=0A> = =0A> Prevent Neutron from creating port initially and later use the port cr= eated=0A> by the oVirt to Neutron?=0A=0AThis seems like the right approach.= =0A=0A=0A> =0A> Please suggest your thoughts on this.=0A> =0A> =0A> Regards= ,=0A> Udaya Kiran=0A> =0A> =0A> On Tuesday, 17 June 2014 2:33 PM, Moti Asay= ag <masayag@redhat.com> wrote:=0A>=A0 =0A> =0A> =0A> =0A> =0A> ----- Origin= al Message -----=0A> > From: "Udaya Kiran P" <ukiran770@yahoo.in>=0A> > To:= "Moti Asayag" <masayag@redhat.com>=0A> > Cc: "users" <users@ovirt.org>=0A>= the mac_address assigned is already created in the neutron=0A> > server. Th= erefore, when I try to add it again, it gives error, port already=0A> > exi= sts.=0A> > =0A> > How do I attach this port to the VM in oVirt.=0A> =0A> In= the ovirt-neutron integration the ports are allocated for the vm by ovirt.= =0A> The ovirt-engine creates the port on the neutron server and bind it to= the=0A> vm nic:=0A> 1. Click on the specific vm=0A> 2. Select the 'Vm Inte= rfaces' sub tab=0A> 3. Add a vm interface, and select the profile/network o= f Net1 (the imported=0A> neutron=0A> network).=0A> =0A> At this point, you = should see on your neutron server the created port (by=0A> 'neutron port-li= st').=0A> The mac address for that port will be the one selected by the eng= ine.=0A> You can provide your own custom mac address (as long it is unique)= .=0A> =0A> Once the vm is started or if the nic was added while the vm is r= unning=0A> (hotplug),=0A> the vdsm-hook-openstacknet will wire the port to = the integration bridge and=0A> the neutron-ovs-agent will become aware of i= t.=0A> =0A> Could you elaborate about your use-cases and what would you lik= e to achieve=0A> with ovirt-neutron ?=0A> =0A> You can also ping me (masaya= g) on #ovirt (oftc.net)=0A> =0A> Regards,=0A> =0A> Moti=0A> =0A> > =0A> > H= ow do I interact with the neutron-ovs-agent to get the port and assign to= =0A> > oVirt VM.=0A> > =0A> > Please suggest your inputs.=0A> > =0A> > Than= k You.=0A> > =0A> > Regards,=0A> > Udaya Kiran=0A> > =0A> > =0A> > On Wedne= sday, 28 May 2014 5:54 PM, Moti Asayag <masayag@redhat.com> wrote:=0A> >=A0= =0A> > =0A> > =0A> > =0A> > =0A> > ----- Original Message -----=0A> > > Fr= om: "Udaya Kiran P" <ukiran770@yahoo.in>=0A> > > To: "users" <users@ovirt.o= rg>=0A> > > Sent: Wednesday, May 28, 2014 2:46:00 PM=0A> > > Subject: [ovir= t-users] Nova- oVirt Driver : Adding NIC to VM=0A> > > =0A> > > Hi All,=0A>= the same MAC address which is=0A> > > assigned in Openstack (Port Details = page).=0A> > > =0A> > > "Error while executing action Add NIC to VM: Failed= to communicate with=0A> > > the=0A> > > external provider."=0A> > > =0A> >=
However, I am able to add a NIC with different MAC address.=0A> > > =0A>=
What changes needs to be done to add a NIC with MAC address as assigne= d=0A> > > by=0A> > > Neutron? Please suggest.=0A> > > =0A> > =0A> > Could y= ou attach the neutron server log (/etc/neutron/server.log) from the=0A> > e= xternal network provider ?=0A> > =0A> > =0A> > > I am using oVirt 3.4.0-1.f= c19.=0A> > > =0A> > > Thank you.=0A> > > =0A> > > Regards,=0A> > > Udaya Ki= ran=0A> > > =0A> > > _______________________________________________=0A> > = Users mailing list=0A> > > Users@ovirt.org=0A> > > http://lists.ovirt.org= /mailman/listinfo/users=0A> > > --1733456068-2106443944-1403005886=:95039 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
> Now, I am looking at how can I add NIC with the same mac address. I see port<br clear=3D"none">= > is already been created at the OpenStack end.<br clear=3D"none">> <= br clear=3D"none">> Should I Hot plug it?<br clear=3D"none">> <br cle= ar=3D"none">> or<br clear=3D"none">> <br clear=3D"none">> Prevent = Neutron from creating port initially and later use the port created<br clea= r=3D"none">> by the oVirt to Neutron?<br clear=3D"none"><br clear=3D"non= e">This seems like the right approach.<div class=3D"yqt2232438027" id=3D"yq= tfd28813"><br clear=3D"none"><br clear=3D"none">> <br clear=3D"none">>= ; Please suggest your thoughts on this.<br clear=3D"none">> <br clear=3D= "none">> <br clear=3D"none">> Regards,<br clear=3D"none">> Udaya K= iran<br clear=3D"none">> <br clear=3D"none">> <br clear=3D"none">>= On Tuesday, 17 June 2014 2:33 PM, Moti Asayag <<a shape=3D"rect" ymailt= o=3D"mailto:masayag@redhat.com" href=3D"mailto:masayag@redhat.com">masayag@= redhat.com</a>> wrote:<br clear=3D"none">> <br clear=3D"none">> <br clear=3D"none">> = <br clear=3D"none">> <br clear=3D"none">> <br clear=3D"none">> ---= -- Original Message -----<br clear=3D"none">> > From: "Udaya Kiran P"= <<a shape=3D"rect" ymailto=3D"mailto:ukiran770@yahoo.in" href=3D"mailto= :ukiran770@yahoo.in">ukiran770@yahoo.in</a>><br clear=3D"none">> >= To: "Moti Asayag" <<a shape=3D"rect" ymailto=3D"mailto:masayag@redhat.c= om" href=3D"mailto:masayag@redhat.com">masayag@redhat.com</a>><br clear= =3D"none">> > Cc: "users" <<a shape=3D"rect" ymailto=3D"mailto:use= rs@ovirt.org" href=3D"mailto:users@ovirt.org">users@ovirt.org</a>><br cl= ear=3D"none">> > Sent: Tuesday, June 17, 2014 8:46:19 AM<br clear=3D"= none">> > Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC = to VM<br clear=3D"none">> > <br clear=3D"none">> > Hi Moti,<br = clear=3D"none">> > <br clear=3D"none">> > Sorry for the delayed= response.<br clear=3D"none">> > <br clear=3D"none">> > The command neutron agent-list on the neutron ser= ver gives the alive status<br clear=3D"none">> > as xxx, for the neut= ron-ovs-agent that is installed on the oVirt Host.<br clear=3D"none">> &= gt; However, I am able to import the network from OpenStack into oVir= t.<br clear=3D"none">> > <br clear=3D"none">> > The port for th= e mac_address assigned is already created in the neutron<br clear=3D"none">= > > server. Therefore, when I try to add it again, it gives error, po= rt already<br clear=3D"none">> > exists.<br clear=3D"none">> > = <br clear=3D"none">> > How do I attach this port to the VM in oVirt.<= br clear=3D"none">> <br clear=3D"none">> In the ovirt-neutron integra= tion the ports are allocated for the vm by ovirt.<br clear=3D"none">> Th= e ovirt-engine creates the port on the neutron server and bind it to the<br= clear=3D"none">> vm nic:<br clear=3D"none">> 1. Click on the specifi= c vm<br clear=3D"none">> 2. Select the 'Vm Interfaces' sub tab<br clear=3D"none= ">> 3. Add a vm interface, and select the profile/network of Net1 (the i= mported<br clear=3D"none">> neutron<br clear=3D"none">> network).<br = clear=3D"none">> <br clear=3D"none">> At this point, you should see o= n your neutron server the created port (by<br clear=3D"none">> 'neutron =
<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:10pt"><div><span>Hi Moti,</= span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family:= 'times new roman', 'new york', times, serif; font-style: normal; backgroun= d-color: transparent;"><span><br></span></div><div style=3D"color: rgb(0, 0= , 0); font-size: 13px; font-family: 'times new roman', 'new york', times, s= erif; font-style: normal; background-color: transparent;"><span>Few more th= oughts..</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; fo= nt-family: 'times new roman', 'new york', times, serif; font-style: normal;= background-color: transparent;"><span><br></span></div><div style=3D"color= : rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york'= , times, serif; font-style: normal; background-color: transparent;"><span>1= ) Can I bypass the ovirt-neutron driver, to make ovirt to add NIC onl= y within it and not going to OpenStack - as to avoid port already exists err= or?</span></div><div style=3D"color: rgb(0, 0, 0); font-size: 13px; font-fa= mily: 'times new roman', 'new york', times, serif; font-style: normal; back= ground-color: transparent;"><span><br></span></div><div style=3D"color: rgb= (0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', tim= es, serif; font-style: normal; background-color: transparent;"><span style= =3D"background-color: transparent;">2) Delete the port created by Ope= nStack, in my driver code and recreate same via oVirt by allow it to be cre= ated through oVirt?</span><br></div><div style=3D"color: rgb(0, 0, 0); font= -size: 13px; font-family: 'times new roman', 'new york', times, serif; font= -style: normal; background-color: transparent;"><span><br></span></div><div= style=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new rom= an', 'new york', times, serif; font-style: normal; background-color: transparent;"><span style=3D"background-color: transparent;">Please sugges= t your inputs.</span><br></div><div style=3D"color: rgb(0, 0, 0); font-size= : 13px; font-family: 'times new roman', 'new york', times, serif; font-styl= e: normal; background-color: transparent;"><span><br></span></div><div styl= e=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', = 'new york', times, serif; font-style: normal; background-color: transparent= ;"><span>Thanks much.</span></div><div style=3D"color: rgb(0, 0, 0); font-s= ize: 13px; font-family: 'times new roman', 'new york', times, serif; font-s= tyle: normal; background-color: transparent;"><span><br></span></div><div s= tyle=3D"color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman= ', 'new york', times, serif; font-style: normal; background-color: transpar= ent;"><span>Regards,</span></div><div style=3D"color: rgb(0, 0, 0); font-si= ze: 13px; font-family: 'times new roman', 'new york', times, serif; font-st= yle: normal; background-color: transparent;"><span>Udaya Kiran</span></div> <di= v class=3D"qtdSeparateBR"><br><br></div><div class=3D"yahoo_quoted" style= =3D"display: block;"> <div style=3D"font-family: 'times new roman', 'new yo= rk', times, serif; font-size: 10pt;"> <div style=3D"font-family: 'times new= roman', 'new york', times, serif; font-size: 12pt;"> <div dir=3D"ltr"> <fo= nt size=3D"2" face=3D"Arial"> On Tuesday, 17 June 2014 4:55 PM, Moti Asayag= <masayag@redhat.com> wrote:<br> </font> </div> <br><br> <div class= =3D"y_msg_container"><br clear=3D"none"><br clear=3D"none">----- Original M= essage -----<br clear=3D"none">> From: "Udaya Kiran P" <<a shape=3D"r= ect" ymailto=3D"mailto:ukiran770@yahoo.in" href=3D"mailto:ukiran770@yahoo.i= n">ukiran770@yahoo.in</a>><br clear=3D"none">> To: "Moti Asayag" <= <a shape=3D"rect" ymailto=3D"mailto:masayag@redhat.com" href=3D"mailto:masa= yag@redhat.com">masayag@redhat.com</a>><br clear=3D"none">> Cc: "user= s" <<a shape=3D"rect" ymailto=3D"mailto:users@ovirt.org" href=3D"mailto:users@ovirt.org">users@o= virt.org</a>><br clear=3D"none">> Sent: Tuesday, June 17, 2014 12:37:= 23 PM<br clear=3D"none">> Subject: Re: [ovirt-users] Nova- oVirt Driver = : Adding NIC to VM<br clear=3D"none">> <br clear=3D"none">> Hi Moti,<= br clear=3D"none">> <br clear=3D"none">> ThankYou for your inputs.<br= clear=3D"none">> <br clear=3D"none">> I want a VM to be launched in = oVirt, through Nova. i.e., When I say,launch<br clear=3D"none">> new ins= tance in OpenStack, internally VM should get created in oVirt Host,<br clea= r=3D"none">> with the same mac address as assigned by OpenStack, get add= ed to the same<br clear=3D"none">> Network as selected in OpenStack.<br = clear=3D"none">> <br clear=3D"none">> I am able to spawn a VM a= nd run through the complete the full lifecycle<br clear=3D"none">> (spaw= n, pause, reboot, terminate etc).<br clear=3D"none">> <br clear=3D"none"= port-list').<br clear=3D"none">> The mac address for that port will be t= he one selected by the engine.<br clear=3D"none">> You can provide your = own custom mac address (as long it is unique).<br clear=3D"none">> <br c= lear=3D"none">> Once the vm is started or if the nic was added while the= vm is running<br clear=3D"none">> (hotplug),<br clear=3D"none">> the= vdsm-hook-openstacknet will wire the port to the integration bridge and<br= clear=3D"none">> the neutron-ovs-agent will become aware of it.<br clea= r=3D"none">> <br clear=3D"none">> Could you elaborate about your use-= cases and what would you like to achieve<br clear=3D"none">> with ovirt-neutron ?<br clear=3D"no= ne">> <br clear=3D"none">> You can also ping me (masayag) on #ovirt (= oftc.net)<br clear=3D"none">> <br clear=3D"none">> Regards,<br clear= =3D"none">> <br clear=3D"none">> Moti<br clear=3D"none">> <br clea= r=3D"none">> > <br clear=3D"none">> > How do I interact with th= e neutron-ovs-agent to get the port and assign to<br clear=3D"none">> &g= t; oVirt VM.<br clear=3D"none">> > <br clear=3D"none">> > Pleas= e suggest your inputs.<br clear=3D"none">> > <br clear=3D"none">> = > Thank You.<br clear=3D"none">> > <br clear=3D"none">> > Re= gards,<br clear=3D"none">> > Udaya Kiran<br clear=3D"none">> > = <br clear=3D"none">> > <br clear=3D"none">> > On Wednesday, 28 = May 2014 5:54 PM, Moti Asayag <<a shape=3D"rect" ymailto=3D"mailto:masay= ag@redhat.com" href=3D"mailto:masayag@redhat.com">masayag@redhat.com</a>>= ; wrote:<br clear=3D"none">> > <br clear=3D"none">> > <br clear=3D"none">> > <br clear=3D"non= e">> > <br clear=3D"none">> > <br clear=3D"none">> > ----= - Original Message -----<br clear=3D"none">> > > From: "Udaya Kira= n P" <<a shape=3D"rect" ymailto=3D"mailto:ukiran770@yahoo.in" href=3D"ma= ilto:ukiran770@yahoo.in">ukiran770@yahoo.in</a>><br clear=3D"none">> = > > To: "users" <<a shape=3D"rect" ymailto=3D"mailto:users@ovirt.o= rg" href=3D"mailto:users@ovirt.org">users@ovirt.org</a>><br clear=3D"non= e">> > > Sent: Wednesday, May 28, 2014 2:46:00 PM<br clear=3D"none= ">> > > Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to = VM<br clear=3D"none">> > > <br clear=3D"none">> > > Hi Al= l,<br clear=3D"none">> > > <br clear=3D"none">> > > I am = working on Nova - oVirt driver. I was able to test the VM life cycle<br cle= ar=3D"none">> > > successfully - spawn, suspend, resume, shuttof, = start and terminate.<br clear=3D"none">> > > <br clear=3D"none">> > > I am now e= xploring the Neutron integration in oVirt. I have imported the<br clear=3D"= none">> > > Network (Net1) form Openstack to oVirt.<br clear=3D"no= ne">> > > <br clear=3D"none">> > > I get the below error = when I try to add a NIC (for imported Net1) to the<br clear=3D"none">> &= gt; > VM<br clear=3D"none">> > > (created by Nova-oVirt driver)= , having the same MAC address which is<br clear=3D"none">> > > ass= igned in Openstack (Port Details page).<br clear=3D"none">> > > <b= r clear=3D"none">> > > "Error while executing action Add NIC to VM= : Failed to communicate with<br clear=3D"none">> > > the<br clear= =3D"none">> > > external provider."<br clear=3D"none">> > &g= t; <br clear=3D"none">> > > However, I am able to add a NIC with d= ifferent MAC address.<br clear=3D"none">> > > <br clear=3D"none">&= gt; > > What changes needs to be done to add a NIC with MAC address as assigned<br clear=3D"non= e">> > > by<br clear=3D"none">> > > Neutron? Please sugge= st.<br clear=3D"none">> > > <br clear=3D"none">> > <br clear= =3D"none">> > Could you attach the neutron server log (/etc/neutron/s= erver.log) from the<br clear=3D"none">> > external network provider ?= <br clear=3D"none">> > <br clear=3D"none">> > <br clear=3D"none= ">> > > I am using oVirt 3.4.0-1.fc19.<br clear=3D"none">> >= > <br clear=3D"none">> > > Thank you.<br clear=3D"none">> &= gt; > <br clear=3D"none">> > > Regards,<br clear=3D"none">> = > > Udaya Kiran<br clear=3D"none">> > > <br clear=3D"none">&= gt; > > _______________________________________________<br clear=3D"n= one">> > > Users mailing list<br clear=3D"none">> > > <a = shape=3D"rect" ymailto=3D"mailto:Users@ovirt.org" href=3D"mailto:Users@ovir= t.org">Users@ovirt.org</a><br clear=3D"none">> > > <a shape=3D"rect" href=3D"http://lists.ovirt= .org/mailman/listinfo/users" target=3D"_blank">http://lists.ovirt.org/mailm= an/listinfo/users</a><br clear=3D"none">> > ></div><br><br></div> = </div> </div> </div> </div></body></html> --1733456068-2106443944-1403005886=:95039--

----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 2:51:26 PM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
Few more thoughts..
1) Can I bypass the ovirt-neutron driver, to make ovirt to add NIC only within it and not going to OpenStack - as to avoid port already exists error?
This isn't supported by ovirt. In order to ovirt to handle the nic properly it should be created by it. I'm not familiar with Nova-ovirt integration - noticed there is an unimplemented blueprint [1] and a PoC [2]. Which Nova-ovirt driver are you using ? [1] https://blueprints.launchpad.net/nova/+spec/rhev-m-ovirt-clusters-as-compute... [2] https://github.com/oourfali/openstack-ovirt-driver
2) Delete the port created by OpenStack, in my driver code and recreate same via oVirt by allow it to be created through oVirt?
Ignoring the driver for a second: Creating the vnic from within oVirt will create it on neutron. So if the issue is a taken mac address on neutron, removing the port from neutron and recreating it by ovirt should work.
Please suggest your inputs.
Thanks much.
Regards, Udaya Kiran
On Tuesday, 17 June 2014 4:55 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 12:37:23 PM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
ThankYou for your inputs.
I want a VM to be launched in oVirt, through Nova. i.e., When I say,launch new instance in OpenStack, internally VM should get created in oVirt Host, with the same mac address as assigned by OpenStack, get added to the same Network as selected in OpenStack.
I am able to spawn a VM and run through the complete the full lifecycle (spawn, pause, reboot, terminate etc).
Now, I am looking at how can I add NIC with the same mac address. I see port is already been created at the OpenStack end.
Should I Hot plug it?
or
Prevent Neutron from creating port initially and later use the port created by the oVirt to Neutron?
This seems like the right approach.
Please suggest your thoughts on this.
Regards, Udaya Kiran
On Tuesday, 17 June 2014 2:33 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "Moti Asayag" <masayag@redhat.com> Cc: "users" <users@ovirt.org> Sent: Tuesday, June 17, 2014 8:46:19 AM Subject: Re: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi Moti,
Sorry for the delayed response.
The command neutron agent-list on the neutron server gives the alive status as xxx, for the neutron-ovs-agent that is installed on the oVirt Host. However, I am able to import the network from OpenStack into oVirt.
The port for the mac_address assigned is already created in the neutron server. Therefore, when I try to add it again, it gives error, port already exists.
How do I attach this port to the VM in oVirt.
In the ovirt-neutron integration the ports are allocated for the vm by ovirt. The ovirt-engine creates the port on the neutron server and bind it to the vm nic: 1. Click on the specific vm 2. Select the 'Vm Interfaces' sub tab 3. Add a vm interface, and select the profile/network of Net1 (the imported neutron network).
At this point, you should see on your neutron server the created port (by 'neutron port-list'). The mac address for that port will be the one selected by the engine. You can provide your own custom mac address (as long it is unique).
Once the vm is started or if the nic was added while the vm is running (hotplug), the vdsm-hook-openstacknet will wire the port to the integration bridge and the neutron-ovs-agent will become aware of it.
Could you elaborate about your use-cases and what would you like to achieve with ovirt-neutron ?
You can also ping me (masayag) on #ovirt (oftc.net)
Regards,
Moti
How do I interact with the neutron-ovs-agent to get the port and assign to oVirt VM.
Please suggest your inputs.
Thank You.
Regards, Udaya Kiran
On Wednesday, 28 May 2014 5:54 PM, Moti Asayag <masayag@redhat.com> wrote:
----- Original Message -----
From: "Udaya Kiran P" <ukiran770@yahoo.in> To: "users" <users@ovirt.org> Sent: Wednesday, May 28, 2014 2:46:00 PM Subject: [ovirt-users] Nova- oVirt Driver : Adding NIC to VM
Hi All,
I am working on Nova - oVirt driver. I was able to test the VM life cycle successfully - spawn, suspend, resume, shuttof, start and terminate.
I am now exploring the Neutron integration in oVirt. I have imported the Network (Net1) form Openstack to oVirt.
I get the below error when I try to add a NIC (for imported Net1) to the VM (created by Nova-oVirt driver), having the same MAC address which is assigned in Openstack (Port Details page).
"Error while executing action Add NIC to VM: Failed to communicate with the external provider."
However, I am able to add a NIC with different MAC address.
What changes needs to be done to add a NIC with MAC address as assigned by Neutron? Please suggest.
Could you attach the neutron server log (/etc/neutron/server.log) from the external network provider ?
I am using oVirt 3.4.0-1.fc19.
Thank you.
Regards, Udaya Kiran
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Moti Asayag
-
Udaya Kiran P