Re: [ovirt-users] Unable to assign profile to the nic

2014-08-31 Thread Shanil S
Hi Moti,

Thanks for your reply. Let me check it with this solution.

-- 
Regards
Shanil


On Sun, Aug 31, 2014 at 2:15 PM, Moti Asayag  wrote:

>
>
> - Original Message -
> > From: "Shanil S" 
> > To: users@ovirt.org
> > Sent: Thursday, August 28, 2014 11:31:30 AM
> > Subject: [ovirt-users] Unable to assign profile to the nic
> >
> > Hi All,
> >
> > I am unable to assign the profile using the ovirt api code, the
> following xml
> > code is used for creating the nic
> >
> > 
> > virtio
> > eth0
> > static
> > 
> > 
> >  > gateway='".$ip->mac_gateway."'/>
> > 
>
> Try not to provide the 'network' element at all. The vnic profile replaced
> the
> 'network' element when attaching a nic to a network.
>
> In this context you should use either ...
> or
> the .
>
> As Juan explained in other thread, any other parameter for network are
> being
> ignored and network element without name is referred as "empty network".
>
> > true
> > 
> > 
> >
> > Could you please check if anything wrong with it ?
> >
> >
> >
> > --
> > Regards
> > Shanil
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Unable to assign profile to the nic

2014-08-31 Thread Moti Asayag


- Original Message -
> From: "Shanil S" 
> To: users@ovirt.org
> Sent: Thursday, August 28, 2014 11:31:30 AM
> Subject: [ovirt-users] Unable to assign profile to the nic
> 
> Hi All,
> 
> I am unable to assign the profile using the ovirt api code, the following xml
> code is used for creating the nic
> 
> 
> virtio
> eth0
> static
> 
> 
>  gateway='".$ip->mac_gateway."'/>
> 

Try not to provide the 'network' element at all. The vnic profile replaced the 
'network' element when attaching a nic to a network.

In this context you should use either ... or
the .

As Juan explained in other thread, any other parameter for network are being
ignored and network element without name is referred as "empty network".

> true
> 
> 
> 
> Could you please check if anything wrong with it ?
> 
> 
> 
> --
> Regards
> Shanil
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Unable to assign profile to the nic

2014-08-29 Thread Shanil S
Hi Juan,

We are using the using the Ovirt 3.4.3 version.

-- 
Regards
Shanil


On Fri, Aug 29, 2014 at 1:56 PM, Juan Hernandez  wrote:

> On 08/29/2014 05:21 AM, Shanil S wrote:
> > Hi Juan,
> >
> > I have attached the screenshot of the ovirt panel after creating the
> > nic's with the above code, Please check it.
> >
>
> May it be that you are using version 3.3.0? The RESTAPI support for vNIC
> profiles was added in 3.3.1.
>
> > On Thu, Aug 28, 2014 at 3:23 PM, Juan Hernandez  > > wrote:
> >
> > On 08/28/2014 10:31 AM, Shanil S wrote:
> > > Hi All,
> > >
> > > I am unable to assign the profile using the ovirt api code, the
> > > following xml code is used for creating the nic
> > >
> > >  
> > > virtio
> > > eth0
> > > static
> > > 
> > > 
> > >   > > gateway='".$ip->mac_gateway."'/>
> > > 
> > > true
> > > 
> > >
> > >
> > > Could you please check if anything wrong with it ?
> > >
> >
> > There is nothing severely wrong with that XML, it should work. What
> > specific problems are you having? Does the API return an error?
> Anything
> > in the logs?
> >
> > Note also that the boot_protocol, ip, and on_boot elements will just
> be
> > ignored. These elements are used only for host NICs, not for VM
> NICs. If
> > you want to change the IP configuration of the OS of the VM then you
> > have to use whatever mechanisms that OS provides. The RESTAPI can
> help
> > you in these regards only if you combine it with Cloud-init or
> Sysprep.
> >
> > --
> > Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> > 3ºD, 28016 Madrid, Spain
> > Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat
> > S.L.
> >
> >
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Unable to assign profile to the nic

2014-08-29 Thread Juan Hernandez
On 08/29/2014 05:21 AM, Shanil S wrote:
> Hi Juan,
> 
> I have attached the screenshot of the ovirt panel after creating the
> nic's with the above code, Please check it.
> 

May it be that you are using version 3.3.0? The RESTAPI support for vNIC
profiles was added in 3.3.1.

> On Thu, Aug 28, 2014 at 3:23 PM, Juan Hernandez  > wrote:
> 
> On 08/28/2014 10:31 AM, Shanil S wrote:
> > Hi All,
> >
> > I am unable to assign the profile using the ovirt api code, the
> > following xml code is used for creating the nic
> >
> >  
> > virtio
> > eth0
> > static
> > 
> > 
> >   > gateway='".$ip->mac_gateway."'/>
> > 
> > true
> > 
> >
> >
> > Could you please check if anything wrong with it ?
> >
> 
> There is nothing severely wrong with that XML, it should work. What
> specific problems are you having? Does the API return an error? Anything
> in the logs?
> 
> Note also that the boot_protocol, ip, and on_boot elements will just be
> ignored. These elements are used only for host NICs, not for VM NICs. If
> you want to change the IP configuration of the OS of the VM then you
> have to use whatever mechanisms that OS provides. The RESTAPI can help
> you in these regards only if you combine it with Cloud-init or Sysprep.
> 
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat
> S.L.
> 
> 
> 
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 


-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Unable to assign profile to the nic

2014-08-28 Thread Juan Hernandez
On 08/28/2014 10:31 AM, Shanil S wrote:
> Hi All,
> 
> I am unable to assign the profile using the ovirt api code, the
> following xml code is used for creating the nic
> 
>  
> virtio 
> eth0
> static
> 
> 
>   gateway='".$ip->mac_gateway."'/>
> 
> true
> 
>
> 
> Could you please check if anything wrong with it ?
> 

There is nothing severely wrong with that XML, it should work. What
specific problems are you having? Does the API return an error? Anything
in the logs?

Note also that the boot_protocol, ip, and on_boot elements will just be
ignored. These elements are used only for host NICs, not for VM NICs. If
you want to change the IP configuration of the OS of the VM then you
have to use whatever mechanisms that OS provides. The RESTAPI can help
you in these regards only if you combine it with Cloud-init or Sysprep.

-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users