Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you

2016-08-01 Thread lifuqiong
I create a cluster which already enabled ovs network as you mentioned , but 
when I create vm in this cluster,  I can only using ovirtmgmt/ovirtmgmt vNIC 
profile, which is still a Linux bridge.

I found no way to add a OVS vNIC profile,  I have to chose ovirtmgmt/ovirtmgmt 
vNIC to setup a VM. After VM is started, the vm is still using Linux bridge to 
communicate with outside, not the ovs.

 

Need I to create a ovs bridge or vport and bind it to physical NIC in vdsm 
manually?

 

Hope your reply as soon as possible.

Thank you

Mark

 

发件人: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] 代表 Meni Yakove
发送时间: 2016年8月1日 16:42
收件人: Dan Kenigsberg
主题: Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? 
Thank you

 

On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg  wrote:

On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
> Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this version?
> Is there any instruction? Thank you

Please note and note well: OVS is not production-grade yet. It is only a
preliminary tech preview, under active development.

However, we'd be very happy to get your help in testing it (and possibly
fixing it, too).

When defining a new cluster, you should see a check box, letting you
select OVS for that cluster. 

 

To be precise, this is not a check box. In the Edit Cluster dialog, look at the 
"switch 

type" option, and change "LEGACY" to "OVS".

 

 

 

After being checked, each VM network that
is defined in your cluster would be implemented with OVS instead of
Linux bridge.

As aluded before, there are plenty of known definciencies (e.g., no
persistence of ip config on VM network, no live migration, not all bond
modes, etc etc). But do not hesitate to raise other issues with the
devel mailing list.

Happy testing!

Dan.
___
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


[ovirt-users] oVirt 4 with custom SSL-certificate and SPICE HTML5 browser client -> WebSocket error: Can't connect to websocket on URL: wss://ovirt.engine.fqdn:6100/

2016-08-01 Thread aleksey . maksimov
Hello oVirt guru`s !

I have successfully replaced the oVirt 4 site SSL-certificate according to the 
instructions from "Replacing oVirt SSL Certificate" 
section in "oVirt Administration Guide"
http://www.ovirt.org/documentation/admin-guide/administration-guide/

3 files have been replaced:

/etc/pki/ovirt-engine/certs/apache.cer
/etc/pki/ovirt-engine/keys/apache.key.nopass
/etc/pki/ovirt-engine/apache-ca.pem

Now the oVirt site using my certificate and everything works fine, but when I 
try to use SPICE HTML5 browser client in Firefox or Chrome I see a gray screen 
and message under the button "Toggle messages output":
 
WebSocket error: Can't connect to websocket on URL: 
wss://ovirt.engine.fqdn:6100/eyJ...0=[object Event]


Before replacing certificates SPICE HTML5 browser client works.
Native SPICE client works fine.

Tell me what to do with SPICE HTML5 browser client?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Management Engine Down

2016-08-01 Thread Clint Boggio
Stand Alone Engine Version 3.6.X
CentOS 7

I was preparing to upgrade from OME 3.6.2 to 4.0, when I followed the systems 
instructions to "migrate" to ovirt-engine-aaa-ldap authentication from the 
current authentication method. The management engine did fail to restart after 
the process with the following excerpt from "journalctl -xe" Any help or advice 
would be most appreciated.

-- Subject: Unit ovirt-engine.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ovirt-engine.service has begun shutting down.
Aug 01 14:11:11 oVirtMGMT.ana-lab.com systemd[1]: Starting oVirt Engine...
-- Subject: Unit ovirt-engine.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ovirt-engine.service has begun starting up.
Aug 01 14:11:11 oVirtMGMT.ana-lab.com ovirt-engine.py[20656]: 2016-08-01 
14:11:11,621 ovirt-engine: ERROR run:532 Error: cannot find 'getstring'
Aug 01 14:11:11 oVirtMGMT.ana-lab.com systemd[1]: ovirt-engine.service: main 
process exited, code=exited, status=1/FAILURE
Aug 01 14:11:11 oVirtMGMT.ana-lab.com systemd[1]: Failed to start oVirt Engine.
-- Subject: Unit ovirt-engine.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ovirt-engine.service has failed.
--
-- The result is failed.
Aug 01 14:11:11 oVirtMGMT.ana-lab.com systemd[1]: Unit ovirt-engine.service 
entered failed state.
Aug 01 14:11:11 oVirtMGMT.ana-lab.com systemd[1]: ovirt-engine.service failed.
Aug 01 14:11:11 oVirtMGMT.ana-lab.com polkitd[8919]: Unregistered 
Authentication Agent for unix-process:20622:1107662074 (system bus name 
:1.6616, object pat
Aug 01 14:13:07 oVirtMGMT.ana-lab.com sshd[20725]: Connection closed by 
127.0.0.1 [preauth]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: connect from 
localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: 0E147449: 
client=localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/cleanup[20770]: 0E147449: 
message-id=<1441844851.3302.1470078923013.javamail.ov...@ovirtmgmt.ana-lab.com>
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/qmgr[30740]: 0E147449: 
from=, size=636, nrcpt=1 (queue active)
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: disconnect from 
localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: connect from 
localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: 10116BED4C: 
client=localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/cleanup[20770]: 10116BED4C: 
message-id=<1543794816.3303.1470078923063.javamail.ov...@ovirtmgmt.ana-lab.com>
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/qmgr[30740]: 10116BED4C: 
from=, size=654, nrcpt=1 (queue active)
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtpd[20767]: disconnect from 
localhost[127.0.0.1]
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtp[20771]: 0E147449: 
to=, relay=zimbra.ana-lab.com[63.98.234.179]:25, 
delay=0.52, delays=
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/qmgr[30740]: 0E147449: removed
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/smtp[20772]: 10116BED4C: 
to=, 
relay=inlinenetworks.com.1.0001.arsmtp.com[8.31.233.7
Aug 01 14:15:23 oVirtMGMT.ana-lab.com postfix/qmgr[30740]: 10116BED4C: removed
Aug 01 14:16:33 oVirtMGMT.ana-lab.com polkitd[8919]: Registered Authentication 
Agent for unix-process:20798:1107694537 (system bus name :1.6617 [/usr/bin/pkt
Aug 01 14:16:33 oVirtMGMT.ana-lab.com systemd[1]: Starting oVirt Engine...
-- Subject: Unit ovirt-engine.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ovirt-engine.service has begun starting up.
Aug 01 14:16:34 oVirtMGMT.ana-lab.com ovirt-engine.py[20803]: 2016-08-01 
14:16:34,146 ovirt-engine: ERROR run:532 Error: cannot find 'getstring'
Aug 01 14:16:34 oVirtMGMT.ana-lab.com systemd[1]: ovirt-engine.service: main 
process exited, code=exited, status=1/FAILURE
Aug 01 14:16:34 oVirtMGMT.ana-lab.com systemd[1]: Failed to start oVirt Engine.
-- Subject: Unit ovirt-engine.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit ovirt-engine.service has failed.
--
-- The result is failed.
Aug 01 14:16:34 oVirtMGMT.ana-lab.com systemd[1]: Unit ovirt-engine.service 
entered failed state.
Aug 01 14:16:34 oVirtMGMT.ana-lab.com systemd[1]: ovirt-engine.service failed.
Aug 01 14:16:34 oVirtMGMT.ana-lab.com polkitd[8919]: Unregistered 
Authentication Agent for unix-process:20798:1107694537 (system bus name 
:1.6617, object pat
[root@oVirtMGMT yum.repos.d]#
___
Users mailing list
Users@ovirt.org

Re: [ovirt-users] disk not bootable

2016-08-01 Thread Fernando Fuentes
Nir,

I found something very interesting.
When exporting the same vms and templates and than importing them to a
new cluster running ovirt 4.0 that has iSCSI mounts ONLY, they import
and run just fine. I notice that the disk imported as Blank templates
and they do not seem to have any dependency to the templates. Is this
normal behavior?

Regards,

-- 
Fernando Fuentes
ffuen...@txweather.org
http://www.txweather.org

On Thu, Jul 28, 2016, at 09:01 AM, Fernando Fuentes wrote:
> Nir,
> 
> I been busy and have not been able to replicate your request.
> 
> I will as soon as I get a chance I will.
> 
> Thanks again for the help.
> 
> Regards,
> 
> 
> 
> -- 
> Fernando Fuentes
> ffuen...@txweather.org
> http://www.txweather.org
> 
> On Tue, Jul 19, 2016, at 08:54 AM, Fernando Fuentes wrote:
> > Nir,
> > 
> > Thanks for all the help!
> > I am on it and will reply with the requested info asap.
> > 
> > Regards,
> > 
> > -- 
> > Fernando Fuentes
> > ffuen...@txweather.org
> > http://www.txweather.org
> > 
> > On Tue, Jul 19, 2016, at 07:16 AM, Nir Soffer wrote:
> > > On Mon, Jul 18, 2016 at 11:16 PM, Fernando Fuentes 
> > > wrote:
> > > > Ops... forgot the link:
> > > >
> > > > http://pastebin.com/LereJgyw
> > > >
> > > > The requested infor is in the pastebin.
> > > 
> > > So the issue is clear now, the template on NFS is using raw format, and
> > > on block
> > > stoage, qcow format:
> > > 
> > > NFS:
> > > 
> > > root@zeta ~]# cat
> > > /rhev/data-center/mnt/172.30.10.5\:_opt_libvirtd_images/ecfaf7ac-5459-4c83-bd97-2bb448e38526/images/3b7d9349-9eb1-42f8-9e04-7bbb97c02b98/25b6b0fe-d416-458f-b89f-
> > > ...
> > > FORMAT=RAW
> > > ...
> > > 
> > > [root@alpha ~]# qemu-img info
> > > /opt/libvirtd/images/ecfaf7ac-5459-4c83-bd97-2bb448e38526/images/3b7d9349-9eb1-42f8-9e04-7bbb97c02b98/25b6b0fe-d416-458f-b89f-363338ee0c0e
> > > image:
> > > /opt/libvirtd/images/ecfaf7ac-5459-4c83-bd97-2bb448e38526/images/3b7d9349-9eb1-42f8-9e04-7bbb97c02b98/25b6b0fe-d416-458f-b89f-363338ee0c0e
> > > ...
> > > file format: raw
> > > ...
> > > 
> > > iSCSI:
> > > 
> > > [root@zeta ~]# qemu-img info
> > > /dev/0ef17024-0eae-4590-8eea-6ec8494fe223/25b6b0fe-d416-458f-b89f-363338ee0c0e
> > > image:
> > > /dev/0ef17024-0eae-4590-8eea-6ec8494fe223/25b6b0fe-d416-458f-b89f-363338ee0c0e
> > > ...
> > > file format: qcow2
> > > ...
> > > 
> > > [root@zeta ~]# dd
> > > if=/dev/0ef17024-0eae-4590-8eea-6ec8494fe223/metadata bs=512 skip=4
> > > count=1 iflag=direct
> > > ...
> > > FORMAT=COW
> > > ...
> > > 
> > > This format conversion is expected, as we don't support raw/sparse on
> > > block storage.
> > > 
> > > It looks like the vm is started with the template disk as "raw"
> > > format, which is expected
> > > to fail when the format is actually "qcow2". The guest will see the
> > > qcow headers instead
> > > of the actual data.
> > > 
> > > The next step to debug this is:
> > > 
> > > 1. Copy a disk using this template to the block storage domain
> > > 2. Create a new vm using this disk
> > > 3. Start the vm
> > > 
> > > Does it start? if not, attach engine and vdsm logs from this timefame.
> > > 
> > > If this works, you can try:
> > > 
> > > 1. Move vm disk from NFS to block storage
> > > 2. Start the vm
> > > 
> > > Again, it it does not work, add engine and vdsm logs.
> > > 
> > > Nir
> > > 
> > > >
> > > > Regards,
> > > >
> > > >
> > > > --
> > > > Fernando Fuentes
> > > > ffuen...@txweather.org
> > > > http://www.txweather.org
> > > >
> > > >
> > > >
> > > > On Mon, Jul 18, 2016, at 03:16 PM, Fernando Fuentes wrote:
> > > >
> > > > Nir,
> > > >
> > > > After some playing around with pvscan I was able to get all of the need 
> > > > it
> > > > information.
> > > >
> > > > Please see:
> > > >
> > > >
> > > > --
> > > > Fernando Fuentes
> > > > ffuen...@txweather.org
> > > > http://www.txweather.org
> > > >
> > > >
> > > >
> > > > On Mon, Jul 18, 2016, at 02:30 PM, Nir Soffer wrote:
> > > >
> > > > On Mon, Jul 18, 2016 at 6:48 PM, Fernando Fuentes 
> > > > wrote:
> > > >> Nir,
> > > >>
> > > >> As requested:
> > > >>
> > > >> [root@gamma ~]# lsblk
> > > >> NAME  MAJ:MIN 
> > > >> RM
> > > >>   SIZE RO TYPE  MOUNTPOINT
> > > >> sda 8:0> > > >> 0
> > > >>   557G  0 disk
> > > >> ├─sda1  8:1> > > >> 0
> > > >>   500M  0 part  /boot
> > > >> └─sda2  8:2> > > >> 0
> > > >> 556.5G  0 part
> > > >>   ├─vg_gamma-lv_root (dm-0)   253:0> > > >> 0
> > > >>  50G  0 lvm   /
> > > >>   ├─vg_gamma-lv_swap (dm-1)   253:1> > > >> 0
> > > >>   4G  0 lvm   [SWAP]
> > > >>   └─vg_gamma-lv_home (dm-2)   253:2> > > >> 0
> > > >>   502.4G  0 lvm   /home
> > > >> sr0

Re: [ovirt-users] oVirt 4.0.1 on FC23: problem mounting NFSv4 with fsid=0

2016-08-01 Thread Idan Shaby
Hi Wodel,

Can you please verify that the patch that Nir sent [1] indeed solves the
problem?
You can use "git fetch https://gerrit.ovirt.org/vdsm
refs/changes/79/61579/2 && git checkout FETCH_HEAD".

Thanks,
Idan

On Wed, Jul 27, 2016 at 11:36 PM, Nir Soffer  wrote:

> On Wed, Jul 27, 2016 at 10:41 PM, Nir Soffer  wrote:
> > On Wed, Jul 27, 2016 at 6:07 PM, Nir Soffer  wrote:
> >> On Wed, Jul 27, 2016 at 4:57 PM, Idan Shaby  wrote:
> >>> Hi,
> >>>
> >>> Can you please attach the vdsm log so we can get all the details?
> >>>
> >>>
> >>> Thanks,
> >>> Idan
> >>>
> >>> On Wed, Jul 27, 2016 at 4:24 PM, wodel youchi 
> >>> wrote:
> 
>  Hi,
> 
>  I wanted to test the new version of oVirt the 4.0.1 on FC23, using HE
>  method and using NFSv4 for storage.
> 
>  When launching the deploy command, and choosing nfsv4 and filling the
>  mount point, the setup exits with error : Connection to storage server
>  failed.
> 
>  In vdsm log I have this error:
>  Could not connect to storageServer
>  Traceback (most recent call last):
>  ...
>  OSError: [Errno 2] Mount of `noveria.wodel.wd:/engine_vm` at
>  `/rhev/data-center/mnt/noveria.wodel.wd:_engine__vm` does not exist
> 
>  the df -h command shows that the nfs mount was done, but the device
> path
>  contains a double slash.
>  noveria.wodel.wd://vmengine  656G  111G  513G  18%
>  /rhev/data-center/mnt/noveria.wodel.wd:_vmengine
> >>
> >> Can you share the output of:
> >>
> >> cat /proc/mounts
> >>
> >> This is what vdsm is using the check if a mount exists.
> >>
> 
> 
>  I am not sure of the problem, but I think it's the double slash on the
>  nfs4 path when using fsid=0: noveria.wodel.wd://vmengine
> >>
> >> Vdsm is normalizing the mount path - when you try to mount:
> >>
> >>  noveria.wodel.wd://vmengine
> >>
> >> Vdsm normalize the path to:
> >>
> >>  noveria.wodel.wd:/vmengine
> >>
> >> And it pass this value to the mount command.
> >>
> >> Vdsm expect that the kernel will not modify the value and return
> unormalized
> >> paths.
> >>
> >> This looks like an issue reported in the util-linux list:
> >> http://www.spinics.net/lists/util-linux-ng/msg13078.html
> >>
> >> According to the report, this is known issue in the kernel and unlikely
> to
> >> be fixed soon.
> >>
> >> So it seems that we do need to normalize also what the kernel returns
> >> in /proc/mounts.
> >
> > I posted these patches that should fix this issue.
> >
> https://gerrit.ovirt.org/#/q/status:open+project:vdsm+branch:ovirt-4.0+topic:backport/4.0/normalize-mounts
>
> Testing the nfs4 patch show that we need more work.
>
> In the meantime, can you check if using mount path with double slash
> (e.g. server://path) in engine works?
>
> Also, can you file a bug about this?
>
> Cheers,
> Nir
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Resizing Disks on Active VMs

2016-08-01 Thread Idan Shaby
Hi Alan,

That's a known bug [1] that was already fixed since ovirt engine 4.0.2 [2].


Regards,
Idan

[1] *Bug 1349498*  - When
a VM is started, attached disks can't be edited anymore
[2] https://gerrit.ovirt.org/#/c/60891/ - webadmin: Fix disable of the
entire edit disk popup when VM is running

On Mon, Aug 1, 2016 at 4:48 PM, Alan Griffiths 
wrote:

> Hi,
>
> I'm currently testing 4.0 and trying understand what the capabilities are
> regards re-sizing of volumes on running VMs.
>
> From reading the documentation it appears that I should be able to extend
> a volume on a running VM, but I find that all the fields are greyed out in
> the Edit Virtual Disk dialogue box. In order to get access to the fields I
> have to power down the VM.
>
> Is this expected behavior?
>
> I'm running 4.0.1 with a GlusterFS data store.
>
> Thanks,
>
> Alan
>
> ___
> 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] Resizing Disks on Active VMs

2016-08-01 Thread Alan Griffiths
Hi,

I'm currently testing 4.0 and trying understand what the capabilities are
regards re-sizing of volumes on running VMs.

>From reading the documentation it appears that I should be able to extend a
volume on a running VM, but I find that all the fields are greyed out in
the Edit Virtual Disk dialogue box. In order to get access to the fields I
have to power down the VM.

Is this expected behavior?

I'm running 4.0.1 with a GlusterFS data store.

Thanks,

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


Re: [ovirt-users] [ovirt-devel] How to add ovs-based VM in version 4.0.2? Thank you

2016-08-01 Thread Meni Yakove
On Mon, Aug 1, 2016 at 11:07 AM, Dan Kenigsberg  wrote:

> On Mon, Aug 01, 2016 at 02:02:52PM +0800, lifuqiong wrote:
> > Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this
> version?
> > Is there any instruction? Thank you
>
> Please note and note well: OVS is not production-grade yet. It is only a
> preliminary tech preview, under active development.
>
> However, we'd be very happy to get your help in testing it (and possibly
> fixing it, too).
>
> When defining a new cluster, you should see a check box, letting you
> select OVS for that cluster.


To be precise, this is not a check box. In the Edit Cluster dialog, look at
the "switch
type" option, and change "LEGACY" to "OVS".




> After being checked, each VM network that
> is defined in your cluster would be implemented with OVS instead of
> Linux bridge.
>
> As aluded before, there are plenty of known definciencies (e.g., no
> persistence of ip config on VM network, no live migration, not all bond
> modes, etc etc). But do not hesitate to raise other issues with the
> devel mailing list.
>
> Happy testing!
>
> Dan.
> ___
> 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


[ovirt-users] oVirt 4 with custom SSL certificate and SPICE HTML5 browser client -> WebSocket error: Can't connect to websocket on URL: wss://ovirt.engine.fqdn:6100/

2016-08-01 Thread Алексей Максимов
Hello oVirt guru`s !

I have successfully replaced the oVirt 4 site SSL-certificate according to the 
instructions from "Replacing oVirt SSL Certificate" 
section in "oVirt Administration Guide"
http://www.ovirt.org/documentation/admin-guide/administration-guide/

3 files have been replaced:

/etc/pki/ovirt-engine/certs/apache.cer
/etc/pki/ovirt-engine/keys/apache.key.nopass
/etc/pki/ovirt-engine/apache-ca.pem

Now the oVirt site using my certificate and everything works fine, but when I 
try to use SPICE HTML5 browser client in Firefox or Chrome 
I see a gray screen and message under the button "Toggle messages output":
 
WebSocket error: Can't connect to websocket on URL: 
wss://ovirt.engine.fqdn:6100/eyJ...0=[object Event]


Before replacing certificates SPICE HTML5 browser client works.
Native SPICE client works fine.

Tell me what to do with SPICE HTML5 browser client?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] 回复: 回复: 回复: 回复: ovirt-engine-java-sdk-4.0: How fuzzy query

2016-08-01 Thread Martin Perina
Adding Eli ...

On Mon, Aug 1, 2016 at 12:35 PM, Ondra Machacek  wrote:

> On 08/01/2016 12:26 PM, 转圈圈 wrote:
>
>> This is a different meaning.
>>
>> List vms = vmsService.list().search("name=myvm1 or comment=myvm and
>> status=up").send().vms();
>> SQL statement: select * from vms where name = 'myvm1' or comment='myvm'
>> and  status = up
>>
>> List vms = vmsService.list().search("(name=myvm1 or comment=myvm)
>> and status=up").send().vms();
>> SQL statement: select * from vms where (name = 'myvm1'
>> or comment='myvm') and  status = up
>>
>> Query result are different.
>> I want the SQL statement: select * from vms where (name = 'myvm1'
>> or comment='myvm') and  status = up
>>
>
> oVirt search pattern is not 100% mapped to SQL query,
> so as I said, your query should work for you as expected without braces.
>
> Eli, can elaborate more for you, what's supported or not in oVirt search
> patterns, if needed.
>
>
>>
>> -- 原始邮件 --
>> *发件人:* "Ondra Machacek";;
>> *发送时间:* 2016年8月1日(星期一) 晚上6:18
>> *收件人:* "转圈圈"<313922...@qq.com>;
>> *抄送:* "users@ovirt.org";
>> *主题:* Re: 回复: 回复: 回复: [ovirt-users]
>> ovirt-engine-java-sdk-4.0: How fuzzy query
>>
>> On 08/01/2016 11:38 AM, 转圈圈 wrote:
>>
>>> thanks.
>>>for example:
>>> SQL statement:   select * from vms where (name = 'myvm1' or
>>> comment='myvm') and  status = up
>>>using SDK, created for by 'search':
>>> List vms = vmsService.list().search("(name=myvm1 or
>>> comment=myvm) and status=up").send().vms();
>>>The above is wrong,how to do?
>>>
>>
>> Just remove brackets:
>>
>>List vms = vmsService.list().search("name=myvm1 or comment=myvm
>> and status=up").send().vms();
>>
>> It's not needed in this case.
>>
>>
>>>
>>>
>>> -- 原始邮件 --
>>> *发件人:* "Ondra Machacek";;
>>> *发送时间:* 2016年8月1日(星期一) 下午5:31
>>> *收件人:* "转圈圈"<313922...@qq.com>;
>>> *主题:* Re: 回复: 回复: [ovirt-users] ovirt-engine-java-sdk-4.0: How
>>> fuzzy query
>>>
>>> On 08/01/2016 11:22 AM, 转圈圈 wrote:
>>>
 thanks.
 The above is wrong.
 if i want to use "like",how to do?

>>>
>>> You can use star, so for example this:
>>>
>>>Vm vm = vmsService.list().search("name=myvm*").send().vms().get(0);
>>>
>>> Will find for you myvm1,myvm2, etc
>>>
>>>

 -- 原始邮件 --
 *发件人:* "Ondra Machacek";;
 *发送时间:* 2016年8月1日(星期一) 下午5:18
 *收件人:* "转圈圈"<313922...@qq.com>;
 *抄送:* "users@ovirt.org";
 *主题:* Re: 回复: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy

>>> query
>>>

 On 08/01/2016 11:06 AM, 转圈圈 wrote:

> thanks.
> for example:
>List vms =
> systemService.vmsService().list().search("search=name=myvm and
> status=up").send().vms();
> but I use query conditions "and" ,have no result.why?
>

 Oh, sorry I meant you have to use 'search=' in case of using API,
 so URL looks like: fqdn/ovirt-engine/api/vms?search=name=myvm and
 status=down

 But in case of using SDK, the 'search=' is created for you by 'search'
 method, so
 this should actually work for you:

Vm vm = systemService().vmsService.list().search("name=myvm and
 status=up").send().vms().get(0);


>
>
> -- 原始邮件 --
> *发件人:* "Ondra Machacek";;
> *发送时间:* 2016年8月1日(星期一) 下午4:37
> *收件人:* "转圈圈"<313922...@qq.com>; "users";
> *主题:* Re: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query
>
> On 08/01/2016 07:13 AM, 转圈圈 wrote:
>
>> The above code is wrong,how fuzzy query?
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
> You need to prefix with 'search=',
> So for example to search by name or status, you should have something
>
 like:

>
> list().search("search=name=myvm or status=up").send()
>
> You can check examples here:
>
>
>
>

>>>
>> https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples
>>
> ___
> 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-engine-java-sdk-4.0: How fuzzy query

2016-08-01 Thread Ondra Machacek

On 08/01/2016 12:26 PM, ?? wrote:

This is a different meaning.

List vms = vmsService.list().search("name=myvm1 or comment=myvm and
status=up").send().vms();
SQL statement: select * from vms where name = 'myvm1' or comment='myvm'
and  status = up

List vms = vmsService.list().search("(name=myvm1 or comment=myvm)
and status=up").send().vms();
SQL statement: select * from vms where (name = 'myvm1'
or comment='myvm') and  status = up

Query result are different.
I want the SQL statement: select * from vms where (name = 'myvm1'
or comment='myvm') and  status = up


oVirt search pattern is not 100% mapped to SQL query,
so as I said, your query should work for you as expected without braces.

Eli, can elaborate more for you, what's supported or not in oVirt search 
patterns, if needed.





--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 6:18
*??:* "??"<313922...@qq.com>;
*:* "users@ovirt.org";
*:* Re: ?? ?? ?? [ovirt-users]
ovirt-engine-java-sdk-4.0: How fuzzy query

On 08/01/2016 11:38 AM, ?? wrote:

thanks.
   for example:
SQL statement:   select * from vms where (name = 'myvm1' or
comment='myvm') and  status = up
   using SDK, created for by 'search':
List vms = vmsService.list().search("(name=myvm1 or
comment=myvm) and status=up").send().vms();
   The above is wrong,how to do?


Just remove brackets:

   List vms = vmsService.list().search("name=myvm1 or comment=myvm
and status=up").send().vms();

It's not needed in this case.





--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 5:31
*??:* "??"<313922...@qq.com>;
*:* Re: ?? ?? [ovirt-users] ovirt-engine-java-sdk-4.0: How
fuzzy query

On 08/01/2016 11:22 AM, ?? wrote:

thanks.
The above is wrong.
if i want to use "like",how to do?


You can use star, so for example this:

   Vm vm = vmsService.list().search("name=myvm*").send().vms().get(0);

Will find for you myvm1,myvm2, etc




--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 5:18
*??:* "??"<313922...@qq.com>;
*:* "users@ovirt.org";
*:* Re: ?? [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy

query


On 08/01/2016 11:06 AM, ?? wrote:

thanks.
for example:
   List vms =
systemService.vmsService().list().search("search=name=myvm and
status=up").send().vms();
but I use query conditions "and" ??have no result.why?


Oh, sorry I meant you have to use 'search=' in case of using API,
so URL looks like: fqdn/ovirt-engine/api/vms?search=name=myvm and
status=down

But in case of using SDK, the 'search=' is created for you by 'search'
method, so
this should actually work for you:

   Vm vm = systemService().vmsService.list().search("name=myvm and
status=up").send().vms().get(0);





--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 4:37
*??:* "??"<313922...@qq.com>; "users";
*:* Re: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query

On 08/01/2016 07:13 AM, ?? wrote:

The above code is wrong,how fuzzy query?



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



You need to prefix with 'search=',
So for example to search by name or status, you should have something

like:


list().search("search=name=myvm or status=up").send()

You can check examples here:








https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples

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


Re: [ovirt-users] 回复: 回复: 回复: ovirt-engine-java-sdk-4.0: How fuzzy query

2016-08-01 Thread Ondra Machacek

On 08/01/2016 11:38 AM, ?? wrote:

thanks.
   for example:
SQL statement:   select * from vms where (name = 'myvm1' or
comment='myvm') and  status = up
   using SDK, created for by 'search':
List vms = vmsService.list().search("(name=myvm1 or
comment=myvm) and status=up").send().vms();
   The above is wrong,how to do?


Just remove brackets:

  List vms = vmsService.list().search("name=myvm1 or comment=myvm 
and status=up").send().vms();


It's not needed in this case.





--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 5:31
*??:* "??"<313922...@qq.com>;
*:* Re: ?? ?? [ovirt-users] ovirt-engine-java-sdk-4.0: How
fuzzy query

On 08/01/2016 11:22 AM, ?? wrote:

thanks.
The above is wrong.
if i want to use "like",how to do?


You can use star, so for example this:

   Vm vm = vmsService.list().search("name=myvm*").send().vms().get(0);

Will find for you myvm1,myvm2, etc




--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 5:18
*??:* "??"<313922...@qq.com>;
*:* "users@ovirt.org";
*:* Re: ?? [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy

query


On 08/01/2016 11:06 AM, ?? wrote:

thanks.
for example:
   List vms =
systemService.vmsService().list().search("search=name=myvm and
status=up").send().vms();
but I use query conditions "and" ??have no result.why?


Oh, sorry I meant you have to use 'search=' in case of using API,
so URL looks like: fqdn/ovirt-engine/api/vms?search=name=myvm and
status=down

But in case of using SDK, the 'search=' is created for you by 'search'
method, so
this should actually work for you:

   Vm vm = systemService().vmsService.list().search("name=myvm and
status=up").send().vms().get(0);





--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 4:37
*??:* "??"<313922...@qq.com>; "users";
*:* Re: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query

On 08/01/2016 07:13 AM, ?? wrote:

The above code is wrong,how fuzzy query?



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



You need to prefix with 'search=',
So for example to search by name or status, you should have something

like:


list().search("search=name=myvm or status=up").send()

You can check examples here:






https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples

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


[ovirt-users] Get Involved with the oVirt Project! Summer edition

2016-08-01 Thread Sandro Bonazzola
Hi,

Have you got some free time? Do you want to get involved in the oVirt
project?

Do you like the idea of having fresh disk images of your favorite
distribution in the oVirt Glance repository?
You can help by testing existing online images ensuring they work with
cloud-init,
or creating one yourself and report your success to de...@ovirt.org.
We'll be happy to upload the images once these are ready.

Do you like Debian? Do you have some programming or packaging skills?
Help getting Vdsm running on it! There is some on-going work [14] on
inclusion of Vdsm into Debian.
We wish to test and fix Vdsm Debian packages to make them working before
the next Debian freeze.
You can find all current Debian work (Vdsm and related packages) in Debian
git repositories [10].
You can follow the progress and participate on oVirt development mailing
list [11].

Here are some bugs you can try to help with:
1159784   ovirt-engine   Documentation   NEW   [RFE] Document when and
where new features are available ...
1120585   ovirt-image-uploader   Documentation   NEW   update image
uploader documentation
1120586   ovirt-iso-uploader   Documentation   NEW   update iso uploader
documentation
1120588   ovirt-log-collector   Documentation   NEW   update log collector
documentation
1237132   ovirt-engine   Setup.Engine   NEW   [TEXT] New package listing of
engine-setup when upgrading...
1115059   ovirt-engine   General   ASSIGNED   Incomplete error message when
adding VNIC profile to runn...

Are you great at packaging software? Do you prefer a distribution which is
currently unsupported by oVirt?
Do you want to have packages included in your preferred distribution? Help
getting oVirt ported there!

Fedora: http://lists.ovirt.org/pipermail/devel/2015-September/011426.html
CentOS: https://wiki.centos.org/SpecialInterestGroup/Virtualization
Gentoo: https://wiki.gentoo.org/wiki/OVirt (GSoC:
https://wiki.gentoo.org/wiki/Google_Summer_of_Code/2016/Ideas )
Debian:
http://www.ovirt.org/develop/release-management/features/debian-support-for-hosts/
Archlinux: http://www.ovirt.org/develop/developer-guide/arch-linux/
OpenSUSE: https://build.opensuse.org/project/show/Virtualization:oVirt

Do you love DevOps? You count stable builds in jenkins ci while trying to
fall asleep?
Then oVirt infra team is looking for you! Join the infra team and dive in
to do the newest and coolest devops tools today!
Here are some of our open tasks you can help with:
https://ovirt-jira.atlassian.net/secure/RapidBoard.jspa?rapidView=6
You can also help by sharing how you use oVirt in your DevOps environment
(please use [DevOps] in the subject).
You can check out more docs on the DevOps side of oVirt in [12][13]

You don't have programming skills, not enough time for DevOps, but still
want to contribute?
Here are some bugs you can take care of, also without writing a line of
code:
https://bugzilla.redhat.com/buglist.cgi?quicksearch=classification%3Aovirt%20cf_ovirt_team%3Adocs

Do you prefer to test things? We have some test cases[5] you can try, using
nightly snapshots[6].
For 4.1 we're rebasing Fedora support on Fedora 24, you can help by running
nightly snapshots[6] on it and reporting issues.

Do you want to contribute test cases? Most of the features[7] included in
oVirt are missing a test case, you're welcome to contribute one!

Do you want to contribute artworks? oVirt Live backgrounds and covers,
release banners, stickers,  Take a look at Fedora Artworks[9] as an
example of what you can do

Is this the first time you try to contribute to the oVirt project?
You can start from here [1][2]!

You don't know gerrit very well? You can find some more docs here [3].

Any other question about development? Feel free to ask on de...@ovirt.org
or on irc channel[4].

You don't really have time / skills for any development / documentation /
testing related task?
Spread the word[8]!

Let us know you're getting involved, present yourself and tell us what
you're going to do, you'll be welcome!

[1] http://www.ovirt.org/develop/
[2] http://www.ovirt.org/develop/dev-process/working-with-gerrit/
[3] https://gerrit-review.googlesource.com/Documentation
[4] http://www.ovirt.org/community/
[5] http://www.ovirt.org/develop/infra/testing/
[6] http://www.ovirt.org/develop/dev-process/install-nightly-snapshot/
[7] http://www.ovirt.org/develop/release-management/features/
[8]
http://www.zdnet.com/article/how-much-longer-can-red-hats-ovirt-remain-covert/
[9] https://fedoraproject.org/wiki/Artwork#Resources
[10] http://git.debian.org
[11] http://lists.ovirt.org/mailman/listinfo/devel
[12] http://ovirt-infra-docs.readthedocs.org/en/latest/
[13] http://www.ovirt.org/develop/infra/infrastructure-documentation/
[14]
https://www.ovirt.org/develop/release-management/features/debian-support-for-hosts/


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing 

Re: [ovirt-users] Safe to upgrade HE hosts from GUI?

2016-08-01 Thread Roy Golan
On 31 July 2016 at 18:26, Kenneth Bingham  wrote:

> Roy, would I do that in the Cluster tab, with New button, and then in host
> configurator select Hosted Engine sidebar? I noticed this option existed,
> but the RHEV docs and developer blogs I've been referencing specify the
> 'hosted-engine --deploy' method.
>
> on 4.0 this is the supported way of doing that. If fixes and prevents many
troubles and more than that, its simply doing that in 1 place.
The doc will be updated for that if not already. Also please refer to this
ovirt blog post [1]

[1]
http://www.ovirt.org/blog/2016/07/Manage-Your-Hosted-Engine-Hosts-Deployment/




> On Sun, Jul 31, 2016 at 3:04 AM Roy Golan  wrote:
>
>> On 30 July 2016 at 02:48, Kenneth Bingham  wrote:
>>
>>> Aw crap. I did exactly the same thing and this could explain a lot of
>>> the issues I've been pulling out my beard over. Every time I did
>>> 'hosted-engine --deploy' on the RHEV-M|NODE host I entered the FQDN of
>>> *that* host, not the first host, as the origin of the Gluster FS volume
>>> because at the time I didn't realize that
>>> a. the manager would key deduplication on the URI of the volume
>>> b. that the volume would be mounted on FUSE, not NFS, and therefore no
>>> single point of entry is created by using the FQDN of the first host
>>> because the GFS client will persist connections with all peers
>>>
>>>
>> If you ever want to add an hosted engine host to your setup please do
>> that from UI and not from CLI. That will prevent all this confusion.
>>
>>
>>
>>> On Fri, Jul 29, 2016 at 6:08 AM Simone Tiraboschi 
>>> wrote:
>>>
 On Fri, Jul 29, 2016 at 11:35 AM, Wee Sritippho 
 wrote:
 > On 29/7/2559 15:50, Simone Tiraboschi wrote:
 >>
 >> On Fri, Jul 29, 2016 at 6:31 AM, Wee Sritippho 
 wrote:
 >>>
 >>> On 28/7/2559 15:54, Simone Tiraboschi wrote:
 >>>
 >>> On Thu, Jul 28, 2016 at 10:41 AM, Wee Sritippho 
 >>> wrote:
 
  On 21/7/2559 16:53, Simone Tiraboschi wrote:
 
  On Thu, Jul 21, 2016 at 11:43 AM, Wee Sritippho <
 we...@forest.go.th>
  wrote:
 
 > Can I just follow
 >
 >
 http://www.ovirt.org/documentation/how-to/hosted-engine/#upgrade-hosted-engine
 > until step 3 and do everything else via GUI?
 
  Yes, absolutely.
 
 
  Hi, I upgrade a host (host02) via GUI and now its score is 0.
 Restarted
  the services but the result is still the same. Kinda lost now. What
  should I
  do next?
 
 >>> Can you please attach ovirt-ha-agent logs?
 >>>
 >>>
 >>> Yes, here are the logs:
 >>> https://app.box.com/s/b4urjty8dsuj98n3ywygpk3oh5o7pbsh
 >>
 >> Thanks Wee,
 >> your issue is here:
 >> MainThread::ERROR::2016-07-17
 >>
 >>
 14:32:45,586::storage_server::143::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(_validate_pre_connected_path)
 >> The hosted-engine storage domain is already mounted on
 >>
 >> '/rhev/data-center/mnt/glusterSD/host02.ovirt.forest.go.th:
 _hosted__engine/639e689c-8493-479b-a6eb-cc92b6fc4cf4'
 >> with a path that is not supported anymore: the right path should be
 >>
 >> '/rhev/data-center/mnt/glusterSD/host01.ovirt.forest.go.th:
 _hosted__engine/639e689c-8493-479b-a6eb-cc92b6fc4cf4'.
 >>
 >> Did you manually tried to avoid the issue of a single entry point for
 >> the gluster FS volume using host01.ovirt.forest.go.th:
 _hosted__engine
 >> and host02.ovirt.forest.go.th:_hosted__engine there?
 >> This could cause a lot of confusion since the code could not detect
 >> that the storage domain is the same and you can end with it mounted
 >> twice into different locations and a lot of issues.
 >> The correct solution of that issue was this one:
 >> https://bugzilla.redhat.com/show_bug.cgi?id=1298693#c20
 >>
 >> Now, to have it fixed on your env you have to hack a bit.
 >> First step, you have to edit
 >> /etc/ovirt-hosted-engine/hosted-engine.conf on all your hosted-engine
 >> hosts to ensure that the storage field always point to the same entry
 >> point (host01 for instance)
 >> Then on each host you can add something like:
 >>
 >> mnt_options=backupvolfile-server=host02.ovirt.forest.go.th:h
 ost03.ovirt.forest.go.th
 ,fetch-attempts=2,log-level=WARNING,log-file=/var/log/engine_domain.log
 >>
 >> Then check the representation of your storage connection in the table
 >> storage_server_connections of the engine DB and make sure that
 >> connection refers to the entry point you used in hosted-engine.conf
 on
 >> all your hosts, you have lastly to set the value of mount_options
 also
 >> here.
 >
 > 

Re: [ovirt-users] 回复: ovirt-engine-java-sdk-4.0: How fuzzy query

2016-08-01 Thread Ondra Machacek

On 08/01/2016 11:06 AM, ?? wrote:

thanks.
for example:
   List vms =
systemService.vmsService().list().search("search=name=myvm and
status=up").send().vms();
but I use query conditions "and" ??have no result.why?


Oh, sorry I meant you have to use 'search=' in case of using API,
so URL looks like: fqdn/ovirt-engine/api/vms?search=name=myvm and 
status=down


But in case of using SDK, the 'search=' is created for you by 'search' 
method, so

this should actually work for you:

  Vm vm = systemService().vmsService.list().search("name=myvm and 
status=up").send().vms().get(0);






--  --
*??:* "Ondra Machacek";;
*:* 2016??8??1??(??) 4:37
*??:* "??"<313922...@qq.com>; "users";
*:* Re: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query

On 08/01/2016 07:13 AM, ?? wrote:

The above code is wrong,how fuzzy query?



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



You need to prefix with 'search=',
So for example to search by name or status, you should have something like:

list().search("search=name=myvm or status=up").send()

You can check examples here:


https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples

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


Re: [ovirt-users] ovirt-engine-java-sdk-4.0: How fuzzy query

2016-08-01 Thread Ondra Machacek

On 08/01/2016 07:13 AM, 转圈圈 wrote:

The above code is wrong,how fuzzy query?



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



You need to prefix with 'search=',
So for example to search by name or status, you should have something like:

   list().search("search=name=myvm or status=up").send()

You can check examples here:


https://github.com/oVirt/ovirt-engine-sdk-java/tree/master/sdk/src/test/java/org/ovirt/engine/sdk4/examples
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Safe to upgrade HE hosts from GUI?

2016-08-01 Thread Simone Tiraboschi
On Mon, Aug 1, 2016 at 3:54 AM, Wee Sritippho  wrote:
> On 29/7/2559 17:07, Simone Tiraboschi wrote:
>>
>> On Fri, Jul 29, 2016 at 11:35 AM, Wee Sritippho 
>> wrote:
>>>
>>> On 29/7/2559 15:50, Simone Tiraboschi wrote:

 On Fri, Jul 29, 2016 at 6:31 AM, Wee Sritippho 
 wrote:
>
> On 28/7/2559 15:54, Simone Tiraboschi wrote:
>
> On Thu, Jul 28, 2016 at 10:41 AM, Wee Sritippho 
> wrote:
>>
>> On 21/7/2559 16:53, Simone Tiraboschi wrote:
>>
>> On Thu, Jul 21, 2016 at 11:43 AM, Wee Sritippho 
>> wrote:
>>
>>> Can I just follow
>>>
>>>
>>> http://www.ovirt.org/documentation/how-to/hosted-engine/#upgrade-hosted-engine
>>> until step 3 and do everything else via GUI?
>>
>> Yes, absolutely.
>>
>>
>> Hi, I upgrade a host (host02) via GUI and now its score is 0.
>> Restarted
>> the services but the result is still the same. Kinda lost now. What
>> should I
>> do next?
>>
> Can you please attach ovirt-ha-agent logs?
>
>
> Yes, here are the logs:
> https://app.box.com/s/b4urjty8dsuj98n3ywygpk3oh5o7pbsh

 Thanks Wee,
 your issue is here:
 MainThread::ERROR::2016-07-17


 14:32:45,586::storage_server::143::ovirt_hosted_engine_ha.lib.storage_server.StorageServer::(_validate_pre_connected_path)
 The hosted-engine storage domain is already mounted on


 '/rhev/data-center/mnt/glusterSD/host02.ovirt.forest.go.th:_hosted__engine/639e689c-8493-479b-a6eb-cc92b6fc4cf4'
 with a path that is not supported anymore: the right path should be


 '/rhev/data-center/mnt/glusterSD/host01.ovirt.forest.go.th:_hosted__engine/639e689c-8493-479b-a6eb-cc92b6fc4cf4'.

 Did you manually tried to avoid the issue of a single entry point for
 the gluster FS volume using host01.ovirt.forest.go.th:_hosted__engine
 and host02.ovirt.forest.go.th:_hosted__engine there?
 This could cause a lot of confusion since the code could not detect
 that the storage domain is the same and you can end with it mounted
 twice into different locations and a lot of issues.
 The correct solution of that issue was this one:
 https://bugzilla.redhat.com/show_bug.cgi?id=1298693#c20

 Now, to have it fixed on your env you have to hack a bit.
 First step, you have to edit
 /etc/ovirt-hosted-engine/hosted-engine.conf on all your hosted-engine
 hosts to ensure that the storage field always point to the same entry
 point (host01 for instance)
 Then on each host you can add something like:


 mnt_options=backupvolfile-server=host02.ovirt.forest.go.th:host03.ovirt.forest.go.th,fetch-attempts=2,log-level=WARNING,log-file=/var/log/engine_domain.log

 Then check the representation of your storage connection in the table
 storage_server_connections of the engine DB and make sure that
 connection refers to the entry point you used in hosted-engine.conf on
 all your hosts, you have lastly to set the value of mount_options also
 here.
>>>
>>> Weird. The configuration in all hosts are already referring to host01.
>>
>> but for sure you have a connection pointing to host02 somewhere, did
>> you try to manually deploy from CLI connecting the gluster volume on
>> host02?
>
> If I recall correctly, yes.

Ok, so please reboot your host before trying again to make sure that
every reference get cleaned.

>>> Also, in the storage_server_connections table:
>>>
>>> engine=> SELECT * FROM storage_server_connections;
>>>id  | connection|
>>> user_name | password | iqn | port | portal | storage_type | mount_options
>>> |
>>> vfs_type
>>>   | nfs_version | nfs_timeo | nfs_retrans
>>>
>>> --+--+---+--+-+--++--+---+--
>>> -+-+---+-
>>>   bd78d299-c8ff-4251-8aab-432ce6443ae8 |
>>> host01.ovirt.forest.go.th:/hosted_engine |   | | |  | 1
>>> |7 |   | glusterfs
>>>   | |   |
>>> (1 row)
>>>
>>>
 Please tune also the value of network.ping-timeout for your glusterFS
 volume to avoid this:
https://bugzilla.redhat.com/show_bug.cgi?id=1319657#c17
>>>
>>>
>>> --
>>> Wee
>>>
>
> --
> Wee
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to adding a host to ovirt engine during a no internet enviroment?

2016-08-01 Thread Yedidyah Bar David
On Mon, Aug 1, 2016 at 10:28 AM, lifuqiong  wrote:
>
> But is there a package list I should pre-install? Thank you

No, and this list is not fixed - it depends on options etc set
on the engine side.

You can check host-deploy logs to see what was actually installed.
Or yum.log on the host.

Best,

>
>
> -邮件原件-
> 发件人: Yedidyah Bar David [mailto:d...@redhat.com]
> 发送时间: 2016年8月1日 14:01
> 收件人: lifuqiong
> 抄送: users
> 主题: Re: [ovirt-users] How to adding a host to ovirt engine during a no 
> internet enviroment?
>
> On Mon, Aug 1, 2016 at 4:52 AM, lifuqiong  wrote:
>> Hi,
>>
>> When  adding a new host to ovirt engine, installing log show it will
>> download a lot of package from internet , just like this:
>>
>>
>>
>> Installing Host server117. Yum install: 3/3:
>> iptables-services-1.4.21-16.el7.x86_64.
>>
>> Installing Host server117. Yum install: 2/3:
>> ovirt-vmconsole-host-1.0.4-1.el7.centos.noarch.
>>
>> Installing Host server117. Yum install: 1/3:
>> 10:qemu-kvm-tools-ev-2.3.0-31.el7.16.1.x86_64
>>
>>
>>
>>
>>
>> How to adding a vdsm during a no internet environment if we can’t
>> download package from internet or intranet?
>
> You can try pre-installing all the required packages and make sure you have 
> no repos pointing to inaccessible servers.
>
> Or use ovirt-node.
>
> Best,
> --
> Didi
>



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


Re: [ovirt-users] How to adding a host to ovirt engine during a no internet enviroment?

2016-08-01 Thread lifuqiong

But is there a package list I should pre-install? Thank you


-邮件原件-
发件人: Yedidyah Bar David [mailto:d...@redhat.com] 
发送时间: 2016年8月1日 14:01
收件人: lifuqiong
抄送: users
主题: Re: [ovirt-users] How to adding a host to ovirt engine during a no internet 
enviroment?

On Mon, Aug 1, 2016 at 4:52 AM, lifuqiong  wrote:
> Hi,
>
> When  adding a new host to ovirt engine, installing log show it will 
> download a lot of package from internet , just like this:
>
>
>
> Installing Host server117. Yum install: 3/3:
> iptables-services-1.4.21-16.el7.x86_64.
>
> Installing Host server117. Yum install: 2/3:
> ovirt-vmconsole-host-1.0.4-1.el7.centos.noarch.
>
> Installing Host server117. Yum install: 1/3:
> 10:qemu-kvm-tools-ev-2.3.0-31.el7.16.1.x86_64
>
>
>
>
>
> How to adding a vdsm during a no internet environment if we can’t 
> download package from internet or intranet?

You can try pre-installing all the required packages and make sure you have no 
repos pointing to inaccessible servers.

Or use ovirt-node.

Best,
--
Didi

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


Re: [ovirt-users] Is it is possible to edit the list of Operating Systems for a VM ?

2016-08-01 Thread Yaniv Dary
Here are the details:
http://www.ovirt.org/develop/release-management/features/virt/os-info/
You should not use the DB since all your changes will be deleted on engine
restart.

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 Sun, Jul 31, 2016 at 9:51 PM, Peter Michael Calum  wrote:

> Hi
>
>
>
> I mean editing ‘Operating system’ drop down list, when you create New VM.
>
> OK to do it via Database or Conf file.
>
>
>
> Thanks
>
> Peter
>
>
>
> *Fra:* Yanir Quinn [mailto:yqu...@redhat.com]
> *Sendt:* 31. juli 2016 12:17
> *Til:* Peter Michael Calum 
> *Cc:* users@ovirt.org
> *Emne:* Re: [ovirt-users] Is it is possible to edit the list of Operating
> Systems for a VM ?
>
>
>
> Hi,
>
> What are you aiming for ?  having a filtered list in UI for a vm ?  add a
> non-existing OS to the list ?
>
> Regards
>
> Yanir Quinn
>
>
>
> On Fri, Jul 29, 2016 at 12:00 PM, Peter Michael Calum 
> wrote:
>
> Hi,
>
> Does anyone know if it is possible to edit the list of Operating Systems
> for a VM.
> - I'd like it to, for example, "Centos Linux 6.x x64" or "Fedora xx" in
> this list.
>
> Kind regards
> Peter Calum
>
> ___
> 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] How to add ovs-based VM in version 4.0.2? Thank you

2016-08-01 Thread lifuqiong
Hi, I upgrade my ovirt to version 4.0.2.2, how to using ovs in this version?
Is there any instruction? Thank you  

 

 

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


Re: [ovirt-users] How to adding a host to ovirt engine during a no internet enviroment?

2016-08-01 Thread Yedidyah Bar David
On Mon, Aug 1, 2016 at 4:52 AM, lifuqiong  wrote:
> Hi,
>
> When  adding a new host to ovirt engine, installing log show it will
> download a lot of package from internet , just like this:
>
>
>
> Installing Host server117. Yum install: 3/3:
> iptables-services-1.4.21-16.el7.x86_64.
>
> Installing Host server117. Yum install: 2/3:
> ovirt-vmconsole-host-1.0.4-1.el7.centos.noarch.
>
> Installing Host server117. Yum install: 1/3:
> 10:qemu-kvm-tools-ev-2.3.0-31.el7.16.1.x86_64
>
>
>
>
>
> How to adding a vdsm during a no internet environment if we can’t download
> package from internet or intranet?

You can try pre-installing all the required packages and
make sure you have no repos pointing to inaccessible servers.

Or use ovirt-node.

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