Re: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-10 Thread Moti Asayag


- Original Message -
 From: Satya Vempati svemp...@tintri.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Tuesday, February 11, 2014 12:45:36 AM
 Subject: Re: [Users] Adding a VMNIC via the REST api returns no error, but 
 the NIC isn't added
 
 I am using Postman rest client from Google. I am using the REST interface
 directly.
 
 I may a little behind on the versions, so let me see if I have more recent
 version I could install and see if the problem goes away.
 

Note that once [1] will be merged (will be included in 3.4), the usage of
the former api for adding/updating vnic of vm/template with network name and
port mirroring will be more predictable and easy to use.

Just posted a post for that matter with few examples on [2].

[1] https://bugzilla.redhat.com/1047887
[2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/

 On 2/9/14, 12:40 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
 - Original Message -
  From: Satya Vempati svemp...@tintri.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@ovirt.org
  Sent: Sunday, February 9, 2014 7:42:07 PM
  Subject: Re: [Users] Adding a VMNIC via the REST api returns no error,
 but the NIC isn't added
  
  Thanks for the reply. Should have noted it earlier, I am using
  3.3.0-0.38.rc.el6ev.
  
  I am chiefly concerned that no error is thrown when a nic isn¹t added,
 so
  when I am doing this programmatically I wouldn¹t be able to discover
 that
  the operation failed.
  
 
 I just tried the same example and got the following error:
 
 fault
 reasonOperation Failed/reason
 detail
 [Cannot add Interface. There is no VM network interface profile for the
 network the user can use. - Please use a VM network interface profile
 instead of a network name.]
 /detail
 /fault
 
 Where you using the restapi directly or used the SDK for posting that
 request ?
 Please provide the steps to reproduce this issue, since i wasn't able to
 experience the same behavior.
 
  On 2/9/14, 7:56 AM, Moti Asayag masa...@redhat.com wrote:
  
  - Original Message -
   From: Satya Vempati svemp...@tintri.com
   To: users@ovirt.org
   Sent: Sunday, February 9, 2014 5:54:15 AM
   Subject: [Users] Adding a VMNIC via the REST api returns no error,
 but
  the NIC isn't added
   
   POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
   
   nic
   nameeth0/name
   network
   namerhevm/name
   /network
   interfacevirtio/interface
   port_mirroring
   networks
   network
   namerhevm/name
   /network
   /networks
   /port_mirroring
   /nic
   
   Return code is 200, but no VM Nic is added.
  
  Assuming this is ovirt-engine-3.3 and above:
  
  Do you have a vnic profile for rhevm network with port_mirroring
 enabled ?
  Which user are you using for adding this vnic ?
  
  You need to verify such a vnic profile exist and the user which adds
 the
  vnic has permissions to use that profile.
  
  Alternately, you can provide the vnic_profile_id instead of the network
  name
  and the port mirroring which is the deprecated signature.
  
  http://www.ovirt.org/Features/Vnic_Profiles#REST_API
  
   
   ___
   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: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Antoni Segura Puimedon


- Original Message -
 From: Satya Vempati svemp...@tintri.com
 To: users@ovirt.org
 Sent: Sunday, February 9, 2014 4:54:15 AM
 Subject: [Users] Adding a VMNIC via the REST api returns no error, but the 
 NIC isn't added
 
 POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
 
 nic
 nameeth0/name
 network
 namerhevm/name
 /network
 interfacevirtio/interface
 port_mirroring
 networks
 network
 namerhevm/name
 /network
 /networks
 /port_mirroring
 /nic
 
 Return code is 200, but no VM Nic is added.

Could you please attach /var/log/vdsm/vdsm.log and
/var/log/vdsm/supervdsm.log for the target host machine?

 
 ___
 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: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Moti Asayag
- Original Message -
 From: Satya Vempati svemp...@tintri.com
 To: users@ovirt.org
 Sent: Sunday, February 9, 2014 5:54:15 AM
 Subject: [Users] Adding a VMNIC via the REST api returns no error, but the 
 NIC isn't added
 
 POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
 
 nic
 nameeth0/name
 network
 namerhevm/name
 /network
 interfacevirtio/interface
 port_mirroring
 networks
 network
 namerhevm/name
 /network
 /networks
 /port_mirroring
 /nic
 
 Return code is 200, but no VM Nic is added.

Assuming this is ovirt-engine-3.3 and above: 

Do you have a vnic profile for rhevm network with port_mirroring enabled ?
Which user are you using for adding this vnic ?

You need to verify such a vnic profile exist and the user which adds the
vnic has permissions to use that profile.

Alternately, you can provide the vnic_profile_id instead of the network name
and the port mirroring which is the deprecated signature.

http://www.ovirt.org/Features/Vnic_Profiles#REST_API

 
 ___
 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: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Satya Vempati
Thanks for the reply. Should have noted it earlier, I am using
3.3.0-0.38.rc.el6ev.

I am chiefly concerned that no error is thrown when a nic isn¹t added, so
when I am doing this programmatically I wouldn¹t be able to discover that
the operation failed.

On 2/9/14, 7:56 AM, Moti Asayag masa...@redhat.com wrote:

- Original Message -
 From: Satya Vempati svemp...@tintri.com
 To: users@ovirt.org
 Sent: Sunday, February 9, 2014 5:54:15 AM
 Subject: [Users] Adding a VMNIC via the REST api returns no error, but
the NIC isn't added
 
 POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
 
 nic
 nameeth0/name
 network
 namerhevm/name
 /network
 interfacevirtio/interface
 port_mirroring
 networks
 network
 namerhevm/name
 /network
 /networks
 /port_mirroring
 /nic
 
 Return code is 200, but no VM Nic is added.

Assuming this is ovirt-engine-3.3 and above:

Do you have a vnic profile for rhevm network with port_mirroring enabled ?
Which user are you using for adding this vnic ?

You need to verify such a vnic profile exist and the user which adds the
vnic has permissions to use that profile.

Alternately, you can provide the vnic_profile_id instead of the network
name
and the port mirroring which is the deprecated signature.

http://www.ovirt.org/Features/Vnic_Profiles#REST_API

 
 ___
 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: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Moti Asayag


- Original Message -
 From: Satya Vempati svemp...@tintri.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Sunday, February 9, 2014 7:42:07 PM
 Subject: Re: [Users] Adding a VMNIC via the REST api returns no error, but 
 the NIC isn't added
 
 Thanks for the reply. Should have noted it earlier, I am using
 3.3.0-0.38.rc.el6ev.
 
 I am chiefly concerned that no error is thrown when a nic isn¹t added, so
 when I am doing this programmatically I wouldn¹t be able to discover that
 the operation failed.
 

I just tried the same example and got the following error:

fault
reasonOperation Failed/reason
detail
[Cannot add Interface. There is no VM network interface profile for the network 
the user can use. - Please use a VM network interface profile instead of a 
network name.]
/detail
/fault

Where you using the restapi directly or used the SDK for posting that request ?
Please provide the steps to reproduce this issue, since i wasn't able to
experience the same behavior.

 On 2/9/14, 7:56 AM, Moti Asayag masa...@redhat.com wrote:
 
 - Original Message -
  From: Satya Vempati svemp...@tintri.com
  To: users@ovirt.org
  Sent: Sunday, February 9, 2014 5:54:15 AM
  Subject: [Users] Adding a VMNIC via the REST api returns no error, but
 the NIC isn't added
  
  POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
  
  nic
  nameeth0/name
  network
  namerhevm/name
  /network
  interfacevirtio/interface
  port_mirroring
  networks
  network
  namerhevm/name
  /network
  /networks
  /port_mirroring
  /nic
  
  Return code is 200, but no VM Nic is added.
 
 Assuming this is ovirt-engine-3.3 and above:
 
 Do you have a vnic profile for rhevm network with port_mirroring enabled ?
 Which user are you using for adding this vnic ?
 
 You need to verify such a vnic profile exist and the user which adds the
 vnic has permissions to use that profile.
 
 Alternately, you can provide the vnic_profile_id instead of the network
 name
 and the port mirroring which is the deprecated signature.
 
 http://www.ovirt.org/Features/Vnic_Profiles#REST_API
 
  
  ___
  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: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Itamar Heim

On 02/09/2014 10:40 PM, Moti Asayag wrote:



- Original Message -

From: Satya Vempati svemp...@tintri.com
To: Moti Asayag masa...@redhat.com
Cc: users@ovirt.org
Sent: Sunday, February 9, 2014 7:42:07 PM
Subject: Re: [Users] Adding a VMNIC via the REST api returns no error, but the 
NIC isn't added

Thanks for the reply. Should have noted it earlier, I am using
3.3.0-0.38.rc.el6ev.

I am chiefly concerned that no error is thrown when a nic isn¹t added, so
when I am doing this programmatically I wouldn¹t be able to discover that
the operation failed.



I just tried the same example and got the following error:

fault
reasonOperation Failed/reason
detail
[Cannot add Interface. There is no VM network interface profile for the network 
the user can use. - Please use a VM network interface profile instead of a 
network name.]
/detail
/fault

Where you using the restapi directly or used the SDK for posting that request ?
Please provide the steps to reproduce this issue, since i wasn't able to
experience the same behavior.


Moti - isn't this a regression to the API as this call should have 
worked as-is pre-3.3 vnic profiles?





On 2/9/14, 7:56 AM, Moti Asayag masa...@redhat.com wrote:


- Original Message -

From: Satya Vempati svemp...@tintri.com
To: users@ovirt.org
Sent: Sunday, February 9, 2014 5:54:15 AM
Subject: [Users] Adding a VMNIC via the REST api returns no error, but
the NIC isn't added

POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics

nic
nameeth0/name
network
namerhevm/name
/network
interfacevirtio/interface
port_mirroring
networks
network
namerhevm/name
/network
/networks
/port_mirroring
/nic

Return code is 200, but no VM Nic is added.


Assuming this is ovirt-engine-3.3 and above:

Do you have a vnic profile for rhevm network with port_mirroring enabled ?
Which user are you using for adding this vnic ?

You need to verify such a vnic profile exist and the user which adds the
vnic has permissions to use that profile.

Alternately, you can provide the vnic_profile_id instead of the network
name
and the port mirroring which is the deprecated signature.

http://www.ovirt.org/Features/Vnic_Profiles#REST_API



___
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



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-09 Thread Moti Asayag


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Sunday, February 9, 2014 11:57:08 PM
 Subject: Re: [Users] Adding a VMNIC via the REST api returns no error, but 
 the NIC isn't added
 
 On 02/09/2014 10:40 PM, Moti Asayag wrote:
 
 
  - Original Message -
  From: Satya Vempati svemp...@tintri.com
  To: Moti Asayag masa...@redhat.com
  Cc: users@ovirt.org
  Sent: Sunday, February 9, 2014 7:42:07 PM
  Subject: Re: [Users] Adding a VMNIC via the REST api returns no error, but
  the NIC isn't added
 
  Thanks for the reply. Should have noted it earlier, I am using
  3.3.0-0.38.rc.el6ev.
 
  I am chiefly concerned that no error is thrown when a nic isn¹t added, so
  when I am doing this programmatically I wouldn¹t be able to discover that
  the operation failed.
 
 
  I just tried the same example and got the following error:
 
  fault
  reasonOperation Failed/reason
  detail
  [Cannot add Interface. There is no VM network interface profile for the
  network the user can use. - Please use a VM network interface profile
  instead of a network name.]
  /detail
  /fault
 
  Where you using the restapi directly or used the SDK for posting that
  request ?
  Please provide the steps to reproduce this issue, since i wasn't able to
  experience the same behavior.
 
 Moti - isn't this a regression to the API as this call should have
 worked as-is pre-3.3 vnic profiles?

If there was a network in  3.3 env which were used for port mirroring, the 
upgrade script to 3.3 would have create a suitable profile for it, therefore
the same code which were run before 3.3 should remain working, for an existing
entities.

However in order to consume new networks configured for port mirroring, there
is a need to define a specific profile for it.

This shares the same concept as introduced by Network permissions: user will be
able to consume a network which was defined before the adding the permissions
feature, but for new networks, it is required to grant a specific permission.
So the equivalent to 'grant a specific permissions' in this case is creating a
matching vnic profile.

 
 
  On 2/9/14, 7:56 AM, Moti Asayag masa...@redhat.com wrote:
 
  - Original Message -
  From: Satya Vempati svemp...@tintri.com
  To: users@ovirt.org
  Sent: Sunday, February 9, 2014 5:54:15 AM
  Subject: [Users] Adding a VMNIC via the REST api returns no error, but
  the NIC isn't added
 
  POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics
 
  nic
  nameeth0/name
  network
  namerhevm/name
  /network
  interfacevirtio/interface
  port_mirroring
  networks
  network
  namerhevm/name
  /network
  /networks
  /port_mirroring
  /nic
 
  Return code is 200, but no VM Nic is added.
 
  Assuming this is ovirt-engine-3.3 and above:
 
  Do you have a vnic profile for rhevm network with port_mirroring enabled
  ?
  Which user are you using for adding this vnic ?
 
  You need to verify such a vnic profile exist and the user which adds the
  vnic has permissions to use that profile.
 
  Alternately, you can provide the vnic_profile_id instead of the network
  name
  and the port mirroring which is the deprecated signature.
 
  http://www.ovirt.org/Features/Vnic_Profiles#REST_API
 
 
  ___
  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
 
 
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Adding a VMNIC via the REST api returns no error, but the NIC isn't added

2014-02-08 Thread Satya Vempati
POST server/api/vms/670fa876-a18d-436c-b999-1dc7cbbd5bcf/nics

nic
  nameeth0/name
  network
  namerhevm/name
  /network
  interfacevirtio/interface
  port_mirroring
networks
  network
namerhevm/name
  /network
/networks
  /port_mirroring
/nic

Return code is 200, but no VM Nic is added.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users