Re: [ovirt-users] adding new node through WAN - fatal: Unable to negotiate a key exchange method [preauth]

2017-01-06 Thread Grzegorz Szypa
Hi.

I made some changes and now there are fresh installations, and durring add
new node I got the same issue:

2017-01-07 07:44:08,847 ERROR
[org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (default task-49)
[c5fb7a0] Failed to establish session with host 'node1': SSH session closed
during connection 'root@10.30.30.51'
2017-01-07 07:44:08,847 WARN
 [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (default task-49)
[c5fb7a0] Validation of action 'AddVds' failed for user
admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__HOST,$server
10.30.30
.51,VDS_CANNOT_CONNECT_TO_SERVER

on both servers are this fresh installed system:

CentOS Linux release 7.3.1611 (Core)

Here are some informations about you asked last time:

[root@ovirt ovirt-engine]# rpm -qa | grep ovirt
ovirt-imageio-common-0.4.0-1.el7.noarch
python-ovirt-engine-sdk4-4.0.2-1.el7.centos.x86_64
ovirt-imageio-proxy-setup-0.4.0-0.201608310602.gita9b573b.el7.centos.noarch
ovirt-engine-websocket-proxy-4.0.5.5-1.el7.centos.noarch
ovirt-engine-dashboard-1.0.5-1.el7.centos.noarch
ovirt-engine-setup-plugin-vmconsole-proxy-helper-4.0.5.5-1.el7.centos.noarch
ovirt-engine-backend-4.0.5.5-1.el7.centos.noarch
ovirt-engine-extension-aaa-jdbc-1.1.1-1.el7.noarch
ovirt-host-deploy-1.5.3-1.el7.centos.noarch
ovirt-engine-wildfly-overlay-10.0.0-1.el7.noarch
ovirt-engine-setup-base-4.0.5.5-1.el7.centos.noarch
ovirt-vmconsole-proxy-1.0.4-1.el7.centos.noarch
ovirt-host-deploy-java-1.5.3-1.el7.centos.noarch
ovirt-release40-4.0.5-2.noarch
ovirt-engine-setup-plugin-ovirt-engine-common-4.0.5.5-1.el7.centos.noarch
ovirt-engine-dwh-4.0.5-1.el7.centos.noarch
ovirt-imageio-proxy-0.4.0-0.201608310602.gita9b573b.el7.centos.noarch
ovirt-engine-setup-plugin-websocket-proxy-4.0.5.5-1.el7.centos.noarch
ovirt-iso-uploader-4.0.2-1.el7.centos.noarch
ovirt-engine-dbscripts-4.0.5.5-1.el7.centos.noarch
ovirt-engine-webadmin-portal-4.0.5.5-1.el7.centos.noarch
ovirt-engine-setup-4.0.5.5-1.el7.centos.noarch
ovirt-engine-vmconsole-proxy-helper-4.0.5.5-1.el7.centos.noarch
ovirt-engine-userportal-4.0.5.5-1.el7.centos.noarch
ovirt-engine-restapi-4.0.5.5-1.el7.centos.noarch
ovirt-setup-lib-1.0.2-1.el7.centos.noarch
ovirt-engine-sdk-python-3.6.9.1-1.el7.centos.noarch
ovirt-engine-extensions-api-impl-4.0.5.5-1.el7.centos.noarch
ovirt-engine-wildfly-10.1.0-1.el7.x86_64
ovirt-engine-lib-4.0.5.5-1.el7.centos.noarch
ovirt-vmconsole-1.0.4-1.el7.centos.noarch
ovirt-engine-cli-3.6.8.1-1.el7.centos.noarch
ovirt-engine-dwh-setup-4.0.5-1.el7.centos.noarch
ovirt-engine-tools-backup-4.0.5.5-1.el7.centos.noarch
ovirt-image-uploader-4.0.1-1.el7.centos.noarch
ovirt-engine-tools-4.0.5.5-1.el7.centos.noarch
ovirt-engine-setup-plugin-ovirt-engine-4.0.5.5-1.el7.centos.noarch
ovirt-engine-4.0.5.5-1.el7.centos.noarch


[root@ovirt ovirt-engine]# tail -33f server.log
2017-01-07 07:44:08,843 INFO
 [org.apache.sshd.client.session.ClientSessionImpl]
(sshd-SshClient[4b16ff17]-nio2-thread-2) Server version string:
SSH-2.0-OpenSSH_6.6.1
2017-01-07 07:44:08,844 WARN
 [org.apache.sshd.client.session.ClientSessionImpl]
(sshd-SshClient[4b16ff17]-nio2-thread-2) Exception caught:
java.lang.IllegalStateException: Unable to negotiate key exchange for kex
algorithms (client:
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1
/ server:
diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1)
at
org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1109)
at
org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:357)
at
org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:295)
at
org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:256)
at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:731)
at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:277)
at
org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:187)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:173)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
at java.security.AccessController.doPrivileged(Native Method)
[rt.jar:1.8.0_111]
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
[rt.jar:1.8.0_111]
at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
[rt.jar:1.8.0_111]
at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
[rt.jar:1.8.0_111]
at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
[rt.jar:1.8.0_111]

[ovirt-users] Hosted Engine Update problems

2017-01-06 Thread Gary Pedretty
I just tried running the most recent update that came out for Ovirt Hosted 
Engine setup.  This is a glusterized setup with 4 hosts setup as per the 
Documentation.   Each host had the icon showing upgrades available so I started 
clicking upgrade for each host doing them one at time. 3 of them went into 
maintenance fine, migrated their VMs and then activated when done.  The last 
one to do was the one actually running the hosted-engine VM.  This host also 
had one other VM.  It migrated the other VM just fine, but stalled trying to 
migrate the hosted-engine.  Eventually the web interface became non-responsive 
and I moved to command line.  I have tried everything to get the engine to 
start up.  I have tried putting all the hosts in maintenance so that I could 
selectively tell it to start the hosted-engine VM on one host specifically, but 
each fails with the “Failed Liveliness error.  I have tried restarting the ha 
agents, re-initializing the lockspace all with no success.  All my VMs are 
still running fine, I just cannot get the hosted-engine to run.   I can if 
necessary shutdown all the VMs and restart all the hosts, but was trying to 
avoid that unless I have to.

Ideas.

Gary



Gary Pedrettyg...@ravnalaska.net 

Systems Manager  www.flyravn.com 

Ravn Alaska   /\907-450-7251
5245 Airport Industrial Road /  \/\ 907-450-7238 fax
Fairbanks, Alaska  99709/\  /\ \ Second greatest commandment
Serving All of Alaska  /  \/  /\  \ \/\   “Love your neighbor as
Really loving the record green up date! Summmer!!   yourself” Matt 22:39













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


Re: [ovirt-users] [ovirt-devel] Lowering the bar for wiki contribution?

2017-01-06 Thread Jakub Niedermertl
On Wed, Jan 4, 2017 at 11:41 AM, Roy Golan  wrote:
>
>
> On 4 January 2017 at 12:17, Maor Lipchuk  wrote:
>>
>>
>>
>> On Wed, Jan 4, 2017 at 11:38 AM, Daniel Erez  wrote:
>>>
>>>
>>>
>>> On Wed, Jan 4, 2017 at 9:57 AM, Roy Golan  wrote:

 I'm getting the feeling I'm not alone in this, authoring and publishing
 a wiki page isn't as used to be for long time.

 I want to suggest a bit lighter workflow:

 1.  Everyone can merge their page - (it's a wiki)
   Same as with (public and open) code, no one has the motivation to
 publish a badly written
   wiki page under their name. True, it can have an impact, but not as
 with broken code

>>>
>>> +1.
>>> Moreover, I think we shouldn't block any merging. Instead, wiki
>>> maintainers could act afterwards and revert when needed (Wikipedia style).
>>> Another issue is that (sadly) unlike mediawiki, we need to wait for wiki
>>> publish after a change. So I'd suggest to build and publish the wiki at
>>> least once a day. Any way, I think we should make the workflow much more
>>> intuitive and pleasant like the previous wiki - i.e. much less restrictive
>>> than manipulating a code base.
>>>
>>>

 2. Use Page-Status marker
  The author first merges the draft. Its now out there and should be
 updated as time goes and its
  status is DRAFT. Maintainers will come later and after review would
 change the status to
  PUBLISH. That could be a header in on the page:
  ---
  page status: DRAFT/PUBLISH
  ---

  Simple I think, and should work.

>>
>>  +1
>> The effort of maintaining the wiki today compare to how it used to be
>> before is much more cumbersome and problematic.
>> I think we can learn a lot from wikipedia workflow,
>> It is a much more inviting process where anyone can change the content
>> easily.
>> I'm not saying we should let any anonymous user change the wiki but even
>> if we make it easier in house we can achieve much more informative reliable
>> and updated wiki.
>>
>
>
>
> I really think Github Pages is a perfect fit and an alternative to my first
> suggestion. see
> https://github.com/oVirt/ovirt-site/wiki/Why-aren't-we-using-this%3F

+1
Github wiki would allow us instant publishing, review after after
publishing, it works purely in browser (no need for running local ruby
server) and it's a service that doesn't require any maintenance form
our side.





 ___
 Devel mailing list
 de...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
>>>
>>>
>>>
>>> ___
>>> 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


[ovirt-users] Disk move failures

2017-01-06 Thread Michael Watters
I am receiving several LVM errors when attempting to move a disk from
one storage domain to another. 

> VDSM ovirt-node-production2 command failed: Logical Volume extend
failed

vdsm.log shows a failure message as follows.

> d6d4529e-db0d-49ac-a0c3-ee9d2e8cc9bb::ERROR::2017-01-06
15:05:54,926::image::405::Storage.Image::(_createTargetImage)
Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/image.py", line 394, in
_createTargetImage
dstVol.extend((volParams['apparentsize'] + 511) / 512)
  File "/usr/share/vdsm/storage/blockVolume.py", line 310, in extend
lvm.extendLV(self.sdUUID, self.volUUID, sizemb)
  File "/usr/share/vdsm/storage/lvm.py", line 1179, in extendLV
_resizeLV("lvextend", vgName, lvName, size)
  File "/usr/share/vdsm/storage/lvm.py", line 1175, in _resizeLV
raise se.LogicalVolumeExtendError(vgName, lvName, "%sM" % (size, ))
LogicalVolumeExtendError: Logical Volume extend failed:
'vgname=32f7c737-c1ee-4d2e-82a7-1b5e6efe0cf8 lvname=7ec88b4b-e893-47dc-
895f-5f8e584ed2cf newsize=1024M'

Does anybody know what would cause this?  I am able to create volumes
and extend them from the command line without any issues.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Dashboard freezes, locks up cannot perform any tasks

2017-01-06 Thread Alexander Wels
On Friday, January 6, 2017 7:38:54 PM EST Bill Bill wrote:
> After having an issue with a storage domain, the dashboard is now unusable.
> I have about 15 VM’s that are paused due to the storage issue that
> happened. The has since been resolved and all storage is active however, I
> can’t start the VM’s because the dashboard is insanely slow and just locks
> up. I’ve restarted the ovirt-engine multiple times with the same results.

Define insanely slow, is it putting up the spinner for loading? If so you can 
switch tabs while its doing its thing.
 
> Is there some troubleshooting to perform or is this a known issue, something
> that will be resolved?
 
Its not a known issue, but if you need to get at the VMs right now and the 
dashboard is in your way, you can always disable the UI plugin that adds it. 
But I suspect there is some other issue that is causing the problem.

In /share/ovirt-engine/ui-plugins there should be a file called 
dashboard.json, rename it to something that doesn't end in json and reload the 
webadmin, that should disable the dashboard.

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


Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2017-01-06 Thread Sverker Abrahamsson
I created a new VM in the ui and assigned it to host h1. In 
/var/log/ovirt-provider-ovn.log I get the following:


2017-01-06 20:54:11,940   Request: GET : /v2.0/ports
2017-01-06 20:54:11,940   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:54:12,157   Connected (number of retries: 2)
2017-01-06 20:54:12,158   Response code: 200
2017-01-06 20:54:12,158   Response body: {"ports": [{"name": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:51", "id": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "device_id": 
"40cd7328-d575-4c3d-b656-9ef9bacc0078"}, {"name": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:52", "id": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "device_id": 
"4baefa8c-3822-4de0-9cd0-1d025bab7844"}]}
2017-01-06 20:54:12,160   Request: SHOW : 
/v2.0/networks/e53554cf-e553-40a1-8d22-9c8d95ec0601
2017-01-06 20:54:12,160   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:54:12,377   Connected (number of retries: 2)
2017-01-06 20:54:12,378   Response code: 200
2017-01-06 20:54:12,378   Response body: {"network": {"id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "name": "ovirtbridge"}}

2017-01-06 20:54:12,380   Request: POST : /v2.0/ports
2017-01-06 20:54:12,380   Request body:
{
  "port" : {
"name" : "nic1",
"binding:host_id" : "h1.limetransit.com",
"admin_state_up" : true,
"device_id" : "e8553a88-05f0-401d-8b9b-5fff77f7bbbe",
"device_owner" : "oVirt",
"mac_address" : "00:1a:4a:16:01:54",
"network_id" : "e53554cf-e553-40a1-8d22-9c8d95ec0601"
  }
}
2017-01-06 20:54:12,380   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:54:12,610   Connected (number of retries: 2)
2017-01-06 20:54:12,614   Response code: 200
2017-01-06 20:54:12,614   Response body: {"port": {"name": 
"912cba79-982e-4a87-868e-241fedccb59a", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:54", "id": 
"912cba79-982e-4a87-868e-241fedccb59a", "device_id": 
"e8553a88-05f0-401d-8b9b-5fff77f7bbbe"}}


h1:/var/log/messages
Jan  6 20:54:12 h1 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl 
--timeout=5 -- --if-exists del-port vnet1 -- add-port br-int vnet1 -- 
set Interface vnet1 "external-ids:attached-mac=\"00:1a:4a:16:01:54\"" -- 
set Interface vnet1 
"external-ids:iface-id=\"20388407-0f76-41d8-97aa-8e2b5978f908\"" -- set 
Interface vnet1 
"external-ids:vm-id=\"6dd5291e-6556-4d29-8b4e-ea896e627645\"" -- set 
Interface vnet1 external-ids:iface-status=active


[root@h2 ~]# ovn-nbctl show
switch e53554cf-e553-40a1-8d22-9c8d95ec0601 (ovirtbridge)
port 4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873
addresses: ["00:1a:4a:16:01:51"]
port 912cba79-982e-4a87-868e-241fedccb59a
addresses: ["00:1a:4a:16:01:54"]
port 92f6d3c8-68b3-4986-9c09-60bee04644b5
addresses: ["00:1a:4a:16:01:52"]
port ovirtbridge-port2
addresses: ["unknown"]
port ovirtbridge-port1
addresses: ["unknown"]
[root@h2 ~]# ovn-sbctl show
Chassis "6e4dd29f-7607-48d7-8e5a-eef4c6aeefb5"
hostname: "h2.limetransit.com"
Encap geneve
ip: "148.251.126.50"
options: {csum="true"}
Port_Binding "4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873"
Port_Binding "ovirtbridge-port1"
Chassis "4f10fb04-8fb2-48d7-8a3f-ea6444c02cf9"
hostname: "h1.limetransit.com"
Encap geneve
ip: "144.76.84.73"
options: {csum="true"}
Port_Binding "ovirtbridge-port2"
Port_Binding "92f6d3c8-68b3-4986-9c09-60bee04644b5"

I.e. same issue
/Sverker

Den 2017-01-06 kl. 20:49, skrev Sverker Abrahamsson:


The port is created from Ovirt UI, the ovs-vsctl command below is 
executed when VM is started. In /var/log/ovirt-provider-ovn.log on h2 
I get the following:


2017-01-06 20:19:25,452   Request: GET : /v2.0/ports
2017-01-06 20:19:25,452   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:19:25,670   Connected (number of retries: 2)
2017-01-06 20:19:25,670   Response code: 200
2017-01-06 20:19:25,670   Response body: {"ports": [{"name": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:51", "id": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "device_id": 
"40cd7328-d575-4c3d-b656-9ef9bacc0078"}, {"name": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:52", "id": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "device_id": 
"4baefa8c-3822-4de0-9cd0-1d025bab7844"}]}
2017-01-06 20:19:25,673   Request: PUT : 
/v2.0/ports/92f6d3c8-68b3-4986-9c09-60bee04644b5

2017-01-06 20:19:25,673   Request body:
{
  "port" : {

Re: [ovirt-users] Issue with OVN/OVS and mandatory ovirtmgmt network

2017-01-06 Thread Sverker Abrahamsson
The port is created from Ovirt UI, the ovs-vsctl command below is 
executed when VM is started. In /var/log/ovirt-provider-ovn.log on h2 I 
get the following:


2017-01-06 20:19:25,452   Request: GET : /v2.0/ports
2017-01-06 20:19:25,452   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:19:25,670   Connected (number of retries: 2)
2017-01-06 20:19:25,670   Response code: 200
2017-01-06 20:19:25,670   Response body: {"ports": [{"name": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:51", "id": 
"4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873", "device_id": 
"40cd7328-d575-4c3d-b656-9ef9bacc0078"}, {"name": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:52", "id": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "device_id": 
"4baefa8c-3822-4de0-9cd0-1d025bab7844"}]}
2017-01-06 20:19:25,673   Request: PUT : 
/v2.0/ports/92f6d3c8-68b3-4986-9c09-60bee04644b5

2017-01-06 20:19:25,673   Request body:
{
  "port" : {
"binding:host_id" : "h1.limetransit.com",
"security_groups" : null
  }
}
2017-01-06 20:19:25,673   Connecting to remote ovn database: 
tcp:127.0.0.1:6641

2017-01-06 20:19:25,890   Connected (number of retries: 2)
2017-01-06 20:19:25,891   Response code: 200
2017-01-06 20:19:25,891   Response body: {"port": {"name": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "network_id": 
"e53554cf-e553-40a1-8d22-9c8d95ec0601", "device_owner": "oVirt", 
"mac_address": "00:1a:4a:16:01:52", "id": 
"92f6d3c8-68b3-4986-9c09-60bee04644b5", "device_id": 
"4baefa8c-3822-4de0-9cd0-1d025bab7844"}}


In /var/log/messages on h1 I get the following:

Jan  6 20:18:56 h1 dbus-daemon: dbus[1339]: [system] Successfully 
activated service 'org.freedesktop.problems'
Jan  6 20:19:26 h1 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl 
--timeout=5 -- --if-exists del-port vnet0 -- add-port br-int vnet0 -- 
set Interface vnet0 "external-ids:attached-mac=\"00:1a:4a:16:01:52\"" -- 
set Interface vnet0 
"external-ids:iface-id=\"72dafda5-03c2-4bb6-bcb6-241fa5c0a1f3\"" -- set 
Interface vnet0 
"external-ids:vm-id=\"4d0c134a-11a0-40f4-b2fb-c13c17c7251c\"" -- set 
Interface vnet0 external-ids:iface-status=active

Jan  6 20:19:26 h1 kernel: device vnet0 entered promiscuous mode
Jan  6 20:19:26 h1 avahi-daemon[1391]: Registering new address record 
for fe80::fc1a:4aff:fe16:152 on vnet0.*.

Jan  6 20:19:26 h1 systemd-machined: New machine qemu-4-CentOS72.
Jan  6 20:19:26 h1 systemd: Started Virtual Machine qemu-4-CentOS72.
Jan  6 20:19:26 h1 systemd: Starting Virtual Machine qemu-4-CentOS72.

[root@h2 ~]# ovn-nbctl show
switch e53554cf-e553-40a1-8d22-9c8d95ec0601 (ovirtbridge)
port 4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873
addresses: ["00:1a:4a:16:01:51"]
port 92f6d3c8-68b3-4986-9c09-60bee04644b5
addresses: ["00:1a:4a:16:01:52"]
port ovirtbridge-port2
addresses: ["unknown"]
port ovirtbridge-port1
addresses: ["unknown"]
[root@h2 ~]# ovn-sbctl show
Chassis "6e4dd29f-7607-48d7-8e5a-eef4c6aeefb5"
hostname: "h2.limetransit.com"
Encap geneve
ip: "148.251.126.50"
options: {csum="true"}
Port_Binding "4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873"
Port_Binding "ovirtbridge-port1"
Chassis "4f10fb04-8fb2-48d7-8a3f-ea6444c02cf9"
hostname: "h1.limetransit.com"
Encap geneve
ip: "144.76.84.73"
options: {csum="true"}
Port_Binding "ovirtbridge-port2"

I.e. the port is set up with the wrong ID and not attached to OVN.

If I correct external-ids:iface-id like this:
[root@h1 ~]# ovs-vsctl set Interface vnet0 
"external-ids:iface-id=\"92f6d3c8-68b3-4986-9c09-60bee04644b5\""


then sb is correct:
[root@h2 ~]# ovn-sbctl show
Chassis "6e4dd29f-7607-48d7-8e5a-eef4c6aeefb5"
hostname: "h2.limetransit.com"
Encap geneve
ip: "148.251.126.50"
options: {csum="true"}
Port_Binding "4981ee5f-6e15-4bd5-a1cf-7ead9bdd5873"
Port_Binding "ovirtbridge-port1"
Chassis "4f10fb04-8fb2-48d7-8a3f-ea6444c02cf9"
hostname: "h1.limetransit.com"
Encap geneve
ip: "144.76.84.73"
options: {csum="true"}
Port_Binding "ovirtbridge-port2"
Port_Binding "92f6d3c8-68b3-4986-9c09-60bee04644b5"

I don't know from where the ID 72dafda5-03c2-4bb6-bcb6-241fa5c0a1f3 
comes from, doesn't show in any log other than /var/log/messages.


If I do the same exercise on the same host as engine is running on then 
the port for the VM gets the right id and is working from beginning.

/Sverker

Den 2017-01-03 kl. 10:23, skrev Marcin Mirecki:

How did you create this port?
 From the oVirt engine UI?
The OVN provider creates the port when you add the port in the engine UI,
it is then plugged into the ovs bridge by the VIF driver.
Please attach /var/log/ovirt-provider-ovn.log



- Original Message -

From: 

[ovirt-users] Dashboard freezes, locks up cannot perform any tasks

2017-01-06 Thread Bill Bill
After having an issue with a storage domain, the dashboard is now unusable. I 
have about 15 VM’s that are paused due to the storage issue that happened. The 
has since been resolved and all storage is active however, I can’t start the 
VM’s because the dashboard is insanely slow and just locks up. I’ve restarted 
the ovirt-engine multiple times with the same results.

Is there some troubleshooting to perform or is this a known issue, something 
that will be resolved?

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


Re: [ovirt-users] oVirt Engine 4.0.5 and CentOS 7.3 Instability

2017-01-06 Thread Pavel Gashev
Rogério,

This bug is fixed in vdsm-jsonrpc-java-1.2.9.
Do you have a really non-responsive host?

From: Rogério Ceni Coelho 
Date: Friday 6 January 2017 at 21:35
To: Pavel Gashev , users 
Subject: Re: [ovirt-users] oVirt Engine 4.0.5 and CentOS 7.3 Instability

I found https://bugzilla.redhat.com/show_bug.cgi?id=1393714 which seem to be 
the same problem that occour with me ...


Em sex, 6 de jan de 2017 às 16:28, Rogério Ceni Coelho 
> escreveu:
Pavel,

Take a look ...

[root@prd-rbs-ovirt01-poa ~]# grep -i error /var/log/ovirt-engine/engine.log | 
grep -v org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand | tail -50
2017-01-06 16:20:06,897 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] 
(DefaultQuartzScheduler6) [a6fc972] Command 'GetAllVmStatsVDSCommand(HostName = 
prd-rbs-ovirt-kvm10-poa.rbs.com.br, 
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true', 
hostId='8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a', 
vds='Host[prd-rbs-ovirt-kvm10-poa.rbs.com.br,8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a]'})'
 execution failed: VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:20:06,899 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] 
(DefaultQuartzScheduler10) [19b85a77] Command 'GetAllVmStatsVDSCommand(HostName 
= 
prd-rbs-ovirt-kvm17-poa.rbs.com.br, 
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true', 
hostId='795b917b-ea5b-499d-80c5-aa3aad4f2537', 
vds='Host[prd-rbs-ovirt-kvm17-poa.rbs.com.br,795b917b-ea5b-499d-80c5-aa3aad4f2537]'})'
 execution failed: VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:20:06,901 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] 
(DefaultQuartzScheduler8) [1bccfc8a] Command 'GetAllVmStatsVDSCommand(HostName 
= 
prd-rbs-ovirt-kvm19-poa.rbs.com.br, 
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true', 
hostId='887b6e35-1fd1-4cd6-9e78-05bcab12a417', 
vds='Host[prd-rbs-ovirt-kvm19-poa.rbs.com.br,887b6e35-1fd1-4cd6-9e78-05bcab12a417]'})'
 execution failed: VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:23:26,020 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand] 
(DefaultQuartzScheduler1) [7771902b] Command 'GetAllVmStatsVDSCommand(HostName 
= 
prd-rbs-ovirt-kvm06-poa.rbs.com.br, 
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true', 
hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44', 
vds='Host[prd-rbs-ovirt-kvm06-poa.rbs.com.br,23b750ed-4ba6-4782-a9bd-c018c0f36e44]'})'
 execution failed: VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:23:26,043 ERROR [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient] 
(ResponseWorker) [] Not able to update response for 
"e5f7a478-841d-413c-baa1-d63632be7748"
2017-01-06 16:24:32,480 ERROR [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient] 
(ResponseWorker) [] Not able to update response for 
"75bf7e9a-fb5f-4253-bdf6-ff0fcbf8c876"
2017-01-06 16:24:32,485 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler6) [35cc958c] Correlation ID: null, Call Stack: null, 
Custom Event ID: -1, Message: VDSM 
prd-rbs-ovirt-kvm06-poa.rbs.com.br 
command failed: Heartbeat exceeded
2017-01-06 16:24:32,485 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusVDSCommand] 
(DefaultQuartzScheduler6) [35cc958c] Command 'SpmStatusVDSCommand(HostName = 
prd-rbs-ovirt-kvm06-poa.rbs.com.br, 
SpmStatusVDSCommandParameters:{runAsync='true', 
hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44', 
storagePoolId='0001-0001-0001-0001-0198'})' execution failed: 
VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:24:32,524 WARN  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler6) [152cde35] Correlation ID: 152cde35, Call Stack: 
null, Custom Event ID: -1, Message: Invalid status on Data Center RBS. Setting 
Data Center status to Non Responsive (On host 
prd-rbs-ovirt-kvm06-poa.rbs.com.br, 
Error: Network error during communication with the Host.).
2017-01-06 16:25:37,493 ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] 
(SSL Stomp Reactor) [] Internal server error: null
2017-01-06 16:25:37,494 ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] 
(SSL Stomp Reactor) [] Internal server error: null
2017-01-06 16:25:37,494 ERROR 

Re: [ovirt-users] oVirt Engine 4.0.5 and CentOS 7.3 Instability

2017-01-06 Thread Rogério Ceni Coelho
I found https://bugzilla.redhat.com/show_bug.cgi?id=1393714 which seem to
be the same problem that occour with me ...


Em sex, 6 de jan de 2017 às 16:28, Rogério Ceni Coelho <
rogeriocenicoe...@gmail.com> escreveu:

> Pavel,
>
> Take a look ...
>
> [root@prd-rbs-ovirt01-poa ~]# grep -i error
> /var/log/ovirt-engine/engine.log | grep -v
> org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand | tail -50
> 2017-01-06 16:20:06,897 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
> (DefaultQuartzScheduler6) [a6fc972] Command
> 'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm10-poa.rbs.com.br,
> VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
> hostId='8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a', vds='Host[
> prd-rbs-ovirt-kvm10-poa.rbs.com.br,8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a]'})'
> execution failed: VDSGenericException: VDSNetworkException: Heartbeat
> exceeded
> 2017-01-06 16:20:06,899 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
> (DefaultQuartzScheduler10) [19b85a77] Command
> 'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm17-poa.rbs.com.br,
> VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
> hostId='795b917b-ea5b-499d-80c5-aa3aad4f2537', vds='Host[
> prd-rbs-ovirt-kvm17-poa.rbs.com.br,795b917b-ea5b-499d-80c5-aa3aad4f2537]'})'
> execution failed: VDSGenericException: VDSNetworkException: Heartbeat
> exceeded
> 2017-01-06 16:20:06,901 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
> (DefaultQuartzScheduler8) [1bccfc8a] Command
> 'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm19-poa.rbs.com.br,
> VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
> hostId='887b6e35-1fd1-4cd6-9e78-05bcab12a417', vds='Host[
> prd-rbs-ovirt-kvm19-poa.rbs.com.br,887b6e35-1fd1-4cd6-9e78-05bcab12a417]'})'
> execution failed: VDSGenericException: VDSNetworkException: Heartbeat
> exceeded
> 2017-01-06 16:23:26,020 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
> (DefaultQuartzScheduler1) [7771902b] Command
> 'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm06-poa.rbs.com.br,
> VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
> hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44', vds='Host[
> prd-rbs-ovirt-kvm06-poa.rbs.com.br,23b750ed-4ba6-4782-a9bd-c018c0f36e44]'})'
> execution failed: VDSGenericException: VDSNetworkException: Heartbeat
> exceeded
> 2017-01-06 16:23:26,043 ERROR
> [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient] (ResponseWorker) [] Not able
> to update response for "e5f7a478-841d-413c-baa1-d63632be7748"
> 2017-01-06 16:24:32,480 ERROR
> [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient] (ResponseWorker) [] Not able
> to update response for "75bf7e9a-fb5f-4253-bdf6-ff0fcbf8c876"
> 2017-01-06 16:24:32,485 ERROR
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (DefaultQuartzScheduler6) [35cc958c] Correlation ID: null, Call Stack:
> null, Custom Event ID: -1, Message: VDSM
> prd-rbs-ovirt-kvm06-poa.rbs.com.br command failed: Heartbeat exceeded
> 2017-01-06 16:24:32,485 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusVDSCommand]
> (DefaultQuartzScheduler6) [35cc958c] Command 'SpmStatusVDSCommand(HostName
> = prd-rbs-ovirt-kvm06-poa.rbs.com.br,
> SpmStatusVDSCommandParameters:{runAsync='true',
> hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44',
> storagePoolId='0001-0001-0001-0001-0198'})' execution failed:
> VDSGenericException: VDSNetworkException: Heartbeat exceeded
> 2017-01-06 16:24:32,524 WARN
>  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (DefaultQuartzScheduler6) [152cde35] Correlation ID: 152cde35, Call Stack:
> null, Custom Event ID: -1, Message: Invalid status on Data Center RBS.
> Setting Data Center status to Non Responsive (On host
> prd-rbs-ovirt-kvm06-poa.rbs.com.br, Error: Network error during
> communication with the Host.).
> 2017-01-06 16:25:37,493 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,494 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,494 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,494 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,494 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,494 ERROR
> [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
> Internal server error: null
> 2017-01-06 16:25:37,495 ERROR
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
> (DefaultQuartzScheduler4) [44e1d6ed] Command
> 'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm03-poa.rbs.com.br,
> 

Re: [ovirt-users] oVirt Engine 4.0.5 and CentOS 7.3 Instability

2017-01-06 Thread Rogério Ceni Coelho
Pavel,

Take a look ...

[root@prd-rbs-ovirt01-poa ~]# grep -i error
/var/log/ovirt-engine/engine.log | grep -v
org.ovirt.engine.core.vdsbroker.HostDevListByCapsVDSCommand | tail -50
2017-01-06 16:20:06,897 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler6) [a6fc972] Command
'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm10-poa.rbs.com.br,
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
hostId='8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a', vds='Host[
prd-rbs-ovirt-kvm10-poa.rbs.com.br,8b4bc7dc-af8c-4415-a2ef-bccc11ddf23a]'})'
execution failed: VDSGenericException: VDSNetworkException: Heartbeat
exceeded
2017-01-06 16:20:06,899 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler10) [19b85a77] Command
'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm17-poa.rbs.com.br,
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
hostId='795b917b-ea5b-499d-80c5-aa3aad4f2537', vds='Host[
prd-rbs-ovirt-kvm17-poa.rbs.com.br,795b917b-ea5b-499d-80c5-aa3aad4f2537]'})'
execution failed: VDSGenericException: VDSNetworkException: Heartbeat
exceeded
2017-01-06 16:20:06,901 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler8) [1bccfc8a] Command
'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm19-poa.rbs.com.br,
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
hostId='887b6e35-1fd1-4cd6-9e78-05bcab12a417', vds='Host[
prd-rbs-ovirt-kvm19-poa.rbs.com.br,887b6e35-1fd1-4cd6-9e78-05bcab12a417]'})'
execution failed: VDSGenericException: VDSNetworkException: Heartbeat
exceeded
2017-01-06 16:23:26,020 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler1) [7771902b] Command
'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm06-poa.rbs.com.br,
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44', vds='Host[
prd-rbs-ovirt-kvm06-poa.rbs.com.br,23b750ed-4ba6-4782-a9bd-c018c0f36e44]'})'
execution failed: VDSGenericException: VDSNetworkException: Heartbeat
exceeded
2017-01-06 16:23:26,043 ERROR [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient]
(ResponseWorker) [] Not able to update response for
"e5f7a478-841d-413c-baa1-d63632be7748"
2017-01-06 16:24:32,480 ERROR [org.ovirt.vdsm.jsonrpc.client.JsonRpcClient]
(ResponseWorker) [] Not able to update response for
"75bf7e9a-fb5f-4253-bdf6-ff0fcbf8c876"
2017-01-06 16:24:32,485 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler6) [35cc958c] Correlation ID: null, Call Stack:
null, Custom Event ID: -1, Message: VDSM prd-rbs-ovirt-kvm06-poa.rbs.com.br
command failed: Heartbeat exceeded
2017-01-06 16:24:32,485 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.SpmStatusVDSCommand]
(DefaultQuartzScheduler6) [35cc958c] Command 'SpmStatusVDSCommand(HostName
= prd-rbs-ovirt-kvm06-poa.rbs.com.br,
SpmStatusVDSCommandParameters:{runAsync='true',
hostId='23b750ed-4ba6-4782-a9bd-c018c0f36e44',
storagePoolId='0001-0001-0001-0001-0198'})' execution failed:
VDSGenericException: VDSNetworkException: Heartbeat exceeded
2017-01-06 16:24:32,524 WARN
 [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(DefaultQuartzScheduler6) [152cde35] Correlation ID: 152cde35, Call Stack:
null, Custom Event ID: -1, Message: Invalid status on Data Center RBS.
Setting Data Center status to Non Responsive (On host
prd-rbs-ovirt-kvm06-poa.rbs.com.br, Error: Network error during
communication with the Host.).
2017-01-06 16:25:37,493 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,494 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,494 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,494 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,494 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,494 ERROR
[org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) []
Internal server error: null
2017-01-06 16:25:37,495 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler4) [44e1d6ed] Command
'GetAllVmStatsVDSCommand(HostName = prd-rbs-ovirt-kvm03-poa.rbs.com.br,
VdsIdAndVdsVDSCommandParametersBase:{runAsync='true',
hostId='f7842244-646c-400a-9736-f8d4aa9b1cef', vds='Host[
prd-rbs-ovirt-kvm03-poa.rbs.com.br,f7842244-646c-400a-9736-f8d4aa9b1cef]'})'
execution failed: VDSGenericException: VDSNetworkException: Heartbeat
exceeded
2017-01-06 16:25:37,499 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetAllVmStatsVDSCommand]
(DefaultQuartzScheduler5) [4fb9c0c9] Command

[ovirt-users] Large DWH Database, how to empty

2017-01-06 Thread Matt .
Hi,

I seem to have some large database for the DWH logging and I wonder
how I can empty it safely.

Can I just simply empty the database ?

Have a good weekend!

Cheers,

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


Re: [ovirt-users] Import guest at rhv4.0.6 failed after convert a regular ova file by virt-v2v

2017-01-06 Thread Kun Wei
Thanks Yaniv ,with the bug link help ,I can import vm from "export domain" at 
VMs tab.

Hi,Yevgeny .You know , We don't have MACAddress in the ovf configuration file 
which is exported from the VMware.
And when i add  the MACaddress to the ovf file,it  works fine.
Thanks for your concern debug.


Regards

Kun Wei



- Original Message -
From: "Yaniv Dary" 
To: "Yevgeny Zaspitsky" 
Cc: "Kun Wei" , "users" , "Tingting Zheng" 
, "Ming Xie" 
Sent: Thursday, January 5, 2017 10:03:01 PM
Subject: Re: [ovirt-users] Import guest at rhv4.0.6 failed after convert a 
regular ova file by virt-v2v

There was a bug on this:
https://bugzilla.redhat.com/show_bug.cgi?id=1378045
Using the 'import' from VMs tab resolved the problem.

Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109

Tel : +972 (9) 7692306
8272306
Email: yd...@redhat.com
IRC : ydary


On Thu, Jan 5, 2017 at 3:23 PM, Yevgeny Zaspitsky 
wrote:

> Kun,
>
> I found that the OVF file includes a VM with a single vNic, but "
> rasd:MACAddress" entry is missing there.
> Could you please tell what was the MAC address in the source system and
> what it is in oVirt once you've succeed importing the VM?
> Also could you please tell what kind of system is the source system and
> what is the tool you use for exporting VM out of there?
>
> Are you able to find the MAC address info in the export file prior using
> virt-v2v?
>
> Regards,
> Yevgeny
>
> On Thu, Jan 5, 2017 at 1:42 PM, Kun Wei  wrote:
>
>>
>> Hi,I have been sent ovf file to Yevgeny in private
>> Thanks
>>
>>
>> - Original Message -
>> From: "Yevgeny Zaspitsky" 
>> To: "Kun Wei" 
>> Cc: "Shahar Havivi" , "users" ,
>> "Tingting Zheng" , "Ming Xie" 
>> Sent: Thursday, January 5, 2017 6:37:58 PM
>> Subject: Re: Import guest at rhv4.0.6 failed after convert a regular ova
>> file by virt-v2v
>>
>> Seems like engines tries to validate a vNic with an empty MAC address and
>> fails on that. The fact that in the direct flow it works sounds weird to
>> me: either we loose the MAC in one flow or we do not validate it in the
>> other one.
>>
>> Kun, could you please send (in private if you like) the OVF file from the
>> input tarball you've used, so we'd be able to debug the case more
>> thoroughly?
>>
>> Regards,
>> Yevgeny
>>
>> On Thu, Jan 5, 2017 at 10:03 AM, Kun Wei  wrote:
>>
>> >
>> > Hi,shavivi.
>> >
>> > Thank you .Yes,as you know i can import ova directly and it can be
>> import
>> > successful.
>> >
>> > But  i am testing v2v now  and  i want to confirm if it is a new bug.
>> >
>> >
>> >
>> > - Original Message -
>> > From: "Shahar Havivi" 
>> > To: "Kun Wei" , "Yevgeny Zaspitsky" <
>> yzasp...@redhat.com
>> > >
>> > Cc: "users" , "Tingting Zheng" ,
>> > "Ming Xie" 
>> > Sent: Thursday, January 5, 2017 3:05:45 PM
>> > Subject: Re: Import guest at rhv4.0.6 failed after convert a regular ova
>> > file by virt-v2v
>> >
>> > Yevgeny, please look why it fails on "isMacInRange"
>> >
>> > Kun, you know that you can import ova directly instead of using
>> virt-v2v to
>> > export domain and then import to data domain,
>> > you can do that from the VMs tab->Import-> and change the source to OVA.
>> >
>> > On Thu, Jan 5, 2017 at 4:35 AM, Kun Wei  wrote:
>> >
>> > >
>> > > Hi,  I want to confirm a questions if it is a bug,or if something
>> wrong
>> > > with me.Thanks
>> > >
>> > > When i convert a ova guest file to rhv4.0.6 by virt-v2v,but import is
>> > > failed.The attachment are engine.log and vdsm.log.
>> > >
>> > >
>> > >
>> > > Version:
>> > > libguestfs-1.32.7-3.el7_3.2.x86_64
>> > > virt-v2v-1.32.7-3.el7_3.2.x86_64
>> > > qemu-img-rhev-2.6.0-28.el7_3.2.x86_64
>> > > libvirt-2.0.0-10.el7_3.3.x86_64
>> > > rhv4.0: 4.0.6.3
>> > >
>> > > Steps :
>> > > 1:Prepare a regular ova file guest .
>> > > 2:Use virt-v2v to convert the ova file to rhv4.0.
>> > > # virt-v2v -i ova esx-rhel6.8-vmdkgz.tar -o rhev -os 10.73.131.93:
>> > /home/nfs_export
>> > > -of qcow2
>> > > [   0.0] Opening the source -i ova esx-rhel6.8-vmdkgz.tar
>> > > [  44.1] Creating an overlay to protect the source from being modified
>> > > [  45.0] Initializing the target -o rhev -os 10.73.131.93:
>> > /home/nfs_export
>> > > [  45.3] Opening the overlay
>> > > [  53.1] Inspecting the overlay
>> > > [  70.2] Checking for sufficient free disk space in the guest
>> > > [  70.2] Estimating space required on target for each disk
>> > > [  70.2] Converting Red Hat Enterprise Linux Server release 6.8
>> > (Santiago)
>> > > to run on KVM
>> > > virt-v2v: This guest has virtio 

Re: [ovirt-users] Block device requirements for ovirt

2017-01-06 Thread Yaniv Kaul
On Jan 5, 2017 4:06 PM, "Sergei Hanus"  wrote:

 Hi, All!

When trying to attach iscsi device from my storage system, ovirt complains,
that it cannot create a storage pool.

In logs I can see only this:
--
RuntimeError(u'Error creating a storage pool:
(u"spUUID=3fcace71-cd2b-4ab4-9d64-8ef926ead05a,
poolName=hosted_datacenter, masterDom=71b0d510-c24a-49fa-86ec-6b5ebf530140,
domList=[u\'71b0d510-c24a-49fa-86ec-6b5ebf530140\',
u\'793985b7-9d11-44a4-bf68-4b509a967a52\'], masterVersion=1, clusterlock
params: ({\'LEASETIMESEC\': 60, \'LOCKPOLICY\': \'ON\', \'IOOPTIMEOUTSEC\':
10, \'LEASERETRIES\': 3, \'LOCKRENEWALINTERVALSEC\': 5})",)',), )
---

I have verified, that this block device can be successfully connected and
partitioned on the same server using standard tools (iscsiadm, parted,
mount), so, storage system on its own is working fine.

My question is: what are requirements for block device in order for it to
be compliant with ovirt? I know, that block size must be 512 bytes, but
anything else?


Not much, really.
Please share complete logs and version information.
Y.


Thank you in advance, any comments appreciated.

 Sergei.


___
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] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Nathanaël Blanchet

There was a last error in the script :

snap_service = snaps_service.snapshot_service(snap.id) instead of 
snap_service = snaps_service.snap_service(snap.id)


For those who are interested in using a full remove_vm_snapshot working 
script:


# Create the connection to the server:
connection = sdk.Connection(
  url='https://engine/ovirt-engine/api',
  username='admin@internal',
  password='passwd',
#  ca_file='ca.pem',
  insecure=True,
  debug=True,
  log=logging.getLogger(),
)

# Locate the virtual machines service and use it to find the virtual
# machine:
vms_service = connection.system_service().vms_service()
vm = vms_service.list(search='name=myvm')[0]

# Locate the service that manages the snapshots of the virtual machine:
vm_service = vms_service.vm_service(vm.id)
snaps_service = vm_service.snapshots_service()
snaps = snaps_service.list()
snap = [s for s in snaps if s.description == 'My snapshot2'][0]

# Remove the snapshot:
snap_service = snaps_service.snapshot_service(snap.id)
snap_service.remove()

# Close the connection to the server:
connection.close()

Le 06/01/2017 à 14:44, Nathanaël Blanchet a écrit :



Le 06/01/2017 à 13:39, Juan Hernández a écrit :

On 01/06/2017 12:20 PM, Nathanaël Blanchet wrote:


Le 04/01/2017 à 18:55, Juan Hernández a écrit :

On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote:

Le 04/01/2017 à 15:41, Juan Hernández a écrit :

On 01/04/2017 12:30 PM, Yaniv Kaul wrote:
On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot 
> wrote:

   Hello,

   Le 04/01/2017 à 11:49, Nathanaël Blanchet a écrit :



   Le 04/01/2017 à 10:09, Andrea Ghelardi a écrit :


   Personally I don’t think ansible and ovirt-shell are
   mutually exclusive.

   Those who are in ansible and devops realms are not
really
   scared by
   making python/ansible work with ovirt.

   From what I gather, playbooks are quite a de-facto
   pre-requisite to
   build up a real SaaC “Software as a Code” 
environment.




   On the other hand, ovirt-shell can and is a 
fast/easy

way to
   perform
   “normal daily tasks”.

   totally agree but ovirt-shell is deprecated in 4.1 et
will be
   removed in
   4.2. Ansible or sdk4 are proposed as an alternative.


   Could someone point me to an URL where sdk4 is fully
documented, as
   I have to get ready for ovirt-shell deprecation?


The Rest API is partially documented under
https:///api/model .
It's not complete yet. All new features in 4.0 are documented and
we are
working on the 'older' features now.
(contributions are welcome!)


   I'm sure no one at Redhat thought about deprecating a 
tool in

favor
   of a new one before providing a complete user doc!


In addition, the SDK RPM itself contains many examples. See [1].
(contributions are welcome!)

Y.

[1] 
https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples



Although these examples, I can successfully create a snapshot, but I
didn't find the way to delete it...
Regarding many example, it should be possible to locate any 
service by :

name_service = connection.system_service().name.service()

So logically it should be doable with snapshot like
snapshots_service = connection.system_service().snapshots.service()
but : AttributeError: 'SystemService' object has no attribute 
'snapshots


In the SDK the services are arranged in a tree structure that 
mimics the

URL structure of the API. For example, if you want to get the service
that manages a particular snapshot, in the API you would use an URL 
like

this:

/ovirt-engine/api/vms/123/snapshots/456

In the Python SDK that translates into this:

snap_service = connection.system_service() \
  .vms_service() \
  .vm_service('123') \
  .snapshots_service() \
  .snapshot_service('456')

There is also a generic "service" method that is useful when you 
already

have all that path as an string:

snap_service = connection.service("vms/123/snapshots/456")

Both return exactly the same object. The first is usually better when
you are calculating the path of the object step by step, and I 
generally

prefer it as it is less error prone.

Once you have the reference to the service, you can use the 'remove'
method:

snap_service.remove()

If you need to search by the names of the objects, then you can use 
the

'search' methods, which are only available for the top level objects,
like VM, data centers, clusters, etc. For example, to find your 
virtual

machine and then the snapshot:

# Get the root service:
system_service = connection.system_service()

# Find the virtual machine:
vms_service = system_service.vms_service()
vm = vms_service.list(search='name=myvm')[0]

# Find the snapshot:
vm_service = vms_service.vm_service(vm.id)
snaps_service = 

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Nathanaël Blanchet



Le 06/01/2017 à 13:39, Juan Hernández a écrit :

On 01/06/2017 12:20 PM, Nathanaël Blanchet wrote:


Le 04/01/2017 à 18:55, Juan Hernández a écrit :

On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote:

Le 04/01/2017 à 15:41, Juan Hernández a écrit :

On 01/04/2017 12:30 PM, Yaniv Kaul wrote:

On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot > wrote:

   Hello,

   Le 04/01/2017 à 11:49, Nathanaël Blanchet a écrit :



   Le 04/01/2017 à 10:09, Andrea Ghelardi a écrit :


   Personally I don’t think ansible and ovirt-shell are
   mutually exclusive.

   Those who are in ansible and devops realms are not
really
   scared by
   making python/ansible work with ovirt.

   From what I gather, playbooks are quite a de-facto
   pre-requisite to
   build up a real SaaC “Software as a Code” environment.



   On the other hand, ovirt-shell can and is a fast/easy
way to
   perform
   “normal daily tasks”.

   totally agree but ovirt-shell is deprecated in 4.1 et
will be
   removed in
   4.2. Ansible or sdk4 are proposed as an alternative.


   Could someone point me to an URL where sdk4 is fully
documented, as
   I have to get ready for ovirt-shell deprecation?


The Rest API is partially documented under
https:///api/model .
It's not complete yet. All new features in 4.0 are documented and
we are
working on the 'older' features now.
(contributions are welcome!)


   I'm sure no one at Redhat thought about deprecating a tool in
favor
   of a new one before providing a complete user doc!


In addition, the SDK RPM itself contains many examples. See [1].
(contributions are welcome!)

Y.

[1] https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples


Although these examples, I can successfully create a snapshot, but I
didn't find the way to delete it...
Regarding many example, it should be possible to locate any service by :
name_service = connection.system_service().name.service()

So logically it should be doable with snapshot like
snapshots_service = connection.system_service().snapshots.service()
but : AttributeError: 'SystemService' object has no attribute 'snapshots


In the SDK the services are arranged in a tree structure that mimics the
URL structure of the API. For example, if you want to get the service
that manages a particular snapshot, in the API you would use an URL like
this:

/ovirt-engine/api/vms/123/snapshots/456

In the Python SDK that translates into this:

snap_service = connection.system_service() \
  .vms_service() \
  .vm_service('123') \
  .snapshots_service() \
  .snapshot_service('456')

There is also a generic "service" method that is useful when you already
have all that path as an string:

snap_service = connection.service("vms/123/snapshots/456")

Both return exactly the same object. The first is usually better when
you are calculating the path of the object step by step, and I generally
prefer it as it is less error prone.

Once you have the reference to the service, you can use the 'remove'
method:

snap_service.remove()

If you need to search by the names of the objects, then you can use the
'search' methods, which are only available for the top level objects,
like VM, data centers, clusters, etc. For example, to find your virtual
machine and then the snapshot:

# Get the root service:
system_service = connection.system_service()

# Find the virtual machine:
vms_service = system_service.vms_service()
vm = vms_service.list(search='name=myvm')[0]

# Find the snapshot:
vm_service = vms_service.vm_service(vm.id)
snaps_service = vm_service.snapshots_service()
snaps = snaps_service.list()
snap = [s for s in snaps where s.description == 'My snap'][0]

sounds good, thank so much for taking time to explain, but for the last
entry, I get ;

snap = [s for s in snaps where s.description == 'My snapshot2'][0]
^
SyntaxError: invalid syntax

I apologize, I wrote that too fast. That is SQL syntax, not Python. In
python should be "if" instead of "where":

   snap = [s for s in snaps if s.description == 'My snapshot2'][0]

Thank you, it's ok for now.



May I use a version 3 of python?

You SDK supports both Python 2 and Python 3. If you are using the RPMs
make sure to install the 'python3-ovirt-engine-sdk4' package.


python3-ovirt-engine-sdk4 doesn't exist in repos, only python-ovirt-engine-sdk4
Thanks to your explanations, I begin to understand the philosophy of this sdk, 
it's far different from sdk3.
What's was wrong with the v3, what was the motivation to write a new version?
Will it be possible to use the old sdk3 (manually installed) for old scripts in 
ovirt 4.2 ?



Note that both are supported, but Python 3 doesn't get a lot of

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Juan Hernández
On 01/06/2017 12:20 PM, Nathanaël Blanchet wrote:
> 
> 
> Le 04/01/2017 à 18:55, Juan Hernández a écrit :
>> On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote:
>>>
>>> Le 04/01/2017 à 15:41, Juan Hernández a écrit :
 On 01/04/2017 12:30 PM, Yaniv Kaul wrote:
> On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot  > wrote:
>
>   Hello,
>
>   Le 04/01/2017 à 11:49, Nathanaël Blanchet a écrit :
>
>
>
>   Le 04/01/2017 à 10:09, Andrea Ghelardi a écrit :
>
>
>   Personally I don’t think ansible and ovirt-shell are
>   mutually exclusive.
>
>   Those who are in ansible and devops realms are not
> really
>   scared by
>   making python/ansible work with ovirt.
>
>   From what I gather, playbooks are quite a de-facto
>   pre-requisite to
>   build up a real SaaC “Software as a Code” environment.
>
>
>
>   On the other hand, ovirt-shell can and is a fast/easy
> way to
>   perform
>   “normal daily tasks”.
>
>   totally agree but ovirt-shell is deprecated in 4.1 et
> will be
>   removed in
>   4.2. Ansible or sdk4 are proposed as an alternative.
>
>
>   Could someone point me to an URL where sdk4 is fully
> documented, as
>   I have to get ready for ovirt-shell deprecation?
>
>
> The Rest API is partially documented under
> https:///api/model .
> It's not complete yet. All new features in 4.0 are documented and
> we are
> working on the 'older' features now.
> (contributions are welcome!)
>
>
>   I'm sure no one at Redhat thought about deprecating a tool in
> favor
>   of a new one before providing a complete user doc!
>
>
> In addition, the SDK RPM itself contains many examples. See [1].
> (contributions are welcome!)
>
> Y.
>
> [1] https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
>
>>> Although these examples, I can successfully create a snapshot, but I
>>> didn't find the way to delete it...
>>> Regarding many example, it should be possible to locate any service by :
>>> name_service = connection.system_service().name.service()
>>>
>>> So logically it should be doable with snapshot like
>>> snapshots_service = connection.system_service().snapshots.service()
>>> but : AttributeError: 'SystemService' object has no attribute 'snapshots
>>>
>> In the SDK the services are arranged in a tree structure that mimics the
>> URL structure of the API. For example, if you want to get the service
>> that manages a particular snapshot, in the API you would use an URL like
>> this:
>>
>>/ovirt-engine/api/vms/123/snapshots/456
>>
>> In the Python SDK that translates into this:
>>
>>snap_service = connection.system_service() \
>>  .vms_service() \
>>  .vm_service('123') \
>>  .snapshots_service() \
>>  .snapshot_service('456')
>>
>> There is also a generic "service" method that is useful when you already
>> have all that path as an string:
>>
>>snap_service = connection.service("vms/123/snapshots/456")
>>
>> Both return exactly the same object. The first is usually better when
>> you are calculating the path of the object step by step, and I generally
>> prefer it as it is less error prone.
>>
>> Once you have the reference to the service, you can use the 'remove'
>> method:
>>
>>snap_service.remove()
>>
>> If you need to search by the names of the objects, then you can use the
>> 'search' methods, which are only available for the top level objects,
>> like VM, data centers, clusters, etc. For example, to find your virtual
>> machine and then the snapshot:
>>
>># Get the root service:
>>system_service = connection.system_service()
>>
>># Find the virtual machine:
>>vms_service = system_service.vms_service()
>>vm = vms_service.list(search='name=myvm')[0]
>>
>># Find the snapshot:
>>vm_service = vms_service.vm_service(vm.id)
>>snaps_service = vm_service.snapshots_service()
>>snaps = snaps_service.list()
>>snap = [s for s in snaps where s.description == 'My snap'][0]
> sounds good, thank so much for taking time to explain, but for the last
> entry, I get ;
> 
> snap = [s for s in snaps where s.description == 'My snapshot2'][0]
>^
> SyntaxError: invalid syntax

I apologize, I wrote that too fast. That is SQL syntax, not Python. In
python should be "if" instead of "where":

  snap = [s for s in snaps if s.description == 'My snapshot2'][0]

> May I use a version 3 of python?

You SDK supports both Python 2 and Python 3. If you are using the RPMs
make sure to install the 'python3-ovirt-engine-sdk4' package.

Note that both are 

Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Nathanaël Blanchet



Le 04/01/2017 à 18:55, Juan Hernández a écrit :

On 01/04/2017 05:38 PM, Nathanaël Blanchet wrote:


Le 04/01/2017 à 15:41, Juan Hernández a écrit :

On 01/04/2017 12:30 PM, Yaniv Kaul wrote:

On Wed, Jan 4, 2017 at 1:04 PM, Nicolas Ecarnot > wrote:

  Hello,

  Le 04/01/2017 à 11:49, Nathanaël Blanchet a écrit :



  Le 04/01/2017 à 10:09, Andrea Ghelardi a écrit :


  Personally I don’t think ansible and ovirt-shell are
  mutually exclusive.

  Those who are in ansible and devops realms are not really
  scared by
  making python/ansible work with ovirt.

  From what I gather, playbooks are quite a de-facto
  pre-requisite to
  build up a real SaaC “Software as a Code” environment.



  On the other hand, ovirt-shell can and is a fast/easy
way to
  perform
  “normal daily tasks”.

  totally agree but ovirt-shell is deprecated in 4.1 et will be
  removed in
  4.2. Ansible or sdk4 are proposed as an alternative.


  Could someone point me to an URL where sdk4 is fully documented, as
  I have to get ready for ovirt-shell deprecation?


The Rest API is partially documented under https:///api/model .
It's not complete yet. All new features in 4.0 are documented and we are
working on the 'older' features now.
(contributions are welcome!)


  I'm sure no one at Redhat thought about deprecating a tool in favor
  of a new one before providing a complete user doc!


In addition, the SDK RPM itself contains many examples. See [1].
(contributions are welcome!)

Y.

[1] https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples


Although these examples, I can successfully create a snapshot, but I
didn't find the way to delete it...
Regarding many example, it should be possible to locate any service by :
name_service = connection.system_service().name.service()

So logically it should be doable with snapshot like
snapshots_service = connection.system_service().snapshots.service()
but : AttributeError: 'SystemService' object has no attribute 'snapshots


In the SDK the services are arranged in a tree structure that mimics the
URL structure of the API. For example, if you want to get the service
that manages a particular snapshot, in the API you would use an URL like
this:

   /ovirt-engine/api/vms/123/snapshots/456

In the Python SDK that translates into this:

   snap_service = connection.system_service() \
 .vms_service() \
 .vm_service('123') \
 .snapshots_service() \
 .snapshot_service('456')

There is also a generic "service" method that is useful when you already
have all that path as an string:

   snap_service = connection.service("vms/123/snapshots/456")

Both return exactly the same object. The first is usually better when
you are calculating the path of the object step by step, and I generally
prefer it as it is less error prone.

Once you have the reference to the service, you can use the 'remove' method:

   snap_service.remove()

If you need to search by the names of the objects, then you can use the
'search' methods, which are only available for the top level objects,
like VM, data centers, clusters, etc. For example, to find your virtual
machine and then the snapshot:

   # Get the root service:
   system_service = connection.system_service()

   # Find the virtual machine:
   vms_service = system_service.vms_service()
   vm = vms_service.list(search='name=myvm')[0]

   # Find the snapshot:
   vm_service = vms_service.vm_service(vm.id)
   snaps_service = vm_service.snapshots_service()
   snaps = snaps_service.list()
   snap = [s for s in snaps where s.description == 'My snap'][0]
sounds good, thank so much for taking time to explain, but for the last 
entry, I get ;


snap = [s for s in snaps where s.description == 'My snapshot2'][0]
  ^
SyntaxError: invalid syntax
May I use a version 3 of python?

   # Remove the snapshot:
   snap_service = snaps_service.snap_service(snap.id)
   snap_service.remove()


I saw an example into the ansible [ working ] way to do the same thing
and I found this :
snapshot =
snapshots_service.snapshot_service(module.params['snapshot_id']).get()

How can I get this working with sdk, I mean giving snapshot_id as a
parameter?



Also the complete reference documentation of the Python SDK is available
here:

http://ovirt.github.io/ovirt-engine-sdk/v4.0/4.0.3/index.html

There also SDKs for Ruby and Java, in case Python is not your preferred
language:

Ruby:
https://github.com/oVirt/ovirt-engine-sdk-ruby/tree/master/sdk
   
https://github.com/oVirt/ovirt-engine-sdk-ruby/tree/master/sdk/examples

http://www.rubydoc.info/gems/ovirt-engine-sdk

Java:
https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk


Re: [ovirt-users] Request for oVirt Ansible modules testing feedback

2017-01-06 Thread Nathanaël Blanchet

Thanks Ondra


Le 05/01/2017 à 21:31, Ondra Machacek a écrit :

ovirt_vms_facts module returns list of vms which match the pattern,
so something like this should work (I didn't try):

- name: print
   shell: echo "{{ item.name }} >> vms_name"
   with_items: "{{ ovirt_vms }}"

Yes it works, more accurately with shell: echo "{{ item.name }}" >> vms_name

Now I want to get the full vm facts as a json file. For this, I use the 
return value ovirt_vms as this : shell: echo "{{ ovirt_vms }}" > 
ovirt_vms.json
But the file is unicode format (with "u" anywhere) and I'd want to get 
the same in a standard json file (pretty or not). Is there a way to get 
this file in an ascci format or to convert it?


Oh right, the snapshots module wasn't merged, I will fix up, thank you.

Yes I agree, that Ansible modules can't currently fully replace the CLI.


On Fri, Dec 30, 2016 at 5:22 PM, Nathanaël Blanchet  wrote:

Interesting work and thank you for this stuff. I played with some modules
(ovirt_vms_facts) to get some vms name for example.

[root@acore ovirt]# ansible-playbook All_Vms_list.yml
with
   - name: List vms
 ovirt_vms_facts:
   auth: "{{ ovirt_auth }}"
   pattern: name=test_cloud
   fetch_nested: true
   nested_attributes: name
 register: ovirt_vms

   - shell: echo "{{ ovirt_vms.name }} > vms_name" // doesn't work

   - shell: echo "{{ ovirt_vms }} > vms_name // returns an unicode json file,
that's surely why we can't parse it. Can you help me to solve this into the
ovirt_vms_facts.py file?

I have no such problem with ovirt_snaphots_module and I can easily get the
snaphot.id variable but:

I had to manually copy the ovirt_snaphsots_module because it is not present
on the git tree. This is very curious: we can find it here
http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ovirt_snapshots_module.htm,
but it is not available on the main ansible git tre.
On the doc, return values are not described

For the moment, my opinion is that ansible can't be as much convinient as
the current CLI, e.g. ovirt-shell -E "list vms", out of the box. Is there a
really reason to deprecate it?


Le 02/12/2016 à 14:12, Ondra Machacek a écrit :

Hello all,

I would like to kindly ask everyone who is Ansible or oVirt user for
testing of the new Ansible oVirt modules. For everyone who is familiar
with the Ansible and oVirt, this[1] describes the steps you need to do,
to setup oVirt modules library and start using those modules (Most of those
modules will be available in Ansible 2.3, some of them are already in 2.2).

If you have any issue setting this up, please contact me, I will do the
best to help you.

If you have an issue, which you think is a bug, please open an issue
here[2]. Please note that Ansible is merging it's repositories, so since
next week it will actually be stored here[3]. If you are missing
anything please open an issue as well, or just contact me, and I will
do fix it. You are also very welcome to sent PR with fixes.

For those who don't have testing environment which can test against,
I've created an Vagrant project which will deploy you the oVirt instance
using Ansible playbooks. You can find how to use it here[4].

The repository also contains few examples[5], so you don't have to
copy-paste them from the source.

Thanks all for reading this and any feedback,
Ondra

[1] https://github.com/machacekondra/ovirt-tests/releases/tag/0.1
[2] https://github.com/ansible/ansible-modules-extras/issues
[3] https://github.com/ansible/ansible
[4] https://github.com/machacekondra/ovirt-tests
[5] https://github.com/machacekondra/ovirt-tests/tree/master/examples
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


--
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


--
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


Re: [ovirt-users] [Ansible - Ovirt] How to specifiy ovs properties ?

2017-01-06 Thread TranceWorldLogic .
Hi,

I was asking for network property as shown in ovirt link.
http://www.ovirt.org/networking/ovs/

Please check *Usage* section.

Thanks,
~Rohit

On Fri, Jan 6, 2017 at 1:54 AM, Ondra Machacek  wrote:

> Hi,
>
> please see switch_type parameter in this module:
>
>   http://docs.ansible.com/ansible/ovirt_clusters_module.html
>
> I think that's what are you looking for.
>
> Ondra
>
> On Thu, Jan 5, 2017 at 7:19 AM, TranceWorldLogic .
>  wrote:
> > Hi,
> >
> > I want to setup a logcal ovs network in ovirt.
> > And to do the same I want to use ansible tool.
> >
> > Hence I tried looking into ansible document and found below link.
> > https://docs.ansible.com/ansible/ovirt_networks_module.html
> >
> > But question is how to configure propert "ovs = 1" in ansible.
> > It may be via nested_attributes but not sure how to do so.
> > Please let me know.
> >
> > Thanks,
> > ~Rohit
> >
> >
> >
> > ___
> > 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