[ovirt-users] oVirt Node 4.1.2 offering RC update?

2017-07-07 Thread Vinícius Ferrão
Hello,

I’ve noted a strange thing on oVirt. On the Hosted Engine an update was offered 
and I was a bit confused, since I’m running the latest oVirt Node release.

To check if 4.1.3 was already released I issued an “yum update” on the command 
line and for my surprise an RC release was offered. This not seems to be right:

==
 PackageArch   Version  
  Repository Size
==
Installing:
 ovirt-node-ng-image-update noarch 
4.1.3-0.3.rc3.20170622082156.git47b4302.el7.centos ovirt-4.1 544 M
 replacing  ovirt-node-ng-image-update-placeholder.noarch 4.1.2-1.el7.centos
Updating:
 ovirt-engine-appliance noarch 4.1-20170622.1.el7.centos
  ovirt-4.1 967 M

Transaction Summary
==
Install  1 Package
Upgrade  1 Package

Total download size: 1.5 G
Is this ok [y/d/N]: N

Is this normal behavior? This isn’t really good, since it can lead to stable to 
unstable moves on production. If this is normal, how can we avoid it?

Thanks,
V.

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


[ovirt-users] oVirt's VM backup

2017-07-07 Thread Victor José Acosta Domínguez
Hello everyone, i created a python tool to backup and restore oVirt's VMs.

Also i created a little "how to" on my blog:
http://blog.infratic.com/2017/07/create-ovirtrhevs-vm-backup/

I hope it help someone else

Regards

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


Re: [ovirt-users] Installation of oVirt 4.1, Gluster Storage and Hosted Engine

2017-07-07 Thread Gianluca Cecchi
Il 07/Lug/2017 18:38, "Simone Marchioni"  ha
scritto:

Hi to all,

I have an old installation of oVirt 3.3 with the Engine on a separate
server. I wanted to test the last oVirt 4.1 with Gluster Storage and Hosted
Engine.

Followed the following tutorial:

http://www.ovirt.org/blog/2017/04/up-and-running-with-ovirt-
4.1-and-gluster-storage/




... snip ...


[script1]
action=execute
ignore_script_errors=no
file=/usr/share/ansible/gdeploy/scripts/grafton-sanity-check.sh -d sdb -h
ha1.domain.it,ha2.domain.it,ha3.domain.it

... snip ...




When I hit "Deploy" button the Deployment fails with the following error:

PLAY [gluster_servers] **
***

TASK [Run a shell script] **

fatal: [ha1.domain.it]: FAILED! => {"failed": true, "msg": "The conditional
check 'result.rc != 0' failed. The error was: error while evaluating
conditional (result.rc != 0): 'dict object' has no attribute 'rc'"}
fatal: [ha2.domain.it]: FAILED! => {"failed": true, "msg": "The conditional
check 'result.rc != 0' failed. The error was: error while evaluating
conditional (result.rc != 0): 'dict object' has no attribute 'rc'"}
fatal: [ha3.domain.it]: FAILED! => {"failed": true, "msg": "The conditional
check 'result.rc != 0' failed. The error was: error while evaluating
conditional (result.rc != 0): 'dict object' has no attribute 'rc'"}
to retry, use: --limit @/tmp/tmpcV3lam/run-script.retry

PLAY RECAP 
*
ha1.domain.it: ok=0changed=0unreachable=0 failed=1
ha2.domain.it: ok=0changed=0unreachable=0 failed=1
ha3.domain.it: ok=0changed=0unreachable=0 failed=1

What I'm doing wrong? Maybe I need to initializa glusterfs in some way...
What are the logs used to log the status of this deployment so I can check
the errors?

Thanks in advance!
Simone
___



Gdeploy uses ansible that seems to fail at its first step when executing
its shell module

http://docs.ansible.com/ansible/shell_module.html

In practice in my opinion the shell script defined by [script1] (
grafton-sanity-check.sh) above doesn't exit with a return code (rc) for
some reason...
Perhaps you have already done a partial step previously?  or your disks
already contain a label?
Is it correct sdb as the target for your disk configuration for gluster?
I would try to reinitialize the disks, such as

dd if=/dev/zero of=/dev/sdb bs=1024k count=1

ONLY if it is correct that sdb is the disk to format for brick filesystem..
Hih,
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] virt-v2v to glusterfs storage domain

2017-07-07 Thread Ramachandra Reddy Ankireddypalle
Hi,
 Does virt-v2v command work with glusterfs storage domain. I have an
OVA image and that needs to be imported to glusterfs storage domain. Please
provide some pointers to this.

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


Re: [ovirt-users] ovirt 4.1 : Can't deploy second node on self hosted engine cluster and host with hosted engine deployed (and also hosted engine VM) is not added to interface

2017-07-07 Thread Phillip Bailey
You're welcome. I'm glad to hear that you got everything working! =)

-Phillip Bailey

On Fri, Jul 7, 2017 at 10:43 AM, yayo (j)  wrote:

> Hi and thank you for the answer,
>
> After many many errors and problem, I have tried to start deploying
> hosted-engine from node02 and... everything is working good, the last
> message from ovirt activities is:
>
> *Jul 7, 2017 4:38:00 PM Hosted Engine VM was imported successfully*
>
>
> I think that something as gone wrong in the first time i've tried to
> install and this is have compromised every next Installation attempts. Now
> i will reinstall the node01 and I will join it in cluster from interface
>
> Thank you for support
>
> 2017-07-07 14:35 GMT+02:00 Phillip Bailey :
>
>> Hi yayo,
>>
>> Based off of the information you've provided here, it doesn't sound like
>> the deployment was successful despite being able to access the web
>> interface. You can check the status of the deployment from node01 by
>> running 'hosted-engine --check-deployed'. You can also check the status of
>> the VM by running 'hosted-engine --vm-status'. Could you run those commands
>> and provide the output? It would also be helpful if you could provide the
>> log indicated at the end of the deploy script.
>>
>> As far as the storage issue, you must have an active host in order to add
>> a storage/data domain. Typically, the first data domain added will become
>> the master data domain, which will be indicated in the web interface by
>> '(Master)' following the type in the Domain Type column in the Storage main
>> tab. The host that was selected during the domain setup will become the
>> Storage Pool Manager (SPM) and will have 'SPM' in the SPM column in the
>> Hosts main tab. If you attempt to move this host to maintenance mode,
>> another host will be selected to become the SPM. If no other hosts are
>> available, I believe you'll get an error message which will prevent you
>> from being able to move it to maintenance. I believe in this situation you
>> can put the storage domain into maintenance mode by going to the Storage
>> sub tab under the Data Center main tab, selecting the domain, and clicking
>> the 'Maintenance' button. This should allow you to then put the last host
>> into maintenance mode.
>>
>> However, I think your initial deployment needs to be fixed before adding
>> more hosts. Hopefully, I or someone else will be able to help you with that
>> once you've responded with the output from the status commands and the
>> setup log.
>>
>> -Phillip Bailey
>>
>> On Fri, Jul 7, 2017 at 7:22 AM, yayo (j)  wrote:
>>
>>> Hi at all,
>>>
>>> I have correctly deployed an hosted engine using node01 via:
>>>
>>> hosted-engine --deploy
>>>
>>> Using FC shared storage.
>>>
>>> Seems all work good but, when I login in to the ovirt web interface I
>>> can't find the hosted engine under the VM tab (also the node01 server).
>>>
>>> So, I have tried to add node02 (no problem) and added the "Data Domain"
>>> storage (another FC share storage).
>>>
>>> Now (I Think) I needs to deploy also here the hosted engine but I can't.
>>> There is only one way, to put node02 in maintenance mode but, after that,
>>> "Data Domain" added going down and, when I try to deploy the hosted engine
>>> interface says:
>>>
>>>
>>> Error while executing action:
>>>
>>> node02:
>>> Cannot edit Host. You are using an unmanaged hosted engine VM. Please
>>> add the first storage domain in order to start the hosted engine import
>>> process.
>>>
>>> what is this "first storage domain"?
>>>
>>> I have not added the node01 yet because last time hosted engine crashed
>>> and the only way was to restart the installation 
>>>
>>>
>>> Note: Hosted engine seems to be correcty deployed because all work good,
>>> but deploy script ended with error:
>>>
>>> [ INFO  ] Engine-setup successfully completed
>>> [ INFO  ] Engine is still unreachable
>>> [ INFO  ] Engine is still not reachable, waiting...
>>> [more of these messages]
>>> [ ERROR ] Engine is still not reachable
>>> [ ERROR ] Failed to execute stage 'Closing up': Engine is still not
>>> reachable
>>> [ INFO  ] Stage: Clean up
>>> [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-
>>> setup/answers/answers-20170123113113.conf'
>>> [ INFO  ] Stage: Pre-termination
>>> [ INFO  ] Stage: Termination
>>> [ ERROR ] Hosted Engine deployment failed: this system is not reliable,
>>> please check the issue,fix and redeploy
>>>   Log file is located at /var/log/ovirt-hosted-engine-s
>>> etup/ovirt-hosted-engine-setup-20170123105043-kvzx84.log
>>>
>>> Is related to this bug? https://bugzilla.redhat.com/sh
>>> ow_bug.cgi?id=1415822
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>>
>>
>
>
> --
> Linux User: 369739 http://counter.li.org
>
___
Users mailing 

[ovirt-users] Import OVA to KVM

2017-07-07 Thread Ramachandra Reddy Ankireddypalle
Hi,
 I am trying to import a windows OVA file. Ovirt engine is up and
running. The target storage domain is going to be glusterfs storage
domain.  Is there any documentation that can be looked at to achieve this.

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


[ovirt-users] Installation of oVirt 4.1, Gluster Storage and Hosted Engine

2017-07-07 Thread Simone Marchioni

Hi to all,

I have an old installation of oVirt 3.3 with the Engine on a separate 
server. I wanted to test the last oVirt 4.1 with Gluster Storage and 
Hosted Engine.


Followed the following tutorial:

http://www.ovirt.org/blog/2017/04/up-and-running-with-ovirt-4.1-and-gluster-storage/

I have 3 hosts as shown in the tutorial. Installed CentOS 7.3, the oVirt 
4.1 repo and all required packages. Configured passwordless ssh as stated.
Then I log in cockpit web interface, selected "Hosted Engine with 
Gluster" and hit the Start button. Configured the parameters as shown in 
the tutorial.


In the last step (5) the Generated Gdeply configuration (note: replaced 
the real domain with "domain.it"):


#gdeploy configuration generated by cockpit-gluster plugin
[hosts]
ha1.domain.it
ha2.domain.it
ha3.domain.it

[script1]
action=execute
ignore_script_errors=no
file=/usr/share/ansible/gdeploy/scripts/grafton-sanity-check.sh -d sdb 
-h ha1.domain.it,ha2.domain.it,ha3.domain.it


[disktype]
raid6

[diskcount]
12

[stripesize]
256

[service1]
action=enable
service=chronyd

[service2]
action=restart
service=chronyd

[shell2]
action=execute
command=vdsm-tool configure --force

[script3]
action=execute
file=/usr/share/ansible/gdeploy/scripts/disable-multipath.sh

[pv1]
action=create
devices=sdb
ignore_pv_errors=no

[vg1]
action=create
vgname=gluster_vg_sdb
pvname=sdb
ignore_vg_errors=no

[lv1:{ha1.domain.it,ha2.domain.it}]
action=create
poolname=gluster_thinpool_sdb
ignore_lv_errors=no
vgname=gluster_vg_sdb
lvtype=thinpool
size=110GB
poolmetadatasize=1GB

[lv2:ha3.domain.it]
action=create
poolname=gluster_thinpool_sdb
ignore_lv_errors=no
vgname=gluster_vg_sdb
lvtype=thinpool
size=80GB
poolmetadatasize=1GB

[lv3:{ha1.domain.it,ha2.domain.it}]
action=create
lvname=gluster_lv_engine
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/engine
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=50GB

[lv4:ha3.domain.it]
action=create
lvname=gluster_lv_engine
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/engine
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv5:{ha1.domain.it,ha2.domain.it}]
action=create
lvname=gluster_lv_data
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/data
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv6:ha3.domain.it]
action=create
lvname=gluster_lv_data
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/data
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv7:{ha1.domain.it,ha2.domain.it}]
action=create
lvname=gluster_lv_export
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/export
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv8:ha3.domain.it]
action=create
lvname=gluster_lv_export
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/export
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv9:{ha1.domain.it,ha2.domain.it}]
action=create
lvname=gluster_lv_iso
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/iso
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[lv10:ha3.domain.it]
action=create
lvname=gluster_lv_iso
ignore_lv_errors=no
vgname=gluster_vg_sdb
mount=/gluster_bricks/iso
lvtype=thinlv
poolname=gluster_thinpool_sdb
virtualsize=20GB

[selinux]
yes

[service3]
action=restart
service=glusterd
slice_setup=yes

[firewalld]
action=add
ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp
services=glusterfs

[script2]
action=execute
file=/usr/share/ansible/gdeploy/scripts/disable-gluster-hooks.sh

[shell3]
action=execute
command=usermod -a -G gluster qemu

[volume1]
action=create
volname=engine
transport=tcp
replica=yes
replica_count=3
key=group,storage.owner-uid,storage.owner-gid,network.ping-timeout,performance.strict-o-direct,network.remote-dio,cluster.granular-entry-heal
value=virt,36,36,30,on,off,enable
brick_dirs=ha1.domain.it:/gluster_bricks/engine/engine,ha2.domain.it:/gluster_bricks/engine/engine,ha3.domain.it:/gluster_bricks/engine/engine
ignore_volume_errors=no
arbiter_count=1

[volume2]
action=create
volname=data
transport=tcp
replica=yes
replica_count=3
key=group,storage.owner-uid,storage.owner-gid,network.ping-timeout,performance.strict-o-direct,network.remote-dio,cluster.granular-entry-heal
value=virt,36,36,30,on,off,enable
brick_dirs=ha1.domain.it:/gluster_bricks/data/data,ha2.domain.it:/gluster_bricks/data/data,ha3.domain.it:/gluster_bricks/data/data
ignore_volume_errors=no
arbiter_count=1

[volume3]
action=create
volname=export
transport=tcp
replica=yes
replica_count=3
key=group,storage.owner-uid,storage.owner-gid,network.ping-timeout,performance.strict-o-direct,network.remote-dio,cluster.granular-entry-heal
value=virt,36,36,30,on,off,enable
brick_dirs=ha1.domain.it:/gluster_bricks/export/export,ha2.domain.it:/gluster_bricks/export/export,ha3.domain.it:/gluster_bricks/export/export
ignore_volume_errors=no
arbiter_count=1

[volume4]
action=create
volname=iso

Re: [ovirt-users] ovirt engine "Configure Local Storage" , why a cluster can have only one host ?

2017-07-07 Thread MotS
Because vdsm can only manage one storage pool, so you can't have 
different storage domains on the hosts in your cluster.


On 2017-07-07 13:31, 转圈圈 wrote:

ovirt engine "Configure Local Storage" ,why a cluster can have only
one host ?
___
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 4.1 : Can't deploy second node on self hosted engine cluster and host with hosted engine deployed (and also hosted engine VM) is not added to interface

2017-07-07 Thread yayo (j)
Hi and thank you for the answer,

After many many errors and problem, I have tried to start deploying
hosted-engine from node02 and... everything is working good, the last
message from ovirt activities is:

*Jul 7, 2017 4:38:00 PM Hosted Engine VM was imported successfully*


I think that something as gone wrong in the first time i've tried to
install and this is have compromised every next Installation attempts. Now
i will reinstall the node01 and I will join it in cluster from interface

Thank you for support

2017-07-07 14:35 GMT+02:00 Phillip Bailey :

> Hi yayo,
>
> Based off of the information you've provided here, it doesn't sound like
> the deployment was successful despite being able to access the web
> interface. You can check the status of the deployment from node01 by
> running 'hosted-engine --check-deployed'. You can also check the status of
> the VM by running 'hosted-engine --vm-status'. Could you run those commands
> and provide the output? It would also be helpful if you could provide the
> log indicated at the end of the deploy script.
>
> As far as the storage issue, you must have an active host in order to add
> a storage/data domain. Typically, the first data domain added will become
> the master data domain, which will be indicated in the web interface by
> '(Master)' following the type in the Domain Type column in the Storage main
> tab. The host that was selected during the domain setup will become the
> Storage Pool Manager (SPM) and will have 'SPM' in the SPM column in the
> Hosts main tab. If you attempt to move this host to maintenance mode,
> another host will be selected to become the SPM. If no other hosts are
> available, I believe you'll get an error message which will prevent you
> from being able to move it to maintenance. I believe in this situation you
> can put the storage domain into maintenance mode by going to the Storage
> sub tab under the Data Center main tab, selecting the domain, and clicking
> the 'Maintenance' button. This should allow you to then put the last host
> into maintenance mode.
>
> However, I think your initial deployment needs to be fixed before adding
> more hosts. Hopefully, I or someone else will be able to help you with that
> once you've responded with the output from the status commands and the
> setup log.
>
> -Phillip Bailey
>
> On Fri, Jul 7, 2017 at 7:22 AM, yayo (j)  wrote:
>
>> Hi at all,
>>
>> I have correctly deployed an hosted engine using node01 via:
>>
>> hosted-engine --deploy
>>
>> Using FC shared storage.
>>
>> Seems all work good but, when I login in to the ovirt web interface I
>> can't find the hosted engine under the VM tab (also the node01 server).
>>
>> So, I have tried to add node02 (no problem) and added the "Data Domain"
>> storage (another FC share storage).
>>
>> Now (I Think) I needs to deploy also here the hosted engine but I can't.
>> There is only one way, to put node02 in maintenance mode but, after that,
>> "Data Domain" added going down and, when I try to deploy the hosted engine
>> interface says:
>>
>>
>> Error while executing action:
>>
>> node02:
>> Cannot edit Host. You are using an unmanaged hosted engine VM. Please add
>> the first storage domain in order to start the hosted engine import process.
>>
>> what is this "first storage domain"?
>>
>> I have not added the node01 yet because last time hosted engine crashed
>> and the only way was to restart the installation 
>>
>>
>> Note: Hosted engine seems to be correcty deployed because all work good,
>> but deploy script ended with error:
>>
>> [ INFO  ] Engine-setup successfully completed
>> [ INFO  ] Engine is still unreachable
>> [ INFO  ] Engine is still not reachable, waiting...
>> [more of these messages]
>> [ ERROR ] Engine is still not reachable
>> [ ERROR ] Failed to execute stage 'Closing up': Engine is still not
>> reachable
>> [ INFO  ] Stage: Clean up
>> [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-
>> setup/answers/answers-20170123113113.conf'
>> [ INFO  ] Stage: Pre-termination
>> [ INFO  ] Stage: Termination
>> [ ERROR ] Hosted Engine deployment failed: this system is not reliable,
>> please check the issue,fix and redeploy
>>   Log file is located at /var/log/ovirt-hosted-engine-s
>> etup/ovirt-hosted-engine-setup-20170123105043-kvzx84.log
>>
>> Is related to this bug? https://bugzilla.redhat.com/sh
>> ow_bug.cgi?id=1415822
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>


-- 
Linux User: 369739 http://counter.li.org
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Ming Xie
I could reproduce customer's problem

Packages:
rhv:4.1.3-0.1.el7
vdsm-4.19.20-1.el7ev.x86_64
virt-v2v-1.36.3-6.el7.x86_64
libguestfs-1.36.3-6.el7.x86_64

Steps:
1.Prepare a guest which is not listed storage pool
# virsh dumpxml avocado-vt-vm1

   
  
  
  
  

.
2.Try to import this guest in rhv4.1 from KVM host but failed to import the 
guest as screenshot and get error info from vdsm.log

2017-07-07 14:41:22,176+0800 ERROR (jsonrpc/6) [root] Error getting disk size 
(v2v:1089)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in 
_get_disk_info
vol = conn.storageVolLookupByPath(disk['alias'])
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4555, in 
storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
conn=self)
libvirtError: Storage volume not found: no storage vol with matching path 
'/root/RHEL-7.3-x86_64-latest.qcow2'



3.Try to convert this guest to rhv by virt-v2v on v2v conversion server,could 
import the guest from export domain to data domain on rhv4.1 after finishing 
conversion
# virt-v2v avocado-vt-vm1 -o rhv -os 10.73.131.93:/home/nfs_export
[   0.0] Opening the source -i libvirt avocado-vt-vm1
[   0.0] Creating an overlay to protect the source from being modified
[   0.4] Initializing the target -o rhv -os 10.73.131.93:/home/nfs_export
[   0.7] Opening the overlay
[   6.1] Inspecting the overlay
[  13.8] Checking for sufficient free disk space in the guest
[  13.8] Estimating space required on target for each disk
[  13.8] Converting Red Hat Enterprise Linux Server 7.3 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  52.2] Mapping filesystem data to avoid copying unused and blank areas
[  52.4] Closing the overlay
[  52.7] Checking if the guest needs BIOS or UEFI to boot
[  52.7] Assigning disks to buses
[  52.7] Copying disk 1/1 to 
/tmp/v2v.Zzc4KD/c9cfeba7-73f8-428a-aa77-9a2a1acf0063/images/c8eb039e-3007-4e08-9580-c49da8b73d55/f76d16ea-5e66-4987-a496-8f378b127986
 (qcow2)
(100.00/100%)
[ 152.4] Creating output metadata
[ 152.6] Finishing off


Result:
So this problem is caused by vdsm or ovirt

Regards
Ming Xie

- Original Message -
From: "Richard W.M. Jones" 
To: "Matthias Leopold" 
Cc: users@ovirt.org, libgues...@redhat.com
Sent: Wednesday, July 5, 2017 9:15:16 PM
Subject: Re: [Libguestfs] virt-v2v import from KVM without storage-pool ?

On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:
> hi,
> 
> i'm trying to import a VM in oVirt from a KVM host that doesn't use
> storage pools. this fails with the following message in
> /var/log/vdsm/vdsm.log:
> 
> 2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
> disk size (v2v:1089)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
> in storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath()
> failed', conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path
> 
> the disks in the origin VM are defined as
> 
> 
>   
>   
> 
> 
>   
>   
> 
> is this a virt-v2v or oVirt problem?

Well the stack trace is in the oVirt code, so I guess it's an oVirt
problem.  Adding ovirt-users mailing list.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

___
Libguestfs mailing list
libgues...@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs
2017-07-07 14:41:10,345+08 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsNamesFromExternalProviderVDSCommand] (default task-8) [f8166d03-f053-4832-8833-aa39142385a5] START, GetVmsNamesFromExternalProviderVDSCommand(HostName = 10.66.144.40, GetVmsFromExternalProviderParameters:{runAsync='true', hostId='5081b809-0779-41ba-9c86-a01049e41ed4', url='qemu+tcp://10.66.4.242/system', username='root', originType='KVM', namesOfVms='null'}), log id: f703286
2017-07-07 14:41:11,412+08 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsNamesFromExternalProviderVDSCommand] (default task-8) [f8166d03-f053-4832-8833-aa39142385a5] FINISH, GetVmsNamesFromExternalProviderVDSCommand, return: [VM [rhel7.4-v2v], VM [win10-v2v], VM [avocado-vt-vm1], VM [win2k12-file-virtio], VM [rhel7.4-home], VM [esx6.0-win2012-x86_64], VM [rhel6.9-4disk-lvm], VM [esx6.0-win7-x86_64], VM [Auto-esx6.0-win7-efi], VM [multiple-linux-lvm], VM [win10], VM 

Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Ming Xie
I could reproduce customer's problem

Packages:
rhv:4.1.3-0.1.el7
vdsm-4.19.20-1.el7ev.x86_64
virt-v2v-1.36.3-6.el7.x86_64
libguestfs-1.36.3-6.el7.x86_64

Steps:
1.Prepare a guest which is not listed storage pool
# virsh dumpxml avocado-vt-vm1

   
  
  
  
  

.
2.Try to import this guest in rhv4.1 from KVM host but failed to import the 
guest and get error info from vdsm.log

2017-07-07 14:41:22,176+0800 ERROR (jsonrpc/6) [root] Error getting disk size 
(v2v:1089)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in 
_get_disk_info
vol = conn.storageVolLookupByPath(disk['alias'])
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4555, in 
storageVolLookupByPath
if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
conn=self)
libvirtError: Storage volume not found: no storage vol with matching path 
'/root/RHEL-7.3-x86_64-latest.qcow2'



3.Try to convert this guest to rhv by virt-v2v on v2v conversion server,could 
import the guest from export domain to data domain on rhv4.1 after finishing 
conversion
# virt-v2v avocado-vt-vm1 -o rhv -os 10.73.131.93:/home/nfs_export
[   0.0] Opening the source -i libvirt avocado-vt-vm1
[   0.0] Creating an overlay to protect the source from being modified
[   0.4] Initializing the target -o rhv -os 10.73.131.93:/home/nfs_export
[   0.7] Opening the overlay
[   6.1] Inspecting the overlay
[  13.8] Checking for sufficient free disk space in the guest
[  13.8] Estimating space required on target for each disk
[  13.8] Converting Red Hat Enterprise Linux Server 7.3 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  52.2] Mapping filesystem data to avoid copying unused and blank areas
[  52.4] Closing the overlay
[  52.7] Checking if the guest needs BIOS or UEFI to boot
[  52.7] Assigning disks to buses
[  52.7] Copying disk 1/1 to 
/tmp/v2v.Zzc4KD/c9cfeba7-73f8-428a-aa77-9a2a1acf0063/images/c8eb039e-3007-4e08-9580-c49da8b73d55/f76d16ea-5e66-4987-a496-8f378b127986
 (qcow2)
(100.00/100%)
[ 152.4] Creating output metadata
[ 152.6] Finishing off


Result:
So this problem is caused by vdsm or ovirt

Regards
Ming Xie

- Original Message -
From: "Richard W.M. Jones" 
To: "Matthias Leopold" 
Cc: users@ovirt.org, libgues...@redhat.com
Sent: Wednesday, July 5, 2017 9:15:16 PM
Subject: Re: [Libguestfs] virt-v2v import from KVM without storage-pool ?

On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:
> hi,
> 
> i'm trying to import a VM in oVirt from a KVM host that doesn't use
> storage pools. this fails with the following message in
> /var/log/vdsm/vdsm.log:
> 
> 2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
> disk size (v2v:1089)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
> in storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath()
> failed', conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path
> 
> the disks in the origin VM are defined as
> 
> 
>   
>   
> 
> 
>   
>   
> 
> is this a virt-v2v or oVirt problem?

Well the stack trace is in the oVirt code, so I guess it's an oVirt
problem.  Adding ovirt-users mailing list.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

___
Libguestfs mailing list
libgues...@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How can a Responsive website benefit your business?

2017-07-07 Thread gajla parvin
Hello Sir/Mam,

By the end of 2017, the number of customers using mobile devices to browse the 
Web is projected to reach 5 billion people because customers are looking for 
your business on their mobile phones, it’s the perfect opportunity to expand 
your online presence with a mobile website.

How can a mobile website benefit your business?



When customers are looking for a business on their mobile devices, it’s not 
because they’re casually shopping or researching. They’re searching for a 
particular product or service because they have a pressing need to locate that 
product or service. So when you have a mobile website that appears during a 
user’s search-and-find mission, you let your customers know that you’re open 
and ready for business . . . right at the moment they need you.

We offer a new mobile website service that makes it easy for mobile users to 
find your business online. With our service, you can:



Launch a mobile website in weeks:  With our intuitive user interface, we can 
create a mobile website for your business in weeks.



Leverage your current website address:  Our technology detects when customers 
are using a mobile device and then presents your mobile website to them using 
the same domain address. That’s way, there’s no need to choose a new website 
address for your business.



Optimize your website for mobile users:  A screen with easy-to-read icons helps 
users quickly navigate to the information they need.



Maximize your business presence:  Because mobile users can search for your 
business anywhere, anytime, a mobile website gives your business 24×7 exposure.

OUR PROCESS:

•   STEP 1 – PLANNING

•   STEP 2 – DESIGN

•   STEP 3 – CODING

•   STEP 4 – CONTENT

•   STEP 5 - WEBSITE SETUP

•   STEP 6 – REVIEW

•   STEP 7 - TESTING & LAUNCH

•   STEP 8 - HANDOVER & SUPPORT



Some of the Web Design & Development services that we offer:

•HTML5 & CSS3 Coding

•AJAX & JQuery Development

•PHP Web Development

•Responsive Web Design

•Mobile Web Design

•Content Management Systems 



If you’re ready to make your mobile website now, please email us back.

Thanks & Regards
Marketing Executive
Note: - If this is something you are interested, please respond to this email. 
If this is not your interest, don't worry, we will not email you again.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] user permissions

2017-07-07 Thread Fabrice Bacchella
OK, I remember having seen that. But it slip out of my mind. Thanks

> Le 7 juil. 2017 à 13:43, Ondra Machacek  a écrit :
> 
> Please read the description of this commit:
> 
> https://gerrit.ovirt.org/#/c/74173/
> 
> Change the value of property 'ENGINE_API_FILTER_BY_DEFAULT' to true,
> and it will work, if you use 4.1.1.
> 
> 
> On Wed, Jul 5, 2017 at 5:55 PM, Fabrice Bacchella
>  wrote:
>> I'm trying to give a user the permissions to stop/start a specific server.
>> 
>> This user is given the generic UserRole for the System.
>> 
>> I tried to give him the roles :
>> UserVmManager
>> UserVmRunTimeManager
>> UserInstanceManager
>> InstanceCreator
>> UserRole
>> 
>> for that specific VM, I always get: query execution failed due to 
>> insufficient permissions.
>> 
>> As soon as I give him the SuperUser role, he can stop/start it.
>> 
>> What role should I give him for that VM ? I don't want to give the privilege 
>> to destroy the vm, or add disks. But he should be able to change the os 
>> settings too.
>> ___
>> 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 can't find user

2017-07-07 Thread Fabrice Bacchella
Ok.

> Le 7 juil. 2017 à 13:51, Ondra Machacek  a écrit :
> 
> On Tue, Jul 4, 2017 at 6:05 PM, Fabrice Bacchella
>  wrote:
>> 
>>> Le 1 juil. 2017 à 09:09, Fabrice Bacchella  a 
>>> écrit :
>>> 
>>> 
 Le 30 juin 2017 à 23:25, Ondra Machacek  a écrit :
 
 On Thu, Jun 29, 2017 at 5:16 PM, Fabrice Bacchella
  wrote:
> 
>> Le 29 juin 2017 à 14:42, Fabrice Bacchella  
>> a écrit :
>> 
>> 
>>> Le 29 juin 2017 à 13:41, Ondra Machacek  a écrit :
>>> 
>>> How do you login? Do you use webadmin or API/SDK, if using SDK, don't
>>> you use kerberos=True?
>> 
>> Ok, got it.
>> It's tested with the sdk, using kerberos. But Kerberos authentication is 
>> done in Apache and I configure a profile for that, so I needed to add: 
>> config.artifact.arg = X-Remote-User in my 
>> /etc/ovirt-engine/extensions.d/MyProfile.authn.properties. But this is 
>> missing from internal-authn.properties. So rexecutor@internal  is 
>> checked with my profil, and not found. But as the internal profil don't 
>> know about X-Remote-User, it can't check the user and fails silently. 
>> That's why I'm getting only one line. Perhaps the log line should have 
>> said the extensions name that was failing, not the generic "External 
>> Authentication" that did'nt caught my eye.
>> 
>> I will check that as soon as I have a few minutes to spare and tell you.
> 
> I'm starting to understand. I need two authn modules, both using 
> org.ovirt.engineextensions.aaa.misc.http.AuthnExtension but with a 
> different authz.plugin. Is that possible ? If I do what, in what order 
> the different Authn will be tried ? Are they all tried until one succeed  
> both authn and authz ?
> 
 
 Yes you can have multiple authn profiles and it tries to login until
 one succeed:
 
 https://github.com/oVirt/ovirt-engine/blob/de46aa78f3117cbe436ab10926ac0c23fcdd7cfc/backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/filters/NegotiationFilter.java#L125
 
 The order isn't guaranteed, but I think it's not important, or is it for 
 you?
>>> 
>>> I'm not sure. As I need two 
>>> org.ovirt.engineextensions.aaa.misc.http.AuthnExtension, the authentication 
>>> will always succeed. It's the auhtz that fails as user as either in one 
>>> backend or the other. So if ExtMap output = profile.getAuthn().invoke(..) 
>>> calls the authz part I will be fine.
>>> 
>> 
>> I think it's not possible to have 2 
>> org.ovirt.engineextensions.aaa.misc.http.AuthnExtension with different authz.
>> 
>> The first authz ldap based backend is tried and return:
>> 2017-07-04 17:50:25,711+02 DEBUG 
>> [org.ovirt.engineextensions.aaa.ldap.AuthzExtension] (default task-2) [] 
>> Exception: java.lang.RuntimeException: Cannot resolve principal 'rexecutor'
>>at 
>> org.ovirt.engineextensions.aaa.ldap.AuthzExtension.doFetchPrincipalRecord(AuthzExtension.java:579)
>>  [ovirt-engine-extension-aaa-ldap.jar:]
>>at 
>> org.ovirt.engineextensions.aaa.ldap.AuthzExtension.invoke(AuthzExtension.java:478)
>>  [ovirt-engine-extension-aaa-ldap.jar:]
>>at 
>> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:49)
>>at 
>> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:73)
>>at 
>> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:109)
>>at 
>> org.ovirt.engine.core.sso.utils.NegotiateAuthUtils.doAuth(NegotiateAuthUtils.java:122)
>>at 
>> org.ovirt.engine.core.sso.utils.NegotiateAuthUtils.doAuth(NegotiateAuthUtils.java:68)
>>at 
>> org.ovirt.engine.core.sso.utils.NonInteractiveAuth$2.doAuth(NonInteractiveAuth.java:51)
>>at 
>> org.ovirt.engine.core.sso.servlets.OAuthTokenServlet.issueTokenUsingHttpHeaders(OAuthTokenServlet.java:183)
>>at 
>> org.ovirt.engine.core.sso.servlets.OAuthTokenServlet.service(OAuthTokenServlet.java:72)
>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>at 
>> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
>>at 
>> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
>>at 
>> org.ovirt.engine.core.branding.BrandingFilter.doFilter(BrandingFilter.java:73)
>>at 
>> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
>>at 
>> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
>>at 
>> org.ovirt.engine.core.utils.servlet.LocaleFilter.doFilter(LocaleFilter.java:66)
>>at 
>> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
>>at 
>> 

Re: [ovirt-users] ovirt 4.1 : Can't deploy second node on self hosted engine cluster and host with hosted engine deployed (and also hosted engine VM) is not added to interface

2017-07-07 Thread Phillip Bailey
Hi yayo,

Based off of the information you've provided here, it doesn't sound like
the deployment was successful despite being able to access the web
interface. You can check the status of the deployment from node01 by
running 'hosted-engine --check-deployed'. You can also check the status of
the VM by running 'hosted-engine --vm-status'. Could you run those commands
and provide the output? It would also be helpful if you could provide the
log indicated at the end of the deploy script.

As far as the storage issue, you must have an active host in order to add a
storage/data domain. Typically, the first data domain added will become the
master data domain, which will be indicated in the web interface by
'(Master)' following the type in the Domain Type column in the Storage main
tab. The host that was selected during the domain setup will become the
Storage Pool Manager (SPM) and will have 'SPM' in the SPM column in the
Hosts main tab. If you attempt to move this host to maintenance mode,
another host will be selected to become the SPM. If no other hosts are
available, I believe you'll get an error message which will prevent you
from being able to move it to maintenance. I believe in this situation you
can put the storage domain into maintenance mode by going to the Storage
sub tab under the Data Center main tab, selecting the domain, and clicking
the 'Maintenance' button. This should allow you to then put the last host
into maintenance mode.

However, I think your initial deployment needs to be fixed before adding
more hosts. Hopefully, I or someone else will be able to help you with that
once you've responded with the output from the status commands and the
setup log.

-Phillip Bailey

On Fri, Jul 7, 2017 at 7:22 AM, yayo (j)  wrote:

> Hi at all,
>
> I have correctly deployed an hosted engine using node01 via:
>
> hosted-engine --deploy
>
> Using FC shared storage.
>
> Seems all work good but, when I login in to the ovirt web interface I
> can't find the hosted engine under the VM tab (also the node01 server).
>
> So, I have tried to add node02 (no problem) and added the "Data Domain"
> storage (another FC share storage).
>
> Now (I Think) I needs to deploy also here the hosted engine but I can't.
> There is only one way, to put node02 in maintenance mode but, after that,
> "Data Domain" added going down and, when I try to deploy the hosted engine
> interface says:
>
>
> Error while executing action:
>
> node02:
> Cannot edit Host. You are using an unmanaged hosted engine VM. Please add
> the first storage domain in order to start the hosted engine import process.
>
> what is this "first storage domain"?
>
> I have not added the node01 yet because last time hosted engine crashed
> and the only way was to restart the installation 
>
>
> Note: Hosted engine seems to be correcty deployed because all work good,
> but deploy script ended with error:
>
> [ INFO  ] Engine-setup successfully completed
> [ INFO  ] Engine is still unreachable
> [ INFO  ] Engine is still not reachable, waiting...
> [more of these messages]
> [ ERROR ] Engine is still not reachable
> [ ERROR ] Failed to execute stage 'Closing up': Engine is still not
> reachable
> [ INFO  ] Stage: Clean up
> [ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-
> setup/answers/answers-20170123113113.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
> [ ERROR ] Hosted Engine deployment failed: this system is not reliable,
> please check the issue,fix and redeploy
>   Log file is located at /var/log/ovirt-hosted-engine-
> setup/ovirt-hosted-engine-setup-20170123105043-kvzx84.log
>
> Is related to this bug? https://bugzilla.redhat.com/
> show_bug.cgi?id=1415822
>
> ___
> 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] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Tomáš Golembiovský
Hi,

this is different from the original problem. The original description
had "" whereas the BZ addresses "" which is not supported at all.

Tomas

On Fri, 7 Jul 2017 13:02:45 +0100
"Richard W.M. Jones"  wrote:

> On Fri, Jul 07, 2017 at 01:31:38PM +0200, Tomáš Golembiovský wrote:
> > Hi,
> > 
> > yes it is an issue in VDSM. We count on the disks being in storage pool
> > (except for block devices).
> > 
> > Can you open a BZ bug for that please.  
> 
> Is this the same thing?
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1468509
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> Fedora Windows cross-compiler. Compile Windows programs, test, and
> build Windows installers. Over 100 libraries supported.
> http://fedoraproject.org/wiki/MinGW


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Richard W.M. Jones
On Fri, Jul 07, 2017 at 01:31:38PM +0200, Tomáš Golembiovský wrote:
> Hi,
> 
> yes it is an issue in VDSM. We count on the disks being in storage pool
> (except for block devices).
> 
> Can you open a BZ bug for that please.

Is this the same thing?

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

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Matthias Leopold

thanks for caring about this.

Ming Xie, are you opening this BZ bug?

thanks
matthias

Am 2017-07-07 um 13:31 schrieb Tomáš Golembiovský:

Hi,

yes it is an issue in VDSM. We count on the disks being in storage pool
(except for block devices).

Can you open a BZ bug for that please.

Thanks,

 Tomas


On Fri, 7 Jul 2017 02:52:26 -0400 (EDT)
Ming Xie  wrote:


I could reproduce customer's problem

Packages:
rhv:4.1.3-0.1.el7
vdsm-4.19.20-1.el7ev.x86_64
virt-v2v-1.36.3-6.el7.x86_64
libguestfs-1.36.3-6.el7.x86_64

Steps:
1.Prepare a guest which is not listed storage pool
# virsh dumpxml avocado-vt-vm1


   
   
   
   
 
.
2.Try to import this guest in rhv4.1 from KVM host but failed to import the 
guest as screenshot and get error info from vdsm.log

2017-07-07 14:41:22,176+0800 ERROR (jsonrpc/6) [root] Error getting disk size 
(v2v:1089)
Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in 
_get_disk_info
 vol = conn.storageVolLookupByPath(disk['alias'])
   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4555, in 
storageVolLookupByPath
 if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
conn=self)
libvirtError: Storage volume not found: no storage vol with matching path 
'/root/RHEL-7.3-x86_64-latest.qcow2'



3.Try to convert this guest to rhv by virt-v2v on v2v conversion server,could 
import the guest from export domain to data domain on rhv4.1 after finishing 
conversion
# virt-v2v avocado-vt-vm1 -o rhv -os 10.73.131.93:/home/nfs_export
[   0.0] Opening the source -i libvirt avocado-vt-vm1
[   0.0] Creating an overlay to protect the source from being modified
[   0.4] Initializing the target -o rhv -os 10.73.131.93:/home/nfs_export
[   0.7] Opening the overlay
[   6.1] Inspecting the overlay
[  13.8] Checking for sufficient free disk space in the guest
[  13.8] Estimating space required on target for each disk
[  13.8] Converting Red Hat Enterprise Linux Server 7.3 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[  52.2] Mapping filesystem data to avoid copying unused and blank areas
[  52.4] Closing the overlay
[  52.7] Checking if the guest needs BIOS or UEFI to boot
[  52.7] Assigning disks to buses
[  52.7] Copying disk 1/1 to 
/tmp/v2v.Zzc4KD/c9cfeba7-73f8-428a-aa77-9a2a1acf0063/images/c8eb039e-3007-4e08-9580-c49da8b73d55/f76d16ea-5e66-4987-a496-8f378b127986
 (qcow2)
 (100.00/100%)
[ 152.4] Creating output metadata
[ 152.6] Finishing off


Result:
So this problem is caused by vdsm or ovirt

Regards
Ming Xie

- Original Message -
From: "Richard W.M. Jones" 
To: "Matthias Leopold" 
Cc: users@ovirt.org, libgues...@redhat.com
Sent: Wednesday, July 5, 2017 9:15:16 PM
Subject: Re: [Libguestfs] virt-v2v import from KVM without storage-pool ?

On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:

hi,

i'm trying to import a VM in oVirt from a KVM host that doesn't use
storage pools. this fails with the following message in
/var/log/vdsm/vdsm.log:

2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
disk size (v2v:1089)
Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
_get_disk_info
 vol = conn.storageVolLookupByPath(disk['alias'])
   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
in storageVolLookupByPath
 if ret is None:raise libvirtError('virStorageVolLookupByPath()
failed', conn=self)
libvirtError: Storage volume not found: no storage vol with matching path

the disks in the origin VM are defined as

 
   
   

 
   
   

is this a virt-v2v or oVirt problem?


Well the stack trace is in the oVirt code, so I guess it's an oVirt
problem.  Adding ovirt-users mailing list.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

___
Libguestfs mailing list
libgues...@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs





--
Matthias Leopold
IT Systems & Communications
Medizinische Universität Wien
Spitalgasse 23 / BT 88 /Ebene 00
A-1090 Wien
Tel: +43 1 40160-21241
Fax: +43 1 40160-921200
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt can't find user

2017-07-07 Thread Ondra Machacek
On Tue, Jul 4, 2017 at 6:05 PM, Fabrice Bacchella
 wrote:
>
>> Le 1 juil. 2017 à 09:09, Fabrice Bacchella  a 
>> écrit :
>>
>>
>>> Le 30 juin 2017 à 23:25, Ondra Machacek  a écrit :
>>>
>>> On Thu, Jun 29, 2017 at 5:16 PM, Fabrice Bacchella
>>>  wrote:

> Le 29 juin 2017 à 14:42, Fabrice Bacchella  
> a écrit :
>
>
>> Le 29 juin 2017 à 13:41, Ondra Machacek  a écrit :
>>
>> How do you login? Do you use webadmin or API/SDK, if using SDK, don't
>> you use kerberos=True?
>
> Ok, got it.
> It's tested with the sdk, using kerberos. But Kerberos authentication is 
> done in Apache and I configure a profile for that, so I needed to add: 
> config.artifact.arg = X-Remote-User in my 
> /etc/ovirt-engine/extensions.d/MyProfile.authn.properties. But this is 
> missing from internal-authn.properties. So rexecutor@internal  is checked 
> with my profil, and not found. But as the internal profil don't know 
> about X-Remote-User, it can't check the user and fails silently. That's 
> why I'm getting only one line. Perhaps the log line should have said the 
> extensions name that was failing, not the generic "External 
> Authentication" that did'nt caught my eye.
>
> I will check that as soon as I have a few minutes to spare and tell you.

 I'm starting to understand. I need two authn modules, both using 
 org.ovirt.engineextensions.aaa.misc.http.AuthnExtension but with a 
 different authz.plugin. Is that possible ? If I do what, in what order the 
 different Authn will be tried ? Are they all tried until one succeed  both 
 authn and authz ?

>>>
>>> Yes you can have multiple authn profiles and it tries to login until
>>> one succeed:
>>>
>>> https://github.com/oVirt/ovirt-engine/blob/de46aa78f3117cbe436ab10926ac0c23fcdd7cfc/backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/filters/NegotiationFilter.java#L125
>>>
>>> The order isn't guaranteed, but I think it's not important, or is it for 
>>> you?
>>
>> I'm not sure. As I need two 
>> org.ovirt.engineextensions.aaa.misc.http.AuthnExtension, the authentication 
>> will always succeed. It's the auhtz that fails as user as either in one 
>> backend or the other. So if ExtMap output = profile.getAuthn().invoke(..) 
>> calls the authz part I will be fine.
>>
>
> I think it's not possible to have 2 
> org.ovirt.engineextensions.aaa.misc.http.AuthnExtension with different authz.
>
> The first authz ldap based backend is tried and return:
> 2017-07-04 17:50:25,711+02 DEBUG 
> [org.ovirt.engineextensions.aaa.ldap.AuthzExtension] (default task-2) [] 
> Exception: java.lang.RuntimeException: Cannot resolve principal 'rexecutor'
> at 
> org.ovirt.engineextensions.aaa.ldap.AuthzExtension.doFetchPrincipalRecord(AuthzExtension.java:579)
>  [ovirt-engine-extension-aaa-ldap.jar:]
> at 
> org.ovirt.engineextensions.aaa.ldap.AuthzExtension.invoke(AuthzExtension.java:478)
>  [ovirt-engine-extension-aaa-ldap.jar:]
> at 
> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:49)
> at 
> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:73)
> at 
> org.ovirt.engine.core.extensions.mgr.ExtensionProxy.invoke(ExtensionProxy.java:109)
> at 
> org.ovirt.engine.core.sso.utils.NegotiateAuthUtils.doAuth(NegotiateAuthUtils.java:122)
> at 
> org.ovirt.engine.core.sso.utils.NegotiateAuthUtils.doAuth(NegotiateAuthUtils.java:68)
> at 
> org.ovirt.engine.core.sso.utils.NonInteractiveAuth$2.doAuth(NonInteractiveAuth.java:51)
> at 
> org.ovirt.engine.core.sso.servlets.OAuthTokenServlet.issueTokenUsingHttpHeaders(OAuthTokenServlet.java:183)
> at 
> org.ovirt.engine.core.sso.servlets.OAuthTokenServlet.service(OAuthTokenServlet.java:72)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at 
> io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
> at 
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
> at 
> org.ovirt.engine.core.branding.BrandingFilter.doFilter(BrandingFilter.java:73)
> at 
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
> at 
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
> at 
> org.ovirt.engine.core.utils.servlet.LocaleFilter.doFilter(LocaleFilter.java:66)
> at 
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
> at 
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
> at 
> org.ovirt.engine.core.utils.servlet.HeaderFilter.doFilter(HeaderFilter.java:94)
> at 

Re: [ovirt-users] user permissions

2017-07-07 Thread Ondra Machacek
Please read the description of this commit:

 https://gerrit.ovirt.org/#/c/74173/

Change the value of property 'ENGINE_API_FILTER_BY_DEFAULT' to true,
and it will work, if you use 4.1.1.


On Wed, Jul 5, 2017 at 5:55 PM, Fabrice Bacchella
 wrote:
> I'm trying to give a user the permissions to stop/start a specific server.
>
> This user is given the generic UserRole for the System.
>
> I tried to give him the roles :
> UserVmManager
> UserVmRunTimeManager
> UserInstanceManager
> InstanceCreator
> UserRole
>
> for that specific VM, I always get: query execution failed due to 
> insufficient permissions.
>
> As soon as I give him the SuperUser role, he can stop/start it.
>
> What role should I give him for that VM ? I don't want to give the privilege 
> to destroy the vm, or add disks. But he should be able to change the os 
> settings too.
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt engine "Configure Local Storage" , why a cluster can have only one host ?

2017-07-07 Thread ??????
ovirt engine "Configure Local Storage" ,why a cluster can have only one host ?___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

2017-07-07 Thread Tomáš Golembiovský
Hi,

yes it is an issue in VDSM. We count on the disks being in storage pool
(except for block devices).

Can you open a BZ bug for that please.

Thanks,

Tomas


On Fri, 7 Jul 2017 02:52:26 -0400 (EDT)
Ming Xie  wrote:

> I could reproduce customer's problem
> 
> Packages:
> rhv:4.1.3-0.1.el7
> vdsm-4.19.20-1.el7ev.x86_64
> virt-v2v-1.36.3-6.el7.x86_64
> libguestfs-1.36.3-6.el7.x86_64
> 
> Steps:
> 1.Prepare a guest which is not listed storage pool
> # virsh dumpxml avocado-vt-vm1
> 
>
>   
>   
>   
>function='0x0'/>
> 
> .
> 2.Try to import this guest in rhv4.1 from KVM host but failed to import the 
> guest as screenshot and get error info from vdsm.log
> 
> 2017-07-07 14:41:22,176+0800 ERROR (jsonrpc/6) [root] Error getting disk size 
> (v2v:1089)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in 
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4555, in 
> storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path 
> '/root/RHEL-7.3-x86_64-latest.qcow2'
> 
> 
> 
> 3.Try to convert this guest to rhv by virt-v2v on v2v conversion server,could 
> import the guest from export domain to data domain on rhv4.1 after finishing 
> conversion
> # virt-v2v avocado-vt-vm1 -o rhv -os 10.73.131.93:/home/nfs_export
> [   0.0] Opening the source -i libvirt avocado-vt-vm1
> [   0.0] Creating an overlay to protect the source from being modified
> [   0.4] Initializing the target -o rhv -os 10.73.131.93:/home/nfs_export
> [   0.7] Opening the overlay
> [   6.1] Inspecting the overlay
> [  13.8] Checking for sufficient free disk space in the guest
> [  13.8] Estimating space required on target for each disk
> [  13.8] Converting Red Hat Enterprise Linux Server 7.3 (Maipo) to run on KVM
> virt-v2v: This guest has virtio drivers installed.
> [  52.2] Mapping filesystem data to avoid copying unused and blank areas
> [  52.4] Closing the overlay
> [  52.7] Checking if the guest needs BIOS or UEFI to boot
> [  52.7] Assigning disks to buses
> [  52.7] Copying disk 1/1 to 
> /tmp/v2v.Zzc4KD/c9cfeba7-73f8-428a-aa77-9a2a1acf0063/images/c8eb039e-3007-4e08-9580-c49da8b73d55/f76d16ea-5e66-4987-a496-8f378b127986
>  (qcow2)
> (100.00/100%)
> [ 152.4] Creating output metadata
> [ 152.6] Finishing off
> 
> 
> Result:
> So this problem is caused by vdsm or ovirt
> 
> Regards
> Ming Xie
> 
> - Original Message -
> From: "Richard W.M. Jones" 
> To: "Matthias Leopold" 
> Cc: users@ovirt.org, libgues...@redhat.com
> Sent: Wednesday, July 5, 2017 9:15:16 PM
> Subject: Re: [Libguestfs] virt-v2v import from KVM without storage-pool ?
> 
> On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:
> > hi,
> > 
> > i'm trying to import a VM in oVirt from a KVM host that doesn't use
> > storage pools. this fails with the following message in
> > /var/log/vdsm/vdsm.log:
> > 
> > 2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
> > disk size (v2v:1089)
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
> > _get_disk_info
> > vol = conn.storageVolLookupByPath(disk['alias'])
> >   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
> > in storageVolLookupByPath
> > if ret is None:raise libvirtError('virStorageVolLookupByPath()
> > failed', conn=self)
> > libvirtError: Storage volume not found: no storage vol with matching path
> > 
> > the disks in the origin VM are defined as
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> >   
> > 
> > is this a virt-v2v or oVirt problem?  
> 
> Well the stack trace is in the oVirt code, so I guess it's an oVirt
> problem.  Adding ovirt-users mailing list.
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
> 
> ___
> Libguestfs mailing list
> libgues...@redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs


-- 
Tomáš Golembiovský 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt 4.1 : Can't deploy second node on self hosted engine cluster and host with hosted engine deployed (and also hosted engine VM) is not added to interface

2017-07-07 Thread yayo (j)
Hi at all,

I have correctly deployed an hosted engine using node01 via:

hosted-engine --deploy

Using FC shared storage.

Seems all work good but, when I login in to the ovirt web interface I can't
find the hosted engine under the VM tab (also the node01 server).

So, I have tried to add node02 (no problem) and added the "Data Domain"
storage (another FC share storage).

Now (I Think) I needs to deploy also here the hosted engine but I can't.
There is only one way, to put node02 in maintenance mode but, after that,
"Data Domain" added going down and, when I try to deploy the hosted engine
interface says:


Error while executing action:

node02:
Cannot edit Host. You are using an unmanaged hosted engine VM. Please add
the first storage domain in order to start the hosted engine import process.

what is this "first storage domain"?

I have not added the node01 yet because last time hosted engine crashed and
the only way was to restart the installation 


Note: Hosted engine seems to be correcty deployed because all work good,
but deploy script ended with error:

[ INFO  ] Engine-setup successfully completed
[ INFO  ] Engine is still unreachable
[ INFO  ] Engine is still not reachable, waiting...
[more of these messages]
[ ERROR ] Engine is still not reachable
[ ERROR ] Failed to execute stage 'Closing up': Engine is still not
reachable
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file
'/var/lib/ovirt-hosted-engine-setup/answers/answers-20170123113113.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: this system is not reliable,
please check the issue,fix and redeploy
  Log file is located at
/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20170123105043-kvzx84.log

Is related to this bug? https://bugzilla.redhat.com/show_bug.cgi?id=1415822
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] ovirt-ng upgrade

2017-07-07 Thread Nathanaël Blanchet

Hello,

I've been used to install vdsm on regular centos to provision my hosts.

I recently installed ovirt-ng on new hosts, but centos "base" and 
"updates" repo are disabled by default. So I updated them by enabling 
theses repos tio update centos.


Several questions :

 * Is this a good practice or should I wait a new ovirt-ng image to
   update the whole system with

   |  # ovirt-node-upgrade --iso=/path/to/ovirt-node-image.iso --reboot=1|

 * |Now ovirt 4.1.3 is out, I have to uncomment
   "includepkgs=ovirt-node-ng-image-update ovirt-node-ng-image
   ovirt-engine-appliance" in the ovirt repo to get the last vdsm, but
   the dependencies are broken:
   [root@ulysses yum.repos.d]# yum update --enablerepo=base
   --enablerepo=updates -y
   ...
   |--> Résolution des dépendances terminée
   Erreur : Paquet :
   ovirt-hosted-engine-setup-2.1.3.3-1.el7.centos.noarch (ovirt-4.1)
 Requiert : rubygem-fluent-plugin-viaq_data_model

Is this a good alternative way to do, or may I have issues if I do want 
such a thing?


--
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] [Gluster-users] op-version for reset-brick (Was: Re: Upgrading HC from 4.0 to 4.1)

2017-07-07 Thread Atin Mukherjee
You'd need to allow some more time to dig into the logs. I'll try to get
back on this by Monday.

On Fri, Jul 7, 2017 at 2:23 PM, Gianluca Cecchi 
wrote:

> On Thu, Jul 6, 2017 at 3:22 PM, Gianluca Cecchi  > wrote:
>
>> On Thu, Jul 6, 2017 at 2:16 PM, Atin Mukherjee 
>> wrote:
>>
>>>
>>>
>>> On Thu, Jul 6, 2017 at 5:26 PM, Gianluca Cecchi <
>>> gianluca.cec...@gmail.com> wrote:
>>>
 On Thu, Jul 6, 2017 at 8:38 AM, Gianluca Cecchi <
 gianluca.cec...@gmail.com> wrote:

>
> Eventually I can destroy and recreate this "export" volume again with
> the old names (ovirt0N.localdomain.local) if you give me the sequence of
> commands, then enable debug and retry the reset-brick command
>
> Gianluca
>


 So it seems I was able to destroy and re-create.
 Now I see that the volume creation uses by default the new ip, so I
 reverted the hostnames roles in the commands after putting glusterd in
 debug mode on the host where I execute the reset-brick command (do I have
 to set debug for the the nodes too?)

>>>
>>> You have to set the log level to debug for glusterd instance where the
>>> commit fails and share the glusterd log of that particular node.
>>>
>>>
>>
>> Ok, done.
>>
>> Command executed on ovirt01 with timestamp "2017-07-06 13:04:12" in
>> glusterd log files
>>
>> [root@ovirt01 export]# gluster volume reset-brick export
>> gl01.localdomain.local:/gluster/brick3/export start
>> volume reset-brick: success: reset-brick start operation successful
>>
>> [root@ovirt01 export]# gluster volume reset-brick export
>> gl01.localdomain.local:/gluster/brick3/export
>> ovirt01.localdomain.local:/gluster/brick3/export commit force
>> volume reset-brick: failed: Commit failed on ovirt02.localdomain.local.
>> Please check log file for details.
>> Commit failed on ovirt03.localdomain.local. Please check log file for
>> details.
>> [root@ovirt01 export]#
>>
>> See glusterd log files for the 3 nodes in debug mode here:
>> ovirt01: https://drive.google.com/file/d/0BwoPbcrMv8mvY1RTTG
>> p3RUhScm8/view?usp=sharing
>> ovirt02: https://drive.google.com/file/d/0BwoPbcrMv8mvSVpJUH
>> NhMzhMSU0/view?usp=sharing
>> ovirt03: https://drive.google.com/file/d/0BwoPbcrMv8mvT2xiWE
>> dQVmJNb0U/view?usp=sharing
>>
>> HIH debugging
>> Gianluca
>>
>>
> Hi Atin,
> did you have time to see the logs?
> Comparing debug enabled messages with previous ones, I see these added
> lines on nodes where commit failed after running the commands
>
> gluster volume reset-brick export 
> gl01.localdomain.local:/gluster/brick3/export
> start
> gluster volume reset-brick export 
> gl01.localdomain.local:/gluster/brick3/export
> ovirt01.localdomain.local:/gluster/brick3/export commit force
>
>
> [2017-07-06 13:04:30.221872] D [MSGID: 0] 
> [glusterd-peer-utils.c:674:gd_peerinfo_find_from_hostname]
> 0-management: Friend ovirt01.localdomain.local found.. state: 3
> [2017-07-06 13:04:30.221882] D [MSGID: 0] 
> [glusterd-peer-utils.c:167:glusterd_hostname_to_uuid]
> 0-management: returning 0
> [2017-07-06 13:04:30.221888] D [MSGID: 0] 
> [glusterd-utils.c:1039:glusterd_resolve_brick]
> 0-management: Returning 0
> [2017-07-06 13:04:30.221908] D [MSGID: 0] 
> [glusterd-utils.c:998:glusterd_brickinfo_new]
> 0-management: Returning 0
> [2017-07-06 13:04:30.221915] D [MSGID: 0] [glusterd-utils.c:1195:
> glusterd_brickinfo_new_from_brick] 0-management: Returning 0
> [2017-07-06 13:04:30.222187] D [MSGID: 0] 
> [glusterd-peer-utils.c:167:glusterd_hostname_to_uuid]
> 0-management: returning 0
> [2017-07-06 13:04:30.01] D [MSGID: 0] 
> [glusterd-utils.c:1486:glusterd_volume_brickinfo_get]
> 0-management: Returning -1
> [2017-07-06 13:04:30.07] D [MSGID: 0] 
> [store.c:459:gf_store_handle_destroy]
> 0-: Returning 0
> [2017-07-06 13:04:30.42] D [MSGID: 0] [glusterd-utils.c:1512:
> glusterd_volume_brickinfo_get_by_brick] 0-glusterd: Returning -1
> [2017-07-06 13:04:30.50] D [MSGID: 0] [glusterd-replace-brick.c:416:
> glusterd_op_perform_replace_brick] 0-glusterd: Returning -1
> [2017-07-06 13:04:30.57] C [MSGID: 106074] 
> [glusterd-reset-brick.c:372:glusterd_op_reset_brick]
> 0-management: Unable to add dst-brick: 
> ovirt01.localdomain.local:/gluster/brick3/export
> to volume: export
>
>
> Does it share up more light?
>
> Thanks,
> Gianluca
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How to create a new Gluster volume

2017-07-07 Thread knarra

On 07/07/2017 02:03 PM, Gianluca Cecchi wrote:
On Fri, Jul 7, 2017 at 10:15 AM, knarra > wrote:






It seems I have to de-select the checkbox "Show available bricks
from host" and so I can manually the the directory of the bricks

I see that bricks are mounted in /gluster/brick3 and that is the
reason it does not show anything in "Brick Directory" drop down
filed. If bricks are mounted under /gluster_bricks then it would
have detected automatically. There is an RFE which is raised to
detect bricks which are created manually.


I deployed this HCI system with gdeploy at oVirt 4.05 time, so I think 
I used the "default" path that was proposed inside the 
ovirt-gluster.conf file to feed gdeploy with...

I think it was based on this from Jason:
https://www.ovirt.org/blog/2016/08/up-and-running-with-ovirt-4-0-and-gluster-storage/
and this conf file
https://gist.githubusercontent.com/jasonbrooks/a5484769eea5a8cf2fa9d32329d5ebe5/raw/ovirt-gluster.conf

Good that there is an RFE. Thanks




BTW: I see that after creating a volume optimized for oVirt in
web admin gui of 4.1.2 I get slight option for it in respect for
a pre-existing volume created in 4.0.5 during initial setup with
gdeploy.

NOTE: during 4.0.5 setup I had gluster 3.7 installed, while now I
have gluster 3.10 (manually updated from CentOS storage SIG)

Making a "gluster volume info" and then a diff of the output for
the 2 volumes I have:

new volume ==   <
old volume  ==>

< cluster.shd-max-threads: 8
---
> cluster.shd-max-threads: 6
13a13,14
> features.shard-block-size: 512MB
16c17
< network.remote-dio: enable
---
> network.remote-dio: off
23a25
> performance.readdir-ahead: on
25c27
< server.allow-insecure: on
---
> performance.strict-o-direct: on

Do I have to change anything for the newly created one?

No, you do not need to change anything for the new volume. But if
you plan to enable o-direct on the volume then you will have to
disable/turn off remote-dio.


OK.
Again, in ovirt-gluster.conf file I see there was this kind of setting 
for the Gluster volumes when running gdeploy for them:

key=group,storage.owner-uid,storage.owner-gid,features.shard,features.shard-block-size,performance.low-prio-threads,cluster.data-self-heal-algorithm,cluster.locking-scheme,cluster.shd-wait-qlength,cluster.shd-max-threads,network.ping-timeout,user.cifs,performance.strict-o-direct,network.remote-dio,cluster.granular-entry-heal
value=virt,36,36,on,512MB,32,full,granular,1,8,30,off,on,off,on
brick_dirs=/gluster/brick1/engine
I'm going to crosscheck now what are the suggested values for oVirt 
4.1 and Gluster 3.10 combined...
Now virt group sets the shard block size and it is the default which is 
4MB and is the suggested value. With 4MB shards we see that healing is 
much faster with granular entry heal being enabled on the volume.


I am not sure why the conf file again sets the shard size. May be this 
can be removed from the file.


Other than this everything looks good for me.


I was in particular worried by the difference 
of features.shard-block-size but after reading this


http://blog.gluster.org/2015/12/introducing-shard-translator/

I'm not sure if 512Mb is the best in case of VMs storage I'm going 
to dig more eventually


Thanks,
Gianluca



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


Re: [ovirt-users] [Gluster-users] op-version for reset-brick (Was: Re: Upgrading HC from 4.0 to 4.1)

2017-07-07 Thread Gianluca Cecchi
On Thu, Jul 6, 2017 at 3:22 PM, Gianluca Cecchi 
wrote:

> On Thu, Jul 6, 2017 at 2:16 PM, Atin Mukherjee 
> wrote:
>
>>
>>
>> On Thu, Jul 6, 2017 at 5:26 PM, Gianluca Cecchi <
>> gianluca.cec...@gmail.com> wrote:
>>
>>> On Thu, Jul 6, 2017 at 8:38 AM, Gianluca Cecchi <
>>> gianluca.cec...@gmail.com> wrote:
>>>

 Eventually I can destroy and recreate this "export" volume again with
 the old names (ovirt0N.localdomain.local) if you give me the sequence of
 commands, then enable debug and retry the reset-brick command

 Gianluca

>>>
>>>
>>> So it seems I was able to destroy and re-create.
>>> Now I see that the volume creation uses by default the new ip, so I
>>> reverted the hostnames roles in the commands after putting glusterd in
>>> debug mode on the host where I execute the reset-brick command (do I have
>>> to set debug for the the nodes too?)
>>>
>>
>> You have to set the log level to debug for glusterd instance where the
>> commit fails and share the glusterd log of that particular node.
>>
>>
>
> Ok, done.
>
> Command executed on ovirt01 with timestamp "2017-07-06 13:04:12" in
> glusterd log files
>
> [root@ovirt01 export]# gluster volume reset-brick export
> gl01.localdomain.local:/gluster/brick3/export start
> volume reset-brick: success: reset-brick start operation successful
>
> [root@ovirt01 export]# gluster volume reset-brick export
> gl01.localdomain.local:/gluster/brick3/export 
> ovirt01.localdomain.local:/gluster/brick3/export
> commit force
> volume reset-brick: failed: Commit failed on ovirt02.localdomain.local.
> Please check log file for details.
> Commit failed on ovirt03.localdomain.local. Please check log file for
> details.
> [root@ovirt01 export]#
>
> See glusterd log files for the 3 nodes in debug mode here:
> ovirt01: https://drive.google.com/file/d/0BwoPbcrMv8mvY1RTTGp3RUhScm8/
> view?usp=sharing
> ovirt02: https://drive.google.com/file/d/0BwoPbcrMv8mvSVpJUHNhMzhMSU0/
> view?usp=sharing
> ovirt03: https://drive.google.com/file/d/0BwoPbcrMv8mvT2xiWEdQVmJNb0U/
> view?usp=sharing
>
> HIH debugging
> Gianluca
>
>
Hi Atin,
did you have time to see the logs?
Comparing debug enabled messages with previous ones, I see these added
lines on nodes where commit failed after running the commands

gluster volume reset-brick export
gl01.localdomain.local:/gluster/brick3/export start
gluster volume reset-brick export
gl01.localdomain.local:/gluster/brick3/export
ovirt01.localdomain.local:/gluster/brick3/export commit force


[2017-07-06 13:04:30.221872] D [MSGID: 0]
[glusterd-peer-utils.c:674:gd_peerinfo_find_from_hostname] 0-management:
Friend ovirt01.localdomain.local found.. state: 3
[2017-07-06 13:04:30.221882] D [MSGID: 0]
[glusterd-peer-utils.c:167:glusterd_hostname_to_uuid] 0-management:
returning 0
[2017-07-06 13:04:30.221888] D [MSGID: 0]
[glusterd-utils.c:1039:glusterd_resolve_brick] 0-management: Returning 0
[2017-07-06 13:04:30.221908] D [MSGID: 0]
[glusterd-utils.c:998:glusterd_brickinfo_new] 0-management: Returning 0
[2017-07-06 13:04:30.221915] D [MSGID: 0]
[glusterd-utils.c:1195:glusterd_brickinfo_new_from_brick] 0-management:
Returning 0
[2017-07-06 13:04:30.222187] D [MSGID: 0]
[glusterd-peer-utils.c:167:glusterd_hostname_to_uuid] 0-management:
returning 0
[2017-07-06 13:04:30.01] D [MSGID: 0]
[glusterd-utils.c:1486:glusterd_volume_brickinfo_get] 0-management:
Returning -1
[2017-07-06 13:04:30.07] D [MSGID: 0]
[store.c:459:gf_store_handle_destroy] 0-: Returning 0
[2017-07-06 13:04:30.42] D [MSGID: 0]
[glusterd-utils.c:1512:glusterd_volume_brickinfo_get_by_brick] 0-glusterd:
Returning -1
[2017-07-06 13:04:30.50] D [MSGID: 0]
[glusterd-replace-brick.c:416:glusterd_op_perform_replace_brick]
0-glusterd: Returning -1
[2017-07-06 13:04:30.57] C [MSGID: 106074]
[glusterd-reset-brick.c:372:glusterd_op_reset_brick] 0-management: Unable
to add dst-brick: ovirt01.localdomain.local:/gluster/brick3/export to
volume: export


Does it share up more light?

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


Re: [ovirt-users] How to create a new Gluster volume

2017-07-07 Thread Gianluca Cecchi
On Fri, Jul 7, 2017 at 10:15 AM, knarra  wrote:

>
>
>>
> It seems I have to de-select the checkbox "Show available bricks from
> host" and so I can manually the the directory of the bricks
>
> I see that bricks are mounted in /gluster/brick3 and that is the reason it
> does not show anything in "Brick Directory" drop down filed. If bricks are
> mounted under /gluster_bricks then it would have detected automatically.
> There is an RFE which is raised to detect bricks which are created manually.
>

I deployed this HCI system with gdeploy at oVirt 4.05 time, so I think I
used the "default" path that was proposed inside the ovirt-gluster.conf
file to feed gdeploy with...
I think it was based on this from Jason:
https://www.ovirt.org/blog/2016/08/up-and-running-with-ovirt-4-0-and-gluster-storage/
and this conf file
https://gist.githubusercontent.com/jasonbrooks/a5484769eea5a8cf2fa9d32329d5ebe5/raw/ovirt-gluster.conf

Good that there is an RFE. Thanks



>
>
> BTW: I see that after creating a volume optimized for oVirt in web admin
> gui of 4.1.2 I get slight option for it in respect for a pre-existing
> volume created in 4.0.5 during initial setup with gdeploy.
>
> NOTE: during 4.0.5 setup I had gluster 3.7 installed, while now I have
> gluster 3.10 (manually updated from CentOS storage SIG)
>
> Making a "gluster volume info" and then a diff of the output for the 2
> volumes I have:
>
> new volume ==   <
> old volume  ==>
>
> < cluster.shd-max-threads: 8
> ---
> > cluster.shd-max-threads: 6
> 13a13,14
> > features.shard-block-size: 512MB
> 16c17
> < network.remote-dio: enable
> ---
> > network.remote-dio: off
> 23a25
> > performance.readdir-ahead: on
> 25c27
> < server.allow-insecure: on
> ---
> > performance.strict-o-direct: on
>
> Do I have to change anything for the newly created one?
>
> No, you do not need to change anything for the new volume. But if you plan
> to enable o-direct on the volume then you will have to disable/turn off
> remote-dio.
>
>
> OK.
Again, in ovirt-gluster.conf file I see there was this kind of setting for
the Gluster volumes when running gdeploy for them:

key=group,storage.owner-uid,storage.owner-gid,features.shard,features.shard-block-size,performance.low-prio-threads,cluster.data-self-heal-algorithm,cluster.locking-scheme,cluster.shd-wait-qlength,cluster.shd-max-threads,network.ping-timeout,user.cifs,performance.strict-o-direct,network.remote-dio,cluster.granular-entry-heal
value=virt,36,36,on,512MB,32,full,granular,1,8,30,off,on,off,on
brick_dirs=/gluster/brick1/engine

I'm going to crosscheck now what are the suggested values for oVirt 4.1 and
Gluster 3.10 combined...

I was in particular worried by the difference of features.shard-block-size
but after reading this

http://blog.gluster.org/2015/12/introducing-shard-translator/

I'm not sure if 512Mb is the best in case of VMs storage I'm going to
dig more eventually

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


Re: [ovirt-users] How to create a new Gluster volume

2017-07-07 Thread knarra

On 07/06/2017 04:38 PM, Gianluca Cecchi wrote:
On Thu, Jul 6, 2017 at 11:51 AM, Gianluca Cecchi 
> wrote:


Hello,
I'm trying to create a new volume. I'm in 4.1.2
I'm following these indications:

http://www.ovirt.org/documentation/admin-guide/chap-Working_with_Gluster_Storage/



When I click the "add brick" button, I don't see anything in
"Brick Directory" dropdown field and I cannot manuall input a
directory name.

On the 3 nodes I already have formatted and mounted fs

[root@ovirt01 ~]# df -h /gluster/brick3/
Filesystem  Size  Used Avail Use% Mounted on
/dev/mapper/gluster-export   50G   33M   50G   1% /gluster/brick3
[root@ovirt01 ~]#

The guide tells

7. Click the Add Bricks button to select bricks to add to the
volume. Bricks must be created externally on the Gluster Storage
nodes.

What does it mean with "created externally"?
The next step from os point would be volume creation but it is
indeed what I would like to do from the gui...

Thanks,
Gianluca


It seems I have to de-select the checkbox "Show available bricks from 
host" and so I can manually the the directory of the bricks
I see that bricks are mounted in /gluster/brick3 and that is the reason 
it does not show anything in "Brick Directory" drop down filed. If 
bricks are mounted under /gluster_bricks then it would have detected 
automatically. There is an RFE which is raised to detect bricks which 
are created manually.


BTW: I see that after creating a volume optimized for oVirt in web 
admin gui of 4.1.2 I get slight option for it in respect for a 
pre-existing volume created in 4.0.5 during initial setup with gdeploy.


NOTE: during 4.0.5 setup I had gluster 3.7 installed, while now I have 
gluster 3.10 (manually updated from CentOS storage SIG)


Making a "gluster volume info" and then a diff of the output for the 2 
volumes I have:


new volume ==   <
old volume  ==>

< cluster.shd-max-threads: 8
---
> cluster.shd-max-threads: 6
13a13,14
> features.shard-block-size: 512MB
16c17
< network.remote-dio: enable
---
> network.remote-dio: off
23a25
> performance.readdir-ahead: on
25c27
< server.allow-insecure: on
---
> performance.strict-o-direct: on

Do I have to change anything for the newly created one?
No, you do not need to change anything for the new volume. But if you 
plan to enable o-direct on the volume then you will have to disable/turn 
off remote-dio.





___
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