[ovirt-users] Nova- oVirt Driver : Adding NIC to VM

Moti Asayag masayag at redhat.com
Tue Jun 17 12:27:26 UTC 2014



----- Original Message -----
> From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> To: "Moti Asayag" <masayag at redhat.com>
> Cc: "users" <users at 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-resources
[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 at redhat.com> wrote:
>  
> 
> 
> 
> 
> ----- Original Message -----
> > From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> > To: "Moti Asayag" <masayag at redhat.com>
> > Cc: "users" <users at 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 at redhat.com> wrote:
>> > 
> > 
> > 
> > 
> > ----- Original Message -----
> > > From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> > > To: "Moti Asayag" <masayag at redhat.com>
> > > Cc: "users" <users at 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 at redhat.com>
> > > wrote:
> > >  
> > > 
> > > 
> > > 
> > > 
> > > ----- Original Message -----
> > > > From: "Udaya Kiran P" <ukiran770 at yahoo.in>
> > > > To: "users" <users at 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 at ovirt.org
> > > > http://lists.ovirt.org/mailman/listinfo/users
> > > >



More information about the Users mailing list