[ovirt-users] Re: Roles and Permissions and Inheritance

2019-01-30 Thread Moti Asayag
On Tue, Jan 29, 2019 at 5:01 PM Brian Wilson  wrote:

> This seems to work however still trying to solve the issue of if we dont
> give access to networks at a higher level (Cluster or DC) then it must be
> given at the Network level for every network that we would like them to
> have access to.   Since we are using an AD group to assign access to the
> networks this would work for initially created network by we as admins but
> brings up an issue for networks they create themselves.
>

Just to make clear - if you allow users to create networks on the system,
you assigned to them Admin role that supports vm creation, and probably
given them that role on the DC.
This allows them to add vnic profile or have full control (update / delete)
for that network.


> We Also would like them to create networks and let that group have access
> to it but is seems we would have to allow them to assign permissions in the
> system to do that, which then opens up a whole other host of problems we
> wouldn't want like the ability to mitigate and access control we implement.
>
> Am I understanding how these permissions work and finding we cannot do the
> below or missing something that would allow the follow use case:
>
>
> Users of Platform are restricted from adding VMs to a few select networks
> Users of Platform are able to create, and share with other team members
> associated with an AD Group, new networks
>-- Strech here if it could be restricted to only certain labels to
> prevent them from using physical nics we haven't already assigned labels to
> as admins
> Users of Platform are not able to modify permissions on objects in
> inventory
>

The MLA (multi-level administration) or the permission model is configured
based on 3 entities per permission:
1. The entity - which entity we'd like to grant the user permission on
(could be the direct entity or higher level in that hierarchy)
2. The user - could be either a user or group that will be granted with the
permission
3. The role - role contains list of action groups to permit. Could be
predefined role or a custom role.

In the mentioned use-case of user or group that creates a VM, where you'd
like that user to be able to grant permission on that network to other
users,
that user should be granted with a role that permits giving permissions to
other users on that network (or higher level, i.e. DC).

You can define a custom role for that, containing the checked options as in
the screenshot, and assign it on the network or on the dc for the user.
If you'd like to grant that role on a DC to the AD group, they should be
able to grant other users to use network (and/or its vnic profiles).
If you'd like to restrict the permission only for the created network by
the user, you should grant it manually (or by restapi script) on the new
network.
There isn't option to provide such role on the create network, since at
time of creation, there is no such entity in the system.
That might require its own RFE.

Please let me know if that makes sense to you and if it solves the
mentioned use-case.

Thanks,
Moti

[image: Selection_999(006).png]


> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/W2PFFSLZA4CZHYY67JXQROFY65EPOKJ2/
>


-- 
Regards,
Moti
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DMC6SZC6A5X6OMSILK4DQEVXN7BF2WAV/


[ovirt-users] Re: Roles and Permissions and Inheritance

2019-01-22 Thread Moti Asayag
On Wed, Dec 12, 2018 at 5:27 PM Brian Wilson  wrote:

> Is there a way to prevent Roles Assigned to Groups on Objects to only
> apply to where it is set?
>
>
> Basically looking for a way to do what we had done in VMWare which
> involved using the do not propagate permission setting.
>
>
> be able
> Seems to me that right now there is no way to set this so if i give access
> to something at the top level of a DC those accesses wlll overide if i then
> explcitly set another role and permission on an object underneath
>
>
> Lets take as a concrete example the ovirtmgmt network.   I do not want
> users in the engine to be able to place VMs on this (but i want the
> Superusers to be able to still) How can i accomplish this with the way
> roles and permissions work with Ovirt?
>

There is an entity named Vnic Profile under the Network element.
When creating the Vnic Profile, you can define if you'd want it to be
'publicly' used or not.
In case you select the 'Public Use' option, a public permissions
(permissions to a special inner user called EVERYONE) is granted on that
profile.
See attached screenshot of that profile:

[image: Selection_978.png]

However, if the VM was already created and has a nic attached to
'ovirtmgmt', the admin will need to remove or replace the profile of the
restricted network.


>
>
> thanks!
> Brian
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/PY6ZITVTLFNXFXN7PQ6TO46UMTVOGB23/
>


-- 
Regards,
Moti
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DQNHNMCR3XMIYCIOBF3DNWFNVFXHI3C3/


Re: [ovirt-users] no katello 3.0 errata available anymore into ovirt

2016-06-27 Thread Moti Asayag
Hi,

The Katello 3.x api is not backward compatible with Katello 2.1 api,
therefore it will not be supported until ovirt-engine-3.6.8.
Patches to support it were merged today [1].

Supporting Katello 3.0 was merged to the ovirt-engine master version last
week and it should be available in the nightly build versions
(both for ovirt-engine-master and ovirt-engine-4.0).

[1] https://gerrit.ovirt.org/#/c/59777/

Thanks,
Moti


On Mon, Jun 27, 2016 at 1:24 PM, Nathanaël Blanchet 
wrote:

> Hi,
>
> I upgraded to the latest katello 3.0, and errata are not available anymore
> for hosts or vms. There is no error, it always displays 0 errata.
> The name of the host/vm is the same as into foreman.
> Though, list of provisionned hosts is still available, so I suppose the
> issue comes from katello API and not foreman API.
> Thank you.
>
> --
> Nathanaël Blanchet
>
> Supervision réseau
> Pôle Infrastrutures Informatiques
> 227 avenue Professeur-Jean-Louis-Viala
> 34193 MONTPELLIER CEDEX 5
> Tél. 33 (0)4 67 54 84 55
> Fax  33 (0)4 67 54 84 14
> blanc...@abes.fr
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



-- 
Regards,
Moti
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cluster's minimum CPU level

2016-02-08 Thread Moti Asayag
Hi Jose,

The correct way to do it is by:
1. Putting all hosts in maintenance mode
2. Changing the cluster cpu type to the desired one
3. Install the new host
4. Activate the hosts
5. Re-run the vms



On Fri, Feb 5, 2016 at 2:24 PM,  wrote:

> Hi,
>  I'm trying to add a new old host (Intel(R) Xeon(R) CPU  X3430  @
> 2.40GHz Intel Nehalem Family) to oVirt Engine Version:
> 3.5.4.2-1.el7.centos.
> But I'm getting this error:
> host does not meet the cluster's minimum CPU level. Missing CPU features :
> model_SandyBridge
>
>
> What happen if I lower the cluster CPU type? Do I loose functionalities?
> Do I need to shutdown all VMs before change the cluster CPU type?
> Do you see any problem here?
>
> Thanks
>
> José
>
>
> --
> --
> Jose Ferradeira
> http://www.logicworks.pt
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Regards,
Moti
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] host status "Non Operational" - how to diagnose & fix?

2016-01-06 Thread Moti Asayag
Hi Will,

The engine relies on the status reported by VDSM for the management network
'ovirtmgmt' and for its underlying nics/vlans.

In order to see the configuration of 'ovirtmgmt' network please paste the
output of the following command to be executed on the host:
vdsClient -s 0 getVdsCaps

In addition, in order to see the reported status of the networks run and
paste on the host:
vdsClient -s 0 getVdsStats

That should give the indication of which nic is reported as down for
ovirtmgmt by vdsm.

On Wed, Jan 6, 2016 at 11:15 AM, Eliraz Levi  wrote:

> Hi Will how are you?
> The log is first pointing about certifications issues:
> 2016-01-04 00:02:11,259 ERROR
> [org.ovirt.engine.core.vdsbroker.jsonrpc.JsonRpcVdsServer]
> (DefaultQuartzScheduler_Worker-81) [] Failed to get peer certification for
> host 'ovirt-node-02': SSL session is invalid
> 2016-01-04 00:02:11,259 ERROR
> [org.ovirt.engine.core.bll.CertificationValidityChecker]
> (DefaultQuartzScheduler_Worker-81) [] Failed to retrieve peer
> certifications for host 'ovirt-node-02'
>
> So first thing we should do is to try and solve this problem.
> Please try to re install the host.
> Thanks.
> Eliraz :)
>
> - Original Message -
> From: "Will Dennis" 
> To: "Eliraz Levi" , "users" 
> Sent: Tuesday, 5 January, 2016 5:46:23 AM
> Subject: Re: [ovirt-users] host status "Non Operational" - how to diagnose
> & fix?
>
> I must admit I’m getting a bit weary of fighting oVirt problems at this
> point… Before I move on to deploying any VMs onto my new infra, I’d like to
> get the base infra working…
>
> I’m still experiencing a “Non Operational” problem on my “ovirt-node-02”
> host:
>
> http://s1096.photobucket.com/user/willdennis/media/ovirt-node-02_problem.png.html
>
> I have pored thru the logs (all the engine logs, plus the syslogs from the
> engine VM + and my three hypervisor/storage hosts) and I can’t pin down why
> the one node is having a problem… Of course with how voluminous all these
> logs are, it’s kind of like looking for a needle in a haystack, and I’m not
> even sure what the needle looks like, or if it’s even a needle :-/
>
> I have also rebooted this host in past days, this also did not fix the
> problem.
>
> Note that on the screenshot I posted above, that the webadmin hosts screen
> says that -node-01 has one VM running, and the others 0… You’d think that
> would be the HE VM running on there, but it’s actually on -node-02:
>
> $ ansible istgroup-ovirt -f 1 -i prod -u root -m shell -a "hosted-engine
> --vm-status | grep -e '^Hostname' -e '^Engine'"
> ovirt-node-01 | success | rc=0 >>
> Hostname   : ovirt-node-01
> Engine status  : {"reason": "bad vm status", "health":
> "bad", "vm": "down", "detail": "down"}
> Hostname   : ovirt-node-02
> Engine status  : {"health": "good", "vm": "up",
> "detail": "up"}
> Hostname   : ovirt-node-03
> Engine status  : {"reason": "vm not running on this
> host", "health": "bad", "vm": "down", "detail": "unknown"}
>
> ovirt-node-02 | success | rc=0 >>
> Hostname   : ovirt-node-01
> Engine status  : {"reason": "bad vm status", "health":
> "bad", "vm": "down", "detail": "down"}
> Hostname   : ovirt-node-02
> Engine status  : {"health": "good", "vm": "up",
> "detail": "up"}
> Hostname   : ovirt-node-03
> Engine status  : {"reason": "vm not running on this
> host", "health": "bad", "vm": "down", "detail": "unknown"}
>
> ovirt-node-03 | success | rc=0 >>
> Hostname   : ovirt-node-01
> Engine status  : {"reason": "bad vm status", "health":
> "bad", "vm": "down", "detail": "down"}
> Hostname   : ovirt-node-02
> Engine status  : {"health": "good", "vm": "up",
> "detail": "up"}
> Hostname   : ovirt-node-03
> Engine status  : {"reason": "vm not running on this
> host", "health": "bad", "vm": "down", "detail": "unknown”}
>
> So it looks like the webadmin UI is wrong as well…
>
> It would be awesome if the UI would give a reason for the “Non
> Operational” status somehow… Or if there was a troubleshooter that could be
> used to analyze the problem… As it is, being so new to all of this, I am
> completely at the list’s mercy to figure this out.
>
> This software has such promise, so I’ll keep working thru these issues,
> but it sure hasn’t been a smooth ride so far…
>
>
> On Jan 4, 2016, at 7:54 AM, Will Dennis > wrote:
>
> I put all of the engine logs up there now… Try
> engine.log-20160103.gzhttp://
> i1096.photobucket.com/albums/g330/willdennis/ovirt-node-02_problem.png
> 

Re: [ovirt-users] Stuck installing Neutron Appliance

2015-08-16 Thread Moti Asayag
The 'Network Provider' left tab should appear also on Install Host dialog.
So if you move the host to 'Maintenance' mode and click on the Install
button, the dialog
should have the 'Network Provider' left tab.

On Sat, Aug 15, 2015 at 7:46 PM, Alan Murrell li...@murrell.ca wrote:

 On 15/08/2015 8:45 AM, Carlo Rodrigues wrote:

 Got it. It's in the 'Add New Host' dialog. I just removed each host from
 the cluster, and re-added it again.


 Ah, unfortunately this is not an option for me, currently, then.  I only
 have the single server, and this, single host :-(

 Thanks for figuring that out, though.  I will keep it in mind for the
 future.

 -Alan


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




-- 
Regards,
Moti
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Katello integration

2015-06-03 Thread Moti Asayag


- Original Message -
 From: Nathanaël Blanchet blanc...@abes.fr
 To: masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Wednesday, June 3, 2015 9:38:57 AM
 Subject: Katello integration
 
 Hello i read your wiki page about katello but i can't see thé projection as a
 target on the Google sheet
 https://docs.google.com/spreadsheets/d/1vUwi0y54SV7nYZC1DXo_hLPyG7hvtWDHfa6zo8u3WCY/htmlview#

I've updated the Google sheet for it.

 Is this always targeted tout 3.6? Screenshot tell me that web is already
 ready.

It is targeted to 3.6. The feature is currently enabled via the restapi, the 
web support
for errata for engine/hosts/vms is still in progress.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] removing neutron networks

2015-04-29 Thread Moti Asayag


- Original Message -
 From: Jorick Astrego j.astr...@netbulae.eu
 To: users@ovirt.org
 Sent: Wednesday, April 29, 2015 6:32:29 PM
 Subject: [ovirt-users] removing neutron networks
 
 Hi,
 
 After my update to 3.5.2 final, I started messing about with the Neutron
 integration again.
 
 I created and removed several networks but the list keeps adding each new
 network when I use import, the old ones still remain.
 
 
 
 
 2015-04-29 17:28:21,293 INFO
 [org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand]
 (org.ovirt.thread.pool-8-thread-45) [58f7886b] Running command:
 RemoveNetworkCommand internal: false. Entities affected : ID:
 4526582c-eef6-4562-97ad-facdf4590356 Type: NetworkAction group
 CONFIGURE_STORAGE_POOL_NETWORK with role type ADMIN
 2015-04-29 17:28:21,545 ERROR
 [org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand]
 (org.ovirt.thread.pool-8-thread-45) [58f7886b] Command
 org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand throw Vdc Bll
 exception. With error message VdcBLLException: (Failed with error
 PROVIDER_FAILURE and code 5050)
 2015-04-29 17:28:21,548 INFO
 [org.ovirt.engine.core.bll.network.dc.RemoveNetworkCommand]
 (org.ovirt.thread.pool-8-thread-45) [58f7886b] Command
 [id=163db1a8-d281-43e7-8bc1-a5229ffe4555]: Compensating
 DELETED_OR_UPDATED_ENTITY of
 org.ovirt.engine.core.common.businessentities.network.Network; snapshot:
 id=4526582c-eef6-4562-97ad-facdf4590356.
 2015-04-29 17:28:21,598 ERROR
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
 (org.ovirt.thread.pool-8-thread-45) [58f7886b] Correlation ID: 58f7886b,
 Call Stack: null, Custom Event ID: -1, Message: Failed to remove Network
 EN_uplink from Data Center: Netbulae
 
 And in neutron server.log:
 
 
 
 2015-04-29 19:28:23.347 1027 INFO neutron.api.v2.resource
 [req-44768a7f-7443-4da7-b162-c91b3f8d78d3 None] delete failed (client
 error): Network 36a7a012-d94c-4a0f-b369-47d1d04f5942 could not be found
 
 When I check in Neutron, there are only two listed.
 
 
 neutron net-list
 +--+-+---+
 | id | name | subnets |
 +--+-+---+
 | 66ef5f7f-b0d1-4ef9-8b5e-d7a7aa315d58 | public |
 | 37ea25da-68a1-478b-ab30-8cf6ad104ccb ***.***.***.**/26 |
 | 5e90abfb-19c1-4b09-b387-8f2b815cad30 | private |
 | 60f29e92-5461-4eba-a375-4016bc4c6f39 172.17.0.0/24 |
 +--+-+---+
 
 
 So it appears oVirt doesn't handle things correctly when I remove the
 networks from neutron directly.
 

If you've removed the network from neutron directly, you should uncheck the 
option in
the 'Remove network' dialog which says Remove network(s) from the external 
provider(s) as well..

In that case ovirt won't attempt to access the provider and remove the network 
from it.

 
 
 
 Met vriendelijke groet, With kind regards,
 
 Jorick Astrego
 
 Netbulae Virtualization Experts
 
 Tel: 053 20 30 270i...@netbulae.euStaalsteden 4-3AKvK 
 08198180
   Fax: 053 20 30 271  www.netbulae.eu 7547 TA Enschede
 BTW NL821234584B01
 
 
 
 ___
 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] VM failed to start | Bad volume specification

2015-03-02 Thread Moti Asayag


- Original Message -
 From: Vered Volansky ve...@redhat.com
 To: Punit Dambiwal hypu...@gmail.com
 Cc: users@ovirt.org
 Sent: Monday, March 2, 2015 7:20:08 AM
 Subject: Re: [ovirt-users] VM failed to start | Bad volume specification
 
 
 
 - Original Message -
  From: Punit Dambiwal hypu...@gmail.com
  To: Vered Volansky ve...@redhat.com
  Cc: users@ovirt.org
  Sent: Sunday, March 1, 2015 4:58:02 PM
  Subject: Re: [ovirt-users] VM failed to start | Bad volume specification
  
  Hi Vered,
  
  Please find the below required details :-
  hosts :- 8 Hosts
  domains :- Internal
 Do you mean local?
 

Seems like 'internal' refers to the authentication domain instead of storage 
domain.

  vms :- more then 500
  statuses :- running and some are down
  versions :-
  Ovirt :- 3.5.1
  Glusterfs :- 3.6.1
  
  Earlier it was working fine but after reboot one of the storage
  node...problem started
 I don't understand this sentence.
 What kind of storage is it?
 
  and now i am not able to create any VM...each time it
  throws the same error VM 2c810a8d40e1abf67aa6d94d430b9574 is down with
  error. Exit message: Bad volume specification {'index': 0, 'iface':
  'virtio', 'type': 'disk', 'format': 'raw', 'bootOrder': '1', 'address':
  {'slot': '0x07', 'bus': '0x00', 'domain': '0x', 'type': 'pci',
  'function': '0x0'}, 'volumeID': '70951592-ddd3-460f-a1d0-942f197120d7',
  'apparentsize': '21474836480', 'imageID':
  '7247a929-6bc9-4267-9086-f643eeda7596', 'specParams': {}, 'readonly':
  'false', 'domainID': 'e732a82f-bae9-4368-8b98-dedc1c3814de', 'reqsize':
  '0',
  'deviceId': '7247a929-6bc9-4267-9086-f643eeda7596', 'truesize':
  '888942592',
  'poolID': '0002-0002-0002-0002-0145', 'device': 'disk',
  'shared': 'false', 'propagateErrors': 'off', 'optional': 'false'}.
 
 I still need logs in order to help out.
 
  
  Thanks,
  Punit
  
  On Thu, Feb 26, 2015 at 2:19 PM, Vered Volansky  ve...@redhat.com  wrote:
  
  
  Hi Punit,
  
  Engine log does not contain the snippet you quoted before.
  It does have an occurrence of the same issue with another vm, but with
  almost
  only logins and logout, making it, once again, impossible to understand the
  context.
  
  Please give me some information as to your environment -
  hosts, domains, vms, statuses, versions,
  I also need more context as to what actions you were performing before this
  failure, statuses before and after this specific action, but also some
  scenarion that led to this issue.
  
  I would still need the logs of the relevant timeframe. Pleas verify that
  what
  you send next time is indeed the relevant logs.
  
  Regards,
  Vered
  
  - Original Message -
   From: Punit Dambiwal  hypu...@gmail.com 
   To: Vered Volansky  ve...@redhat.com 
   Cc: users@ovirt.org
   Sent: Wednesday, February 25, 2015 2:15:02 PM
   Subject: Re: [ovirt-users] VM failed to start | Bad volume specification
   
   Hi Vered,
   
   Yes... it's new VM...even some of the old vm those can run previousely
   but
   now can not run now...
   
   On Wed, Feb 25, 2015 at 3:07 PM, Vered Volansky  ve...@redhat.com 
   wrote:
   


- Original Message -
 From: Punit Dambiwal  hypu...@gmail.com 
 To: users@ovirt.org
 Sent: Wednesday, February 25, 2015 6:19:53 AM
 Subject: [ovirt-users] VM failed to start | Bad volume specification
 
 Hi,
 
 I try to start the VM but it's failed to start...and through the
following
 error :-
 
 VM vm1 is down with error. Exit message: Bad volume specification
{'index':
 0, 'iface': 'virtio', 'type': 'disk', 'format': 'raw', 'bootOrder':
 '1',
 'address': {'slot': '0x07', 'bus': '0x00', 'domain': '0x',
 'type':
 'pci', 'function': '0x0'}, 'volumeID':
 '60c73bf0-d190-420b-917c-04aa00e52f10', 'apparentsize': '1073741824',
 'imageID': '8ca66096-bd47-460d-9e09-2966e45b471b', 'specParams': {},
 'readonly': 'false', 'domainID':
 'e732a82f-bae9-4368-8b98-dedc1c3814de',
 'reqsize': '0', 'deviceId': '8ca66096-bd47-460d-9e09-2966e45b471b',
 'truesize': '1054048256', 'poolID':
'0002-0002-0002-0002-0145',
 'device': 'disk', 'shared': 'false', 'propagateErrors': 'off',
'optional':
 'false'}.
 
 Please help me to solve this issue
 
 Thanks,
 Punit
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 


Please send engine and vdsm logs, it's impossible to help you without
context.
What's the history of the VM you were unable to start?
Is it a new VM?

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

Re: [ovirt-users] oVirt Manager problem

2015-02-26 Thread Moti Asayag


- Original Message -
 From: Massimo Mad mad196...@gmail.com
 To: users@ovirt.org
 Sent: Wednesday, February 25, 2015 11:14:28 AM
 Subject: [ovirt-users] oVirt Manager problem
 
 Hi,
 Here is the result of the command actually tables  audit_log  are very
 large .
 What can I do to prevent the file system fills up ?
 

It seems that the total objects (tables and indices) around audit_log table
is 2GB.

You can control the number of entries in this table by setting a shorter
period for keeping data in that table. The default is 30 days.
You can check by:
engine-config -g AuditLogAgingThreshold

and if wish to set a smaller value for days to keep, i.e for a week:
engine-config -s AuditLogAgingThreshold=7 

and restart the ovirt-engine to take effect.

However, I'm curious if there is some flooding of a certain event-log
entry in that table which might cause this table to increase to that volume
unless it reflects the actual workload of the system.

 psql engine -c SELECT nspname || '.' || relname AS relation,
 pg_size_pretty(pg_relation_size(C.oid)) AS size
 FROM pg_class C
 LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
 WHERE nspname NOT IN ('pg_catalog', 'information_schema')
 ORDER BY pg_relation_size(C.oid) DESC
 LIMIT 20;
 
 relation | size
 --+-
 public.audit_log | 826 MB
 public.idx_audit_correlation_id | 159 MB
 public.idx_audit_log_job_id | 114 MB
 public.idx_audit_log_storage_domain_name | 114 MB
 public.idx_audit_log_user_name | 114 MB
 public.idx_audit_log_vm_name | 114 MB
 public.idx_audit_log_storage_pool_name | 114 MB
 public.idx_audit_log_vds_name | 114 MB
 public.idx_audit_log_vm_template_name | 113 MB
 public.pk_audit_log | 90 MB
 public.idx_audit_log_log_time | 90 MB
 pg_toast.pg_toast_2618 | 1336 kB
 public.vm_dynamic | 680 kB
 public.vm_statistics | 496 kB
 public.disk_image_dynamic | 288 kB
 public.vds_interface_statistics | 256 kB
 public.vm_device | 208 kB
 public.vds_dynamic | 128 kB
 pg_toast.pg_toast_2619 | 120 kB
 public.pk_disk_image_dynamic | 104 kB
 (20 rows)
 
 Regards Massimo
 
 ___
 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] reporting and removing unmanaged networks after deprecating org.ovirt.engine.core.common.action.VdcActionType#SetupNetworks

2015-02-03 Thread Moti Asayag


- Original Message -
 From: Lior Vernia lver...@redhat.com
 To: Martin Mucha mmu...@redhat.com
 Cc: de...@ovirt.org, Users@ovirt.org, Moti Asayag masa...@redhat.com, 
 Juan Antonio Hernandez Fernandez
 jhern...@redhat.com
 Sent: Monday, February 2, 2015 3:19:13 PM
 Subject: Re: reporting and removing unmanaged networks after deprecating
 org.ovirt.engine.core.common.action.VdcActionType#SetupNetworks
 
 
 
 On 02/02/15 14:21, Martin Mucha wrote:
  Hi,
  
  I'd like to discuss how to properly report unmanaged networks and how to
  ask for their removal after
  org.ovirt.engine.core.common.action.VdcActionType#SetupNetworks
  is removed.
 
 We don't actually have to remove the command, but I'd prefer not to
 support two APIs at once (reminding that we'll be introducing new host
 networking API in 3.6).
 
 If I'm not mistaken, removing unmanaged networks is the only operation
 the current design of the new API doesn't take care of... Right Moti?
 

The proposed design for the new host networking api is consistent with the
vdsm api, as long as a network can be identified by its id (uuid).

The only case which isn't supported is performing an action for a network
which cannot be identified by its id, i.e. unmanaged networks.

This also requires from the engine to manage the relevant unmanaged networks
entries when 'getVdsCaps' is called, and network configuration is persisted.
But this goes more into the detailed design section.

  
  We thought about several possibilities and so far the best one is following
  one.
  
  Reporting unmanaged networks on specific nic:
  ———
  
  We'd like to return new collection under:
  GET http://localhost:8080/api/hosts/{id}/nics/{id}/unmanagednetworks
 
 In my opinion it might be more convenient at part of
 /api/hosts/{id}/unmanagednteworks - maybe going deeper isn't necessary.
 

+1, also there is a case where a network is not attached to any nic (nicless
network)


also add:

 GET
 http://localhost:8080/api/hosts/{id}/unmanagednetworks/{unmanaged_network_name}

  
  returning (reporting) unmanaged networks like this:
  
  unmanaged_networks
  unmanaged_network
  nic_name.../nic_name

I'd define this element as an optional and would replace it with host_nic 
which
represents either nic_name or nic_id.

  unmanaged_network_name.../unmanaged_network_name

I'd replace this simply by name, which should also be the unique identifier of 
the
network on a single host.

  vland_id.../vland_id

I'm not sure if we should maintain any further information about that network.
All we care of is removing it.

  /unmanaged_network
  


  unmanaged_network
   ...
  /unmanaged_network
  /unmanaged_networks
  
  
  Removing unmanagedNetworks:
  —
  
  DELETE
  http://localhost:8080/api/hosts/{id}/nics/{id}/unmanagednetworks/{unmanaged_network_name}

respectively replace with:
  DELETE
  
http://localhost:8080/api/hosts/{id}/unmanagednetworks/{unmanaged_network_name}

  
  
  ===
  
  any ideas, hints, complaints, recommendations, confirmations are welcomed.
  Martin.
  
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Unable to reinstall hosts after network removal.

2014-12-30 Thread Moti Asayag


- Original Message -
 From: Arman Khalatyan arm2...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Tuesday, December 30, 2014 2:21:26 PM
 Subject: Re: [ovirt-users] Unable to reinstall hosts after network removal.
 
 Ok I found the conflict. The ip rule list  does not have any record on IB0
 interface, all other networks are updated correctly but not IB one.
 Probably this is not a good idea to have an ISCSI storage devices with the
 same interface as VM network.
 the network update operation trying to put interface up and down in that
 point all iscsi devices going to IO/failure this stops to update IB
 interface data.
 
 Maybe one need to put whole cluster to maintenance mode in order to change
 Storage dependent network setup?
 

Adding Dan and Allon.

 this is the main trouble which prevents to fix/change any network setup on
 IB0 interface.
 tail -f  /var/log/vdsm/vdsm.log
 Traceback (most recent call last):
   File /usr/share/vdsm/storage/hsm.py, line 2430, in connectStorageServer
 conObj.connect()
   File /usr/share/vdsm/storage/storageServer.py, line 367, in connect
 iscsi.addIscsiNode(self._iface, self._target, self._cred)
   File /usr/share/vdsm/storage/iscsi.py, line 164, in addIscsiNode
 iscsiadm.node_login(iface.name, portalStr, target.iqn)
   File /usr/share/vdsm/storage/iscsiadm.py, line 295, in node_login
 raise IscsiNodeError(rc, out, err)
 IscsiNodeError: (8, ['Logging in to [iface: default, target:
 iqn.2003-01.org.linux-iscsi.data01.x8664:sn.f5c9b017e103, portal:
 10.10.10.31,3260] (multiple)'], ['iscsiadm: Could not login to [iface:
 default, target: iqn.2003-01.org.linux-iscsi.data01.x8664:sn.f5c9b017e103,
 portal: 10.10.10.31,3260].', 'iscsiadm: initiator reported error (8 -
 connection timed out)', 'iscsiadm: Could not log into all portals'])
 
 PS
 save network configuration  is always checked.
 
 
 
 
 ***
 
 Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für
 Astrophysik Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany
 
 ***
 
 
 On Tue, Dec 30, 2014 at 7:05 AM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Arman Khalatyan arm2...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users users@ovirt.org
   Sent: Monday, December 29, 2014 3:59:46 PM
   Subject: Re: [ovirt-users] Unable to reinstall hosts after network
  removal.
  
   My setup  has 3 networks: 1xIB,1x10Gbit+1Gbit for ovirt-management.
   The ovirt network does not have any trouble, it is always there.
   I was trying to rename or remove my IB network which was used for VM
   migrations.
   I was using web-GUI, which was removing IB0 network w/o problem. After
   removal the hosts where ok.
 
  Have you checked the option of save network configuration in the setup
  networks
  dialog (iirc should have been checked by default) ?
 
  Could you also attach the /var/log/ovirt-engine/engine.log from the engine
  server
  and /var/log/vdsm/vdsm.log and /var/log/vdsm/supervdsm.log from the node so
  we can see which request was sent to vdsm and its result ?
 
   Then I put them to maintenance mode. To refresh
   iptables rules I did reinstall. then reinstall was failing with message
   that IB0 not attached to any interface. But IB0 interface is not possible
   to attach it is already deleted and not visible in any network dialog.
   After creating interface with the same name everything is online now.
   My current interface list is following:
virsh -r net-list
   Name State  Autostart Persistent
   --
   ;vdsmdummy;  active nono
   vdsm-cls10G  active yes   yes
   vdsm-IB0 active yes   yes
   vdsm-ovirtmgmt   active yes   yes
  
   On this host the IB0 is not atached to any interface, I wondered, if it
   should show up  in the net list?
  
   I think the GUI does not rename/remove the interface from the DB. Some
   constrain keeps still IB0 in DB.
  
  
  
   ***
  
   Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für
   Astrophysik Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany
  
   ***
  
  
   On Sun, Dec 28, 2014 at 10:31 AM, Moti Asayag masa...@redhat.com
  wrote:
  
   
   
- Original Message -
 From: Arman Khalatyan arm2...@gmail.com
 To: users users@ovirt.org
 Sent: Wednesday, December 24, 2014 1:22:43 PM
 Subject: [ovirt-users] Unable to reinstall hosts after network
  removal.

 Hello,
 I have a little trouble with ovirt 3.5 on CentOS6.6:
 I was removing all networks from all hosts.
   
Did you use the setup networks dialog from

Re: [ovirt-users] Unable to reinstall hosts after network removal.

2014-12-29 Thread Moti Asayag


- Original Message -
 From: Arman Khalatyan arm2...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Monday, December 29, 2014 3:59:46 PM
 Subject: Re: [ovirt-users] Unable to reinstall hosts after network removal.
 
 My setup  has 3 networks: 1xIB,1x10Gbit+1Gbit for ovirt-management.
 The ovirt network does not have any trouble, it is always there.
 I was trying to rename or remove my IB network which was used for VM
 migrations.
 I was using web-GUI, which was removing IB0 network w/o problem. After
 removal the hosts where ok. 

Have you checked the option of save network configuration in the setup 
networks
dialog (iirc should have been checked by default) ? 

Could you also attach the /var/log/ovirt-engine/engine.log from the engine 
server
and /var/log/vdsm/vdsm.log and /var/log/vdsm/supervdsm.log from the node so
we can see which request was sent to vdsm and its result ? 

 Then I put them to maintenance mode. To refresh
 iptables rules I did reinstall. then reinstall was failing with message
 that IB0 not attached to any interface. But IB0 interface is not possible
 to attach it is already deleted and not visible in any network dialog.
 After creating interface with the same name everything is online now.
 My current interface list is following:
  virsh -r net-list
 Name State  Autostart Persistent
 --
 ;vdsmdummy;  active nono
 vdsm-cls10G  active yes   yes
 vdsm-IB0 active yes   yes
 vdsm-ovirtmgmt   active yes   yes
 
 On this host the IB0 is not atached to any interface, I wondered, if it
 should show up  in the net list?
 
 I think the GUI does not rename/remove the interface from the DB. Some
 constrain keeps still IB0 in DB.
 
 
 
 ***
 
 Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für
 Astrophysik Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany
 
 ***
 
 
 On Sun, Dec 28, 2014 at 10:31 AM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Arman Khalatyan arm2...@gmail.com
   To: users users@ovirt.org
   Sent: Wednesday, December 24, 2014 1:22:43 PM
   Subject: [ovirt-users] Unable to reinstall hosts after network removal.
  
   Hello,
   I have a little trouble with ovirt 3.5 on CentOS6.6:
   I was removing all networks from all hosts.
 
  Did you use the setup networks dialog from the UI in order to remove those
  networks ?
  Or have you removed those networks from the host directly (where you
  should used the:
  1. virsh net-destroy 'the-network-name'
  2. virsh net-undefine 'the-network-name'
  )
 
  can you report the output of 'virsh -r net-list'  ?
 
   Then after removing network from data center the hosts went to unusable.
 
  What was the host's status prior to removing its networks ? Was it up ?
 
   Every time after reinstall the host claims that the network is not
   configured, but it s already removed from network tab in DC.
 
  What is the missing network name ? Is it 'ovirtmgmt' ?
 
   Where from it gets the old configuration? the old interfaces also
  restored
   every time on the reinstalled hosts.
 
  The hosts via vdsm reports their network configuration via the
  'getCapabilities' verb
  of vdsm. You can try running it on the host:
 
  vdsClient -s 0 getVdsCaps
 
  and examine the nics / neworks / bridges / vlans / bonds elements.
 
   Which DB table is in charge of dc-networks?
  
 
  The retrieved information from vdsm is reported to 'vds_interace' table.
  The dc networks are stored in 'networks' table and networks attached to
  clusters are stored in network_cluster table.
 
  I wouldn't recommend on deleting entries from the tables directly. There
  are
  certain constraints which shouldn't be violated, i.e. the management
  network
  'ovirtmgnt' is blocked for removal from the engine.
 
   Thanks,
   Arman.
  
  
   ***
   Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für
  Astrophysik
   Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany
   ***
  
   ___
   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 reinstall hosts after network removal.

2014-12-28 Thread Moti Asayag


- Original Message -
 From: Arman Khalatyan arm2...@gmail.com
 To: users users@ovirt.org
 Sent: Wednesday, December 24, 2014 1:22:43 PM
 Subject: [ovirt-users] Unable to reinstall hosts after network removal.
 
 Hello,
 I have a little trouble with ovirt 3.5 on CentOS6.6:
 I was removing all networks from all hosts.

Did you use the setup networks dialog from the UI in order to remove those 
networks ?
Or have you removed those networks from the host directly (where you should 
used the: 
1. virsh net-destroy 'the-network-name'
2. virsh net-undefine 'the-network-name'
)

can you report the output of 'virsh -r net-list'  ?

 Then after removing network from data center the hosts went to unusable.

What was the host's status prior to removing its networks ? Was it up ?

 Every time after reinstall the host claims that the network is not
 configured, but it s already removed from network tab in DC.

What is the missing network name ? Is it 'ovirtmgmt' ?

 Where from it gets the old configuration? the old interfaces also restored
 every time on the reinstalled hosts.

The hosts via vdsm reports their network configuration via the 
'getCapabilities' verb
of vdsm. You can try running it on the host:

vdsClient -s 0 getVdsCaps 

and examine the nics / neworks / bridges / vlans / bonds elements.

 Which DB table is in charge of dc-networks?
 

The retrieved information from vdsm is reported to 'vds_interace' table.
The dc networks are stored in 'networks' table and networks attached to
clusters are stored in network_cluster table.

I wouldn't recommend on deleting entries from the tables directly. There are
certain constraints which shouldn't be violated, i.e. the management network
'ovirtmgnt' is blocked for removal from the engine.

 Thanks,
 Arman.
 
 
 ***
 Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für Astrophysik
 Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany
 ***
 
 ___
 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] oVirt Neutron integration question

2014-12-15 Thread Moti Asayag


- Original Message -
 From: Andrew Brimer abri...@pearlnet.com
 To: masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, December 15, 2014 10:02:27 PM
 Subject: oVirt Neutron integration question
 
 Hi Moti,
 
  
 
 I am progressing from the Neutron appliance to Neutron on bare metal and
 have some questions. I currently have a Fedora 20 blade for the RDO
 PackStack (Icehouse) that will become my Neutron node.
 
  
 
 Are you able to provide the PackStack answers file and any other
 configuration details that went into the creation of the appliance?
 

The answer file should be located inside the appliance under 
/root/packstack-answers.txt.
The steps for creating that answer file are detailed on [1]. First generated
by packstack and manipulated by the image creation process.

If you can't locate that file within your appliance, I'll upload one from 
testing.

[1] 
http://gerrit.ovirt.org/gitweb?p=ovirt-appliance.git;a=blob_plain;f=neutron-appliance/rdo-icehouse-centos-7-ml2-plugin.tdl;hb=f85ec25b564c51a196f836c9e1a9229577a032c2

  
 
 Thanks very much for any help that you could provide to this effort.
 
  
 
 Kind Regards,
 
  
 
 Andrew Brimer
 
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt Neutron integration question

2014-12-15 Thread Moti Asayag


- Original Message -
 From: Andrew Brimer abri...@pearlnet.com
 To: masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Monday, December 15, 2014 11:11:22 PM
 Subject: RE: oVirt Neutron integration question
 
 This is the log information that I get when I hit the Test button on New
 External Provider.
 
  
 
  
 
 /var/log/ovirt-engine/engine.log
 
  
 
 2014-12-15 20:37:09,865 INFO
 [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
 (ajp--127.0.0.1-8702-8) [5ec3469f] Running command:
 TestProviderConnectivityCommand internal: false. Entities affected :
 ID: aaa0----123456789aaa Type: SystemAction group
 CREATE_STORAGE_POOL with role type ADMIN
 
 2014-12-15 20:37:09,934 ERROR
 [org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand]
 (ajp--127.0.0.1-8702-8) [5ec3469f] Command
 org.ovirt.engine.core.bll.provider.TestProviderConnectivityCommand throw
 Vdc Bll exception. With error message VdcBLLException: (Failed with
 error PROVIDER_FAILURE and code 5050)
 

Did you update the 'KeystoneAuthUrl' via the engine-config to point to the
new neutron server ip address, followed by ovirt-engine service restart ?

  
 
 /var/log/ovirt-engine/server.log
 
  
 
 2014-12-15 20:49:17,507 WARN
 [org.apache.http.impl.client.DefaultHttpClient] (ajp--127.0.0.1-8702-8)
 Authentication error: Unable to respond to any of these challenges:
 {keystone=Www-Authenticate: Keystone uri=http://10.1.2.3:35357}
 
  
 
  
 
 From: Andrew Brimer
 Sent: Monday, December 15, 2014 3:02 PM
 To: Moti Asayag (masa...@redhat.com)
 Cc: users@ovirt.org
 Subject: oVirt Neutron integration question
 
  
 
 Hi Moti,
 
  
 
 I am progressing from the Neutron appliance to Neutron on bare metal and
 have some questions. I currently have a Fedora 20 blade for the RDO
 PackStack (Icehouse) that will become my Neutron node.
 
  
 
 Are you able to provide the PackStack answers file and any other
 configuration details that went into the creation of the appliance?
 
  
 
 Thanks very much for any help that you could provide to this effort.
 
  
 
 Kind Regards,
 
  
 
 Andrew Brimer
 
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Questions regarding neutron implementation for oVirt 3.5

2014-12-11 Thread Moti Asayag


- Original Message -
 From: Andrew Brimer abri...@pearlnet.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, December 11, 2014 1:04:46 AM
 Subject: RE: Questions regarding neutron implementation for oVirt 3.5
 
 Hi Modi,
 
 In the discussion found at
 https://bugzilla.redhat.com/show_bug.cgi?id=1064231 Comment #12 states that
 the fedora Jackson package will not make a difference because the Jackson
 jar files pre-packaged in JBoss is what is actually used for this. Is that a
 true statement in your opinion? If so, how can I locate the appropriate jar
 and then what is the path in the oVirt Engine that I need to place
 that/those jar file(s) into?

Adding Juan to verify the suggested sequence, and to verify no better 
alternative is
available.

In order to upgrade the jackson module version, you should replace both the 
.jar files
and edit each module.xml of the corresponding jar file:

The files which should be replaced could be identified by:
$ find /usr/share/jboss-as-7.1.1.Final/modules -name jackson*.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-jaxrs/main/jackson-jaxrs-1.9.2.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-mapper-asl/main/jackson-mapper-asl-1.9.2.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-xc/main/jackson-xc-1.9.2.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-core-asl/main/jackson-core-asl-1.9.2.jar

Jar files can be downloaded from maven repository:
http://central.maven.org/maven2/org/codehaus/jackson/jackson-jaxrs/1.9.9/jackson-jaxrs-1.9.9.jar
http://central.maven.org/maven2/org/codehaus/jackson/jackson-xc/1.9.9/jackson-xc-1.9.9.jar
http://central.maven.org/maven2/org/codehaus/jackson/jackson-mapper-asl/1.9.9/jackson-mapper-asl-1.9.9.jar
http://central.maven.org/maven2/org/codehaus/jackson/jackson-core-asl/1.9.9/jackson-core-asl-1.9.9.jar

After the replacement, you should have the following:
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-jaxrs/main/jackson-jaxrs-1.9.9.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-mapper-asl/main/jackson-mapper-asl-1.9.9.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-xc/main/jackson-xc-1.9.9.jar
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-core-asl/main/jackson-core-asl-1.9.9.jar

Next, update the module.xml version from 1.9.2 to 1.9.9 files detected by:
$ find  /usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/ -name 
module.xml
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-jaxrs/main/module.xml:
resource-root path=jackson-jaxrs-1.9.2.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-mapper-asl/main/module.xml:
resource-root path=jackson-mapper-asl-1.9.2.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-xc/main/module.xml:
resource-root path=jackson-xc-1.9.2.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-core-asl/main/module.xml:
resource-root path=jackson-core-asl-1.9.2.jar/

for example, by editing them in place by:
$ find  /usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/ -name 
module.xml -exec sed 's/1.9.9/1.9.2/' {} \;

And verify the output is:
$ find  /usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/ -name 
module.xml | xargs grep 1\.9
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-jaxrs/main/module.xml:
resource-root path=jackson-jaxrs-1.9.9.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-mapper-asl/main/module.xml:
resource-root path=jackson-mapper-asl-1.9.9.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-xc/main/module.xml:
resource-root path=jackson-xc-1.9.9.jar/
/usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/jackson-core-asl/main/module.xml:
resource-root path=jackson-core-asl-1.9.9.jar/

Last thing is either rename the .jar.index file names to match the new version 
or remove them, so jboss will auto-generate them.
$ find  /usr/share/jboss-as-7.1.1.Final/modules/org/codehaus/jackson/ -name 
.jar.index

 
 Am I on the right track? What is your advice?
 
 Kind Regards,
 
 Andrew Brimer
 
 -Original Message-
 From: Moti Asayag [mailto:masa...@redhat.com]
 Sent: Wednesday, December 10, 2014 4:16 PM
 To: Andrew Brimer
 Cc: users@ovirt.org
 Subject: Re: Questions regarding neutron implementation for oVirt 3.5
 
 
 
 - Original Message -
  From: Andrew Brimer abri...@pearlnet.com
  To: Moti Asayag masa...@redhat.com
  Sent: Wednesday, December 10, 2014 5:55:31 PM
  Subject: RE: Questions regarding neutron implementation for oVirt 3.5
  
  Hi Moti,
  
  Yes. I did not consider sending this out in a way that everyone would
  benefit, sorry. This is the first time that I have posted a question
  for oVirt

Re: [ovirt-users] Network rules

2014-11-16 Thread Moti Asayag


- Original Message -
 From: Jürgen Brandl li...@jbrandl.com
 To: users@ovirt.org
 Sent: Saturday, November 15, 2014 2:10:20 AM
 Subject: [ovirt-users] Network rules
 
 Hello,
 
 I'm new, so forgive me if this is stupid or in the wrong place.
 
 Because of security reasons, I want a network, where my VMs can talk to one
 single VM (eg. proxy or management), but not with each other or the host
 machine.
 Is there a simple way to solve this, without creating dozens of networks?
 

oVirt is integrated [1] with Neutron (openstack network service) and one of the 
features
is Security Groups [2], which allows to control incoming and outgoing traffic 
from a vm.

Adding Mike who integrated the security group back there to provide additional 
info.

[1] http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups
[2] https://wiki.openstack.org/wiki/Neutron/SecurityGroups

 Jürgen
 
 ___
 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] Change default gateway

2014-10-29 Thread Moti Asayag


- Original Message -
 From: Ludek Finstrle lfinst...@netsuite.com
 To: users@ovirt.org
 Sent: Wednesday, October 29, 2014 4:11:36 PM
 Subject: [ovirt-users] Change default gateway
 
 
 Hi,
 
 I have ovirt 3.5 with hosted engine.
 I'm running it on 2 physical hosts (for management + storage) directly
 connected. I have another NICs for data.
 
 -- data -- | VM_HOST1 | -- ovirtmgmt -- | VM_HOST2 | -- data --
 
 Is it possible to setup oVirt hosts to use different network (not
 ovirtmgmt but data) for default route using GUI? 

No, the engine supports setting default route only for the management network.

 I think about vdsm hook
 but I don't want to reinvent the wheel. Also I don't like an idea to
 make hosted engine default gateway for physical hosts.
 
 Thanks,
 
 Luf
 
 
 NOTICE: This email and any attachments may contain confidential and
 proprietary information of NetSuite Inc. and is for the sole use of the
 intended recipient for the stated purpose. Any improper use or distribution
 is prohibited. If you are not the intended recipient, please notify the
 sender; do not review, copy or distribute; and promptly delete or destroy
 all transmitted information. Please note that all communications and
 information transmitted through this email system may be monitored and
 retained by NetSuite or its agents and that all incoming email is
 automatically scanned by a third party spam and filtering service which may
 result in deletion of a legitimate e-mail before it is read by the intended
 recipient.
 
 ___
 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] MacPoolRanges not working as expected

2014-10-27 Thread Moti Asayag


- Original Message -
 From: Xavier Naveira xnave...@gmail.com
 To: users@ovirt.org
 Sent: Monday, October 27, 2014 10:42:47 AM
 Subject: [ovirt-users] MacPoolRanges not working as expected
 
 Hi everyone,
 
 First of all I'd like to say that we have been using oVirt successfully
 for more than a year, creating an automated deploy system with help of
 foreman and puppet.
 
 That being said, we're currently facing the first serious problem and
 we'd appreciate some help.
 
 Everything was working fine until we exhausted the default
 MacPoolRanges. After looking for a solution to the error message we
 found this document:
 http://www.ovirt.org/Engine_config_examples#MacPoolRanges
 
 Following the instructions on it we executed the following commands:
 
 First we found out what our current pool was:
 
 # engine-config -g MacPoolRanges
 MacPoolRanges: 00:1a:4a:24:26:00-00:1a:4a:24:26:ff version: general
 
 So we proceeded to expand it:
 
 # engine-config -s MacPoolRanges=00:1a:4a:24:26:00-00:1a:4a:24:27:ff
 # service ovirt-engine restart
 
 After this we were able to create new machines but none of them seemed
 to have network.
 
 After some unsuccessful troubleshooting  we restored the original pool
 and instead added a new one:
 
 # engine-config -s MacPoolRanges=00:1a:4a:24:26:00-00:1a:4a:24:26:ff
 # service ovirt-engine restart
 
 # engine-config -s
 MacPoolRanges=00:1a:4a:24:26:00-00:1a:4a:24:26:ff,00:1a:4a:24:27:00-00:1a:4a:24:27:ff
 
 # service ovirt-engine restart
 
 After doing this and test to create a new host everything seemed to work
 fine.
 
 The problem is that after the successful creation of some hosts the
 original problem where the new hosts didn't seem to have network,
 reappeared.
 
 Trying to narrow down the problem what we've find out so far is:
 
 This oVirt environment kickstarts hosts via PXE, when trying to PXE boot
 a new host, the DHCP process fails (timeout).
 
 Tracing the network packets, we are able to see that the virtual host
 sends the dhcp request, the dhcp server receives it and acknowledges it
 and it sends the dhcp offer back. The dhcp offer reaches the hypervisor
 to the vnetxx network interface BUT it doesn't go further and it doesn't
 reach the virtual host. This behavior is consistent through different
 hypervisors and vlans, including the ones that have been used/created
 before the problems appeared.
 
 The only pattern that we've been able to identify so far is through
 issuing the command brctl showmacs bridge_name
 
 This command list the mac addresses for the interfaces connected to the
 bridge. In the cases where everything works fine the output looks like this:
 
 port no mac addris local?   ageing timer
 2   00:1a:4a:24:27:e0   no 0.01
 2   fe:1a:4a:24:27:e0   yes0.00
 
 The virtual host MAC address begins with 00 and it has a corresponding
 address beginning with fe which is assigned to the vnetxx interface
 in the hypervisor.
 
 In the cases where the virtual host doesn't get the dhcp answers the
 output of brctl showmacs bridge_name is:
 
 port no mac addris local?   ageing timer
 6   fe:1a:4a:24:27:a0   yes0.00
 

It seems that the vm has no vnic connected to the destined bridge. Which
is weird due to the fact that you've noticed outgoing traffic from the vm
to the DHCP server.

Could you verify it by dumping the xml used to create the vm ? (could be
obtained either from /var/log/vdsm/vdsm.log or by virsh -r dumpxml domain_id
and the domain id could be obtained by virsh -r list or vdsClient -s 0 list 
table
This will allow us to verify there is an actual interface device configured
for that vm with the expected mac address and connected to the expect bridge.

What is the nature of fe:1a:4a:24:27:a0 ? where did it come from ?
Just to make sure - the expectation is for the virtual host to have a single
interface only, with a mac address as allocated from the mac addresses pool.

ovirt enables the nwfilter vdsm-no-mac-spoofing on libvirt to prevent spoofing
of the assigned vnic mac address. But that should be confirmed.

 This is, the actual virtual host's MAC address is missing from the bridge.
 
 We haven't been able to find a detailed explanation on how the network
 internals of oVirt should work but hopefully someone in this list can
 point us to the right resource.
 
 Thank you.
 
 Xavier.
 
 
 
 
 
 
 
 ___
 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] oVirt 3.5 Neutron (Will this work?)

2014-10-21 Thread Moti Asayag

Hi Phil,

See answers/questions inline.

- Original Message -
 From: Phil Daws ux...@splatnix.net
 To: users users@ovirt.org
 Sent: Tuesday, October 21, 2014 6:05:55 PM
 Subject: Re: [ovirt-users] oVirt 3.5  Neutron (Will this work?)
 
 Hmmm, this is interesting as it would appear you can only use the Neutron
 appliance with a brand new host ?!? so how does one switch to use it on a
 current system ?

A new host is not mandatory. You need to move an existing host to maintenance
and reinstall it. On the Re-install dialog select the details of the network
provider. 

 
 Thanks, Phil
 
 - Original Message -
 From: Phil Daws ux...@splatnix.net
 To: users@ovirt.org
 Sent: Tuesday, 21 October, 2014 1:31:09 PM
 Subject: [ovirt-users] oVirt 3.5  Neutron (Will this work?)
 
 Hello:
 
 have installed oVirt 3.5 on two cloud based servers and then managing them
 from a local engine using a VPN link.  On each server I would like to use
 the Neutron VM appliance so that I can provision the networks using
 OpenVswitch as I would like to learn about using OSPF between the two
 diverse systems.
 

Do you intend to use a single neutron appliance for each host or to use a single
neutron appliance to manage connectivity on the two hosts ?

 The question is that only physical NIC is enabled (public facing), and
 occupies the ovirtmgmt network, so would I still be able to use Neutron on
 the second NIC even though it is not connected to anything ?  

Is there L2 connectivity between the hosts ? Or by not connected to anything 
you
actually mean there is no wiring between the hosts ?

If this is the first case, you should be able to define for each subnet a 
gateway
via the 'Add subnet' dialog on the engine. That gateway should be used for 
obtaining
connectivity for the vms to the public/external network. You'll have to 
configure it manually
though (doesn't covered as part of the ovirt-neutron integration).

If there is really no connectivity between the hosts and the only outgoing 
traffic from
each host is via the ovirtmgmt network - it is problematic. According to [1], 
you'll
have to specify as bridge mappings on the network provider agent details: 
br-neutron:ovirtmgmt,
where ovirtmgmt will replace the neutron.

But that also implies that you'll share any traffic going through the 
integration bridge
of neutron and the hosts with the management network and respectively with the 
public
network, hence the dhcp agents connected to br-int (which is connected to 
br-neutron and
to ovirtmgmt) will receive request from the 'ovirtmgmt' network as well.

Haven't tried it myself, and can't expect the results.  

[1] http://www.ovirt.org/images/2/2a/Neutron-appliance-topology.png

 Or could I
 bind the Neutron network to the same one as the ovirtmgmt ? Basically wish
 to run the VMs with private IPs and then NAT through a VM firewall to the
 public address.
 
 Any help would be gratefully appreciated.
 
 Thanks, Phil
 ___
 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: [ovirt-users] OSD integration problem

2014-10-12 Thread Moti Asayag


- Original Message -
 From: 黄川 ch_f...@yeah.net
 To: users@ovirt.org
 Sent: Saturday, October 11, 2014 10:09:01 AM
 Subject: [ovirt-users] OSD integration problem
 
 Hi,all
 I use oVirt 3.4.4 . I want integrate the OSN int oVirt.I had some problems.
 For example, I imported a network named 'private' from openstack neutron.
 Then use the network in a VM's NIC.
 The vdsm's problem is libvirtError: Cannot get interface MTU on 'private':
 No such device .
 
 The environment is:
 1. openstack neutron version is icehouse.
 2. the ovirt node has installed neutron and agent.

How was that agent installed ? 
Does the vdsm-hook-openstacknet is installed on that host ? 
Are there are additional hosts in the cluster where the vm is scheduled to run ?

 
 What's the problem?
 
 
 
 ___
 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] using ovirt-shell to attach defind network to hosts

2014-10-05 Thread Moti Asayag
- Original Message -
 From: Vladimir Pakhomov pakhomov.vladi...@gmail.com
 To: users@ovirt.org
 Sent: Sunday, October 5, 2014 1:26:12 PM
 Subject: [ovirt-users] using ovirt-shell to attach defind network to hosts
 
 Hi,
 
 I would like to implement a script that would attach a newly created network
 to all hosts in cluster. Unfortunately I cannot find anything about that in
 documentation. Is it possible to attach network to host using CLI/REST API?

If the case is for attaching a network to all of the hosts on the cluster,
you can use the 'network labels' feature in which you label the host nics
with a label, and once you mark a network with the same label, it will be
auto-configured on the hosts. This will allow you just to label networks
in order to configure them on the hosts without a need to access the hosts.

http://www.ovirt.org/Features/NetworkLabels#REST
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html-single/Administration_Guide/index.html#sect-Network_Labels

For configuring networks manually on the host you can use the setupnetworks
api, which allows you to configure the destination network topology for the 
host.
See Configure bond with several networks example from:
http://www.ovirt.org/Testing/PythonApi#Networking

I've also added several more examples here:
https://motiasayag.wordpress.com/category/ovirt/ovirt-engine-sdk-python/setup-networks/


 
 Kind regards,
 Vladimir Pakhomov
 
 ___
 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] Multiple ips to a single nic

2014-09-16 Thread Moti Asayag


- Original Message -
 From: Antoni Segura Puimedon asegu...@redhat.com
 To: Shanil S xielessha...@gmail.com
 Cc: users@ovirt.org
 Sent: Tuesday, September 16, 2014 1:28:51 PM
 Subject: Re: [ovirt-users] Multiple ips to a single nic
 
 
 
 - Original Message -
  From: Shanil S xielessha...@gmail.com
  To: users@ovirt.org, Juan Hernandez jhern...@redhat.com
  Cc: aha...@redhat.com
  Sent: Tuesday, September 16, 2014 11:46:38 AM
  Subject: [ovirt-users] Multiple ips to a single nic
  
  Hi All,
  
  I would like to add multiple ips to a single nic using the ovirt api
  function. Is it possible to assign multiple ips to a single nic using the
  ovirt api ?
 
 I made a draft (means written but not really tested) vdsm hook for doing
 this. Look at the readme for usage and report any issue you encounter. With
 your help we can iron out issues and merge it ;-)
 

I'm not sure the intention was for a host nic.
Shanil could you confirm if you desire to configure ip for a vm (cloud-init ?)
or for the host ?

 http://gerrit.ovirt.org/#/c/29738/
 
  
  
  --
  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
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Modify the MacPoolRange : Former MACs?

2014-09-11 Thread Moti Asayag


- Original Message -
 From: Nicolas Ecarnot nico...@ecarnot.net
 To: Martin Mucha mmu...@redhat.com
 Cc: users@ovirt.org
 Sent: Wednesday, September 10, 2014 3:44:33 PM
 Subject: Re: [ovirt-users] Modify the MacPoolRange : Former MACs?
 
 Le 10/09/2014 13:36, Martin Mucha a écrit :
  just to add one more comment: nothing changes for MACs allocated
  using previous MacPoolRange. After MacPoolRange change, they will be
  treated like user specified MAC addresses, which also don't have to
  be part of any range.
 
 OK.
 
 I'm asking about banning, because I witnessed that when (ovirt-shell)
 provisionning a new VM and its nic with a MAC outside of the pool range,
 the adding gets refused.

What is the rejection message ? Perhaps it is a mac address which is already
in use by other vm ?

 I still dare not changing it unless you swear and sign it with your
 blood that this macpoolrange modification won't prevent me from running
 my existing VMs.
 
 
  m.
 
  - Original Message - From: Itamar Heim ih...@redhat.com
  To: Nicolas Ecarnot nico...@ecarnot.net, users@ovirt.org, Lior
  Vernia lver...@redhat.com Sent: Wednesday, September 10, 2014
  12:43:12 PM Subject: Re: [ovirt-users] Modify the MacPoolRange :
  Former MACs?
 
  On 09/10/2014 09:47 AM, Nicolas Ecarnot wrote:
  Hi,
 
  I plan to extend the MacPoolRange.
 
  If I also completely change the pool, in a way that does not
  implies the previous setting, will the manager ban all the previous
  MACs, now outside the defined pool? (and stop the VMs?)
 
  Regards,
 
 
  no, just affect future mac allocations.
  ___ Users mailing list
  Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
 
 
 
 --
 Nicolas Ecarnot
 ___
 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] Modify the MacPoolRange : Former MACs?

2014-09-11 Thread Moti Asayag


- Original Message -
 From: Moti Asayag masa...@redhat.com
 To: Nicolas Ecarnot nico...@ecarnot.net
 Cc: Martin Mucha mmu...@redhat.com, users@ovirt.org
 Sent: Thursday, September 11, 2014 9:18:03 AM
 Subject: Re: [ovirt-users] Modify the MacPoolRange : Former MACs?
 
 
 
 - Original Message -
  From: Nicolas Ecarnot nico...@ecarnot.net
  To: Martin Mucha mmu...@redhat.com
  Cc: users@ovirt.org
  Sent: Wednesday, September 10, 2014 3:44:33 PM
  Subject: Re: [ovirt-users] Modify the MacPoolRange : Former MACs?
  
  Le 10/09/2014 13:36, Martin Mucha a écrit :
   just to add one more comment: nothing changes for MACs allocated
   using previous MacPoolRange. After MacPoolRange change, they will be
   treated like user specified MAC addresses, which also don't have to
   be part of any range.
  
  OK.
  
  I'm asking about banning, because I witnessed that when (ovirt-shell)
  provisionning a new VM and its nic with a MAC outside of the pool range,
  the adding gets refused.
 
 What is the rejection message ? Perhaps it is a mac address which is already
 in use by other vm ?
 

Please note that currently the API doesn't support specifying network interfaces
at vm creation [1], only after the vm is created, the user can 
add/update/delete vm network
interfaces.

So could you explain the scenario which lead to the rejection ?

[1] https://bugzilla.redhat.com/show_bug.cgi?id=69

  I still dare not changing it unless you swear and sign it with your
  blood that this macpoolrange modification won't prevent me from running
  my existing VMs.
  
  
   m.
  
   - Original Message - From: Itamar Heim ih...@redhat.com
   To: Nicolas Ecarnot nico...@ecarnot.net, users@ovirt.org, Lior
   Vernia lver...@redhat.com Sent: Wednesday, September 10, 2014
   12:43:12 PM Subject: Re: [ovirt-users] Modify the MacPoolRange :
   Former MACs?
  
   On 09/10/2014 09:47 AM, Nicolas Ecarnot wrote:
   Hi,
  
   I plan to extend the MacPoolRange.
  
   If I also completely change the pool, in a way that does not
   implies the previous setting, will the manager ban all the previous
   MACs, now outside the defined pool? (and stop the VMs?)
  
   Regards,
  
  
   no, just affect future mac allocations.
   ___ Users mailing list
   Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
  
  
  
  --
  Nicolas Ecarnot
  ___
  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] [hosted-engine] cluster network setup deadlock

2014-09-10 Thread Moti Asayag


- Original Message -
 From: Yuriy Demchenko demchenko...@gmail.com
 To: users@ovirt.org
 Sent: Friday, September 5, 2014 11:25:17 AM
 Subject: [ovirt-users] [hosted-engine] cluster network setup deadlock
 
 Hi,
 
 i'm testing hosted-engine in my lab and have some issues doing network
 configuration of my cluster
 I have 2 hosts + storage (iscsi/nfs), each with 2 NICs. My aim is highly
 available platform, so it must tolerate loss of one NIC, thus i want to
 use bonding + vlans, scheme like this:
 bond device used as ovirtmgmt network (mgmt/display/migration, not a VM
 net) with no vlan tagging and several vlan-tagged networks for VMs and
 storage connection on top of it. I use that kind of scheme all the time
 with non-selfhosted ovirt, as it provides reliability, requires only 2
 nics, allows pxe-kickstarting and requires no switch reconfiguration
 during/after host setup.
 However, with self-hosted engine i'm stuck - at deploy stage installer
 setups engine VM into ovirtmgmt network, making it VM network and i cant
 change it afterwards: when i uncheck vm network in web-interface for
 ovirtmgmt - it couldnt apply changes on host that running engine-vm (ok,
 thats expected), but if i setup another host with desired network
 configuration (i.e. ovirtmgmt - not a vm network + separate vlan-tagged
 networks for vm) it just couldnt migrate or start engine-vm, as it lacks
 ovirtmgmt bridge interface.

Since the host-engine is a vm, it should be connected to a vm network, which
leaves only 2 options for that vm network:
1. vlan - where the network should co-exist over the bond with other vlan
networks (and if wishes, you can define a non vlan-non vm network to act
as the display/migration network)
2. non vlan - which requires the network to be exclusively defined on the host.
 
There is a bug recently fixed by Toni (cc'ed) which seems to solve your issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1124207


 So, is there any way to change engine-vm network settings to run it on
 different bridge, not ovirtmgmt?
 


 --
 Yuriy Demchenko
 
 ___
 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 xielessha...@gmail.com
 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
 
 nic
 interfacevirtio/interface
 nameeth0/name
 boot_protocolstatic/boot_protocol
 mac address='.$ip-mac_address.'/
 network
 ip address='.$ip-mac_ip.' netmask='255.255.255.0'
 gateway='.$ip-mac_gateway.'/
 /network

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 networkname.../name/network or
the vnic_profile id=.../.

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

 on_boottrue/on_boot
 vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34' /
 /nic
 
 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] Neutron Virtual Appliance in oVirt-engine feature

2014-08-22 Thread Moti Asayag


- Original Message -
 From: Jan Kappert j.kapp...@geotax.nl
 To: users@ovirt.org
 Sent: Thursday, August 21, 2014 9:40:37 PM
 Subject: Re: [ovirt-users] Neutron Virtual Appliance in oVirt-engine feature
 
 Hello,
 
 I have try'd today multiple installations in my test env. Ovirt 3.5.0
 i have one management server and 2 hosts all running centos 6.5
 i can install the template and create the networks but when i a host with
 external network it has to install some stuff from the icehouse-3 repo i
 think i have a problem there that not all the necessary packages are
 installed.
 When i try ovs-vsctl add-port br-neutron neutron it say it can not found the
 command.

I've attached the repositories from my setup - also Cento-6.5 installed from
the image taken from glance.ovirt.org + ovirt-3.5-pre-build (which is modified
to internal mirror)

However the openvswitch is taken from openstack-icehouse repository.

Installed Packages
Name: openvswitch
Arch: x86_64
Version : 1.11.0_8ce28d
Release : 1.el6ost
Size: 5.4 M
Repo: installed
From repo   : openstack-icehouse
Summary : Open vSwitch daemon/database/utilities
URL : http://openvswitch.org
License : ASL 2.0 and LGPLv2+ and SISSL
Description : Open vSwitch provides standard network bridging functions and
: support for the OpenFlow protocol for remote per-flow control of
: traffic.

 
 and i have a problem using the cloud init, i need to fill in the ip for eth1


The 2 patches which handle those issues should be merged into 3.5 any day soon:
http://gerrit.ovirt.org/#/c/31772/
http://gerrit.ovirt.org/#/c/31771/

You can bypass it for now by selecting 'static' address type for eth1 and 
providing any
faked ip address. You'd have also have to edit the generated 
/etc/sysconfig/network-scripts/ifcfg-eth1
and set ONBOOT=yes (the second patch will handles it) and also remove the 
static ip address from it.

 BTW good movie!
 

Thanks :-)

 
 
 Met vriendelijke groet,
 GeoTax
 
 
 
 Jan Kappert
 
 ICT Services
 
 
 
 --
 Kuipershof 4
 
 Postbus 217
 4190 CE Geldermalsen
 T. 0345-570133
 I. www.geotax.nl
 
 --
 
 Disclaimer: zie www.geotax.nl
 
 
 
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 


repos.tar
Description: Unix tar archive
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Neutron Virtual Appliance in oVirt-engine feature

2014-08-21 Thread Moti Asayag
Hi All,

I'd like to introduce the Neutron virtual appliance feature [1] in ovirt-engine 
3.5.
The appliance is provided by the oVirt-image-repository which is configured by 
default
in ovirt-engine installation.

By using the appliance, the admin can skip the pain in installing and 
configuring OpenStack,
and enhance the appliance which contains the relevant OpenStack services to 
enable ovirt-neutron
integration features such as IP address management.

I've uploaded a demo to youtube [2] which takes the user step-by-step through 
that process.
Also the feature page describes the network topology, detailed instructions on 
how to utilize the
appliance and more.

Please reply with any issue or comment.

[1] http://www.ovirt.org/Features/NeutronVirtualAppliance
[2] http://youtu.be/naLFSFwHI94

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


Re: [ovirt-users] Not able to set Hostname for guest OS from cloud init using API

2014-08-06 Thread Moti Asayag


- Original Message -
 From: Chandrahasa S chandrahas...@tcs.com
 To: users@ovirt.org
 Sent: Wednesday, August 6, 2014 12:14:16 PM
 Subject: [ovirt-users] Not able to set Hostname for guest OS from cloud init  
 using API
 
 Dear All,
 
 We are not able Set Hostname to guest OS through API using cloud init. Other
 information like IP, Subnet, Gateway is working.

Hi,

See Juan's explanation regarding the Host address in cloud-init context at:

http://lists.ovirt.org/pipermail/users/2014-July/026190.html

 
 Kindly help.
 
 Regards,
 Chandrahasa S
 Tata Consultancy Services
 Data Center- ( Non STPI)
 2nd Pokharan Road,
 Subash Nagar ,
 Mumbai - 400601,Maharashtra
 India
 Ph:- +91 22 677-81825
 Buzz:- 4221825
 Mailto: chandrahas...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty. IT Services
 Business Solutions
 Consulting
 
 
 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you
 
 
 
 ___
 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


[ovirt-users] oVirt 3.5 test day 2 results: foreman advanced integration feature

2014-07-31 Thread Moti Asayag
Hi,

In the second ovirt test day I've retested the foreman advanced integration.
Using the instructions on the wiki page I was able to test part of the feature:
* Adding foreman provider and test connectivity with certificates import
* Present discovered hosts by foreman
* Present provisioned hosts by foreman
* Add discovered hosts by foreman (reached to Installing OS phase only due to
environmental issues).

Since the host provisioning wasn't completed, I haven't reach to test the 
foreman--ovirt
connectivity which should have trigger the host installation. 

I've filed a couple of bugs which I encountered during the testing:
Bug 1124870 - Provision of a host without compute resources fails with NPE
Bug 1124878 - Set Root password text label is not aligned with its caption
Bug 1124891 - [oVirt][Foreman] Root password length should be validated
Bug 1124887 - [RFE][oVirt][Foreman] Improve error messages when action fails on 
foreman server

In addition I've updated the feature page which missed a required package to be 
installed
on the foreman server.

Regards,
Moti

- Forwarded Message -
From: Moti Asayag masa...@redhat.com
To: de...@ovirt.org
Sent: Thursday, July 3, 2014 5:17:11 PM
Subject: ovirt test day report - ovirt - foreman advanced integration feature

Hi,

I assigned myself to the ovirt-foreman advanced integration feature [1] in the 
first
ovirt 3.5 test day.

The setup required for testing that environment is a bit complex (foreman, 
isolated
network, extending the foreman with extra plugins). I faced environmental
issues most of the day, mainly regarding foreman installation and configuration.

I provided specific feedback regarding the installed setup missing steps to 
Yaniv, 
the feature owner, which will incorporate them into the feature page.

I haven't reached into a point where i can provision a host via foreman into 
ovirt, but
I plan to get back to it in the second ovirt test day (or even before).

[1] http://www.ovirt.org/Features/AdvancedForemanIntegration

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


Re: [ovirt-users] Logical network error

2014-07-21 Thread Moti Asayag


- Original Message -
 From: Dan Kenigsberg dan...@redhat.com
 To: Maurice James mja...@media-node.com, from...@redhat.com
 Cc: Moti Asayag masa...@redhat.com, users users@ovirt.org, Antoni 
 Segura Puimedon asegu...@redhat.com
 Sent: Monday, July 21, 2014 6:49:56 PM
 Subject: Re: [ovirt-users] Logical network error
 
 On Mon, Jul 21, 2014 at 07:35:00AM -0400, Maurice James wrote:
  
  Here are the supervdsm logs
 
 Hmm, it's a trove of errors and tracebacks; there's a lot to debug, for
 example, here Vdsm was asked to create a 'migration' network on top of
 bond0 that was already used by ovirtmgmt. Engine should have blocked
 that. Moti? 

Obviously should have been blocked from engine side, however there are couple 
of issues with that migration network
which might contempt the engine caps:

MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,677::configNetwork::250::root::(addNetwork) validating network...
MainProcess|Thread-43::INFO::2014-04-11 
08:56:24,677::configNetwork::272::root::(addNetwork) Adding network migration 
with vlan=5, bonding=bond0, nics=['em1', 'em2'], bondingOptions=mode=4 
miimon=100, mtu=None, bridged=False, 
defaultRoute=False,options={'implicitBonding': True}
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,679::ifcfg::447::root::(_persistentBackup) backing up ifcfg-bond0.5: # 
original file did not exist

MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,681::ifcfg::313::root::(writeBackupFile) Persistently backed up 
/var/lib/vdsm/netconfback/ifcfg-bond0.5 (until next 'set safe config')
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,681::ifcfg::537::root::(writeConfFile) Writing to file 
/etc/sysconfig/network-scripts/ifcfg-bond0.5 configuration:
# Generated by VDSM version 4.14.6-7.git41501b3.el6
DEVICE=bond0.5
ONBOOT=yes
VLAN=yes
DEFROUTE=no
NM_CONTROLLED=no

MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,684::utils::642::root::(execCmd) '/sbin/ip route show to 0.0.0.0/0 
table all' (cwd None)
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,690::utils::662::root::(execCmd) SUCCESS: err = ''; rc = 0
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,728::utils::642::root::(execCmd) '/sbin/ip -d link show dev bond0.2' 
(cwd None)
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,735::utils::662::root::(execCmd) SUCCESS: err = ''; rc = 0
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,741::utils::642::root::(execCmd) '/sbin/ip -d link show dev bond0.4' 
(cwd None)
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,747::utils::662::root::(execCmd) SUCCESS: err = ''; rc = 0
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,753::utils::642::root::(execCmd) '/sbin/ip -d link show dev bond0.3' 
(cwd None)
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,759::utils::662::root::(execCmd) SUCCESS: err = ''; rc = 0
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,764::__init__::122::root::(_addSourceRoute) Adding source route 
bond0.5, None, None, None
MainProcess|Thread-43::ERROR::2014-04-11 
08:56:24,764::sourceRoute::68::root::(configure) ipaddr, mask or gateway not 
received
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,764::utils::642::root::(execCmd) '/sbin/ifup bond0.5' (cwd None)
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,914::utils::662::root::(execCmd) SUCCESS: err = ''; rc = 0
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,917::libvirtconnection::124::root::(wrapper) Unknown libvirterror: 
ecode: 43 edom: 19 level: 2 message: Network not found: no network with 
matching name 'vdsm-migration'
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,918::ifcfg::324::root::(_atomicNetworkBackup) Backed up migration
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,919::libvirtconnection::124::root::(wrapper) Unknown libvirterror: 
ecode: 43 edom: 19 level: 2 message: Network not found: no network with 
matching name 'vdsm-migration'
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,919::ifcfg::333::root::(_persistentNetworkBackup) backing up network 
migration: # original file did not exist

MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:24,921::ifcfg::313::root::(writeBackupFile) Persistently backed up 
/var/lib/vdsm/netconfback/logicalnetworks/migration (until next 'set safe 
config')
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:25,031::configNetwork::651::setupNetworks::(setupNetworks) Checking 
connectivity...
MainProcess|Thread-43::DEBUG::2014-04-11 
08:56:26,035::supervdsmServer::103::SuperVdsm.ServerCallback::(wrapper) return 
setupNetworks with None
MainProcess|Thread-43::DEBUG::201

I wasn't able to find the output of getCapabilities for the host in the logs. 
Without 'getCaps' it is hard to know which network configuration was reported 
to the engine by vdsm.

But if 'vdsm-migration' is not a know network (based on above message), the 
engine might allow to use the underlying interface.

In addition, there are a lot of setup-networks call which most of them failed 
due to 'resource unavailable'. 

 
 MainProcess|Thread

Re: [ovirt-users] Logical network error

2014-07-17 Thread Moti Asayag


- Original Message -
 From: Maurice James mja...@media-node.com
 To: users users@ovirt.org
 Sent: Wednesday, July 16, 2014 5:06:23 PM
 Subject: [ovirt-users] Logical network error
 
 While attempting to remove a logical network from one of my hosts, Im getting
 the following error.
 Error while executing action Setup Networks: Unexpected exception
 
 
 Im seeing the following error in the vdsm.log.
 

Could you attach the entire vdsm.log and supervdsm.log ?

 
 Thread-72::ERROR::2014-07-16
 10:03:46,773::BindingXMLRPC::1086::vds::(wrapper) unexpected error
 Traceback (most recent call last):
 File /usr/share/vdsm/BindingXMLRPC.py, line 1070, in wrapper
 res = f(*args, **kwargs)
 File /usr/share/vdsm/BindingXMLRPC.py, line 494, in setupNetworks
 return api.setupNetworks(networks, bondings, options)
 File /usr/share/vdsm/API.py, line 1297, in setupNetworks
 supervdsm.getProxy().setupNetworks(networks, bondings, options)
 File /usr/share/vdsm/supervdsm.py, line 50, in __call__
 return callMethod()
 File /usr/share/vdsm/supervdsm.py, line 48, in lambda
 **kwargs)
 File string, line 2, in setupNetworks
 File /usr/lib64/python2.6/multiprocessing/managers.py, line 725, in
 _callmethod
 conn.send((self._id, methodname, args, kwds))
 IOError: [Errno 32] Broken pipe
 
 ___
 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] Neutron - oVirt Integration

2014-07-15 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: users users@ovirt.org
 Sent: Tuesday, July 15, 2014 1:22:15 PM
 Subject: [ovirt-users] Neutron - oVirt Integration
 
 Hi All,
 
 I am working on the Nova - oVirt driver as mentioned in the blueprint -
 https://blueprints.launchpad.net/nova/+spec/rhev-m-ovirt-clusters-as-compute-resources.
 
 I am currently to integrate neutron with ovirt during a VM launch, for below
 use case.
 
 Use Case:-
 1. Import the Neutron as external provider into oVirt.
 2. VM is Launched in OpenStack - which launches VM on oVirt.

Does the vm has ports configured on neutron or nova ?
If so, it cannot be supported within ovirt.

I'm not familiar with that driver, but if the vm should be managed by the 
ovirt-engine,
the driver should have create vm interfaces for that vm within ovirt, and 
provide the
network/vnic profile of the external network.

If that network has a subnet (could be configured on ovirt-engine), an IP will 
be allocated
to that port.

There is no fixed IP assignment in the current ovirt-neutron integration.

 3. Assign the IP assigned by the OpenStack to the oVirt VM and connect to the
 imported OpenStack Network.
 
 I have completed Step 1 and Step 2.
 
 Can anyone help me with possible approaches to Step 3?
 
 Thank You,
 
 Regards,
 Udaya Kiran
 
 ___
 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] Add OpenStack-Glance

2014-07-11 Thread Moti Asayag


- Original Message -
 From: Daniel Helgenberger daniel.helgenber...@m-box.de
 To: users@ovirt.org
 Sent: Friday, July 11, 2014 1:20:14 PM
 Subject: [ovirt-users] Add OpenStack-Glance
 
 Hello,
 
 following Itamar Heim's idea to use Glance for moving around images in
 Ovirt, I went ahead setting up a VM with Glance and Keystone. I have
 configured the following user in keystone in glace:
 
 [keystone_authtoken]
 auth_host = 127.0.0.1
 auth_port = 35357
 auth_protocol = http
 admin_tenant_name = service
 admin_user = glance
 admin_password = Secret
 
 Using the appropriate credentials in oVirt / Add external provider with
 http://192.168.50.33:9292 I get:
 Failed to communicate with the external provider
 
 The TCP port is open.
 
 I fail to see anything in the glance api.log.
 
 Question: How can I debug this from ovirt?
 

You're missing a step:

http://www.ovirt.org/Features/Detailed_OSN_Integration#oVirt_Engine_required_configuration

You need to configure the keystone url via the engine-config tool, followed by 
the ovirt-engine
service restart.

engine-config -s KeystoneAuthUrl=http://192.168.50.33:35357/v2.0/
service ovirt-engine restart

 Thanks!
 
 --
 
 I used the official test [1] to add the cirros image to glance on my vm:
 
 # source keystonerc
 # glance image-create --name=CirrOS-Test --is-public=true
 --container-format=bare --disk-format=qcow2  cirros-0.3.0-x86_64-disk.img
 +--+--+
 | Property | Value|
 +--+--+
 | checksum | 50bdc35edb03a38d91b1b071afb20a3c |
 | container_format | bare |
 | created_at   | 2014-07-11T08:53:05.857978   |
 | deleted  | False|
 | deleted_at   | None |
 | disk_format  | qcow2|
 | id   | 5132246d-8f63-4456-86ab-357fb241f3f9 |
 | is_public| True |
 | min_disk | 0|
 | min_ram  | 0|
 | name | CirrOS-Test  |
 | owner| 40654094d0684d238681bc0b1ab6617d |
 | protected| False|
 | size | 9761280  |
 | status   | active   |
 | updated_at   | 2014-07-11T08:53:07.240096   |
 +--+--+
 
 Note, the keystonerc contains my credantials / AUTH_URL. Also, keystone is
 working, as far as I can tell:
 
 # keystone --os-username=glance --os-password=Secret
 --os-auth-url=http://127.0.0.1:35357/v2.0 token-get
 +--+--+
 | Property |  Value   |
 +--+--+
 | expires  |   2014-07-12T09:03:46Z   |
 |id| 20c5f2290aa145368f31a88db711351e |
 | user_id  | 0a06c68d8adb4739b41628a0cb326f6a |
 +--+--+
 
 Telnet from Engine:
 
 telnet 192.168.50.33 9292
 Trying 192.168.50.33...
 Connected to 192.168.50.33.
 Escape character is '^]'.
 get
 HTTP/1.1 400 Bad request syntax ('get')
 Server: BaseHTTP/0.3 Python/2.6.6
 Date: Fri, 11 Jul 2014 09:04:14 GMT
 Content-Type: text/html
 Connection: close
 
 head
 titleError response/title
 /head
 body
 h1Error response/h1
 pError code 400.
 pMessage: Bad request syntax ('get').
 pError code explanation: 400 = Bad request syntax or unsupported method.
 /body
 Connection closed by foreign host.
 
 
 [1]
 http://docs.openstack.org/grizzly/openstack-compute/install/yum/content/verifying-identity-install.html
 http://docs.openstack.org/grizzly/openstack-compute/admin/content/adding-images.html
 
 --
 
 Daniel Helgenberger
 m box bewegtbild GmbH
 
 P: +49/30/2408781-22
 F: +49/30/2408781-10
 
 ACKERSTR. 19
 D-10115 BERLIN
 
 
 www.m-box.de  www.monkeymen.tv
 
 Geschäftsführer: Martin Retschitzegger / Michaela Göllner
 Handeslregister: Amtsgericht Charlottenburg / HRB 112767
 
 
 ___
 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] name of virtual machine and hostname

2014-06-29 Thread Moti Asayag


- Original Message -
 From: Shahar Havivi shah...@redhat.com
 To: Antoni Segura Puimedon asegu...@redhat.com
 Cc: Users@ovirt.org
 Sent: Sunday, June 29, 2014 11:12:24 AM
 Subject: Re: [ovirt-users] name of virtual machine and hostname
 
 On 27.06.14 05:18, Antoni Segura Puimedon wrote:
  
  
  - Original Message -
   From: nicola gentile nicola.gentile...@gmail.com
   To: Users@ovirt.org
   Sent: Friday, June 27, 2014 11:16:51 AM
   Subject: [ovirt-users] name of virtual machine and hostname
   
   Good morning,
   I would like to ask you an information.
   After I have installed ovirt, I have created a pool of vm with name
   like centos-?? (from 1 to 20)
   and then ovirt generated 20 vm with name centos-1, centos-2, centos-3
   etc.
   etc.
   The problem is when the vm starts the hostname is not the same of the
   vm name in ovirt but is the same name of the template.
   Is it possible to make sure that the name of vm and the hostname is
   identical?
  
  I guess that the way to go about it would be to use the cloudinit
  integration.
  I've not tried it myself, but:
  http://www.ovirt.org/Features/Cloud-Init_Integration
  states that setting the hostname was one of the planned features when the
  integration was designed.
 Setting the host name via cloud-init is currently supported - you can set it
 via the Add/Edit VM via the Initial Run section or try to run-once the VM
 and look at the same initial Run section.
 Please note that if you do Edit a VM that already run ie already initialized
 oVirt engine will not send the cloud-init data, you will need to use run-once
 dialog.
 
 What you reported looks like a bug - the VM name should be the hostname and
 not the template name.

Unless Nicola referred to the template's host name, from which the vm pool was
created. It might be if the template wasn't sealed.

Nicola, could you clarify what did you mean by template name which appears as
the host name ?

Thanks,
Moti

 
 Care to report the bug on bugzilla?
 Thank you,
 Shahar Havivi.
  
   
   Best regard
   
   Nicola Gentile
   ___
   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 mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Host Installation fails - Package openstack-neutron cannot be found

2014-06-23 Thread Moti Asayag


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Moti Asayag masa...@redhat.com, Sandro Bonazzola 
 sbona...@redhat.com
 Cc: users users@ovirt.org, de...@ovirt.org
 Sent: Monday, June 23, 2014 12:06:57 PM
 Subject: Re: [ovirt-users] Host Installation fails - Package 
 openstack-neutron cannot be found
 
 On 06/22/2014 09:29 AM, Moti Asayag wrote:
 
 
  - Original Message -
  From: Sandro Bonazzola sbona...@redhat.com
  To: Moti Asayag masa...@redhat.com
  Cc: users users@ovirt.org, de...@ovirt.org
  Sent: Tuesday, June 17, 2014 10:25:16 AM
  Subject: Re: [ovirt-users] Host Installation fails - Package
  openstack-neutron cannot be found
 
  Il 12/06/2014 12:25, Moti Asayag ha scritto:
 
 
  - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org
  Sent: Wednesday, June 11, 2014 10:25:37 AM
  Subject: [ovirt-users] Host Installation fails - Package
  openstack-neutron
   cannot be found
 
  Hi All,
 
  I am trying to add a new Host, with External Network Provider - Neutron.
  Host
  installation fails in oVirt Engine with below error.
 
 
  What is the version of the neutron server you're using ?
 
  you can find repositories here:
  http://repos.fedorapeople.org/repos/openstack/openstack-havana/
 
  If the above repository is now required in order to deploy hosts, please
  send
  a patch to ovirt-release project and/or open a BZ to be sure we enable
  that repository by default.
  Thanks.
 
 
  AFAIK we don't enable any repositories on the hosts (compute nodes)
  by default and this is up to the admin to decide from which repositories
  it should fetch the required dependencies.
 
  Since ovirt-neutron integration, any host (compute node) that is added
  to ovirt-engine with an external network provider should include a
  repository that contains the openstack-neutron package.
 
 just to make sure - so this isn't in by default for anyone deploying a host?
 

Yes, it should be recommended only for users which intend to use ovirt-neutron
integration.

 
  I've reported a bug for that, as an installation documentation guide:
 
  https://bugzilla.redhat.com/show_bug.cgi?id=918
 
  Please let me know if it satisfies the needs.
 
 
 
 
  Please help me resolve this
 
  2014-06-11 12:54:34 ERROR otopi.plugins.otopi.packagers.yumpackager
  yumpackager.error:97 Yum Cannot queue package openstack-neutron: Package
  openstack-neutron cannot be found
  2014-06-11 12:54:34 DEBUG otopi.context context._executeMethod:152
  method
  exception
  Traceback (most recent call last):
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/context.py, line 142, in
  _executeMethod
  method['method']()
  File
  /tmp/ovirt-YnooVggSrR/otopi-plugins/ovirt-host-deploy/openstack/neutron.py,
  line 81, in _packages
  self.packager.installUpdate(('openstack-neutron',))
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/packager.py, line 139, in
  installUpdate
  ignoreErrors=ignoreErrors,
  File
  /tmp/ovirt-YnooVggSrR/otopi-plugins/otopi/packagers/yumpackager.py,
  line 295, in install
  ignoreErrors=ignoreErrors
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 865, in
  install
  **kwargs
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 514, in
  _queue
  package=package,
  RuntimeError: Package openstack-neutron cannot be found
  2014-06-11 12:54:34 ERROR otopi.context context._executeMethod:161
  Failed
  to
  execute stage 'Package installation': Package openstack-neutron cannot
  be
  found
 
 
  Thank you,
 
  Regards,
  Udaya Kiran
 
  ___
  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
 
 
 
  --
  Sandro Bonazzola
  Better technology. Faster innovation. Powered by community collaboration.
  See how it works at redhat.com
 
  ___
  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] Host Installation fails - Package openstack-neutron cannot be found

2014-06-23 Thread Moti Asayag


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: Sandro Bonazzola sbona...@redhat.com, users users@ovirt.org, 
 de...@ovirt.org
 Sent: Monday, June 23, 2014 3:24:06 PM
 Subject: Re: [ovirt-users] Host Installation fails - Package 
 openstack-neutron cannot be found
 
 On 06/23/2014 03:17 PM, Moti Asayag wrote:
 ...
  AFAIK we don't enable any repositories on the hosts (compute nodes)
  by default and this is up to the admin to decide from which repositories
  it should fetch the required dependencies.
 
  Since ovirt-neutron integration, any host (compute node) that is added
  to ovirt-engine with an external network provider should include a
  repository that contains the openstack-neutron package.
 
  just to make sure - so this isn't in by default for anyone deploying a
  host?
 
 
  Yes, it should be recommended only for users which intend to use
  ovirt-neutron
  integration.
 
 recommended == required during deployment?
 

Yes. Without the existence of a repository with neutron packages, the 
installation of
host with configured with an external network provider will fail.

The user is not obligated to install a host with an external network provider, 
but if
he choose to, it must provide the required deployment.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Host Installation fails - Package openstack-neutron cannot be found

2014-06-22 Thread Moti Asayag


- Original Message -
 From: Sandro Bonazzola sbona...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org, de...@ovirt.org
 Sent: Tuesday, June 17, 2014 10:25:16 AM
 Subject: Re: [ovirt-users] Host Installation fails - Package 
 openstack-neutron cannot be found
 
 Il 12/06/2014 12:25, Moti Asayag ha scritto:
  
  
  - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org
  Sent: Wednesday, June 11, 2014 10:25:37 AM
  Subject: [ovirt-users] Host Installation fails - Package openstack-neutron
 cannot be found
 
  Hi All,
 
  I am trying to add a new Host, with External Network Provider - Neutron.
  Host
  installation fails in oVirt Engine with below error.
 
  
  What is the version of the neutron server you're using ?
  
  you can find repositories here:
  http://repos.fedorapeople.org/repos/openstack/openstack-havana/
 
 If the above repository is now required in order to deploy hosts, please send
 a patch to ovirt-release project and/or open a BZ to be sure we enable
 that repository by default.
 Thanks.
 

AFAIK we don't enable any repositories on the hosts (compute nodes)
by default and this is up to the admin to decide from which repositories
it should fetch the required dependencies.

Since ovirt-neutron integration, any host (compute node) that is added
to ovirt-engine with an external network provider should include a
repository that contains the openstack-neutron package.

I've reported a bug for that, as an installation documentation guide:

https://bugzilla.redhat.com/show_bug.cgi?id=918

Please let me know if it satisfies the needs.

 
 
  
  Please help me resolve this
 
  2014-06-11 12:54:34 ERROR otopi.plugins.otopi.packagers.yumpackager
  yumpackager.error:97 Yum Cannot queue package openstack-neutron: Package
  openstack-neutron cannot be found
  2014-06-11 12:54:34 DEBUG otopi.context context._executeMethod:152 method
  exception
  Traceback (most recent call last):
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/context.py, line 142, in
  _executeMethod
  method['method']()
  File
  /tmp/ovirt-YnooVggSrR/otopi-plugins/ovirt-host-deploy/openstack/neutron.py,
  line 81, in _packages
  self.packager.installUpdate(('openstack-neutron',))
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/packager.py, line 139, in
  installUpdate
  ignoreErrors=ignoreErrors,
  File /tmp/ovirt-YnooVggSrR/otopi-plugins/otopi/packagers/yumpackager.py,
  line 295, in install
  ignoreErrors=ignoreErrors
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 865, in
  install
  **kwargs
  File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 514, in
  _queue
  package=package,
  RuntimeError: Package openstack-neutron cannot be found
  2014-06-11 12:54:34 ERROR otopi.context context._executeMethod:161 Failed
  to
  execute stage 'Package installation': Package openstack-neutron cannot be
  found
 
 
  Thank you,
 
  Regards,
  Udaya Kiran
 
  ___
  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
  
 
 
 --
 Sandro Bonazzola
 Better technology. Faster innovation. Powered by community collaboration.
 See how it works at redhat.com
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] host upgrade from ovirt manager and custom iptables rules

2014-06-19 Thread Moti Asayag


- Original Message -
 From: Jiří Sléžka jiri.sle...@slu.cz
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, June 19, 2014 3:25:49 PM
 Subject: Re: [ovirt-users] host upgrade from ovirt manager and custom 
 iptables rules
 
  - Original Message -
  From: Jiří Sléžka jiri.sle...@slu.cz
  To: users@ovirt.org
  Sent: Wednesday, June 18, 2014 8:12:09 PM
  Subject: [ovirt-users] host upgrade from ovirt manager and custom iptables
 rules
 
  Hello all,
 
  is there any way to make custom iptables rules persistent during host
  upgrade? I have for example zabbix agents installed on all hosts and
  thus iptables rule allowing connections from our zabbix server. Sadly I
  have to manually restore iptables backup after host upgrade (initiated
  from oVirt manager).
 
 
  This should be achievable by defining the iptables rules you wish to use
  when [re]installing using the engine-config tool:
 
 thanks a lot for reply
 
  1. Check the existing iptables rules:
  sudo engine-config -g IPTablesConfig
 
 this displays whole iptables template. Interesting thing is that there
 is a variable @CUSTOM_RULES@. Maybe custom rules could be defined this way?
 

Adding Alon to reply on @CUSTOM_RULES@

 
  2. Define the desired iptables:
  sudo engine-config -s IPTablesConfig=Your rules
 
 I entered...
 
 engine-config -s IPTablesConfig=-A INPUT -p tcp -m state --state NEW -m
 tcp -s xx.xx.xx.xx --dport 10050 -j ACCEPT
 
 ...and it looks like this overwrite entire IPTablesConfig template...
 
  3. Verify the changes
  sudo engine-config -g IPTablesConfig
 
 ...because this displays only just my one line above.
 
 I have copy of default template but I have no idea how to set this
 variable with multi line text. I tried inserting \n but it is not
 converted to newlines. Any ideas?

to me i worked by pasting the file content in the command line:
engine-config -s IPTablesConfig= paste multi-line content

 
 Btw. these variables are stored in database?

Yes, in vdc_options table:

select * from vdc_options where option_name = 'IPTablesConfig';

 
 
 Thanks in advance,
 
 Jiri
 
 
 
 
  4. Restart the engine for changes to take effect
 
  5. Reinstall the host and verify the iptables rule.
 
  And another question I have always wanted to ask... It looks like host
  upgrade is upgrading just vdsm components and no others virtualization
  stuff
 
  this was updatet after clicking to host upgrade
 
  Jun 18 18:21:38 Updated: iproute-2.6.32-32.el6_5.x86_64
  Jun 18 18:21:59 Installed: vdsm-python-zombiereaper-4.14.7-3.el6ev.noarch
  Jun 18 18:21:59 Updated: vdsm-python-4.14.7-3.el6ev.x86_64
  Jun 18 18:21:59 Updated: vdsm-xmlrpc-4.14.7-3.el6ev.noarch
  Jun 18 18:21:59 Updated: vdsm-cli-4.14.7-3.el6ev.noarch
  Jun 18 18:22:26 Updated: vdsm-4.14.7-3.el6ev.x86_64
  Jun 18 18:22:27 Updated:
  2:qemu-kvm-rhev-tools-0.12.1.2-2.415.el6_5.10.x86_64
 
  and after that I run yum update and updated this components (honestly
  this one was rhev host but ovirt behave the same)
 
  Jun 18 18:26:59 Updated: selinux-policy-3.7.19-231.el6_5.3.noarch
  Jun 18 18:27:03 Updated: tzdata-2014d-1.el6.noarch
  Jun 18 18:27:10 Updated: glibc-2.12-1.132.el6_5.2.x86_64
  Jun 18 18:27:22 Updated: glibc-common-2.12-1.132.el6_5.2.x86_64
  Jun 18 18:27:22 Updated: audit-libs-2.2-4.el6_5.x86_64
  Jun 18 18:27:22 Updated: libxml2-2.7.6-14.el6_5.1.x86_64
  Jun 18 18:27:22 Updated: libcurl-7.19.7-37.el6_5.3.x86_64
  Jun 18 18:27:23 Updated: 2:qemu-img-rhev-0.12.1.2-2.415.el6_5.10.x86_64
  Jun 18 18:27:23 Updated: libtasn1-2.3-6.el6_5.x86_64
  Jun 18 18:27:23 Updated: gnutls-2.8.5-14.el6_5.x86_64
  Jun 18 18:27:25 Updated: openssl-1.0.1e-16.el6_5.14.x86_64
  Jun 18 18:27:25 Updated: spice-server-0.12.4-6.el6_5.2.x86_64
  Jun 18 18:27:25 Updated: gnutls-utils-2.8.5-14.el6_5.x86_64
  Jun 18 18:27:25 Updated: pm-utils-1.2.5-10.el6_5.1.x86_64
  Jun 18 18:27:28 Updated: libvirt-client-0.10.2-29.el6_5.9.x86_64
  Jun 18 18:27:30 Updated: libvirt-0.10.2-29.el6_5.9.x86_64
  Jun 18 18:27:30 Updated: libvirt-python-0.10.2-29.el6_5.9.x86_64
  Jun 18 18:27:30 Updated: mom-0.4.0-1.el6ev.noarch
  Jun 18 18:27:30 Updated: libvirt-lock-sanlock-0.10.2-29.el6_5.9.x86_64
  Jun 18 18:27:32 Updated: 2:qemu-kvm-rhev-0.12.1.2-2.415.el6_5.10.x86_64
  Jun 18 18:27:32 Updated: python-rhsm-1.9.7-1.el6_5.x86_64
  Jun 18 18:27:32 Updated: curl-7.19.7-37.el6_5.3.x86_64
  Jun 18 18:27:33 Updated: libxml2-python-2.7.6-14.el6_5.1.x86_64
  Jun 18 18:27:33 Updated: audit-libs-python-2.2-4.el6_5.x86_64
  Jun 18 18:27:33 Updated: audit-2.2-4.el6_5.x86_64
  Jun 18 18:27:33 Updated: mdadm-3.2.6-7.el6_5.2.x86_64
  Jun 18 18:27:33 Updated: python-cpopen-1.3-2.el6_5.x86_64
  Jun 18 18:28:30 Updated: selinux-policy-targeted-3.7.19-231.el6_5.3.noarch
  Jun 18 18:28:30 Updated: python-pthreading-0.1.3-1.el6ev.noarch
 
 
  I believe qemu-img-rhev, spice-server, libvirt, mom,... are important
  components too. Should not be upgraded as well?
 
 
  Thanks for clarification

Re: [ovirt-users] host upgrade from ovirt manager and custom iptables rules

2014-06-19 Thread Moti Asayag


- Original Message -
 From: Alon Bar-Lev alo...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: Jiří Sléžka jiri.sle...@slu.cz, users@ovirt.org
 Sent: Friday, June 20, 2014 1:19:25 AM
 Subject: Re: [ovirt-users] host upgrade from ovirt manager and custom 
 iptables rules
 
 
 
 - Original Message -
  From: Moti Asayag masa...@redhat.com
  To: Jiří Sléžka jiri.sle...@slu.cz, Alon Bar-Lev abar...@redhat.com
  Cc: users@ovirt.org
  Sent: Friday, June 20, 2014 1:12:58 AM
  Subject: Re: [ovirt-users] host upgrade from ovirt manager and custom
  iptables rules
  
  
  
  - Original Message -
   From: Jiří Sléžka jiri.sle...@slu.cz
   To: Moti Asayag masa...@redhat.com
   Cc: users@ovirt.org
   Sent: Thursday, June 19, 2014 3:25:49 PM
   Subject: Re: [ovirt-users] host upgrade from ovirt manager and custom
   iptables rules
   
- Original Message -
From: Jiří Sléžka jiri.sle...@slu.cz
To: users@ovirt.org
Sent: Wednesday, June 18, 2014 8:12:09 PM
Subject: [ovirt-users] host upgrade from ovirt manager and custom
iptables
   rules
   
Hello all,
   
is there any way to make custom iptables rules persistent during host
upgrade? I have for example zabbix agents installed on all hosts and
thus iptables rule allowing connections from our zabbix server. Sadly
I
have to manually restore iptables backup after host upgrade (initiated
from oVirt manager).
   
   
This should be achievable by defining the iptables rules you wish to
use
when [re]installing using the engine-config tool:
   
   thanks a lot for reply
   
1. Check the existing iptables rules:
sudo engine-config -g IPTablesConfig
   
   this displays whole iptables template. Interesting thing is that there
   is a variable @CUSTOM_RULES@. Maybe custom rules could be defined this
   way?
   
  
  Adding Alon to reply on @CUSTOM_RULES@
 
 These are to be replaced with gluster specific or virt specific or both, see
 IPTablesConfigForVirt, IPTablesConfigForGluster.
 
 I must note that there is no real support for manual modification of the
 iptables rules, as once you change it, you do not enjoy future product
 updates, such as upcoming kdump fence listener daemon.
 
 However, moti, we can add another vdc config for user defined rules, it
 should be sufficient in most cases.

Sounds reasonable.

Jiri, would you like to open RFE for it ?

 
  
   
2. Define the desired iptables:
sudo engine-config -s IPTablesConfig=Your rules
   
   I entered...
   
   engine-config -s IPTablesConfig=-A INPUT -p tcp -m state --state NEW -m
   tcp -s xx.xx.xx.xx --dport 10050 -j ACCEPT
   
   ...and it looks like this overwrite entire IPTablesConfig template...
   
3. Verify the changes
sudo engine-config -g IPTablesConfig
   
   ...because this displays only just my one line above.
   
   I have copy of default template but I have no idea how to set this
   variable with multi line text. I tried inserting \n but it is not
   converted to newlines. Any ideas?
  
  to me i worked by pasting the file content in the command line:
  engine-config -s IPTablesConfig= paste multi-line content
  
   
   Btw. these variables are stored in database?
  
  Yes, in vdc_options table:
  
  select * from vdc_options where option_name = 'IPTablesConfig';
  
   
   
   Thanks in advance,
   
   Jiri
   
   
   
   
4. Restart the engine for changes to take effect
   
5. Reinstall the host and verify the iptables rule.
   
And another question I have always wanted to ask... It looks like host
upgrade is upgrading just vdsm components and no others virtualization
stuff
   
this was updatet after clicking to host upgrade
   
Jun 18 18:21:38 Updated: iproute-2.6.32-32.el6_5.x86_64
Jun 18 18:21:59 Installed:
vdsm-python-zombiereaper-4.14.7-3.el6ev.noarch
Jun 18 18:21:59 Updated: vdsm-python-4.14.7-3.el6ev.x86_64
Jun 18 18:21:59 Updated: vdsm-xmlrpc-4.14.7-3.el6ev.noarch
Jun 18 18:21:59 Updated: vdsm-cli-4.14.7-3.el6ev.noarch
Jun 18 18:22:26 Updated: vdsm-4.14.7-3.el6ev.x86_64
Jun 18 18:22:27 Updated:
2:qemu-kvm-rhev-tools-0.12.1.2-2.415.el6_5.10.x86_64
   
and after that I run yum update and updated this components (honestly
this one was rhev host but ovirt behave the same)
   
Jun 18 18:26:59 Updated: selinux-policy-3.7.19-231.el6_5.3.noarch
Jun 18 18:27:03 Updated: tzdata-2014d-1.el6.noarch
Jun 18 18:27:10 Updated: glibc-2.12-1.132.el6_5.2.x86_64
Jun 18 18:27:22 Updated: glibc-common-2.12-1.132.el6_5.2.x86_64
Jun 18 18:27:22 Updated: audit-libs-2.2-4.el6_5.x86_64
Jun 18 18:27:22 Updated: libxml2-2.7.6-14.el6_5.1.x86_64
Jun 18 18:27:22 Updated: libcurl-7.19.7-37.el6_5.3.x86_64
Jun 18 18:27:23 Updated:
2:qemu-img-rhev-0.12.1.2-2.415.el6_5.10.x86_64
Jun 18 18:27:23 Updated: libtasn1-2.3-6.el6_5.x86_64
Jun 18 18:27:23 Updated: gnutls-2.8.5-14.el6_5.x86_64
Jun 18

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

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@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 masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@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
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@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 masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: Moti Asayag masa...@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 masa...@redhat.com wrote:
   
  
  
  
  
  - Original Message -
   From: Udaya Kiran P ukiran...@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
  
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2014-06-17 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@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-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 masa...@redhat.com wrote:
  
 
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: Moti Asayag masa...@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 masa...@redhat.com wrote:
   
  
  
  
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: Moti Asayag masa...@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 masa...@redhat.com
   wrote:
    
   
   
   
   
   - Original Message -
From: Udaya Kiran P ukiran...@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

Re: [ovirt-users] Host Installation fails - Package openstack-neutron cannot be found

2014-06-12 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: users users@ovirt.org
 Sent: Wednesday, June 11, 2014 10:25:37 AM
 Subject: [ovirt-users] Host Installation fails - Package openstack-neutron
 cannot be found
 
 Hi All,
 
 I am trying to add a new Host, with External Network Provider - Neutron. Host
 installation fails in oVirt Engine with below error.
 

What is the version of the neutron server you're using ?

you can find repositories here:
http://repos.fedorapeople.org/repos/openstack/openstack-havana/

 Please help me resolve this
 
 2014-06-11 12:54:34 ERROR otopi.plugins.otopi.packagers.yumpackager
 yumpackager.error:97 Yum Cannot queue package openstack-neutron: Package
 openstack-neutron cannot be found
 2014-06-11 12:54:34 DEBUG otopi.context context._executeMethod:152 method
 exception
 Traceback (most recent call last):
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/context.py, line 142, in
 _executeMethod
 method['method']()
 File
 /tmp/ovirt-YnooVggSrR/otopi-plugins/ovirt-host-deploy/openstack/neutron.py,
 line 81, in _packages
 self.packager.installUpdate(('openstack-neutron',))
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/packager.py, line 139, in
 installUpdate
 ignoreErrors=ignoreErrors,
 File /tmp/ovirt-YnooVggSrR/otopi-plugins/otopi/packagers/yumpackager.py,
 line 295, in install
 ignoreErrors=ignoreErrors
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 865, in install
 **kwargs
 File /tmp/ovirt-YnooVggSrR/pythonlib/otopi/miniyum.py, line 514, in _queue
 package=package,
 RuntimeError: Package openstack-neutron cannot be found
 2014-06-11 12:54:34 ERROR otopi.context context._executeMethod:161 Failed to
 execute stage 'Package installation': Package openstack-neutron cannot be
 found
 
 
 Thank you,
 
 Regards,
 Udaya Kiran
 
 ___
 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] Firewall?

2014-06-05 Thread Moti Asayag


- Original Message -
 From: Gianluca Cecchi gianluca.cec...@gmail.com
 To: Livnat Peer lp...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, June 5, 2014 11:34:11 AM
 Subject: Re: [ovirt-users] Firewall?
 
 On Thu, Jun 5, 2014 at 10:02 AM, Livnat Peer  lp...@redhat.com  wrote:
 
 
 
 [snip]
 
 
 
 
 The security group is configured per VM, the rules are configured by the
 system on the node the VM is running on.
 
 From the user perspective you need to configure a security group policy
 and then associate the VM with the relevant policy, there is also a
 default policy to which all VMs are associated by default.
 
 To use this feature you need to use the oVirt-Neutron integration -
 http://www.ovirt.org/Features/Detailed_OSN_Integration#Security_groups
 
 
 How can I set more than one custom device property?
 
 For example in my case when I had to use extnet I lose the security groups
 one...
 
 before
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties: version: 3.0
 CustomDeviceProperties: version: 3.1
 CustomDeviceProperties: version: 3.2
 CustomDeviceProperties: version: 3.3
 CustomDeviceProperties: {type=interface;prop={ SecurityGroups=^(?:(?:[0-9a-
 fA-F]{8}-(?:[0-9a-fA-F]{4}-){ 3}[0-9a-fA-F]{12},
 *)*[0-9a-fA-F]{8}-(?:[0-9a-fA- F]{4}-){3}[0-9a-fA-F]{12}|)$}} version: 3.4
 
 then
 [root@tekkaman ovirt-engine]# engine-config -s CustomDeviceProperties='{type=
 interface;prop={extnet=^[a-zA- Z0-9_ ---]+$}}'
 Please select a version:
 1. 3.0
 2. 3.1
 3. 3.2
 4. 3.3
 5. 3.4
 5
 
 after:
 [root@tekkaman ovirt-engine]# engine-config -g CustomDeviceProperties
 CustomDeviceProperties: version: 3.0
 CustomDeviceProperties: version: 3.1
 CustomDeviceProperties: version: 3.2
 CustomDeviceProperties: version: 3.3
 CustomDeviceProperties: {type=interface;prop={extnet=^ [a-zA-Z0-9_ ---]+$}}
 version: 3.4
 
 # systemctl restart ovirt-engine
 
 What is the syntax to add extnet without deleting security groups one?
 

See example on [1], modified a bit to fit you goal:

1. sudo engine-config -g CustomDeviceProperties --cver 3.4
2. Copy the SecurityGroups into variable PREVIOUS_PROPERTIES
   i.e. 
PREVIOUS_PROPERTIES=SecurityGroups=^(?:(?:[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12},
 *)*[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}|)$ 
3. sudo engine-config -s 
CustomDeviceProperties={type=interface;prop={$PREVIOUS_PROPERTIES;extnet=^ 
[a-zA-Z0-9_ ---]+$}} --cver=3.4
4. Verify: sudo engine-config -g CustomDeviceProperties --cver 3.4
5. Restart ovirt-engine for changes to reload.

[1] https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/macspoof

 Thanks
 Gianluca
 
 ___
 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] Nova- oVirt Driver : Adding NIC to VM

2014-05-28 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@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
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [ovirt-devel] Feature Page: Mac Pool per DC

2014-04-28 Thread Moti Asayag


- Original Message -
 From: Martin Mucha mmu...@redhat.com
 To: Yevgeny Zaspitsky yzasp...@redhat.com
 Cc: users@ovirt.org, de...@ovirt.org
 Sent: Monday, April 28, 2014 9:14:38 AM
 Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
 
 Hi,
 you're right, I do know about these problems. THIS IS DEFINITELY NOT A FINAL
 CODE.
 
 Why I did it this way: I come from agile environment.
 This supposed to be FIRST increment. Not last. I hate waterfall style of work
 -- almighty solution in one swing. I'd like to make sure, that main part,
 that core principle is valid and approved. Making gui look nice is marginal.
 So it is data structure for first increment. We can definitely think of
 thousands of improvements, BUT this RFC already include more than 10 patch
 sets and NO core reviews. How can I know, that others will approve this and
 I'm not completely wrong?
 
 about UX: it's wrong, but just fine for first increment. It can be used
 somehow and that just sufficient. Note: even with table to enter each
 from-to range there can be validation problem needed to be handled. Gui can
 changed to better one, when we know, that this feature works. But meantime
 others can test this feature functionality via this ugly, but very fast to
 write, gui!
 
 about DB: I'm aware of DB normalization, and about all implications my
 design has. Yes, storing it in one varchar column is DB (very heavily
 used) antipattern, just fine for first increment and very easy to fix.
 

There is another motivation for using a normalized data, specifically for
mac addresses - using the MAC addresses type [1] will enforce validity of
the input and will allow functionality such as comparison (is required).

[1] http://www.postgresql.org/docs/8.4/static/datatype-net-types.html

 If it's up to me, I'd like to wait for approval of 'core' part of this change
 (lets call it spike), and finish remaining 'marginalities' after it. (just
 to make myself clear proper db design ISN'T marginal measuring it using
 absolute scale, but it IS very marginal related to situation where most of
 code wasn't approved/reviewed yet).
 
 m.
 
 - Original Message -
 From: Yevgeny Zaspitsky yzasp...@redhat.com
 To: Martin Mucha mmu...@redhat.com
 Cc: de...@ovirt.org, users@ovirt.org
 Sent: Sunday, April 27, 2014 2:22:04 PM
 Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
 
 Now for users@ovirt.org indeed.
 
 - Original Message -
 From: Yevgeny Zaspitsky yzasp...@redhat.com
 To: Martin Mucha mmu...@redhat.com
 Cc: us...@ovrit.org, de...@ovirt.org
 Sent: Sunday, April 27, 2014 2:29:46 PM
 Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
 
 Martin,
 
 I'd like to propose a different approach on how the ranges to be defined and
 stored.
 
 Discussing this feature with Moti raised the alternative UX design:
 Defining ranges could be added as a left-tab on create DC dialog and a
 sub-tab on an existing DC. It would be a table of start and end address
 fields and we can add a calculated # of MACs in the range and/or summary for
 the DC.
 Also that will make string parsing unneeded, prevent possible user mistakes
 in the string format and make possible validating every field of the range
 on the UI side easier.
 As you can see on the screenshot you've attached even a single range doesn't
 fit to the text box. In case of multiple ranges managing them in a single
 line textbox would be very uncomfortable.
 
 A range is an object with at least 2 members (start and end). And we have few
 of these for each data center.
 Storing a collection of the objects in a single field in a relational DB
 seems a bit awkward to me.
 That has few disadvantages:
 1. is not normalized
 2. make data validation nearly impossible
 3. make querying the data very difficult
 4. is restraining our ability to extend the object (e.g. a user might like to
 give a description to a range)
 So IMHO a satellite table with the FK to storage_pool would be a more robust
 design.
 
 Best regards,
 
 Yevgeny Zaspitsky
 Senior Software Engineer
 Red Hat Israel
 
 
 - Original Message -
 From: Martin Mucha mmu...@redhat.com
 To: users@ovirt.org, de...@ovirt.org
 Sent: Thursday, April 10, 2014 9:59:44 AM
 Subject: [ovirt-devel] new feature
 
 Hi,
 
 I'd like to notify you about new feature, which allows to specify distinct
 MAC pools, currently one per data center.
 http://www.ovirt.org/Scoped_MacPoolManager
 
 any comments/proposals for improvement are very welcomed.
 Martin.
 ___
 Devel mailing list
 de...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
 ___
 Devel mailing list
 de...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
 ___
 Devel mailing list
 de...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
 
___
Users mailing list

Re: [ovirt-users] [ovirt-devel] Feature Page: Mac Pool per DC

2014-04-28 Thread Moti Asayag


- Original Message -
 From: Martin Mucha mmu...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: Yevgeny Zaspitsky yzasp...@redhat.com, users@ovirt.org, 
 de...@ovirt.org
 Sent: Monday, April 28, 2014 9:38:11 AM
 Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
 
 thanks for bringing up this datatypes, I was not aware of them.
 
 Are we allowed/supposed to use vendor specific types if appropriate to?
 note: using this type will enforce a validity, right, but that does not mean
 that much (from other code perspective) since one's still obliged to do all
 checking on all other app layers avoiding calls from one layer to another
 with invalid data (calls to backend are expensive, call to db are even more
 expensive considering lot of users working simultaneously).
 
 and will allow functionality such as comparison (is required).
 maybe I do not understand this. Which mac ranges comparison is currently
 required and not possible? Either I do not get it or I'm not aware of that
 use case.
 

If we plan at some point to support the search mechanism for mac address ranges
(the search box in the webadmin on top of the main tabs)

 m.
 
 - Original Message -
 From: Moti Asayag masa...@redhat.com
 To: Martin Mucha mmu...@redhat.com
 Cc: Yevgeny Zaspitsky yzasp...@redhat.com, users@ovirt.org,
 de...@ovirt.org
 Sent: Monday, April 28, 2014 8:21:50 AM
 Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
 
 
 
 - Original Message -
  From: Martin Mucha mmu...@redhat.com
  To: Yevgeny Zaspitsky yzasp...@redhat.com
  Cc: users@ovirt.org, de...@ovirt.org
  Sent: Monday, April 28, 2014 9:14:38 AM
  Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
  
  Hi,
  you're right, I do know about these problems. THIS IS DEFINITELY NOT A
  FINAL
  CODE.
  
  Why I did it this way: I come from agile environment.
  This supposed to be FIRST increment. Not last. I hate waterfall style of
  work
  -- almighty solution in one swing. I'd like to make sure, that main part,
  that core principle is valid and approved. Making gui look nice is
  marginal.
  So it is data structure for first increment. We can definitely think of
  thousands of improvements, BUT this RFC already include more than 10 patch
  sets and NO core reviews. How can I know, that others will approve this and
  I'm not completely wrong?
  
  about UX: it's wrong, but just fine for first increment. It can be used
  somehow and that just sufficient. Note: even with table to enter each
  from-to range there can be validation problem needed to be handled. Gui can
  changed to better one, when we know, that this feature works. But meantime
  others can test this feature functionality via this ugly, but very fast to
  write, gui!
  
  about DB: I'm aware of DB normalization, and about all implications my
  design has. Yes, storing it in one varchar column is DB (very heavily
  used) antipattern, just fine for first increment and very easy to fix.
  
 
 There is another motivation for using a normalized data, specifically for
 mac addresses - using the MAC addresses type [1] will enforce validity of
 the input and will allow functionality such as comparison (is required).
 
 [1] http://www.postgresql.org/docs/8.4/static/datatype-net-types.html
 
  If it's up to me, I'd like to wait for approval of 'core' part of this
  change
  (lets call it spike), and finish remaining 'marginalities' after it. (just
  to make myself clear proper db design ISN'T marginal measuring it using
  absolute scale, but it IS very marginal related to situation where most of
  code wasn't approved/reviewed yet).
  
  m.
  
  - Original Message -
  From: Yevgeny Zaspitsky yzasp...@redhat.com
  To: Martin Mucha mmu...@redhat.com
  Cc: de...@ovirt.org, users@ovirt.org
  Sent: Sunday, April 27, 2014 2:22:04 PM
  Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
  
  Now for users@ovirt.org indeed.
  
  - Original Message -
  From: Yevgeny Zaspitsky yzasp...@redhat.com
  To: Martin Mucha mmu...@redhat.com
  Cc: us...@ovrit.org, de...@ovirt.org
  Sent: Sunday, April 27, 2014 2:29:46 PM
  Subject: Re: [ovirt-devel] Feature Page: Mac Pool per DC
  
  Martin,
  
  I'd like to propose a different approach on how the ranges to be defined
  and
  stored.
  
  Discussing this feature with Moti raised the alternative UX design:
  Defining ranges could be added as a left-tab on create DC dialog and a
  sub-tab on an existing DC. It would be a table of start and end address
  fields and we can add a calculated # of MACs in the range and/or summary
  for
  the DC.
  Also that will make string parsing unneeded, prevent possible user mistakes
  in the string format and make possible validating every field of the range
  on the UI side easier.
  As you can see on the screenshot you've attached even a single range
  doesn't
  fit to the text box. In case of multiple ranges managing them in a single
  line textbox would be very uncomfortable.
  
  A range

Re: [ovirt-users] Network Security / Seperation

2014-04-26 Thread Moti Asayag


- Original Message -
 From: squadra squa...@gmail.com
 To: users@ovirt.org
 Sent: Thursday, April 24, 2014 10:08:55 AM
 Subject: [ovirt-users] Network Security / Seperation
 
 Hi Folks,
 
 i am currently looking for a way to isolate each vms network traffic
 so none can sniff others network traffic. currently i am playing
 around with the neutron integration, which gives me more question
 marks than answers for now (even documentation seems to be incomplete
 / outdated).
 
 Is there any other solution, which does not require to create a new
 vlan for each vm, to make sure that noone can sniff others traffic?
 

Could you explain why the basic functionality provided by ovirt and vdsm
doesn't meet you needs ? You can define vlans within ovirt, regardless 
ovirt-neutron integration.

 Cheers,
 
 Juergen
 
 --
 Sent from the Delta quadrant using Borg technology!
 ___
 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] [ovirt-devel] Feature Page: Mac Pool per DC

2014-04-26 Thread Moti Asayag


- Original Message -
 From: Martin Mucha mmu...@redhat.com
 To: Itamar Heim ih...@redhat.com
 Cc: users@ovirt.org, de...@ovirt.org
 Sent: Thursday, April 24, 2014 12:58:37 PM
 Subject: Re: [ovirt-devel] [ovirt-users] Feature Page: Mac Pool per DC
 
 no. you don't change mac addresses on the fly.
 ok, I was just asking if that's an option. No reallocating.
 
 i don't see why you need to keep it in memory at all?
 What I did is not a rewrite, but alteration of existing code -- I just add
 one layer above existing pool implementation. I'm not sure about that, that
 code existed before I start working on it; one explanation could be, that if
 duplicates are not allowed in config, we want to check user input and detect
 when he tries to add same mac address twice. Yes, *this* can be done using
 simple db query. I'll check that out, I'm not sufficiently aware of context
 to be able to say confident can be removed/must stay.

As Itamar stated, if a custom mac address was allocated out-of-range, once that
mac address is released (by removing the vm, deleting its vnic or by changing it
to other mac address), we don't need to preserve it anywhere in the system.
Therefore it will not acquire any memory/management consideration.

While in previous implementation (before this feature) we were able to reach 
that
situation only by providing a custom mac address, with the new feature, such 
situation may occur by modifying an existing range on the data-center level.

For example, a user define a data-center mac range of 00:00-00:20 and allocated
a mac address of 00:15 (from range) to a vm.
Next the user has reduced the range to 00:00-00:10, followed by removing that 
vm.
mac 00:15 is no longer in user, by there is no meaning for it any more as from
the data-center mac scope point of view.

 
 iiuc, you keep in memory the unused-ranges of the various mac_pools.
 when a mac address is released, you need to check if it is in the range
 of the relevant mac_pool for the VM (default, dc, cluster, vm_pool).
 if it is, you need to return it to that mac_pool. otherwise, the
 mac_pool is not relevant for this out-of-range mac address, and you just
 stop using it.
 
 currently it works like this: you identify pool you want and got some(based
 on system config). You release (free) mac from this pool without any care
 what type of mac it is. Method returns 'true' if it was released (== count
 of it's usages reaches zero or was not used at all). I think it does what
 you want, maybe with little less client code involvement. If client code
 provided wrong pool identification or releasing not used mac then it's a
 coding error and all we can do is log it.
 
 remember, you have to check the released mac address for the specific
 associated mac_pool, since we do (read: should[1]) allow overlapping mac
 addresses (hence ranges) in different mac_pool.
 
 there's no free user specified mac address method. There's only freeMac
 method. So the flow is like this: you identify pool somehow. By nic, for
 which you're releasing mac, by datacenter id, you name it. Then you release
 mac using freeMac method. If it was used, it'll be released; if it was used
 multiple times, usage count is decreased. I do not see how is overlapping
 with another pools related to that. You identified pool, freed mac from it,
 other pools remain intact.
 

When the global pool is the only one in use, there was no option to add the 
same mac address twice (blocked by AddVmInterface.canDoAction()).
It doesn't look the same case with the new implementation, where each 
data-center
scoped has its own mac storage. So this changes the previous behavior.
Suppose couple data-centers share the same physical network - it may lead to
issues where couple vms on the same network has the same mac.

 ---
 about cases you mentioned:
 I'll check whether those mac addresses, which were custom obnes and after
 ranges alteration lies in the ranges of mac pool, those get marked as used
 in that pool. It should be true, but I rather write test for it.
 
 M.
 
 - Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Martin Mucha mmu...@redhat.com
 Cc: users@ovirt.org, de...@ovirt.org
 Sent: Wednesday, April 23, 2014 10:32:33 PM
 Subject: Re: [ovirt-users] Feature Page: Mac Pool per DC
 
 On 04/23/2014 11:12 AM, Martin Mucha wrote:
  Hi,
 
  I was describing current state, first iteration. Need of restart is
  something which should not exist, I've removed that necessity meantime.
  Altered flow: You allocate mac address for nic in data center without own
  pool, it gets registered in global pool. Then you modify settings of that
  data center so that new pool is created for it. All NICs for that data
  center is queries from DB, it's macs released from global pool and added
  to data center scope pool. And other way around. When you delete this
  scoped pool, all its content will be moved to global pool. Feature page is
  updated.
 
  Note: *previously* there was MAC 

Re: [ovirt-users] [ovirt-devel] Feature Page: Mac Pool per DC

2014-04-26 Thread Moti Asayag
Regarding the UI mockup, I'd suggest having a checkbox next to the mac ranges,
when the data center has no range (meaning the global in use) the checkbox is
unchecked and the value of that text box will show the global ranges, disabled.

In order to specify a specific range, the user will have to check that checkbox
and modify the range (same behaviour as in edit vm interface dialog).

I'd also recommend a tool tip with an example for the user (maybe with hovering 
the question mark icon).

- Original Message -
 From: Martin Mucha mmu...@redhat.com
 To: Sven Kieske s.kie...@mittwald.de
 Cc: de...@ovirt.org, users@ovirt.org
 Sent: Tuesday, April 22, 2014 11:04:31 AM
 Subject: Re: [ovirt-devel] [ovirt-users] Feature Page: Mac Pool per DC
 
 Hi,
 
 I like to answer questions. Presence of questions in motivated environment
 means that there is flaw in documentation/study material, which needs to be
 fixed :)
 
 To answer your question.
 You got pool you want to use -- either global one (explicitly using method
 org.ovirt.engine.core.bll.network.macPoolManager.ScopedMacPoolManager#defaultScope())
 or related to some scope, which you identify somehow -- like in previous
 mail: give me pool for this data center. When you have this pool, you can
 allocate *some* new mac (system decides which one it will be) or you can
 allocate *explicit* one, use MAC address you've specified. I think that the
 latter is what you've meant by assigning by hand. There is just
 performance difference between these two allocation. Once the pool, which
 has to be used, is identified, everything which comes after it happens on
 *this* pool.
 
 Example(I'm using naming from code here, storagePool is a db table for data
 center):
 ScopedMacPoolManager.scopeFor().storagePool(storagePoolId).getPool().addMac(00:1a:4a:15:c0:fe);
 
 Lets discuss parts from this command:
 
 ScopedMacPoolManager.scopeFor() // means I want scope ...
 ScopedMacPoolManager.scopeFor().storagePool(storagePoolId)   //... which is
 related to storagePool and identified by storagePoolID
 ScopedMacPoolManager.scopeFor().storagePool(storagePoolId).getPool()//...
 and I want existing pool for this scope
 ScopedMacPoolManager.scopeFor().storagePool(storagePoolId).getPool().addMac(00:1a:4a:15:c0:fe)
 //... and I want to add this mac address to it.
 
 So in short, whatever you do with pool you get anyhow, happens on this pool
 only. You do not have code-control on what pool you get, like if system is
 configured to use single pool only, then request for datacenter-related pool
 still return that sole one, but once you have that pool, everything happen
 on this pool, and, unless datacenter configuration is altered, same request
 in future for pool should return same pool.
 
 Now small spoiler(It's not merged to production branch yet) -- performance
 difference between allocating user provided MAC and MAC from mac pool range:
 You should try to avoid to allocate MAC which is outside of ranges of
 configured mac pool(either global or scoped one). It's perfectly OK, to
 allocate specific MAC address from inside these ranges, actually is little
 bit more efficient than letting system pick one for you. But if you use one
 from outside of those ranges, your allocated MAC end up in less memory
 efficient storage(approx 100 times less efficient). So if you want to use
 user-specified MACs, you can, but tell system from which range those MACs
 will be(via mac pool configuration).
 
 M.
 
 - Original Message -
 From: Sven Kieske s.kie...@mittwald.de
 To: Martin Mucha mmu...@redhat.com, Itamar Heim ih...@redhat.com
 Cc: users@ovirt.org, de...@ovirt.org
 Sent: Tuesday, April 22, 2014 8:31:31 AM
 Subject: Re: [ovirt-devel] [ovirt-users] Feature Page: Mac Pool per DC
 
 Hi,
 
 thanks for the very detailed answers.
 
 So here is another question:
 
 How are MACs handled which got assigned by hand?
 Do they also get registered with a global or with
 the datacenter pool?
 Are they tracked anyway?
 I'm currently assigning macs via API directly
 to the vms and do not let ovirt decide itself
 which mac goes where.
 
 Am 18.04.2014 12:17, schrieb Martin Mucha:
  Hi,
  
  I'll try to describe it little bit more. Lets say, that we've got one data
  center. It's not configured yet to have its own mac pool. So in system is
  only one, global pool. We create few VMs and it's NICs will obtain its MAC
  from this global pool, marking them as used. Next we alter data center
  definition, so now it uses it's own mac pool. In system from this point on
  exists two mac pools, one global and one related to this data center, but
  those allocated MACs are still allocated in global pool, since new data
  center creation does not (yet) contain logic to get all assigned MACs
  related to this data center and reassign them in new pool. However, after
  app restart all VmNics are read from db and placed to appropriate pools.
  Lets assume, that we've performed such restart. Now we realized, 

[ovirt-users] Fw: does SPM can run over ovirt-engine host ?

2014-04-25 Thread Moti Asayag


- Original Message -
 From: Tamer Lima tamer.amer...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, April 24, 2014 7:51:39 PM
 Subject: Re: [ovirt-users] does SPM can run over ovirt-engine host ?
 
 Hi,
 this is the piece of code  of engine.log at serv-0202 (engine server)
 the spm was defined on serv-0203
 
 
 log from serv-0202 (engine server):
   2014-04-24 13:18:11,746 INFO
  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
 (DefaultQuartzScheduler_Worker-82) [1bb7dfd0] Correlation ID: null, Call
 Stack: null, Custom Event ID: -1, *Message: Used Network resources of host
 srv-0202 [96%] exceeded defined threshold [95%].*
   2014-04-24 13:18:22,578 INFO
  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
 (DefaultQuartzScheduler_Worker-60) Correlation ID: null, Call Stack: null,
 Custom Event ID: -1, Message:* Used Network resources of host srv-0203
 [98%] exceeded defined threshold [95%].*
 
 
 below is the log before the vm creation procedure. The log starts on the
 moment I press to create a new virtual machine:
 
 (The procedure of creation VM takes more than 1 hour. I executed tcpdump
 command on srv-0203 (SPM), even creating using thinning provisioning , I
 collected 500Gb of traffic between serv-0202 and serv-0203. When finally a
 VM is created there is no real disk allocation from ovirt, only my tcpdump
 log file. I do not know why this traffic exists)
 

Allon, could you advise ?

 
 log from serv-0202 (engine server):
 
 2014-04-24 13:11:36,241 INFO
  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
 (DefaultQuartzScheduler_Worker-20) [1a138258] Correlation ID: 1a138258,
 Call Stack: null, Custom Event ID: -1, Message: Invalid status on Data
 Center Default. Setting status to Non Responsive.
 2014-04-24 13:11:36,255 INFO
  [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] hostFromVds::selectedVds -
 srv-0202, spmStatus Free, storage pool Default
 2014-04-24 13:11:36,258 INFO
  [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] starting spm on vds srv-0202,
 storage pool Default, prevId -1, LVER -1
 2014-04-24 13:11:36,259 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] START,
 SpmStartVDSCommand(HostName = srv-0202, HostId =
 fbdf0655-6560-4e12-a95a-875592f62cb5, storagePoolId =
 5849b030-626e-47cb-ad90-3ce782d831b3, prevId=-1, prevLVER=-1,
 storagePoolFormatType=V3, recoveryMode=Manual, SCSIFencing=false), log id:
 778a334c
 2014-04-24 13:11:36,310 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] spmStart polling started:
 taskId = 198c7765-38cb-42e7-9349-93ca43be7066
 2014-04-24 13:11:37,315 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMGetTaskStatusVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] Failed in HSMGetTaskStatusVDS
 method
 2014-04-24 13:11:37,316 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] spmStart polling ended:
 taskId = 198c7765-38cb-42e7-9349-93ca43be7066 task status = finished
 2014-04-24 13:11:37,316 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] Start SPM Task failed -
 result: cleanSuccess, message: VDSGenericException: VDSErrorException:
 Failed to HSMGetTaskStatusVDS, error = Storage domain does not exist, code
 = 358
 2014-04-24 13:11:37,363 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] spmStart polling ended, spm
 status: Free
 2014-04-24 13:11:37,364 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] START,
 HSMClearTaskVDSCommand(HostName = srv-0202, HostId =
 fbdf0655-6560-4e12-a95a-875592f62cb5,
 taskId=198c7765-38cb-42e7-9349-93ca43be7066), log id: 6e6ad022
 2014-04-24 13:11:37,409 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] FINISH,
 HSMClearTaskVDSCommand, log id: 6e6ad022
 2014-04-24 13:11:37,409 INFO
  [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
 (DefaultQuartzScheduler_Worker-20) [1a138258] FINISH, SpmStartVDSCommand,
 return:
 org.ovirt.engine.core.common.businessentities.SpmStatusResult@dfe925d, log
 id: 778a334c
 2014-04-24 13:11:37,411 INFO
  [org.ovirt.engine.core.bll.storage.SetStoragePoolStatusCommand]
 (DefaultQuartzScheduler_Worker-20) [443b1ed8] Running command:
 SetStoragePoolStatusCommand internal: true. Entities affected :  ID:
 5849b030-626e-47cb-ad90-3ce782d831b3 Type: StoragePool
 2014-04-24 13:11:37,416 INFO
  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector

Re: [ovirt-users] does SPM can run over ovirt-engine host ?

2014-04-24 Thread Moti Asayag


- Original Message -
 From: Tamer Lima tamer.amer...@gmail.com
 To: users@ovirt.org
 Sent: Monday, April 14, 2014 5:13:12 PM
 Subject: [ovirt-users] does SPM can run over ovirt-engine host ?
 
 
 Hello,
 
 When I create virtual machine from a template (centos6.5, 2 cores, 8GB mem,
 500GB hd) this process takes almost 2 hours. I click on New VM button and
 just select the template and click ok.
 
 engine.log show me high network consumption (98%) between engine-server host
 and SPM host.

Could you share that piece of log which indicates the 98% consumption is beween
the engine server to the SPM host (vs the SPM node to the storage server) ?

 
 I tried to make my engine-server host a spm host too, but without sucess.
 
 
 Does SPM can run over on the same ovirt-engine machine ?
 
 Am I make something wrong? Or create VM from template is really slow ?
 
 
 my servers :
 srv-0202 = ovirt-engine , vdsm
 srv-0203 = spm , vdsm
 srv-0204 = vdsm
 These servers are dell blades connected on a 100GB switch.
 
 
 
 thanks
 
 
 
 
 This is what I know about SPM:
 http://www.ovirt.org/Storage_-_oVirt_workshop_November_2011
 
 
 
 = Storage Pool Manager (SPM) A role assigned to one host in a data center
 granting it sole authority over:
 
 * Creation, deletion, an dmanipulation of virtula disk images, snapshots
 and templates
 * Templates: you can create on VM as a golden image and provision to
 multiple VMs (QCOW layers)
 * Allocation of storage for sparse block devices (on SAN)
 * Thin provisinoing (see below)
 * Single metadata writer:
 * SPM lease mechanism (Chockler and Malkhi 2004, Light-Weight Leases
 for Storage-Cnntric Coordination)
 * Storage-centric mailbox
 * This role can be migrated to any host in data center
 
 
 ___
 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] does SPM can run over ovirt-engine host ?

2014-04-24 Thread Moti Asayag


- Original Message -
 From: Tamer Lima tamer.amer...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Thursday, April 24, 2014 8:04:51 PM
 Subject: Re: [ovirt-users] does SPM can run over ovirt-engine host ?
 
 I created link with an image  showing network consumption between engine
 and spm.
 
 http://pt-br.tinypic.com/r/dzi80i/8
 http://tinypic.com/view.php?pic=dzi80is=8#.U1lEKfldVyN
 

The image shows a generic message regarding the host network consumption.
In 3.4 will have a specific log stating the device name [1]

You can check what is the specific nic by searching the rxRate or txRate
in the output of the following command which should be executed on the spm:

vdsClient -s localhost getVdsStats

Once you've identified the interface, you can see if the 'ovirtmgmt' is
reported with that high consumption or if it is configured on top of the
highly used nic. Else, there is another issue not related to engine-spm
connectivity.

you can paste the output of 'vdsClient -s localhost getVdsStats' and 
'vdsClient -s localhost getVdsCaps' to examine both utilization and network
configuration.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1070667

 This forum has an image site/blog preference  ?  thanks
 
 
 
 below is the log of  spm-lock.log
 
 [root@srv-0203 vdsm]# tail -f spm-lock.log
 [2014-03-06 18:21:21] Protecting spm lock for vdsm pid 2992
 [2014-03-06 18:21:21] Trying to acquire lease -
 sdUUID=6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d
 lease_file=/rhev/data-center/mnt/srv-0202.lttd.br:_var_lib_exports_iso/6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d/dom_md/leases
 id=1 lease_time_ms=5000 io_op_to_ms=1000
 [2014-03-06 18:21:34] Lease acquired
 sdUUID=6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d id=1
 lease_path=/rhev/data-center/mnt/srv-0202.ltd.br:_var_lib_exports_iso/6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d/dom_md/leases,
 TS=1394140892739675
 [2014-03-06 18:21:34] *Protecting spm lock for vdsm *pid 2992
 [2014-03-06 18:21:34] Started renewal process (pid=17519) for
 sdUUID=6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d id=1
 lease_path=/rhev/data-center/mnt/srv-0202.lttd.unb.br:
 _var_lib_exports_iso/6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d/dom_md/leases
 [2014-03-06 18:21:34] Stopping lease for pool:
 6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d pgrps: -17519
 User defined signal 1
 [2014-03-06 18:21:34] releasing lease
 sdUUID=6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d id=1
 lease_path=/rhev/data-center/mnt/srv-0202.lttd.br:
 _var_lib_exports_iso/6c6178c6-f7cf-4f2c-b8f9-73cf8f18bb4d/dom_md/leases
 
 
 
 
 
 
 
 
 
 On Thu, Apr 24, 2014 at 1:51 PM, Tamer Lima tamer.amer...@gmail.com wrote:
 
  Hi,
  this is the piece of code  of engine.log at serv-0202 (engine server)
  the spm was defined on serv-0203
 
 
  log from serv-0202 (engine server):
 2014-04-24 13:18:11,746 INFO
   [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
  (DefaultQuartzScheduler_Worker-82) [1bb7dfd0] Correlation ID: null, Call
  Stack: null, Custom Event ID: -1, *Message: Used Network resources of
  host srv-0202 [96%] exceeded defined threshold [95%].*
2014-04-24 13:18:22,578 INFO
   [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
  (DefaultQuartzScheduler_Worker-60) Correlation ID: null, Call Stack: null,
  Custom Event ID: -1, Message:* Used Network resources of host srv-0203
  [98%] exceeded defined threshold [95%].*
 
 
  below is the log before the vm creation procedure. The log starts on the
  moment I press to create a new virtual machine:
 
  (The procedure of creation VM takes more than 1 hour. I executed tcpdump
  command on srv-0203 (SPM), even creating using thinning provisioning , I
  collected 500Gb of traffic between serv-0202 and serv-0203. When finally a
  VM is created there is no real disk allocation from ovirt, only my tcpdump
  log file. I do not know why this traffic exists)
 
 
  log from serv-0202 (engine server):
 
  2014-04-24 13:11:36,241 INFO
   [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
  (DefaultQuartzScheduler_Worker-20) [1a138258] Correlation ID: 1a138258,
  Call Stack: null, Custom Event ID: -1, Message: Invalid status on Data
  Center Default. Setting status to Non Responsive.
  2014-04-24 13:11:36,255 INFO
   [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
  (DefaultQuartzScheduler_Worker-20) [1a138258] hostFromVds::selectedVds -
  srv-0202, spmStatus Free, storage pool Default
  2014-04-24 13:11:36,258 INFO
   [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand]
  (DefaultQuartzScheduler_Worker-20) [1a138258] starting spm on vds srv-0202,
  storage pool Default, prevId -1, LVER -1
  2014-04-24 13:11:36,259 INFO
   [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStartVDSCommand]
  (DefaultQuartzScheduler_Worker-20) [1a138258] START,
  SpmStartVDSCommand(HostName = srv-0202, HostId =
  fbdf0655-6560-4e12-a95a-875592f62cb5, storagePoolId =
  5849b030-626e-47cb-ad90-3ce782d831b3, prevId=-1, prevLVER=-1

Re: [Users] how do you manually add ovirtmgmt network to a node/host

2014-04-06 Thread Moti Asayag
Under the assumption that the engine communicates with the
host via 10.10.4.31, you should configure the 'ovirtmgmt'
on top of eth1, with the following configuration (as used to be defined on 
eth4):
GATEWAY: 10.10.4.1
IPADDR: 10.10.4.31
NETMASK: 255.255.255.0

The static boot protocol configuration should replace the 'DHCP' which led to
the mentioned error in the logs. Note also that currently br4 is might be used
by couple vms (based on vnet nics attached to it  'ports': ['eth1.4', 'vnet3', 
'vnet7', 'vnet19', 'vnet9'],),
therefore it would be advisable to migrate those vms or to stop them (if they 
exist).

Once you drag the 'ovirtmgmt' to eth1, hover the attached 'ovirtmgmt' network
and click on the 'pencil' icon that will appear by hovering.
Next you should select the 'static' red button and fill the above ip address 
details.

If connectivity restored and action succeeded, make sure to click on the 'save 
network
configuration' to persist the network changes to the host.

- Original Message -
 From: Jeremiah Jahn jerem...@goodinassociates.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Sunday, April 6, 2014 2:48:17 AM
 Subject: Re: [Users] how do you manually add ovirtmgmt network to a node/host
 
 START
 getVdsCaps==
 [root@kvm01 multipath]# vdsClient -s localhost getVdsCaps
 HBAInventory = {'FC': [{'model': 'QLA2462 - PCI-X 2.0 Dual Channel 4Gb
 Fibre Channel HBA',
'wwnn': '201b329db9c8',
'wwpn': '211b329db9c8'},
   {'model': 'QLA2462 - PCI-X 2.0 Dual Channel 4Gb
 Fibre Channel HBA',
'wwnn': '2001001b32bdb9c8',
'wwpn': '2101001b32bdb9c8'}],
'iSCSI': [{'InitiatorName':
 'iqn.1994-05.com.redhat:2f85cac0a96c'}]}
 ISCSIInitiatorName = 'iqn.1994-05.com.redhat:2f85cac0a96c'
 bondings = {'bond0': {'addr': '',
  'cfg': {},
  'hwaddr': '00:00:00:00:00:00',
  'ipv6addrs': [],
  'mtu': '1500',
  'netmask': '',
  'slaves': []},
'bond1': {'addr': '',
  'cfg': {},
  'hwaddr': '00:00:00:00:00:00',
  'ipv6addrs': [],
  'mtu': '1500',
  'netmask': '',
  'slaves': []},
'bond2': {'addr': '',
  'cfg': {},
  'hwaddr': '00:00:00:00:00:00',
  'ipv6addrs': [],
  'mtu': '1500',
  'netmask': '',
  'slaves': []},
'bond3': {'addr': '',
  'cfg': {},
  'hwaddr': '00:00:00:00:00:00',
  'ipv6addrs': [],
  'mtu': '1500',
  'netmask': '',
  'slaves': []},
'bond4': {'addr': '',
  'cfg': {},
  'hwaddr': '00:00:00:00:00:00',
  'ipv6addrs': [],
  'mtu': '1500',
  'netmask': '',
  'slaves': []}}
 bridges = {';vdsmdummy;': {'addr': '',
   'cfg': {},
   'gateway': '',
   'ipv6addrs': [],
   'ipv6gateway': '::',
   'mtu': '1500',
   'netmask': '',
   'ports': [],
   'stp': 'off'},
   'br0': {'addr': '10.10.3.31',
   'cfg': {'BOOTPROTO': 'none',
   'DELAY': '0',
   'DEVICE': 'br0',
   'IPADDR': '10.10.3.31',
   'NETMASK': '255.255.255.0',
   'ONBOOT': 'yes',
   'PEERDNS': 'no',
   'STP': 'off',
   'TYPE': 'Bridge'},
   'gateway': '',
   'ipv6addrs': ['fe80::224:1dff:fec1:cf82/64'],
   'ipv6gateway': '::',
   'mtu': '1500',
   'netmask': '255.255.255.0',
   'ports': ['vnet10',
 'eth0',
 'vnet0',
 'vnet2',
 'vnet6',
 'vnet13',
 'vnet8',
 'vnet18',
 'vnet15'],
   'stp': 'off'},
   'br1': {'addr': '',
   'cfg': {'BOOTPROTO': 'none',
   'DELAY': '0',
   'DEVICE': 'br1',
   'ONBOOT': 'yes',
   'PEERDNS

Re: [Users] how do you manually add ovirtmgmt network to a node/host

2014-04-05 Thread Moti Asayag


- Original Message -
 From: Jeremiah Jahn jerem...@goodinassociates.com
 To: users@ovirt.org
 Sent: Friday, April 4, 2014 4:03:07 PM
 Subject: [Users] how do you manually add ovirtmgmt network to a node/host
 
 Trying to install ovirt node on an already existing kvm host.  Used
 the New wizard from the engine. Things seemed to go ok ish until it
 got to the point where it wanted to install networking. No real
 errors, but has One of the Logical Networks defined for this Cluster
 is Unreachable by the Host.  error sitting on it. I tried dragging
 that network onto one of the interfaces of my host, which already has
 an IP address, as that's how I ssh to it, and it then took down the
 interface and tried to dhcp an ip for it which failed after a while,
 and resulted in udev stuck in an infinite loop taking down and
 bringing up said interface.
 
 Not really sure what's going on or what it's trying to accomplish.  I
 set the ovrtmgmt network to have the same vlan id as the ethernet
 device i dragged it onto.
 

Could you paste the output of 'vdsClient -s localhost getVdsCaps' of the host
on which you tried to configure the 'ovirtmgmt' network manually and also
the vdsm.log and supervdsm.log from that node at the failure time, and the
engine.log from the ovirt-engine server.

This will allow us to figure out how the ovirt-engine tried to configure
the management network on the host when you dragged it manually.

 
 thanks for any help.
 ___
 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] how do you manually add ovirtmgmt network to a node/host

2014-04-05 Thread Moti Asayag
- Original Message -
 From: Jeremiah Jahn jerem...@goodinassociates.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@ovirt.org
 Sent: Sunday, April 6, 2014 12:00:16 AM
 Subject: Re: [Users] how do you manually add ovirtmgmt network to a node/host
 
 Looks like the superlog shows the problem quite well. Now that I know
 where to look.
 
  SUCCESS: err = device eth1.4 is already a member of a bridge;
 can't enslave it to bridge ovirtmgmt.\n; rc = 0
 

Can you share the output of 'vdsClient -s localhost getVdsCaps' ?
I see that the suggested vlan device to configure the 'ovirtmgmt' on top of it
has already an existing bridge named 'br4'. If it is configured with static
boot protocol, you can just copy the same address/subnet/gateway to the 
ovirtmgmt
when you drag it on top of eth1.

 Should I create a new vlan and assign ovirtmgmt to it, as opposed to
 using any of my already existing networks?
 

If the vlan-id of the ovirtmgmt logical network definition matches the expected 
one,
no need to create it manually since the ovirt-engine will indicate the vdsm to 
do so.

 ==SUPERVDSM.LOG==
 MainProcess|Thread-13::DEBUG::2014-04-03
 15:00:00,300::supervdsmServer::103::SuperVdsm.ServerCallback::(wrapper)
 return getHardwareInfo with {'systemProductName': 'BladeSymphony E51',
 'systemSerialNumber': 'N/A', 'systemFamily': 'N/A', 'systemVersion':
 'E51400', 'systemUUID': '00241dc1-cf82---',
 'systemManufacturer': 'HITACHI'}
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,713::supervdsmServer::96::SuperVdsm.ServerCallback::(wrapper)
 call setupNetworks with ({'ovirtmgmt': {'nic': 'eth1', 'vlan': '4',
 'bootproto': 'dhcp', 'STP': 'no', 'bridged': 'true', 'defaultRoute':
 True}}, {}, {'connectivityCheck': 'true', 'connectivityTimeout': 120})
 {}
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,714::utils::642::root::(execCmd) '/sbin/ip route show to
 0.0.0.0/0 table all' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,738::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,740::libvirtconnection::145::root::(get) trying to connect
 libvirt
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,766::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth0.30' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,789::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,791::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth0.6' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,800::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,802::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth1.101' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,811::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,814::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth1.4' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,821::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,825::configNetwork::589::setupNetworks::(setupNetworks)
 Setting up network according to configuration: networks:{'ovirtmgmt':
 {'nic': 'eth1', 'vlan': '4', 'bootproto': 'dhcp', 'STP': 'no',
 'bridged': 'true', 'defaultRoute': True}}, bondings:{},
 options:{'connectivityCheck': 'true', 'connectivityTimeout': 120}
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,826::configNetwork::593::root::(setupNetworks) Validating
 configuration
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,826::utils::642::root::(execCmd) '/sbin/ip route show to
 0.0.0.0/0 table all' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,851::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,860::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth0.30' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,869::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,872::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth0.6' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,879::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,881::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth1.101' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,888::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,891::utils::642::root::(execCmd) '/sbin/ip -d link show dev
 eth1.4' (cwd None)
 MainProcess|Thread-14::DEBUG::2014-04-03
 15:04:37,899::utils::662::root::(execCmd) SUCCESS: err = ''; rc =
 0
 MainProcess|Thread-14

Re: [Users] Attach floppy as [sysprep] to VM - API

2014-03-18 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com, users@oVirt.org users@ovirt.org
 Sent: Monday, March 17, 2014 1:05:21 PM
 Subject: Attach floppy as [sysprep] to VM - API
 
 Hi,
 
 I want to attach floppy as [sysprep] to windows VM in the Run once via API.
 can you help?
 

Have a look on the exposed actions on your engine-server: 
http://localhost:8080/ovirt-engine/api?rsdl

Specifically in the expected parameters of running a vm:
- name: /vms/{vm:id}/start|rel=start

I haven't tried executing this code, so adding Omer to adjust it:

Action action = new Action();
action.setVm(vm);
Domain domain = new Domain();
domain.setName(domainname);
User user = new User();
user.setName(username);
user.setPassword(passwd);
domain.setUser(user);
vm.setDomain(domain);

//not too sure if this is the way to use it or via vm payload
Floppies floppies = new Floppies();
Floppy floppy = new Floppy();
File file = new File();
file.setContent(content ?);
floppy.setFile(file);
floppies.getFloppies().add(floppy);
vm.setFloppies(floppies);
vm.start(action);

 I want to do sysprep on windows 2008
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Source code unerstanding

2014-03-16 Thread Moti Asayag


- Original Message -
 From: aditya mamidwar aditya.mamid...@gmail.com
 To: users@ovirt.org, engine-de...@ovirt.org
 Sent: Friday, March 14, 2014 5:09:49 PM
 Subject: [Users] Source code unerstanding
 
 
 Hey,
 
 is there a simpler way to know which code is responsible for which module of
 the engine.
 is there a documentation maintained. or how can identify the files which are
 important for me.
 

Here is a place to start:
https://www.ovirt.org/Category:Architecture

And specifically for the backend:
https://www.ovirt.org/Backend_modules_bll

 --
 -Aditya Mamidwar
 
 ___
 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] Delete Detach Logical Network

2014-03-11 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Tuesday, March 11, 2014 3:18:37 AM
 Subject: Re: Delete  Detach Logical Network
 
 I tried below code, but still it is not detaching the network
 
   HostNICs nicsApi = api.getHosts().get(venus-vdsb).getHostNics();
   ListHostNIC nics = nicsApi.list();
   HostNIC nic =
 api.getHosts().get(rhevhost).getHostNics().get(bond1.1231); //logical
 network network name is testLNw
   nic.setNetwork(null);
 
 
 *Result of executing this line*:
 nicsApi.setupnetworks(createSetupNetworksParams(nics));
 
 *Result:*
 code  : 400
 reason: Bad Request
 detail: Cannot setup Networks. The following VMs are actively using the
 Logical Network: greyvm, vmLogicalTest1, OmVM1. Please stop the VMs and try
 again., Cannot setup Networks. The following Bonds consist of less than two
 Network Interfaces: bond0., Cannot setup Networks. The following Network
 Interfaces were specified more than once: eth0, eth3, eth1, eth2.
 
 Can you post the complete code?
 

See example attached.
You'll have to adjust the parameters to fit yours (hostName and modified nic).

 
 
 
 On Mon, Mar 10, 2014 at 6:54 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com, users@oVirt.org 
  users@ovirt.org
   Sent: Monday, March 10, 2014 1:22:08 PM
   Subject: Delete  Detach Logical Network
  
   Hi,
  
   I'm able to delete the logical network but this logical network after
   deletion shows as unmanaged network in Setup Host Networks against the
   hostnic.
  
   I tried with this code to detach the logical network.
  
   *Code 1:*
   HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
   Action action = new Action();
   action.setNetwork(api.getNetworks().get(nw_name));
   action.setDetach(true);
   action.setCheckConnectivity(false);
   nic.detach(action);
  
   *Returns*:
   code  : 409
   reason: Conflict
   detail: Network Interface is not attached to Logical Network.
  
 
  I can guess by the error message that the logical network 'rhevhost' is
  vlan,
  so the proper interface should be the vlan device.
 
 
   *Code 2:*
   HostNIC nic =
  api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
   Action action = new Action();
   action.setNetwork(api.getNetworks().get(nw_name));
   action.setDetach(true);
   action.setCheckConnectivity(false);
   nic.detach(action);
  
   *Returns*:
   code  : 409
   reason: Conflict
   detail: Cannot edit Network while Host is Active, change the Host to
   Maintenance mode and try again.
  
 
  This is the 3.0 api which required the host to be in maintenance for
  network
  operations on the host. You could use setup networks instead which is the
  recommended api and doesn't require the host to be in maintenance.
 
  you can modify the example from [1] and set null for the network name you
  wish to detach from the specific interface.
 
  Try by replacing only lines 28-41 with:
  HostNIC nic = nicsByNames.get(eth1.1345);
  nic.setNetwork(null);
 
  [1]
  https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/
 
  
   --
   Thanks  Regards
   Tejesh
  
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
package org.ovirt.test;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.decorators.Host;
import org.ovirt.engine.sdk.decorators.HostNIC;
import org.ovirt.engine.sdk.decorators.HostNICs;
import org.ovirt.engine.sdk.entities.Action;
import org.ovirt.engine.sdk.entities.BaseResource;
import org.ovirt.engine.sdk.entities.HostNics;

public class SetupNetworksDetachNetworkExample {

public static void main(String[] args) throws Exception {

try (Api api = new Api(http://localhost:8080/api;,
admin@internal,
1,
null, null, null, null, null, null, true)) {

String hostName = venus-vdsb;
Host hostApi = api.getHosts().get(hostName);
HostNICs nicsApi = hostApi.getHostNics();
ListHostNIC nics = nicsApi.list();

MapString, HostNIC nicsByNames = entitiesByName(nics);
HostNIC nic = nicsByNames.get(eth4.20);
nic.setNetwork(null);

nicsApi.setupnetworks(createSetupNetworksParams(nics));
hostApi.commitnetconfig(new Action());
}
}

public static Action createSetupNetworksParams(ListHostNIC nics) {
Action action = new Action();
HostNics nicsParams = new HostNics();
nicsParams.getHostNics().addAll(nics);
action.setHostNics(nicsParams);
action.setCheckConnectivity(true);
return action;
}

public static E extends BaseResource MapString, E entitiesByName(ListE entityList

Re: [Users] Delete Detach Logical Network

2014-03-11 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Tuesday, March 11, 2014 8:53:15 AM
 Subject: Re: Delete  Detach Logical Network
 
 Managed to delete network which is attached to Bond with below code:
 
 HostNIC nic =
 api.getHosts().get(rhevhost).getHostNics().get(bond1.1231);
 nic.delete();
 
 
 But not able to delete the same when attached to ethernet:
 
 HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1.1187);
 nic.delete();
 
 i want to unmap the logical network which is mapped to eth1.
 

For this specific case I'd suggest using the attached example.

 *Result*:
 code  : 400
 reason: Bad Request
 detail: Invalid Bonding definition
 
 
 
 
 
 On Mon, Mar 10, 2014 at 6:54 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com, users@oVirt.org 
  users@ovirt.org
   Sent: Monday, March 10, 2014 1:22:08 PM
   Subject: Delete  Detach Logical Network
  
   Hi,
  
   I'm able to delete the logical network but this logical network after
   deletion shows as unmanaged network in Setup Host Networks against the
   hostnic.
  
   I tried with this code to detach the logical network.
  
   *Code 1:*
   HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
   Action action = new Action();
   action.setNetwork(api.getNetworks().get(nw_name));
   action.setDetach(true);
   action.setCheckConnectivity(false);
   nic.detach(action);
  
   *Returns*:
   code  : 409
   reason: Conflict
   detail: Network Interface is not attached to Logical Network.
  
 
  I can guess by the error message that the logical network 'rhevhost' is
  vlan,
  so the proper interface should be the vlan device.
 
 
   *Code 2:*
   HostNIC nic =
  api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
   Action action = new Action();
   action.setNetwork(api.getNetworks().get(nw_name));
   action.setDetach(true);
   action.setCheckConnectivity(false);
   nic.detach(action);
  
   *Returns*:
   code  : 409
   reason: Conflict
   detail: Cannot edit Network while Host is Active, change the Host to
   Maintenance mode and try again.
  
 
  This is the 3.0 api which required the host to be in maintenance for
  network
  operations on the host. You could use setup networks instead which is the
  recommended api and doesn't require the host to be in maintenance.
 
  you can modify the example from [1] and set null for the network name you
  wish to detach from the specific interface.
 
  Try by replacing only lines 28-41 with:
  HostNIC nic = nicsByNames.get(eth1.1345);
  nic.setNetwork(null);
 
  [1]
  https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/
 
  
   --
   Thanks  Regards
   Tejesh
  
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
package org.ovirt.test;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.decorators.Host;
import org.ovirt.engine.sdk.decorators.HostNIC;
import org.ovirt.engine.sdk.decorators.HostNICs;
import org.ovirt.engine.sdk.entities.Action;
import org.ovirt.engine.sdk.entities.BaseResource;
import org.ovirt.engine.sdk.entities.HostNics;

public class SetupNetworksDetachNetworkExample {

public static void main(String[] args) throws Exception {

try (Api api = new Api(http://localhost:8080/api;,
admin@internal,
1,
null, null, null, null, null, null, true)) {

String hostName = venus-vdsb;
Host hostApi = api.getHosts().get(hostName);
HostNICs nicsApi = hostApi.getHostNics();
ListHostNIC nics = nicsApi.list();

MapString, HostNIC nicsByNames = entitiesByName(nics);
nics.remove(nicsByNames.get(eth4.20));

nicsApi.setupnetworks(createSetupNetworksParams(nics));
hostApi.commitnetconfig(new Action());
}
}

public static Action createSetupNetworksParams(ListHostNIC nics) {
Action action = new Action();
HostNics nicsParams = new HostNics();
nicsParams.getHostNics().addAll(nics);
action.setHostNics(nicsParams);
action.setCheckConnectivity(true);
return action;
}

public static E extends BaseResource MapString, E entitiesByName(ListE entityList) {
if (entityList != null) {
MapString, E map = new HashMapString, E();
for (E e : entityList) {
map.put(e.getName(), e);
}
return map;
} else {
return Collections.emptyMap();
}
}
}

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


Re: [Users] Delete Detach Logical Network

2014-03-10 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com, users@oVirt.org users@ovirt.org
 Sent: Monday, March 10, 2014 1:22:08 PM
 Subject: Delete  Detach Logical Network
 
 Hi,
 
 I'm able to delete the logical network but this logical network after
 deletion shows as unmanaged network in Setup Host Networks against the
 hostnic.
 
 I tried with this code to detach the logical network.
 
 *Code 1:*
 HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1);
 Action action = new Action();
 action.setNetwork(api.getNetworks().get(nw_name));
 action.setDetach(true);
 action.setCheckConnectivity(false);
 nic.detach(action);
 
 *Returns*:
 code  : 409
 reason: Conflict
 detail: Network Interface is not attached to Logical Network.
 

I can guess by the error message that the logical network 'rhevhost' is vlan,
so the proper interface should be the vlan device.


 *Code 2:*
 HostNIC nic = api.getHosts().get(rhevhost).getHostNics().get(eth1.1345);
 Action action = new Action();
 action.setNetwork(api.getNetworks().get(nw_name));
 action.setDetach(true);
 action.setCheckConnectivity(false);
 nic.detach(action);
 
 *Returns*:
 code  : 409
 reason: Conflict
 detail: Cannot edit Network while Host is Active, change the Host to
 Maintenance mode and try again.
 

This is the 3.0 api which required the host to be in maintenance for network
operations on the host. You could use setup networks instead which is the
recommended api and doesn't require the host to be in maintenance.

you can modify the example from [1] and set null for the network name you
wish to detach from the specific interface.

Try by replacing only lines 28-41 with:
HostNIC nic = nicsByNames.get(eth1.1345);
nic.setNetwork(null);

[1] 
https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/

 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [ovirt test day 3] Documentation - man pages result

2014-03-09 Thread Moti Asayag


- Original Message -
 From: Sandro Bonazzola sbona...@redhat.com
 To: Moti Asayag masa...@redhat.com, users@oVirt.org users@ovirt.org
 Cc: Doron Fediuck dfedi...@redhat.com
 Sent: Friday, March 7, 2014 9:15:50 AM
 Subject: Re: [ovirt test day 3] Documentation - man pages result
 
 Il 06/03/2014 23:32, Moti Asayag ha scritto:
  Hi,
  
  In the third ovirt test day I reviewed the manuals of a various
  ovirt tools and commands:
  
  Here are my findings (haven't reported any bugs for them):
 
 Please do, add keywords Documentation and ManPageChange for them
 

Bugs were reported:

Bug 1074301 - ovirt-shell has no man page
Bug 1074300 - engine-manage-domains man page clarifications
Bug 1074299 - engine-config man page clarifications
Bug 1074302 - engine-upgrade-check has no man page
Bug 1074303 - engine-backup has no man page

 
  
  The engine-backup and engine-upgrade-check has no man pages,
  however help is available by providing the --help argument:
  
  No manual entry for engine-backup
  No manual entry for engine-upgrade-check
  No manual entry for ovirt-shell
  
  engine-config man page:
  ---
  1. engine-config ACTION [--cver=version] [-p |
  --properties=/path/to/alternate/property/fie] [-c |
  --config=/path/to/alter-nate/config/file]
  
  s/fie/file
  
  2. version   relevant configuration version to use
  should be:
 --cverrelevant configuration version to use
  
  3. -g key, --get=key [--cversion=version]
  should be:
 -g key, --get=key [--cver=version]
  
  4. The man pages misses an explanation how to set passwords using the
  --interactive argument which is described in the the output of
  engine-config --help
  
  engine-manage-domains man page:
  ---
  In general, there is a great complexity in explaining the usage of the
  command, too many combinations.
  
  1. Examples:
   -action=add -domain=example.com --user=admin --provider=IPA
   --passwordFile=/tmp/.pwd
   Add  a  domain  called  example.com,  using  user  admin
   with ldap server type IPA and read the password from
 /tmp/.pwd.
  
  The arguments --user, --provider and --passwordFile should be replaced with
  -user, -provider and -passwordFile respectively.
  
  2. changePasswordMsg - doesn't appear in the man page (appears only via
  --help)
  
  Thanks,
  Moti
  
 
 
 --
 Sandro Bonazzola
 Better technology. Faster innovation. Powered by community collaboration.
 See how it works at redhat.com
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] [ovirt test day 3] Documentation - man pages result

2014-03-06 Thread Moti Asayag
Hi,

In the third ovirt test day I reviewed the manuals of a various
ovirt tools and commands:

Here are my findings (haven't reported any bugs for them):

The engine-backup and engine-upgrade-check has no man pages,
however help is available by providing the --help argument:

No manual entry for engine-backup
No manual entry for engine-upgrade-check
No manual entry for ovirt-shell

engine-config man page:
---
1. engine-config ACTION [--cver=version] [-p | 
--properties=/path/to/alternate/property/fie] [-c | 
--config=/path/to/alter-nate/config/file]

s/fie/file

2. version   relevant configuration version to use
should be:
   --cverrelevant configuration version to use

3. -g key, --get=key [--cversion=version]
should be:
   -g key, --get=key [--cver=version]

4. The man pages misses an explanation how to set passwords using the 
--interactive argument which is described in the the output of engine-config 
--help

engine-manage-domains man page:
---
In general, there is a great complexity in explaining the usage of the command, 
too many combinations.

1. Examples:
 -action=add -domain=example.com --user=admin --provider=IPA 
--passwordFile=/tmp/.pwd
 Add  a  domain  called  example.com,  using  user  admin  with 
ldap server type IPA and read the password from
   /tmp/.pwd.

The arguments --user, --provider and --passwordFile should be replaced with 
-user, -provider and -passwordFile respectively.

2. changePasswordMsg - doesn't appear in the man page (appears only via --help)

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


Re: [Users] Clone a Template using API

2014-03-05 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org, Moti Asayag masa...@redhat.com
 Sent: Wednesday, March 5, 2014 1:01:18 PM
 Subject: Clone a Template using API
 
 Hi,
 
 While creating VM from Template via Web Admin portal, the default
 provisioning is Clone. But while doing the same via API its is doing Thin
 provisioning. Can someone share there view.
 
 
   org.ovirt.engine.sdk.entities.Template templateData = new Template();
   templateData.setName(templateName);
   org.ovirt.engine.sdk.entities.Cluster clusterData = new Cluster();
   clusterData.setName(clusterName);
   org.ovirt.engine.sdk.entities.VM vmDataForCreate = new VM();


Try with those lines:

Disks disks = new Disks();
disks.setClone(true);
vm.setDisks(disks);

Adding Omer to confirm.

   vmDataForCreate.setName(vmName);
   vmDataForCreate.setCluster(clusterData);
   vmDataForCreate.setTemplate(templateData);
  api.getVMs().add(vmDataForCreate);
 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to configure management network on the host

2014-03-03 Thread Moti Asayag
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
  Sent: Monday, March 3, 2014 8:55:23 AM
  Subject: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to
  configure management network on the host
  
  Hi All,
  
  I am trying to add FC19 host to oVirt Engine 3.3.3-2.fc19.
  
  It fails with the error - Host installation failed. Failed to configure
  management network on the host. Attached is the host deploy log.
 
 Host deploy is OK.
 Please attach engine.log.

and /var/log/vdsm/vdsm.log, /var/log/vdsm/supervdsm.log and /var/log/messages

 CCing Moti.
 
 Thanks!
 
  Appreciate your help.
  
  
  Events logged
  =
  
  2014-Mar-03, 11:39
  Host Bay16FC19 installation failed. Failed to configure management network
  on
  the host.
  
  2014-Mar-03, 11:39
  Failed to configure management network on host Bay16FC19 due to setup
  networks failure.
  
  2014-Mar-03, 11:36
  Installing Host Bay16FC19. Stage: Termination.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Retrieving installation logs to:
  '/var/log/ovirt-engine/host-deploy/ovirt-20140303113559-10.10.22.114-33078fb1.log'.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Pre-termination.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Starting vdsm.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stopping libvirtd.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Closing up.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Transaction commit.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Enrolling certificate.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Setting time.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Misc configuration.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Package installation.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Misc configuration.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Transaction setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Hardware supports virtualization.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Setup validation.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Logs at host located at:
  '/tmp/ovirt-host-deploy-20140303010018.log'.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment customization.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Programs detection.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment packages setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Environment setup.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Stage: Initializing.
  
  2014-Mar-03, 11:35
  Installing Host Bay16FC19. Connected to host 10.10.22.114 with SSH key
  fingerprint: 60:9d:74:6b:cf:2d:af:3c:77:c6:38:bd:49:de:59:5c.
  
  
  Regards,
  Udaya Kiran
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to configure management network on the host

2014-03-03 Thread Moti Asayag

The engine attempts to configure the management network on top of 'em1' device 
which is reported 
in the getVdsCaps without the cfg element:

'em1': {'netmask': '255.255.0.0', 'addr': '10.10.22.114', 'hwaddr': 
'e8:39:35:2b:3c:26', 'cfg': {}, 'ipv6addrs': ['fe80::ea39:35ff:fe2b:3c26/64'], 
'speed': 5000, 'mtu': '1500'}

IIRC this issue is already reported and can be solved by creating the ifcfg-em1 
on the host.
Toni, could you confirm ?

- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
 Sent: Monday, March 3, 2014 11:29:25 AM
 Subject: Re: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to 
 configure management network on the host
 
 Hi Moti,
 
 Attached.
 
 Thank you.
 
 Regards,
 Udaya Kiran
 
 
 
 On Monday, 3 March 2014 2:43 PM, Moti Asayag masa...@redhat.com wrote:
  
  - Original Message -
   From: Udaya Kiran P ukiran...@yahoo.in
   To: users users@ovirt.org, Alon Bar-Lev alo...@redhat.com
   Sent: Monday, March 3, 2014 8:55:23 AM
   Subject: Adding FC19 Host to oVirt Engine 3.3.3-2.fc19 - Failed to
   configure management network on the host
   
   Hi All,
   
   I am trying to add FC19 host to oVirt Engine 3.3.3-2.fc19.
   
   It fails with the error - Host installation failed. Failed to configure
   management network on the host. Attached is the host deploy log.
  
  Host deploy is OK.
  Please attach engine.log.
 
 and /var/log/vdsm/vdsm.log, /var/log/vdsm/supervdsm.log and /var/log/messages
 
 
  CCing Moti.
  
  Thanks!
  
   Appreciate your help.
   
   
   Events logged
   =
   
   2014-Mar-03, 11:39
   Host Bay16FC19 installation failed. Failed to configure management
   network
   on
   the host.
   
   2014-Mar-03, 11:39
   Failed to configure management network on host Bay16FC19 due to setup
   networks failure.
   
   2014-Mar-03, 11:36
   Installing Host Bay16FC19. Stage: Termination.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Retrieving installation logs to:
   '/var/log/ovirt-engine/host-deploy/ovirt-20140303113559-10.10.22.114-33078fb1.log'.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Pre-termination.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Starting vdsm.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stopping libvirtd.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Closing up.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Transaction commit.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Enrolling certificate.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Setting time.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Misc configuration.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Package installation.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Misc configuration.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Transaction setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Hardware supports virtualization.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Setup validation.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Logs at host located at:
   '/tmp/ovirt-host-deploy-20140303010018.log'.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment customization.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Programs detection.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment packages setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Environment setup.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Stage: Initializing.
   
   2014-Mar-03, 11:35
   Installing Host Bay16FC19. Connected to host 10.10.22.114 with SSH key
   fingerprint: 60:9d:74:6b:cf:2d:af:3c:77:c6:38:bd:49:de:59:5c.
   
   
   Regards,
   Udaya Kiran
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, March 3, 2014 3:46:14 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 Thanks, I'm able to create logical network  attached the same to host.
 
 Now I tried to change the network for a VM nic from rhevm to VLAN1189, but
 it is not working. any suggestion?
 
 
 api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
   api.getVMs().get(vmName).getNics().get(nic1).update();
 

This snippet is wrong: You attempt to modify a newly fetched
vnic than the one that was just modified in the first line.

I'd try:
 VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
 vnic.setNetwork(api.getNetworks().get(VLAN1189));
 vnic.update();

If this doesn't work - keep reading :-)

There has been a recent bug in this regards [1].

You can by pass it by nullifying the vnic-profile value until getting the 
next stable version (or using the 3.4 rc build).

You can read more about the vnic profile and see python examples here [2]

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
Bug 1047887 - Update vnic_profile fails for VM vnic

[2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/

 
 
 
 On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 1:18:53 PM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   The example updates the existing Network (i.e. if the Logical Network is
   already mapped to eth1). But what i'm looking for is how to map Logical
   Network ApiNetWork to eth1, please refer screenshot.
  
 
  Please check the last example named AddNetworkToNic from
 
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  It should achieve what you're aiming for.
 
  
   On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com wrote:
  
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 11:59:42 AM
 Subject: Re: [Users] Creating Logical Network issue - API

 While setting Logical Network, it fails with below error:
 code  : 400
 reason: Bad Request
 detail: Previous network name is required.
   
See an example in the following post:
   
   
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
   

 Code:
   String nw_name=ApiNetWork;
   org.ovirt.engine.sdk.decorators.Host hst =
 api.getHosts().get(rhevhost);


  hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
   //hst.getHostNics().get(eth1).setCheckConnectivity(true);

  //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
   hst.getHostNics().get(eth1).update();



 On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
  wrote:

  Can you tel me how do i assign Logical Network(s) to one of the
Physical
  Nic on the Host.
 
 
  On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com
wrote:
 
  h
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: users@oVirt.org users@ovirt.org
   Sent: Thursday, February 20, 2014 11:48:56 AM
   Subject: [Users] Creating Logical Network issue - API
  
   Hi ,
  
   I'm trying to create Logical Network and assign it to cluster 
want to
  bond
   this to one of the Network Interface on Host. so that i can
  isolate
my
  VM
   from other networks.
  
   The issue is even if i set Cluster while creating Logical
  Network,
it
  is not
   setting the cluster. In Web Admin it is in unset state.
  
   Also, let me know how do i bind this Logical network on Host
Interface.
  
   Java code:
  
   Network nw1=new Network();
   VLAN vlan = new VLAN();
   vlan.setId(2000);
   nw1.setVlan(vlan);
   IP ip = new IP();
   ip.setAddress(192.168.1.151);
   ip.setGateway(192.168.1.1);
   ip.setNetmask(255.255.255.0);
 
  Note that the stated IP above will not be used to set the address
  on
the
  host itself.
  In order to do so you should use either the 'setup networks' api
  on
  host's nics level.
  (Alternately, you can send POST request to /hosts/{host:id}/nics
  which
  utilize the
  former api (it is a bit simpler than using the setup networks
  api).
 
  Should look like:
  Host host = api.getHosts().get(host_name);
  Action action = new Action

Re: [Users] Creating Logical Network issue - API

2014-03-03 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, March 3, 2014 4:36:32 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 Ok got it..
 I just observed that my setup network is not getting saved, after attaching
 my logical network to host nic.
 

Let me refer you to yet another post [1]:

You should add the following at the end of your setup-networks action:

api.getHosts().get(your-host).commitnetconfig(new Action());

[1] https://motiasayag.wordpress.com/2013/04/08/it-is-not-over-till-moti-sings/


 
 On Mon, Mar 3, 2014 at 7:34 PM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, March 3, 2014 3:46:14 PM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   Thanks, I'm able to create logical network  attached the same to host.
  
   Now I tried to change the network for a VM nic from rhevm to VLAN1189,
  but
   it is not working. any suggestion?
  
  
  
  api.getVMs().get(vmName).getNics().get(nic1).setNetwork(api.getNetworks().get(VLAN1189));
 api.getVMs().get(vmName).getNics().get(nic1).update();
  
 
  This snippet is wrong: You attempt to modify a newly fetched
  vnic than the one that was just modified in the first line.
 
  I'd try:
   VMNIC vnic = api.getVMs().get(vmName).getNics().get(nic1);
   vnic.setNetwork(api.getNetworks().get(VLAN1189));
   vnic.update();
 
  If this doesn't work - keep reading :-)
 
  There has been a recent bug in this regards [1].
 
  You can by pass it by nullifying the vnic-profile value until getting the
  next stable version (or using the 3.4 rc build).
 
  You can read more about the vnic profile and see python examples here [2]
 
  [1] https://bugzilla.redhat.com/show_bug.cgi?id=1047887
  Bug 1047887 - Update vnic_profile fails for VM vnic
 
  [2] https://motiasayag.wordpress.com/2014/02/02/vnic-profiles/
 
  
  
  
   On Mon, Feb 24, 2014 at 5:23 PM, Moti Asayag masa...@redhat.com wrote:
  
   
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 1:18:53 PM
 Subject: Re: [Users] Creating Logical Network issue - API

 The example updates the existing Network (i.e. if the Logical
  Network is
 already mapped to eth1). But what i'm looking for is how to map
  Logical
 Network ApiNetWork to eth1, please refer screenshot.

   
Please check the last example named AddNetworkToNic from
   
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
   
It should achieve what you're aiming for.
   

 On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com
  wrote:

  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 11:59:42 AM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   While setting Logical Network, it fails with below error:
   code  : 400
   reason: Bad Request
   detail: Previous network name is required.
 
  See an example in the following post:
 
 
 
   
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  
   Code:
 String nw_name=ApiNetWork;
 org.ovirt.engine.sdk.decorators.Host hst =
   api.getHosts().get(rhevhost);
  
  
   
  hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
  
  //hst.getHostNics().get(eth1).setCheckConnectivity(true);
  
//hst.getHostNics().get(eth1).setOverrideConfiguration(true);
 hst.getHostNics().get(eth1).update();
  
  
  
   On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com
wrote:
  
Can you tel me how do i assign Logical Network(s) to one of the
  Physical
Nic on the Host.
   
   
On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag 
  masa...@redhat.com
  wrote:
   
h
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API

 Hi ,

 I'm trying to create Logical Network and assign it to
  cluster 
  want to
bond
 this to one of the Network Interface on Host. so that i can
isolate
  my
VM
 from other networks.

 The issue is even if i set Cluster while creating Logical
Network

Re: [Users] oVirt 3.4 - MTU Override not honoured by virtual NICs

2014-03-02 Thread Moti Asayag


- Original Message -
 From: Jonas Israelsson jo...@israelsson.com
 To: users@ovirt.org
 Sent: Saturday, March 1, 2014 3:28:15 PM
 Subject: [Users] oVirt 3.4 - MTU Override not honoured by virtual NICs
 
 I have a SAN Network defined in oVirt where I have enabled Jumbo frames
 (by setting the MTU to 9000).
 Still I see now VM Nic;s attached to this network get MTU 1500 and are
 therefore basically not working.
 
 I have created several VMs before all (still) have Jumbo Frames on the
 their san-interface, but newly created VMs get 1500.
 Currently on 3.4 Beta2 (upgraded from alpha -- beta1 ---) and this
 behaviour have started somewhere along the way..
 
 The host physical interface
 
 em2   Link encap:Ethernet  HWaddr D0:67:E5:F9:2E:1C
inet6 addr: fe80::d267:e5ff:fef9:2e1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
RX packets:503209263 errors:0 dropped:0 overruns:0 frame:0
TX packets:483040537 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2395173035170 (2.1 TiB)  TX bytes:408352341106
 (380.3 GiB)
 
 
 And on a VM
 
 vnet25Link encap:Ethernet  HWaddr FE:1A:4A:2F:D2:A3
inet6 addr: fe80::fc1a:4aff:fe2f:d2a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:167 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:17662 (17.2 KiB)  TX bytes:26684 (26.0 KiB)
 
 If manully setting the MTU everything work as expected.. (Until you
 reboot the machine)
 
 Anyone else seen this ?
 

This sounds like a reasonable behaviour since there is a clear separation
between the host networking configuration to the vms networking configuration.
What you're attempting to achieve is guest-os level network configuration which
isn't controlled by the ovirt-engine.

The current method to control guest network internals is by using the 
cloud-init-integration
however MTU is not part of its api [1]. 

You can add it to the 3.5 planning thread as a requested item.

[1] http://www.ovirt.org/Features/Cloud-Init_Integration

 Rgds Jonas
 
 ___
 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] Fedora 19 Host Installation Failed - VDSM version (UNKNOWN) and cannot join cluster Default which is compatible with VDSM versions [4.13, 4.9, 4.11, 4.12, 4.10]

2014-02-26 Thread Moti Asayag


- Original Message -
 From: Alon Bar-Lev alo...@redhat.com
 To: Udaya Kiran P ukiran...@yahoo.in, Moti Asayag masa...@redhat.com
 Cc: fabi...@redhat.com, users users@ovirt.org
 Sent: Wednesday, February 26, 2014 12:08:43 PM
 Subject: Re: Fedora 19 Host Installation Failed - VDSM version (UNKNOWN) 
 and cannot join cluster Default which is
 compatible with VDSM versions [4.13, 4.9, 4.11, 4.12, 4.10]
 
 
 
 - Original Message -
  From: Udaya Kiran P ukiran...@yahoo.in
  To: alo...@redhat.com, fabi...@redhat.com, users users@ovirt.org
  Sent: Wednesday, February 26, 2014 12:02:24 PM
  Subject: Fedora 19 Host Installation Failed - VDSM version (UNKNOWN) and
  cannot join cluster Default which is
  compatible with VDSM versions [4.13, 4.9, 4.11, 4.12, 4.10]
  
  Hi Alon/Fabian,
  
  I am trying to add the Fedora 19 host to oVirt Engine 3.3.2-1.fc19.
 
 Why don't you use 3.3.3? issues may have been solved.
 
  
  Host installation failed with the below logs in the Events. I have attached
  the Engine, Server and HostDeploy logs.
 

The first error i see within the host-deploy log (line 4427) is:

2014-02-26 01:21:15 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.packages 
plugin.executeRaw:383 execute-result: ('/bin/vdsm-tool', 'configure', 
'--force'), rc=1
2014-02-26 01:21:15 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.packages 
plugin.execute:441 execute-output: ('/bin/vdsm-tool', 'configure', '--force') 
stdout:
Usage: /bin/vdsm-tool [options] action [arguments]

Valid options:
  -h, --help
...
2014-02-26 01:21:15 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.packages 
packages._reconfigure:154 Cannot reconfigure vdsm using vdsm-tool

Alon, it looks like incorrect parameters were provided to vdsm-tool.

However, it looks that vdsmd service was restarted afterwards (line 4627):
2014-02-26 01:21:22 DEBUG otopi.plugins.otopi.services.systemd 
systemd.state:134 starting service vdsmd
2014-02-26 01:21:22 DEBUG otopi.plugins.otopi.services.systemd 
plugin.executeRaw:366 execute: ('/bin/systemctl', 'start', 'vdsmd.service'), 
executable='None', cwd='None', env=None
2014-02-26 01:21:30 DEBUG otopi.plugins.otopi.services.systemd 
plugin.executeRaw:383 execute-result: ('/bin/systemctl', 'start', 
'vdsmd.service'), rc=0

At this point host deploy is finished and now the network is being configured 
on the
host. In order to do so - the engine 'pings' vdsm, until it is becomes 
responsive - which is not in this case.

All the tale is just for asking to provide /var/log/vdsm/vdsm.log, 
/var/log/vdsm/supervdsm.log and /var/log/messages from the host so we could 
examine why vdsm failed to start.

Were you able to run locally 'vdsClient -s localhost getVdsCaps' ?



 Moti?
 
 2014-02-26 01:21:32,622 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:32,636 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] Command PollVDS execution failed. Exception: RuntimeException:
 java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:33,167 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:33,169 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] Command PollVDS execution failed. Exception: RuntimeException:
 java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:33,682 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:33,684 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] Command PollVDS execution failed. Exception: RuntimeException:
 java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:34,191 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:34,192 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] Command PollVDS execution failed. Exception: RuntimeException:
 java.util.concurrent.ExecutionException:
 java.lang.reflect.InvocationTargetException
 2014-02-26 01:21:35,372 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSRecoveringException:
 Failed to initialize storage
 2014-02-26 01:21:35,373 ERROR
 [org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7)
 [7e2148] Command PollVDS execution failed. Exception

Re: [Users] Fedora 19 Host Installation Failed - VDSM version (UNKNOWN) and cannot join cluster Default which is compatible with VDSM versions [4.13, 4.9, 4.11, 4.12, 4.10]

2014-02-26 Thread Moti Asayag


- Original Message -
 From: Udaya Kiran P ukiran...@yahoo.in
 To: Moti Asayag masa...@redhat.com, Alon Bar-Lev alo...@redhat.com
 Cc: users users@ovirt.org
 Sent: Wednesday, February 26, 2014 12:46:31 PM
 Subject: Re: [Users] Fedora 19 Host Installation Failed - VDSM version
 (UNKNOWN) and cannot join cluster Default
 which is  compatible with VDSM versions [4.13, 4.9, 4.11, 4.12, 4.10]
 
 Hi Moti,
 
 I have attached the logs - supervdsm,vdsm,messages from the Host.
 

The engine fails to connect to vdsm with:
 2014-02-26 01:21:42,642 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.PollVDSCommand] (pool-6-thread-7) 
[7e2148] org.ovirt.engine.core.vdsbroker.vdsbroker.VDSRecoveringException: 
Failed to initialize storage

And the vdsm.log shows and messages contains the following error which seems to 
be the source of the problem:

Feb 26 01:21:33 test-101022114 vdsm vds ERROR Error initializing 
IRS#012Traceback (most recent call last):#012  File 
/usr/share/vdsm/clientIF.py, line 258, in _initIRS#012self.irs = 
Dispatcher(HSM())#012  File /usr/share/vdsm/storage/hsm.py, line 352, in 
__init__#012multipath.setupMultipath()#012  File 
/usr/share/vdsm/storage/multipath.py, line 182, in setupMultipath#012
raise se.MultipathReloadError()#012MultipathReloadError: Multipath service 
reload error: ()

Nir, could you advise ?

 Thank You.
 
 Regards,
 Udaya Kiran
 
 
 
 On Wednesday, 26 February 2014 4:06 PM, Udaya Kiran P ukiran...@yahoo.in
 wrote:
  
 Hi Moti,
 
 Here is the output for vdsClient -s localhost getVdsCaps at the Host.
 
 
 HBAInventory = {'FC': [{'model': 'QMH2562 - PCI-Express Dual Channel 8Gb
 Fibre Channel Mezzanine HBA',
                                 'wwnn': '50014380187297f5',
                                 'wwpn': '50014380187297f4'},
                                {'model': 'QMH2562 - PCI-Express Dual Channel
                                8Gb Fibre Channel Mezzanine HBA',
                                 'wwnn': '50014380187297f7',
                                 'wwpn': '50014380187297f6'}],
                         'iSCSI': [{'InitiatorName':
                         'iqn.1994-05.com.redhat:ce7619e8c53b'}]}
         ISCSIInitiatorName = 'iqn.1994-05.com.redhat:ce7619e8c53b'
         bondings = {'bond0': {'addr': '',
                               'cfg': {},
                               'hwaddr': 'be:27:dd:4d:54:ae',
                               'ipv6addrs': [],
                               'mtu': '1500',
                               'netmask': '',
                               'slaves': []}}
         bridges = {}
         clusterLevels = ['3.0', '3.1', '3.2', '3.3']
         cpuCores = '12'
         cpuFlags =
         
 'fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,pdpe1gb,rdtscp,lm,3dnowext,3dnow,constant_tsc,rep_good,nopl,nonstop_tsc,extd_apicid,amd_dcm,pni,monitor,cx16,popcnt,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,abm,sse4a,misalignsse,3dnowprefetch,osvw,ibs,skinit,wdt,nodeid_msr,hw_pstate,npt,lbrv,svm_lock,nrip_save,pausefilter,model_athlon,model_Opteron_G3,model_Opteron_G1,model_phenom,model_Opteron_G2'
         cpuModel = 'AMD Opteron(tm) Processor 6172'
         cpuSockets = '1'
         cpuSpeed = '2100.171'
         cpuThreads = '12'
         emulatedMachines = ['pc',
                             'q35',
                             'isapc',
                             'pc-0.10',
                             'pc-0.11',
                             'pc-0.12',
                             'pc-0.13',
                             'pc-0.14',
                             'pc-0.15',
                             'pc-1.0',
                             'pc-1.1',
                             'pc-1.2',
                             'pc-1.3',
                             'none']
         guestOverhead = '65'
         hooks = {}
         kvmEnabled = 'true'
         lastClient = '127.0.0.1'
         lastClientIface = 'lo'
         management_ip = '0.0.0.0'
         memSize = '16015'
         netConfigDirty = 'False'
         networks = {}
         nics = {'em1': {'addr': '10.10.22.114',
                         'cfg': {},
                         'hwaddr': 'e8:39:35:2b:3c:26',
                         'ipv6addrs': ['fe80::ea39:35ff:fe2b:3c26/64'],
                         'mtu': '1500',
                         'netmask': '255.255.0.0',
                         'speed': 5000},
                 'em2': {'addr': '',
                         'cfg': {},
                         'hwaddr': 'e8:39:35:2b:3c:2a',
                         'ipv6addrs': [],
                         'mtu': '1500',
                         'netmask': '',
                         'speed': 0},
                 'em3': {'addr': '',
                         'cfg': {},
                         'hwaddr': 'e8:39:35:2b:3c:27',
                         'ipv6addrs': [],
                         'mtu

Re: [Users] Creating Logical Network issue - API

2014-02-24 Thread Moti Asayag
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 11:59:42 AM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 While setting Logical Network, it fails with below error:
 code  : 400
 reason: Bad Request
 detail: Previous network name is required.

See an example in the following post:

https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/

 
 Code:
   String nw_name=ApiNetWork;
   org.ovirt.engine.sdk.decorators.Host hst =
 api.getHosts().get(rhevhost);
 
 hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
   //hst.getHostNics().get(eth1).setCheckConnectivity(true);
   //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
   hst.getHostNics().get(eth1).update();
 
 
 
 On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com wrote:
 
  Can you tel me how do i assign Logical Network(s) to one of the Physical
  Nic on the Host.
 
 
  On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com wrote:
 
  h
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: users@oVirt.org users@ovirt.org
   Sent: Thursday, February 20, 2014 11:48:56 AM
   Subject: [Users] Creating Logical Network issue - API
  
   Hi ,
  
   I'm trying to create Logical Network and assign it to cluster  want to
  bond
   this to one of the Network Interface on Host. so that i can isolate my
  VM
   from other networks.
  
   The issue is even if i set Cluster while creating Logical Network, it
  is not
   setting the cluster. In Web Admin it is in unset state.
  
   Also, let me know how do i bind this Logical network on Host Interface.
  
   Java code:
  
   Network nw1=new Network();
   VLAN vlan = new VLAN();
   vlan.setId(2000);
   nw1.setVlan(vlan);
   IP ip = new IP();
   ip.setAddress(192.168.1.151);
   ip.setGateway(192.168.1.1);
   ip.setNetmask(255.255.255.0);
 
  Note that the stated IP above will not be used to set the address on the
  host itself.
  In order to do so you should use either the 'setup networks' api on
  host's nics level.
  (Alternately, you can send POST request to /hosts/{host:id}/nics which
  utilize the
  former api (it is a bit simpler than using the setup networks api).
 
  Should look like:
  Host host = api.getHosts().get(host_name);
  Action action = new Action();
  action.setCheckConnectivity(true); //required for rollback in case of
  configuration failure
  action.setHostNics(...); // should contain the target configuration
  host.getHostNics().setupnetworks(action);
 
  where the action should contain the entire desired network configuration.
 
  You can find various python-sdk example for setup networks on my blog [1]
  I'll post few examples using the java sdk earlier next week.
 
  [1] https://motiasayag.wordpress.com/
 
   nw1.setIp(ip);
   nw1.setName(apiNetwork);
  
   nw1.setDataCenter(api.getDataCenters().get(testDC));
   nw1.setCluster(api.getClusters().get(testCluster));
  
   org.ovirt.engine.sdk.decorators.Network nw2 =
  api.getNetworks().add(nw1);
  
   --
   Thanks  Regards
   Tejesh
  
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  
 
 
 
 
  --
  Thanks  Regards
  Tejesh
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-02-24 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 1:18:53 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 The example updates the existing Network (i.e. if the Logical Network is
 already mapped to eth1). But what i'm looking for is how to map Logical
 Network ApiNetWork to eth1, please refer screenshot.
 

Please check the last example named AddNetworkToNic from
https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/

It should achieve what you're aiming for.

 
 On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com wrote:
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 11:59:42 AM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   While setting Logical Network, it fails with below error:
   code  : 400
   reason: Bad Request
   detail: Previous network name is required.
 
  See an example in the following post:
 
 
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  
   Code:
 String nw_name=ApiNetWork;
 org.ovirt.engine.sdk.decorators.Host hst =
   api.getHosts().get(rhevhost);
  
   hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
 //hst.getHostNics().get(eth1).setCheckConnectivity(true);
 //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
 hst.getHostNics().get(eth1).update();
  
  
  
   On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com wrote:
  
Can you tel me how do i assign Logical Network(s) to one of the
  Physical
Nic on the Host.
   
   
On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com
  wrote:
   
h
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API

 Hi ,

 I'm trying to create Logical Network and assign it to cluster 
  want to
bond
 this to one of the Network Interface on Host. so that i can isolate
  my
VM
 from other networks.

 The issue is even if i set Cluster while creating Logical Network,
  it
is not
 setting the cluster. In Web Admin it is in unset state.

 Also, let me know how do i bind this Logical network on Host
  Interface.

 Java code:

 Network nw1=new Network();
 VLAN vlan = new VLAN();
 vlan.setId(2000);
 nw1.setVlan(vlan);
 IP ip = new IP();
 ip.setAddress(192.168.1.151);
 ip.setGateway(192.168.1.1);
 ip.setNetmask(255.255.255.0);
   
Note that the stated IP above will not be used to set the address on
  the
host itself.
In order to do so you should use either the 'setup networks' api on
host's nics level.
(Alternately, you can send POST request to /hosts/{host:id}/nics which
utilize the
former api (it is a bit simpler than using the setup networks api).
   
Should look like:
Host host = api.getHosts().get(host_name);
Action action = new Action();
action.setCheckConnectivity(true); //required for rollback in
  case of
configuration failure
action.setHostNics(...); // should contain the target
  configuration
host.getHostNics().setupnetworks(action);
   
where the action should contain the entire desired network
  configuration.
   
You can find various python-sdk example for setup networks on my blog
  [1]
I'll post few examples using the java sdk earlier next week.
   
[1] https://motiasayag.wordpress.com/
   
 nw1.setIp(ip);
 nw1.setName(apiNetwork);

 nw1.setDataCenter(api.getDataCenters().get(testDC));
 nw1.setCluster(api.getClusters().get(testCluster));

 org.ovirt.engine.sdk.decorators.Network nw2 =
api.getNetworks().add(nw1);

 --
 Thanks  Regards
 Tejesh

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

   
   
   
   
--
Thanks  Regards
Tejesh
   
  
  
  
   --
   Thanks  Regards
   Tejesh
  
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-02-24 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Monday, February 24, 2014 1:18:53 PM
 Subject: Re: [Users] Creating Logical Network issue - API
 
 The example updates the existing Network (i.e. if the Logical Network is
 already mapped to eth1). But what i'm looking for is how to map Logical
 Network ApiNetWork to eth1, please refer screenshot.
 

There is an example of the 'setup networks' api usage via the java sdk in [1]
which is the recommended api for configuring host networking.

[1] 
https://motiasayag.wordpress.com/2014/02/24/invoke-setup-networks-from-the-java-sdk/

 
 On Mon, Feb 24, 2014 at 4:11 PM, Moti Asayag masa...@redhat.com wrote:
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: Moti Asayag masa...@redhat.com
   Cc: users@oVirt.org users@ovirt.org
   Sent: Monday, February 24, 2014 11:59:42 AM
   Subject: Re: [Users] Creating Logical Network issue - API
  
   While setting Logical Network, it fails with below error:
   code  : 400
   reason: Bad Request
   detail: Previous network name is required.
 
  See an example in the following post:
 
 
  https://motiasayag.wordpress.com/2014/02/24/network-configuration-using-ovirt-engine-java-sdk/
 
  
   Code:
 String nw_name=ApiNetWork;
 org.ovirt.engine.sdk.decorators.Host hst =
   api.getHosts().get(rhevhost);
  
   hst.getHostNics().get(eth1).setNetwork(api.getNetworks().get(nw_name));
 //hst.getHostNics().get(eth1).setCheckConnectivity(true);
 //hst.getHostNics().get(eth1).setOverrideConfiguration(true);
 hst.getHostNics().get(eth1).update();
  
  
  
   On Mon, Feb 24, 2014 at 2:30 PM, Tejesh M tejes...@gmail.com wrote:
  
Can you tel me how do i assign Logical Network(s) to one of the
  Physical
Nic on the Host.
   
   
On Fri, Feb 21, 2014 at 1:37 PM, Moti Asayag masa...@redhat.com
  wrote:
   
h
   
- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API

 Hi ,

 I'm trying to create Logical Network and assign it to cluster 
  want to
bond
 this to one of the Network Interface on Host. so that i can isolate
  my
VM
 from other networks.

 The issue is even if i set Cluster while creating Logical Network,
  it
is not
 setting the cluster. In Web Admin it is in unset state.

 Also, let me know how do i bind this Logical network on Host
  Interface.

 Java code:

 Network nw1=new Network();
 VLAN vlan = new VLAN();
 vlan.setId(2000);
 nw1.setVlan(vlan);
 IP ip = new IP();
 ip.setAddress(192.168.1.151);
 ip.setGateway(192.168.1.1);
 ip.setNetmask(255.255.255.0);
   
Note that the stated IP above will not be used to set the address on
  the
host itself.
In order to do so you should use either the 'setup networks' api on
host's nics level.
(Alternately, you can send POST request to /hosts/{host:id}/nics which
utilize the
former api (it is a bit simpler than using the setup networks api).
   
Should look like:
Host host = api.getHosts().get(host_name);
Action action = new Action();
action.setCheckConnectivity(true); //required for rollback in
  case of
configuration failure
action.setHostNics(...); // should contain the target
  configuration
host.getHostNics().setupnetworks(action);
   
where the action should contain the entire desired network
  configuration.
   
You can find various python-sdk example for setup networks on my blog
  [1]
I'll post few examples using the java sdk earlier next week.
   
[1] https://motiasayag.wordpress.com/
   
 nw1.setIp(ip);
 nw1.setName(apiNetwork);

 nw1.setDataCenter(api.getDataCenters().get(testDC));
 nw1.setCluster(api.getClusters().get(testCluster));

 org.ovirt.engine.sdk.decorators.Network nw2 =
api.getNetworks().add(nw1);

 --
 Thanks  Regards
 Tejesh

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

   
   
   
   
--
Thanks  Regards
Tejesh
   
  
  
  
   --
   Thanks  Regards
   Tejesh
  
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-02-21 Thread Moti Asayag
h

- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API
 
 Hi ,
 
 I'm trying to create Logical Network and assign it to cluster  want to bond
 this to one of the Network Interface on Host. so that i can isolate my VM
 from other networks.
 
 The issue is even if i set Cluster while creating Logical Network, it is not
 setting the cluster. In Web Admin it is in unset state.
 
 Also, let me know how do i bind this Logical network on Host Interface.
 
 Java code:
 
 Network nw1=new Network();
 VLAN vlan = new VLAN();
 vlan.setId(2000);
 nw1.setVlan(vlan);
 IP ip = new IP();
 ip.setAddress(192.168.1.151);
 ip.setGateway(192.168.1.1);
 ip.setNetmask(255.255.255.0);

Note that the stated IP above will not be used to set the address on the host 
itself.
In order to do so you should use either the 'setup networks' api on host's nics 
level.
(Alternately, you can send POST request to /hosts/{host:id}/nics which utilize 
the
former api (it is a bit simpler than using the setup networks api).

Should look like:
Host host = api.getHosts().get(host_name);
Action action = new Action();
action.setCheckConnectivity(true); //required for rollback in case of 
configuration failure
action.setHostNics(...); // should contain the target configuration
host.getHostNics().setupnetworks(action);

where the action should contain the entire desired network configuration.

You can find various python-sdk example for setup networks on my blog [1]
I'll post few examples using the java sdk earlier next week.

[1] https://motiasayag.wordpress.com/

 nw1.setIp(ip);
 nw1.setName(apiNetwork);
 
 nw1.setDataCenter(api.getDataCenters().get(testDC));
 nw1.setCluster(api.getClusters().get(testCluster));
 
 org.ovirt.engine.sdk.decorators.Network nw2 = api.getNetworks().add(nw1);
 
 --
 Thanks  Regards
 Tejesh
 
 ___
 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] Fwd: Sample code for setting NIC - CloudInit

2014-02-20 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: Moti Asayag masa...@redhat.com
 Cc: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 8:52:52 AM
 Subject: Re: [Users] Fwd: Sample code for setting NIC - CloudInit
 
 I'm not getting below class:
 
 import org.ovirt.engine.sdk.entities.*NetworkConfiguration*;

Which version of ovirt-engine-sdk-java are you using ? 

I used ovirt-engine-sdk-java-3.4.0.1-1, added to my project's pom.xml:

dependency
groupIdorg.ovirt.engine.sdk/groupId
artifactIdovirt-engine-sdk-java/artifactId
version3.4.0.1-1/version
typejar/type
scopecompile/scope
/dependency

 
 
 On Thu, Feb 20, 2014 at 4:11 AM, Moti Asayag masa...@redhat.com wrote:
 
 
 
  - Original Message -
   From: Tejesh M tejes...@gmail.com
   To: users@oVirt.org users@ovirt.org
   Sent: Wednesday, February 19, 2014 3:24:40 PM
   Subject: [Users] Fwd: Sample code for setting NIC - CloudInit
  
   Hi,
  
   Can someone share me sample java code for assigning IP address for VM on
  eth0
   through Java SDK via CloudInit ?
  
 
  Hi Tejesh,
 
  I've attached a sample code that sends the required request (as the output
  is demonstrated in debug mode).
  Note that the code is jdk-7 compliant.
  I haven't configured cloud-init and haven't tested it end-to-end.
  Please try to test it on your environment and provide a feedback for it.
 
  Thanks,
  Moti
 
   Something Like this but in Java:
   network_configuration
nics
  nic
nameeth0/name
boot_protocolSTATIC/boot_protocol
network
  ip address=192.168.2.11 netmask=255.255.0.0
  gateway=192.168.2.1 /
/network
on_boottrue/on_boot
  /nic
  nic
nameeth1/name
boot_protocolDHCP/boot_protocol
  /nic
  nic
nameeth2/name
boot_protocolNONE/boot_protocol
on_boottrue/on_boot
  /nic
/nics
dns
  servers
host
  address1.1.2.2/address
/host
host
  address1.2.3.4/address
/host
  /servers
  search_domains
host
  addressqa.lab/address
/host
host
  address google.com /address
/host
  /search_domains
/dns
  /network_configuration
  
  
  
   --
   Thanks  Regards
   Tejesh
  
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  
 
 
 
 
 --
 Thanks  Regards
 Tejesh
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Creating Logical Network issue - API

2014-02-20 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Thursday, February 20, 2014 11:48:56 AM
 Subject: [Users] Creating Logical Network issue - API
 
 Hi ,
 
 I'm trying to create Logical Network and assign it to cluster  want to bond
 this to one of the Network Interface on Host. so that i can isolate my VM
 from other networks.
 
 The issue is even if i set Cluster while creating Logical Network, it is not
 setting the cluster. In Web Admin it is in unset state.
 
 Also, let me know how do i bind this Logical network on Host Interface.
 
 Java code:
 
 Network nw1=new Network();
 VLAN vlan = new VLAN();
 vlan.setId(2000);
 nw1.setVlan(vlan);
 IP ip = new IP();
 ip.setAddress(192.168.1.151);
 ip.setGateway(192.168.1.1);
 ip.setNetmask(255.255.255.0);
 nw1.setIp(ip);
 nw1.setName(apiNetwork);
 
 nw1.setDataCenter(api.getDataCenters().get(testDC));
 nw1.setCluster(api.getClusters().get(testCluster));
 
 org.ovirt.engine.sdk.decorators.Network nw2 = api.getNetworks().add(nw1);

This part will only add the network in the data-center.
In order to attach it to a cluster, there is a need for a specific action:

api.getClusters().get(testCluster).getNetworks().add(nw2);

 
 --
 Thanks  Regards
 Tejesh
 
 ___
 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] Fwd: Sample code for setting NIC - CloudInit

2014-02-19 Thread Moti Asayag


- Original Message -
 From: Tejesh M tejes...@gmail.com
 To: users@oVirt.org users@ovirt.org
 Sent: Wednesday, February 19, 2014 3:24:40 PM
 Subject: [Users] Fwd: Sample code for setting NIC - CloudInit
 
 Hi,
 
 Can someone share me sample java code for assigning IP address for VM on eth0
 through Java SDK via CloudInit ?
 

Hi Tejesh,

I've attached a sample code that sends the required request (as the output is 
demonstrated in debug mode).
Note that the code is jdk-7 compliant.
I haven't configured cloud-init and haven't tested it end-to-end.
Please try to test it on your environment and provide a feedback for it.

Thanks,
Moti

 Something Like this but in Java:
 network_configuration
  nics
nic
  nameeth0/name
  boot_protocolSTATIC/boot_protocol
  network
ip address=192.168.2.11 netmask=255.255.0.0
gateway=192.168.2.1 /
  /network
  on_boottrue/on_boot
/nic
nic
  nameeth1/name
  boot_protocolDHCP/boot_protocol
/nic
nic
  nameeth2/name
  boot_protocolNONE/boot_protocol
  on_boottrue/on_boot
/nic
  /nics
  dns
servers
  host
address1.1.2.2/address
  /host
  host
address1.2.3.4/address
  /host
/servers
search_domains
  host
addressqa.lab/address
  /host
  host
address google.com /address
  /host
/search_domains
  /dns
/network_configuration
 
 
 
 --
 Thanks  Regards
 Tejesh
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
package org.ovirt.testday;

import java.io.IOException;
import java.util.Arrays;
import java.util.List;

import org.apache.http.client.ClientProtocolException;
import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.decorators.VM;
import org.ovirt.engine.sdk.entities.Action;
import org.ovirt.engine.sdk.entities.CloudInit;
import org.ovirt.engine.sdk.entities.DNS;
import org.ovirt.engine.sdk.entities.Host;
import org.ovirt.engine.sdk.entities.Hosts;
import org.ovirt.engine.sdk.entities.IP;
import org.ovirt.engine.sdk.entities.Initialization;
import org.ovirt.engine.sdk.entities.NIC;
import org.ovirt.engine.sdk.entities.Network;
import org.ovirt.engine.sdk.entities.NetworkConfiguration;
import org.ovirt.engine.sdk.entities.Nics;
import org.ovirt.engine.sdk.exceptions.ServerException;
import org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError;


/**
 * Sample non-secured code for sending the following request:
 * network_configuration
 nics
   nic
 nameeth0/name
 boot_protocolSTATIC/boot_protocol
 network
   ip address=192.168.2.11 netmask=255.255.0.0 gateway=192.168.2.1 /
 /network
 on_boottrue/on_boot
   /nic
   nic
 nameeth1/name
 boot_protocolDHCP/boot_protocol
   /nic
   nic
 nameeth2/name
 boot_protocolNONE/boot_protocol
 on_boottrue/on_boot
   /nic
 /nics
 dns
   servers
 host
   address1.1.2.2/address
 /host
 host
   address1.2.3.4/address
 /host
   /servers
   search_domains
 host
   addressqa.lab/address
 /host
 host
   addressgoogle.com/address
 /host
   /search_domains
 /dns
   /network_configuration
 *
 */
public class VmCloudInit {

public static void main(String[] args) throws ClientProtocolException, ServerException,
UnsecuredConnectionAttemptError, IOException {

try (Api api = new Api(http://localhost:8080/api;,
admin@internal,
1,
null, null, null, null, null, null, true)){

VM vm = api.getVMs().get(vm1);
NetworkConfiguration networkConfiguration = new NetworkConfiguration();
DNS dns = new DNS();
dns.setServers(createServersList(1.1.2.2, 1.2.3.4));
dns.setSearchDomains(createServersList(qa.lab, google.com));
networkConfiguration.setDns(dns);
networkConfiguration.setNics(new Nics());
ListNIC nics = networkConfiguration.getNics().getNics();
nics.add(createNic(eth0, STATIC, createNetwork(192.168.2.11, 255.255.0.0, 192.168.2.1), true));
nics.add(createNic(eth1, DHCP, null, false));
nics.add(createNic(eth1, NONE, null, true));
vm.setInitialization(new Initialization());

Re: [Users] New oVirt Community Dashboard

2014-02-12 Thread Moti Asayag


- Original Message -
 From: Brian Proffitt bprof...@redhat.com
 To: users@ovirt.org
 Cc: redhat-proj...@bitergia.com
 Sent: Wednesday, February 12, 2014 10:12:20 PM
 Subject: [Users] New oVirt Community Dashboard
 
 With much pleasure, I would like to introduce a new tool for the oVirt
 community: a community dashboard from the team at Bitergia.
 
 This dashboard, found at [1], should enable us to get better insights into
 the activity within our community, as well as what communication channels
 are performing the best and who is most active on any given day.
 
 Thanks to the work of Bitergia and Dave Neary, this dashboard is now ready
 for community feedback. I would invite you to take a look and make comments
 on how the information is presented and what data is available. Currently,
 the data is updated once a day.
 
 Two initial questions: would IRC data be useful? And, would an aggregate page
 of all of the Top lists be something to add, too?

+1 for the Top lists.

 
 Two known bugs: The links to the MySQL and JSON data files are not working at
 the moment.
 
 We welcome your feedback!
 

Very nice addition to the ovirt.org. I used to review some of the statistics at
[1] and [2], but having that statistics better organized around is better.

I'd like to suggest filtering the engine-patc...@ovirt.org from the mailing 
participants.
The mails send to that list are generated automatically by gerrit for each 
gerrit activity
(either submitting a patch, rebasing, or reviewing), and this activity is 
mostly covered
by the source code contributors stats. This list generates a huge traffic 
which obfuscates
other mailing-list participants.

IMO a nice addition would be having a statistics for the patches reviewers, 
which are as
important as the code contributors.

[1] https://www.ohloh.net/p/ovirt-engine
[2] https://www.ohloh.net/p/ovirt

 Peace,
 Brian
 
 [1] http://www.ovirt.org/stats
 
 --
 Brian Proffitt - oVirt Community Manager
 Open Source and Standards, Red Hat - http://community.redhat.com
 Phone: +1 312 477 4320 / Cell: +1 574 383 9BKP
 IRC: bkp
 ___
 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] [ovirt-test-day-2] Testing all-in-one feature on f19

2014-02-11 Thread Moti Asayag
Hi,

In the 3.4 ovirt-test-day-2 I've tested the all-in-one feature.
I installed the all-in-one setup on a vm.

The installation ended almost successfully, except of the vdsm service,
where the the host didn't become operational due to lack of support
in clusterLevel = 3.4:

Feb 11 15:51:52 localhost vdsm root ERROR VIR_MIGRATE_ABORT_ON_ERROR not found 
in libvirt, support for clusterLevel = 3.4 is disabled. For Fedora 19 users, 
please consider upgrading libvirt from the virt-preview repository

Once I created a new 3.3 DC and configured a local storage, the local host
become operational and I was able to create a vm and to run it.

Thanks,
Moti
___
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-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 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 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 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


Re: [Users] ovirt test day: HA VM Reservation feature test summary

2014-02-03 Thread Moti Asayag


- Original Message -
 From: Doron Fediuck dfedi...@redhat.com
 To: Moti Asayag masa...@redhat.com
 Cc: users users@ovirt.org
 Sent: Monday, February 3, 2014 1:07:37 PM
 Subject: Re: [Users] ovirt test day: HA VM Reservation feature test summary
 
 
 
 - Original Message -
  From: Moti Asayag masa...@redhat.com
  To: users users@ovirt.org
  Sent: Monday, January 27, 2014 5:54:22 PM
  Subject: [Users] ovirt test day: HA VM Reservation feature test summary
  
  Hi All,
  
  In the latest ovirt-test-day i've tested the HA VM resource reservation
  feature [1] according to the basic scenarios as described on [2].
  
  The new feature notifies the admin via an event log about his cluster
  inability to preserve resources for HA VMs. I've reported 2 bugs based
  on the behavior: The cluster check doesn't consider the state of the
  cluster's hosts when it calculates the resources [3] and a minor issue
  of the audit log translation into a message [4].
  
  [1] http://www.ovirt.org/Features/HA_VM_reservation
  [2] http://www.ovirt.org/OVirt_3.4_TestDay#SLA
  [3] Bug 1057579 -HA Vm reservation check ignores host status
  https://bugzilla.redhat.com/show_bug.cgi?id=1057579
  [4] Bug 1057584 -HA Vm reservation event log is not well resolved
  https://bugzilla.redhat.com/show_bug.cgi?id=1057584
  
  Thanks,
  Moti
 
 Thanks, Moti.
 Good catches. When looking at the code I also noticed 'none' policy does not
 use
 the ha reservations weight module. Were you using the default policy or
 something
 else?
 

I used the the default ('None') policy in my testing.

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


Re: [Users] Setup Networks: Unexpected exception

2014-01-28 Thread Moti Asayag

- Original Message -
 From: Frank Wall f...@moov.de
 To: users@ovirt.org
 Sent: Tuesday, January 28, 2014 1:31:41 AM
 Subject: [Users] Setup Networks: Unexpected exception
 
 Hi,
 
 still testing 3.4 and I'm unable to save a node's
 network configuration in webadmin:
 
 Error while executing action Setup Networks: Unexpected exception
 
 My configuration on the ovirt node:
 - manually added net2 bridge, attached to eth1
 
 My configuration in ovirt-engine webadmin:
 - added new network net2
 - noticed that ovirt failed to find this network on node
 - tried to add net2 to node with Setup Host Networks
 
 Error in engine.log [1].
 Error in vdsm.log [2].
 
 I think it could be related to BZ 1054195:
 https://bugzilla.redhat.com/show_bug.cgi?id=1054195 ([NetworkLabels]
 Attaching two labeled networks to a cluster result in failure of the latter)
 

It shouldn't be related to this bug since you haven't provided any label
to the network and neither configured a label on the host nic.
But it would be nice to use the 'network labels' feature to ease
network configuration on hosts.

 I'm not sure, because I only wanted to add *one* new network.
 Please note that this is a self-hosted engine setup. Just in
 case this makes a difference...
 
 ovirt-engine:
 ovirt-engine-3.4.0-0.5.beta1.el6.noarch
 
 ovirt node:
 vdsm-4.14.1-17.gitcf59a55.el6.x86_64
 ovirt-hosted-engine-setup-1.2.0-0.0.master.20140117.gitfaf77a5.el6.noarch
 
 
 Thanks
 - Frank
 
 [1]
 2014-01-27 23:41:08,813 INFO
 [org.ovirt.engine.core.vdsbroker.vdsbroker.SetupNetworksVDSCommand]
 (ajp--127.0.0.1-8702-10) [1
 783e132] START, SetupNetworksVDSCommand(HostName = mgt03rn.example.com,
 HostId = a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, for
 ce=false, checkConnectivity=true, conectivityTimeout=120,
 networks=[net2 {id=db98fa95-e922-4060-8d39-f9ac0cb2f16f,
 description=Jumphost Network, comment=null, subnet=null,
 gateway=null, type=null, vlanId=null, stp=false,
 dataCenterId=0002-0002-0002-0002-0002, mtu=0, vmNetwork=true, cl
 uster=NetworkCluster {id={clusterId=null, networkId=null},
 status=OPERATIONAL, display=false, required=true, migration=false}
 , providedBy=null, label=null, qosId=null}],
 bonds=[],
 interfaces=[bond001 {id=c5b50ccf-5b74-4737-b7cd-980c9c8acf51,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=bond001,
 macAddress=2c:44:fd:82:f5:5f, networkName=null,
 bondOptions=mode=802.3ad, bootProtocol=STATIC_IP,
 address=10.0.0.103, subnet=255.255.255.0, gateway=null, mtu=1500,
 bridged=false, type=0, networkImplementationDetails=null},
 eth3 {id=7aaf1ac1-944a-4fe6-9d22-7dc41c6e275c,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth3,
 macAddress=2C:44:FD:82:F5:5F, networkName=null,
 bondName=bond001, bootProtocol=NONE, address=, subnet=,
 gateway=null, mtu=1500, bridged=false, speed=1000, type=0,
 networkImplementationDetails=null},
 eth4 {id=0c23834d-97ae-462a-9701-e89b3dc6a83a,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth4,
 macAddress=D8:9D:67:22:B6:4C, networkName=null,
 bondName=bond001, bootProtocol=NONE, address=, subnet=,
 gateway=null, mtu=1500, bridged=false, speed=1000, type=0,
 networkImplementationDetails=null},
 eth1 {id=54cb3cf6-c4bd-4907-bf28-9020022965d5,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth1,
 macAddress=2c:44:fd:82:f5:5d, networkName=net2,
 bondName=null, bootProtocol=NONE, address=, subnet=,
 gateway=null, mtu=0, bridged=true, speed=1000, type=0,
 networkImplementationDetails=null},
 eth2 {id=a53c448f-8061-460f-9c24-3081a2376de7,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth2,
 macAddress=2c:44:fd:82:f5:5e, networkName=null,
 bondName=null, bootProtocol=NONE, address=, subnet=,
 gateway=null, mtu=1500, bridged=false, speed=1000, type=0,
 networkImplementationDetails=null},
 eth5 {id=e9f15827-bb15-41d9-8ccc-49d812cde8a6,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth5,
 macAddress=d8:9d:67:22:b6:4d, networkName=null,
 bondName=null, bootProtocol=DHCP, address=, subnet=,
 gateway=null, mtu=1500, bridged=false, speed=0, type=0,
 networkImplementationDetails=null},
 eth0 {id=b4aea8bc-bdde-4e1e-a206-46ee853220c0,
 vdsId=a11f5383-b8f7-4bed-b1f3-3c7c46ecbe7a, name=eth0,
 macAddress=2c:44:fd:82:f5:5c, networkName=ovirtmgmt,
 bondName=null, bootProtocol=STATIC_IP, address=10.0.0.103,
 subnet=255.255.0.0, gateway=10.0.0.1, mtu=1500,
 

[Users] ovirt test day: HA VM Reservation feature test summary

2014-01-27 Thread Moti Asayag
Hi All,

In the latest ovirt-test-day i've tested the HA VM resource reservation
feature [1] according to the basic scenarios as described on [2].

The new feature notifies the admin via an event log about his cluster
inability to preserve resources for HA VMs. I've reported 2 bugs based
on the behavior: The cluster check doesn't consider the state of the
cluster's hosts when it calculates the resources [3] and a minor issue
of the audit log translation into a message [4].

[1] http://www.ovirt.org/Features/HA_VM_reservation
[2] http://www.ovirt.org/OVirt_3.4_TestDay#SLA
[3] Bug 1057579 -HA Vm reservation check ignores host status
https://bugzilla.redhat.com/show_bug.cgi?id=1057579
[4] Bug 1057584 -HA Vm reservation event log is not well resolved
https://bugzilla.redhat.com/show_bug.cgi?id=1057584

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


Re: [Users] Centos 6.5 and bonding: A slave interface is not properly configured

2014-01-27 Thread Moti Asayag
Hi Federico,

- Original Message -
 From: Federico Alberto Sayd fs...@uncu.edu.ar
 To: users@ovirt.org
 Sent: Thursday, January 23, 2014 4:56:22 PM
 Subject: Re: [Users] Centos 6.5 and bonding: A slave interface is not 
 properly configured
 
 On 22/01/14 21:31, Dan Kenigsberg wrote:
  On Wed, Jan 22, 2014 at 01:57:35PM -0300, Federico Alberto Sayd wrote:
  On 22/01/14 12:13, Dan Kenigsberg wrote:
  On Wed, Jan 22, 2014 at 07:43:52AM +, Karli Sjöberg wrote:
  On Tue, 2014-01-21 at 21:22 -0300, Federico Sayd wrote:
  Hello:
 
  I am having problems with bonding
 
  I have installed Centos 6.5 in order to use it as host. I configured
  eth0 with the vlan of the management network (Vlan 70). Then I
  registered the host to the engine (3.3.2-1-el6) and the engine
  installed oVirt in the host without problem.  Ovirtmgmt was created
  automatically and bridged with eth0.70.
 
  Now I need to bond a second network interface (eth1) with eth0. But
  when I try to bond the nics, I get the next error:
 
  A slave interface is not properly configured. Please verify slaves do
  not contain any of the following properties: network name, boot
  protocol, IP address, netmask, gateway or vlan-ID notation (as part of
  interface's name or explicitly)
  Federico, where exactly do you get this error? Would you attach the
  setupNetwork log from supervdsmd.log?
  I get the error in the setup-network dialog in ovirt-engine.
 
  Today I solved the issue copying the network config of other host
  (same hardware), and it worked.
 
  The supervdsm.log whith the lines logged yesterday:
 
  http://pastebin.com/kpXrRd2w
 
  It would be nice if the error could be more explicit, i.e. telling
  the ifcfg-* that are conflictive.
  I do not understand the error yet... I believe that in the text you have
  quoted, Engine complains that an interface has not joined a bond. But
  Engine's command to Vdsm
 
  MainProcess|Thread-15::DEBUG::2014-01-21
  13:13:21,166::supervdsmServer::95::SuperVdsm.ServerCallback::(wrapper)
  call setupNetworks with ({'ovirtmgmt': {'nic': 'eth0', 'vlan': '70',
  'ipaddr': '192.168.1.101', 'netmask': '255.255.255.0', 'STP': 'no',
  'bridged': 'true'}}, {}, {'connectivityCheck': 'true',
  'connectivityTimeout': 120}
 
  contains no reference to a bond device, and seems to have succeeded.
 
  One notable problem is that the network definitions lack a 'gateway'
  parameter, which is very important for ovirtmgmt.
 
  Would you share your vdsm.log, too? The output of getCapabilities before
  and after setupNetworks may shed some light on the circumstances.
 
  Regads,
  Dan.
 
 
 Exactly , Engine doesn't want to create the bond because the
 configuration of a nic have unacceptable parameters.
 
 But, specifically what parameters? Which interface? Could the error be
 more explicit?
 
 Engine complains about the contents of ifcfg-* or actual network config?
 or both? In any case  I restarted network service after edit ifcfg-* files.
 
 I got the error when I tried to bond the interfaces. The ovirtmgmt was
 created by oVirt and bridged to eth0.70 when the host was installed via
 oVirt Engine. After, I tried to bond the two interfaces: eth0, (with
 ovirtmgmt attached to it) and eth1 (without config), then the gui showed
 the error about ifcfg-* parameters.
 
 I guess that the text that you quoted corresponds to the creation of
 ovirmgmnt network at install time. I don't find in supervdsm.log any
 references to the bond creation.
 
 vdsm.log: http://pastebin.com/AGSMBnkN
 

I took a closer look at the vdsm.log file and i've noticed that the 
'getCapabilities'
reports the following for the 'eth1' interface:

nics': {'eth1': {'netmask': '', 'addr': '', 'hwaddr': 'e4:1f:13:1a:5b:da', 
'cfg': {'UUID': '3d63cd78-57e5-4f26-81c4-8a342a342ef4', 'NM_CONTROLLED': 'yes', 
'HWADDR': 'E4:1F:13:1A:5B:DA', 'BOOTPROTO': 'dhcp', 'DEVICE': 'eth1', 'TYPE': 
'Ethernet', 'ONBOOT': 'no'}, 'ipv6addrs': ['fe80::e61f:13ff:fe1a:5bda/64'], 
'speed': 1000, 'mtu': '1500'},

This in interface is configured with boot-protocol as 'dhcp' and cannot serve 
as a
slave. In addition, it is marked as managed by the network manager which i'm 
not sure
is advisable.

This somehow defers from the output of the ifcfg-eth1 content which didn't 
specify any
value for that device:

ifcfg-eth1:
DEVIC E=eth1
TYPE=Ethernet
ONBOOT=yes

Adding to this file:
NM_CONTROLLED=no
BOOTPROTO=none

and restarting the network service  vdsm would reflect this information to 
the engine
which will allow to refer to such a nic as a slave when constructing a bond.

The reason for not seeing any bond created in the [super]vdsm.log is due to the 
fact this
action was blocked on the ovirt-engine side and never sent to vdsm.

Regards,
Moti

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

Re: [Users] Centos 6.5 and bonding: A slave interface is not properly configured

2014-01-24 Thread Moti Asayag


- Original Message -
 From: Federico Alberto Sayd fs...@uncu.edu.ar
 To: users@ovirt.org
 Sent: Thursday, January 23, 2014 3:57:53 PM
 Subject: Re: [Users] Centos 6.5 and bonding: A slave interface is not 
 properly configured
 
 On 23/01/14 07:02, Moti Asayag wrote:
 
  - Original Message -
  From: Federico Sayd fs...@uncu.edu.ar
  To: users@ovirt.org
  Sent: Wednesday, January 22, 2014 2:22:01 AM
  Subject: [Users] Centos 6.5 and bonding: A slave interface is not
  properly   configured
 
  Hello:
 
  I am having problems with bonding
 
  I have installed Centos 6.5 in order to use it as host. I configured eth0
  with the vlan of the management network (Vlan 70). Then I registered the
  host to the engine (3.3.2-1-el6) and the engine installed oVirt in the
  host
  without problem. Ovirtmgmt was created automatically and bridged with
  eth0.70.
 
  Now I need to bond a second network interface (eth1) with eth0. But when I
  try to bond the nics, I get the next error:
 
  Could you describe how you've created the bond ? via webadmin setup
  networks
  dialog or via api ?
 
 
 Via webadmin Setup Network (Web GUI)

Does the setup dialog presents the new configuration when you create the bond ?
Meaning, does it draw the following ?
eth0 --
   |--bond0 --- ovirtmgmt (vlan 70)
eth1 --

If it does, this is simply bug in the UI which should have better construct
the parameters to the setup networks.

Could you open a bug for it ?

You may use the setup networks api (via rest-client or using the sdk) to specify
the target configuration.

 ___
 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] Centos 6.5 and bonding: A slave interface is not properly configured

2014-01-24 Thread Moti Asayag


- Original Message -
 From: Federico Alberto Sayd fs...@uncu.edu.ar
 To: users@ovirt.org
 Sent: Friday, January 24, 2014 4:06:11 PM
 Subject: Re: [Users] Centos 6.5 and bonding: A slave interface is not 
 properly configured
 
 On 24/01/14 08:31, Moti Asayag wrote:
 
  - Original Message -
  From: Federico Alberto Sayd fs...@uncu.edu.ar
  To: users@ovirt.org
  Sent: Thursday, January 23, 2014 3:57:53 PM
  Subject: Re: [Users] Centos 6.5 and bonding: A slave interface is not
  properly configured
 
  On 23/01/14 07:02, Moti Asayag wrote:
  - Original Message -
  From: Federico Sayd fs...@uncu.edu.ar
  To: users@ovirt.org
  Sent: Wednesday, January 22, 2014 2:22:01 AM
  Subject: [Users] Centos 6.5 and bonding: A slave interface is not
  properly configured
 
  Hello:
 
  I am having problems with bonding
 
  I have installed Centos 6.5 in order to use it as host. I configured
  eth0
  with the vlan of the management network (Vlan 70). Then I registered the
  host to the engine (3.3.2-1-el6) and the engine installed oVirt in the
  host
  without problem. Ovirtmgmt was created automatically and bridged with
  eth0.70.
 
  Now I need to bond a second network interface (eth1) with eth0. But when
  I
  try to bond the nics, I get the next error:
 
  Could you describe how you've created the bond ? via webadmin setup
  networks
  dialog or via api ?
 
 
  Via webadmin Setup Network (Web GUI)
  Does the setup dialog presents the new configuration when you create the
  bond ?
  Meaning, does it draw the following ?
  eth0 --
  |--bond0 --- ovirtmgmt (vlan 70)
  eth1 --
 
  If it does, this is simply bug in the UI which should have better construct
  the parameters to the setup networks.
 
  Could you open a bug for it ?
 
  You may use the setup networks api (via rest-client or using the sdk) to
  specify
  the target configuration.
 
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 
 
 No, the bond is never displayed in the web UI, the error prevents the
 bond creation. I already solved the problem, only I think that would be
 fine if the UI error be more explicit and include info about to the
 interface or interfaces with problematic configurations.
 
 I don't know if supervdsm.log or vdsm.log make reference to the
 interfaces that have unacceptable configurations.


The error indicates that the parameters sent from the UI to that engine
weren't constructed properly. In this case the engine failed the action
and it never reached the host.

Lior, could you verify this scenario and see which fields left with
improper values on the UI side ?

_
 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] Centos 6.5 and bonding: A slave interface is not properly configured

2014-01-23 Thread Moti Asayag


- Original Message -
 From: Federico Sayd fs...@uncu.edu.ar
 To: users@ovirt.org
 Sent: Wednesday, January 22, 2014 2:22:01 AM
 Subject: [Users] Centos 6.5 and bonding: A slave interface is not properly   
 configured
 
 Hello:
 
 I am having problems with bonding
 
 I have installed Centos 6.5 in order to use it as host. I configured eth0
 with the vlan of the management network (Vlan 70). Then I registered the
 host to the engine (3.3.2-1-el6) and the engine installed oVirt in the host
 without problem. Ovirtmgmt was created automatically and bridged with
 eth0.70.
 
 Now I need to bond a second network interface (eth1) with eth0. But when I
 try to bond the nics, I get the next error:
 

Could you describe how you've created the bond ? via webadmin setup networks
dialog or via api ? 

 A slave interface is not properly configured. Please verify slaves do not
 contain any of the following properties: network name, boot protocol, IP
 address, netmask, gateway or vlan-ID notation (as part of interface's name
 or explicitly)
 
 I delete any unnecessary parameters from ifcfg-eth0 and ifcfg-eth1.
 
 This is my network config:
 
 ifcfg-eth0:
 DEVICE=eth0
 TYPE=Ethernet
 ONBOOT=yes
 
 ifcfg-eth1:
 DEVIC E=eth1
 TYPE=Ethernet
 ONBOOT=yes
 
 ifcfg-eth0.70:
 # Generated by VDSM version 4.13.2-1.el6
 DEVICE=eth0.70
 ONBOOT=yes
 VLAN=yes
 BRIDGE=ovirtmgmt
 NM_CONTROLLED=no
 STP=no
 
 ifcfg-ovirtmgmt:
 # Generated by VDSM version 4.13.2-1.el6
 DEVICE=ovirtmgmt
 ONBOOT=yes
 TYPE=Bridge
 DELAY=0
 IPADDR=192.168.1.101
 NETMASK=255.255.255.0
 BOOTPROTO=none
 DEFROUTE=yes
 NM_CONTROLLED=no
 STP=no
 
 No others ifcfg-* files.
 
 I don't see the parameters that oVirt doesn't like. Any clue, workaround, bug
 report?
 
 Thanks!
 
 Federico
 
 PD: Sorry for my basic english
 
 ___
 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] [SOLVED] Guest Agent Data under Network Interfaces empty

2014-01-23 Thread Moti Asayag


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Yedidyah Bar David d...@redhat.com, Joop jvdw...@xs4all.nl
 Cc: users users@ovirt.org, Moti Asayag masa...@redhat.com, Lior 
 Vernia lver...@redhat.com
 Sent: Thursday, January 23, 2014 6:45:11 PM
 Subject: Re: [Users] [SOLVED] Guest Agent Data under Network Interfaces 
 empty
 
 On 01/23/2014 04:20 PM, Yedidyah Bar David wrote:
  - Original Message -
  From: Yedidyah Bar David d...@redhat.com
  To: Joop jvdw...@xs4all.nl
  Cc: users users@ovirt.org
  Sent: Thursday, January 23, 2014 3:30:27 PM
  Subject: Re: [Users] Guest Agent Data under Network Interfaces empty
 
  - Original Message -
  From: Joop jvdw...@xs4all.nl
  Cc: users users@ovirt.org
  Sent: Thursday, January 23, 2014 3:25:15 PM
  Subject: Re: [Users] Guest Agent Data under Network Interfaces empty
 
  Yedidyah Bar David wrote:
  Hi all,
 
  I installed ovirt engine 3.4 beta with two VMs - one opensuse 13.1
  with ovirt-guest-agent from [1] and another fedora 19 with oga from
  fedora. Both of them seem to work well - I can see installed
  applications,
  logged in user, memory usage. But in both of them, under Network
  Interfaces,
  the Guest Agent Data tab on the right has just headers, with no data.
 
  'vdsClient -s 0 getAllVmStats' on the host does show such data correctly
  for both VMs.
 
  Am I missing anything? Is it a bug, or I should do something to get
  there
  data from the agent (through vdsm)?
 
  I'm guessing that you're missing ethtool and/or python-ethtool? (sorry
  can't find the right name right now)
 
  Both have python-ethtool, which is a dependency of the guest agent.
  And vdsm does report correctly - I am pretty certain it's a problem in the
  engine and not on the host/VMs.
 
  Thanks anyway,
  --
  Didi
 
 
  Found https://bugzilla.redhat.com/907781, and following comment 7 there,
  restarted the browser (logout/login was not enough) and now it's ok.
 
 why would that be an ok behavior?
 

The restart of the browser doesn't seem require. I guess all needed is switching
sub-tabs so the new data will be fetched from the engine and presented in UI.

I'm not sure if this specific split sub tab is being updated recurrently.
Lior, could you confirm ?

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


Re: [Users] vlan on mgmt network

2014-01-19 Thread Moti Asayag
There is an open bug in regards to configuring the management
network on top of a vlan:

https://bugzilla.redhat.com/show_bug.cgi?id=906359

The system stability might get worse due to the new feature
multi host network configuration which applies logical network
changes to the entire DC's hosts.

- Original Message -
 From: jplor...@gmail.com
 To: Peter Styk polf...@gmail.com
 Cc: William Kwan pota...@yahoo.com, users users@ovirt.org
 Sent: Sunday, January 19, 2014 3:31:31 AM
 Subject: Re: [Users] vlan on mgmt network
 
 
 
 Hi Peter,
 
 Try to check if ovirmgmt is defined in the vlan you desire (or without vlan).
 Maybe when you sync ovirt is trying to configure the network with options
 different from what you desire. I never got ovirt to finish properly to
 install a host, it fails to get ovirtmgmt working right so I always manually
 configure the vlan interfaces and the ovirtmgmt bridge in the hosts. You can
 get your host back if you manually correct the network, also you may take a
 look of what ovirt configured to try to find out if something is not set
 properly in the network definition.
 Regards
 El ene 18, 2014 7:56 PM, Peter Styk  polf...@gmail.com  escribió:
 
 
 
 
 
 On 18 January 2014 17:11, Itamar Heim  ih...@redhat.com  wrote:
 
 
 
 On 01/18/2014 04:52 PM, Peter Styk wrote:
 
 
 So I got ovirtmgmt VM ticked off. Had to remove it from all VM's then
 tried to add new Logical network to eth0 by drag  drop but refused
 since ovirtmgmt was out of sync. So I synced it. and that's how I
 lost access to my hosted remote system. End of story. So that's it I
 guess, automated install doesn't work (during switch network goes dead
 and doesn't come back remote access is lost) so I found manual way that
 works. But then I need to sync it to get my ovirtmgmt not to be a VM
 network. And even if its not to get another network on the interface i
 need to sync it.
 
 this sounds like a bug - can you provide clear reproduction steps?
 
 Reproduction steps are in network configuration alone. After installing
 Engine, i have to set up network to the config listed here:
 http://styk.tv/wp-content/uploads/2014/01/oVirtHosted1_almost_working.png .
 Unfortunately can't rely on engine-vdsm duo to help out.
 
 Anything above the host line on the diagram is physical setup and is the only
 configuration that doesn't disconnect me from the net. Only thing missing on
 the diagram is ifcfg-eth0 has also HWADDR attribute with MAC address of
 physical eth0 device.
 
 Once this survives service network restart I can proceed to VDSM install and
 then its straight forwardthat is until I'm trying to SYNC ovirtmgmt on
 host inside. I should mention after ovirt engine is working I destroy
 default cluster and create new local one.
 
 Obviously I cannot access logs since access to host is no longer but entire
 setup is scripted including provisioning so I can easily rebuild entire
 setup within 15 or so minutes by running a script. Anyone who would like to
 benefit from my findings can use this script and gain access to my host and
 learn with me on how to overcome this.
 
 Script will provision the host (fresh os install), log in, get the files:
 ifcfg-eth0, ifcfg-ovirtmgmt, ifcfg-ovirtmgmt-range0, ovrit_answers and
 route-ovirtmgmt, then install epel 6-8, install pgp, localinstall
 ovirt-el6.10-1. install bridge-utils, upgrade, set hostname, then after
 reboot ssh alive, set local data,images,iso folders, install ovrit-engine,
 set ipv4 forwarding and proxy_arp=1, restart-network, and run engine-setup
 with ovirt_answers including cli and stop iptables as engine and vdsm rules
 still prevent connection if on. that's it. working system in 15 mins
 
 still to do is engine-api calls to create local cluster, join engine with
 vdsm local and setup private network with pfSense instance as
 router/nat/dhcp for 10.0.0.0/24
 
 Peter
 
 
 ___
 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] VM MAC-Ranges and setting custom MACs via API

2014-01-05 Thread Moti Asayag


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Sven Kieske s.kie...@mittwald.de, users@ovirt.org, Moti Asayag 
 masa...@redhat.com, Mike Kolesnik
 mkole...@redhat.com, Lior Vernia lver...@redhat.com
 Sent: Sunday, January 5, 2014 11:19:38 PM
 Subject: Re: [Users] VM MAC-Ranges and setting custom MACs via API
 
 On 01/03/2014 04:34 PM, Sven Kieske wrote:
  Hi,
 
  I got some questions regarding the MAC-Range in the engine
  and how to utilize the set custom mac feature via API:
 
  We want to set a custom MAC per VM via REST-API (JSON)
  The RSDL tells me, that this should be possible in general.
 
  However, I have two questions:
 
  Must the specified custom MAC be within the range defined in
  engine?
 

Your assumption is correct, you can provide either a mac address
from the pool or other.

  I suppose not, as this range should just be a pool
  to take MACs from when engine itself acquires one for a vm.
  Also some users in IRC could use imported vms
  with custom macs, but using REST might yield different results?
 
  Does this work via JSON in ovirt-engine 3.3.2 ?
 
  I just learned that the JSON implementation is not
  feature complete until 3.4. so I wonder if I can use
  JSON instead of XML to achieve this.
 
  I can not wait for the 3.4. release anyway.
 
  We had so far no problem with using JSON beside a nasty
  Cloud-Init (documentation)bug (BZ 1045484)
  and we don't want to rewrite all
  our code to generate XML instead
  of JSON if we can avoid it.
 
 
 iiuc, with moving to support json, some property name changes will
 happen (juan can provide more details).
 as for the mac question - moti/mike/lior?
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Ovirt Network

2013-12-30 Thread Moti Asayag


- Original Message -
 From: Maurice James midnightst...@msn.com
 To: users@ovirt.org
 Sent: Tuesday, December 31, 2013 2:04:41 AM
 Subject: [Users] Ovirt Network
 
 
 
 Ok noob question here. I have 1 physical nic on all both of my hosts.
 Shouldn’t I be able to create multiple virtual networks?
 

You can do it if you first configure the management network 'ovirtmgmt'
as a non-vm network (before adding any host to the data-center).

Then you should be able to attach any tagged network to that nic.

If there are already hosts in the system, you should be able to update
the 'ovirtmgmt' network to non-vm network, but you'll have to iterate
over the hosts and via the 'setup networks' to sync that network definition
(make sure no vms are using the 'ovirtmgmt' before updating the network).

 ___
 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] disable EnableMACAntiSpoofingFilterRules per VM

2013-12-26 Thread Moti Asayag
Resending the message, since it seems like the previous one failed to reach
the @users.

 - Original Message -
  From: Kapetanakis Giannis bil...@edu.physics.uoc.gr
  To: users@oVirt.org users@ovirt.org
  Sent: Wednesday, December 25, 2013 1:19:23 PM
  Subject: [Users] disable EnableMACAntiSpoofingFilterRules per VM
  
  Hi,
  
  Trying to move a VM with CARP/VRRP on oVirt 3.3.2 I got bitten by this.
  http://www.ovirt.org/Features/Design/Network/NetworkFiltering
  http://lists.ovirt.org/pipermail/users/2013-October/017217.html
  
  Is there a way to disable mac filtering only for a specific VM
  and not for the entire cluster?
 
 The EnableMACAntiSpoofingFilterRules config value is defined on cluster
 level,
 therefore this isn't a way from engine side to disable it for a specific
 vm/nic.
 
 Perhaps using the custom properties and a vdsm hook which omits the filter
 rule
 from the vm configuration it will be achievable.
 
 Adding Dan to see if it is feasible or if there is a better alternative.
 
  
  I've tried giving MAC addresses in the form of
  00-00-5E-00-01-XX
  but it didn't work.
  
  Best regards,
  
  G
  ___
  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] simple networking? [SOLVED] mostly

2013-12-16 Thread Moti Asayag


- Original Message -
 From: Juan Pablo Lorier jplor...@gmail.com
 To: users@ovirt.org
 Sent: Monday, December 16, 2013 7:54:34 PM
 Subject: Re: [Users] simple networking? [SOLVED] mostly
 
 Itamar,
 
 I have the same problem and already have mentioned that in previous
 posts. In my case, I have vlan 128 tagged assigned for ovirtmgmt so I
 set the host ip manually on top of a vlan interface and the, after ovirt
 does install the node, it fails to finish as it can't manage properly to
 create the bridge and pass the ip to the brand new bridge. The ovirtmgmt
 interface I create in engine is a bond (and originally I configure just
 a single interface with the ip to grant engine access), just in case
 this changes the scenario.
 Regards,
 

Just to make sure i get it right:

You're attempting to install a host which is configured:
eth0 --- eth0.128 (which has a static ip configured)

When you install the host, you provide as address either the ip of eth0.128
as you configured manually or a fqdn which is resolved to the same ip.

'ovirtmgmt' logical network definition is a vm network tagged with 128.

Can you provide the from the output of 'getCapabilities' from the vdsm.log
immediately after vdsm starts during the installation the value of 
'lastClientIface' ?
Or even better - the entire output of 'getCapabilities' (which will indicate 
that
vdsm reports properly the required information about the nic it should 
configure).

Could you confirm the above and provide the missing pieces ?

 ___
 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


  1   2   >