[ovirt-users] Can't remove a storage domain related to a broken hardware

2015-01-06 Thread Olivier Navas

Hello Ovirt users ! 

I experienced an hardware failure on a ISCSI storage making it unrecoverable, 
and I would like to remove it from storage domains. 

There was 1 disk on this storage domain, and this disk isn't attached to any VM 
anymore, but I still can't detach this storage domain from cluster. 

The storage domain is in inactive status and if I try to detach it from 
data center, ovirt tries to activate it. Obviously it can't activate it since 
hardware is broken, and it fails after several minutes with the event Failed 
to detach Storage Domain my_storage_domain to Data Center Default. (User: 
admin). I can post my engine.log if useful. 

I need a way to force removal of this storage domain. Any trick would be 
greatly appreciated. 

Perhaps does Ovirt miss some sort of force detach, i know what i'm doing 
button ? 

I am running an Ovirt 3.5 cluster (engine with CentOS 6.6, 4 nodes with CentOS 
7) with FC and ISCSI storage domains. 

Thanks for your help. 




--
Ce courriel et tous les fichiers attachés qu'il contient sont confidentiels et 
destinés exclusivement à la personne à laquelle ils sont adressés. Si vous avez 
reçu ce courriel par erreur, merci de le retourner à son expéditeur et de le 
détruire. Il est rappelé que tout message électronique est susceptible 
d'alteration au cours de son acheminement sur internet. Seuls les documents 
officiels du SDIS sont de nature à engager sa responsabilité. Les idées ou 
opinions présentées dans ce courriel sont celles de son auteur et ne 
représentent pas nécessairement celles du SDIS de la Gironde.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM failover with ovirt3.5

2015-01-06 Thread Jiri Moskovcak

On 01/06/2015 09:34 AM, Artyom Lukianov wrote:

Case 1:
In vdsm.log I can see this one:
Thread-674407::ERROR::2015-01-05 12:09:43,264::migration::259::vm.Vm::(run) 
vmId=`0d3adb5c-0960-483c-9d73-5e256a519f2f`::Failed to migrate
Traceback (most recent call last):
   File /usr/share/vdsm/virt/migration.py, line 245, in run
 self._startUnderlyingMigration(time.time())
   File /usr/share/vdsm/virt/migration.py, line 324, in 
_startUnderlyingMigration
 None, maxBandwidth)
   File /usr/share/vdsm/virt/vm.py, line 670, in f
 ret = attr(*args, **kwargs)
   File /usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py, line 111, 
in wrapper
 ret = f(*args, **kwargs)
   File /usr/lib64/python2.7/site-packages/libvirt.py, line 1264, in 
migrateToURI2
 if ret == -1: raise libvirtError ('virDomainMigrateToURI2() failed', 
dom=self)
libvirtError: operation aborted: migration job: canceled by client
I see that this kind can be happen, because migration time exceeding the 
configured maximum time for migrations, but anyway we need help from devs, I 
added some to CC.



- agent did everything correctly and as Artyom says, the migration is 
aborted by vdsm:


The migration took 260 seconds which is exceeding the configured maximum 
time for migrations of 256 seconds. The migration will be aborted.


- there is a configuration option in vdsm conf you can tweak to increase 
the timeout:


snip
'migration_max_time_per_gib_mem', '64',
'The maximum time in seconds per GiB memory a migration may 
take '

'before the migration will be aborted by the source host. '
'Setting this value to 0 will disable this feature.'
/snip

So as you can see in your case it's 4 * 64 seconds = 256seconds.


--Jirka


Case 2:
HA vm must migrate only in case of some fail on host3, so if your host_3 is ok 
vm will continue run on it.


- Original Message -
From: Cong Yue cong_...@alliedtelesis.com
To: Artyom Lukianov aluki...@redhat.com
Cc: cong yue yuecong1...@gmail.com, stira...@redhat.com, users@ovirt.org
Sent: Monday, January 5, 2015 7:38:08 PM
Subject: RE: [ovirt-users] VM failover with ovirt3.5

I collected the agent.log and vdsm.log in 2 cases.

Case1 HE VM failover trail
What I did
1, make all host be engine up
2, set host1 be with local maintenance mode. In host1, there is HE VM.
3, Then HE VM is trying to migrate, but finally it fails. This can be found 
from agent.log_hosted_engine_1
As for the log is very large, I uploaded into google dirve. The link is as
https://drive.google.com/drive/#folders/0B9Pi5vvimKTdNU82bWVpZDhDQmM/0B9Pi5vvimKTdRGJhUXUwejNGRHc
The logs are for 3 hosts in my environment.

Case2 non-HE VM failover trail
1, make all host be engine up
2,set host2 be with local maintenance mode. In host3, there is one vm with ha enabled. Also for the 
cluster, Enable HA reservation and Resilience policy is set as migrating virtual 
machines
3,But the vm on the top of host3 does not migrate at all.
The logs are uploaded to good drive as
https://drive.google.com/drive/#folders/0B9Pi5vvimKTdNU82bWVpZDhDQmM/0B9Pi5vvimKTdd3MzTXZBbmxpNmc


Thanks,
Cong




-Original Message-
From: Artyom Lukianov [mailto:aluki...@redhat.com]
Sent: Sunday, January 04, 2015 3:22 AM
To: Yue, Cong
Cc: cong yue; stira...@redhat.com; users@ovirt.org
Subject: Re: [ovirt-users] VM failover with ovirt3.5

Can you provide vdsm logs:
1) for HE vm case
2) for not HE vm case
Thanks

- Original Message -
From: Cong Yue cong_...@alliedtelesis.com
To: Artyom Lukianov aluki...@redhat.com
Cc: cong yue yuecong1...@gmail.com, stira...@redhat.com, users@ovirt.org
Sent: Thursday, January 1, 2015 2:32:18 AM
Subject: Re: [ovirt-users] VM failover with ovirt3.5

Thanks for the advice. I applied the patch for clientIF.py as
- port = config.getint('addresses', 'management_port')
+ port = config.get('addresses', 'management_port')

Now there is no fatal error in beam.log, also migration can start to happen 
when I set the host where HE VM is to be local maintenance mode. But it finally 
fail with the following log. Also HE VM can not be done with live migration in 
my environment.

MainThread::INFO::2014-12-31
19:08:06,197::states::759::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
Continuing to monitor migration
MainThread::INFO::2014-12-31
19:08:06,430::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Current state EngineMigratingAway (score: 2000)
MainThread::INFO::2014-12-31
19:08:06,430::hosted_engine::332::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Best remote host 10.0.0.93 (id: 2, score: 2400)
MainThread::ERROR::2014-12-31
19:08:16,490::hosted_engine::867::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitor_migration)
Failed to migrate
Traceback (most recent call last):
  File 
/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
line 863, in 

Re: [ovirt-users] VM failover with ovirt3.5

2015-01-06 Thread Artyom Lukianov
Case 1:
In vdsm.log I can see this one:
Thread-674407::ERROR::2015-01-05 12:09:43,264::migration::259::vm.Vm::(run) 
vmId=`0d3adb5c-0960-483c-9d73-5e256a519f2f`::Failed to migrate
Traceback (most recent call last):
  File /usr/share/vdsm/virt/migration.py, line 245, in run
self._startUnderlyingMigration(time.time())
  File /usr/share/vdsm/virt/migration.py, line 324, in 
_startUnderlyingMigration
None, maxBandwidth)
  File /usr/share/vdsm/virt/vm.py, line 670, in f
ret = attr(*args, **kwargs)
  File /usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py, line 111, 
in wrapper
ret = f(*args, **kwargs)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 1264, in 
migrateToURI2
if ret == -1: raise libvirtError ('virDomainMigrateToURI2() failed', 
dom=self)
libvirtError: operation aborted: migration job: canceled by client
I see that this kind can be happen, because migration time exceeding the 
configured maximum time for migrations, but anyway we need help from devs, I 
added some to CC.

Case 2:
HA vm must migrate only in case of some fail on host3, so if your host_3 is ok 
vm will continue run on it.


- Original Message -
From: Cong Yue cong_...@alliedtelesis.com
To: Artyom Lukianov aluki...@redhat.com
Cc: cong yue yuecong1...@gmail.com, stira...@redhat.com, users@ovirt.org
Sent: Monday, January 5, 2015 7:38:08 PM
Subject: RE: [ovirt-users] VM failover with ovirt3.5

I collected the agent.log and vdsm.log in 2 cases.

Case1 HE VM failover trail
What I did
1, make all host be engine up
2, set host1 be with local maintenance mode. In host1, there is HE VM.
3, Then HE VM is trying to migrate, but finally it fails. This can be found 
from agent.log_hosted_engine_1
As for the log is very large, I uploaded into google dirve. The link is as
https://drive.google.com/drive/#folders/0B9Pi5vvimKTdNU82bWVpZDhDQmM/0B9Pi5vvimKTdRGJhUXUwejNGRHc
The logs are for 3 hosts in my environment.

Case2 non-HE VM failover trail
1, make all host be engine up
2,set host2 be with local maintenance mode. In host3, there is one vm with ha 
enabled. Also for the cluster, Enable HA reservation and Resilience policy is 
set as migrating virtual machines
3,But the vm on the top of host3 does not migrate at all.
The logs are uploaded to good drive as
https://drive.google.com/drive/#folders/0B9Pi5vvimKTdNU82bWVpZDhDQmM/0B9Pi5vvimKTdd3MzTXZBbmxpNmc


Thanks,
Cong




-Original Message-
From: Artyom Lukianov [mailto:aluki...@redhat.com]
Sent: Sunday, January 04, 2015 3:22 AM
To: Yue, Cong
Cc: cong yue; stira...@redhat.com; users@ovirt.org
Subject: Re: [ovirt-users] VM failover with ovirt3.5

Can you provide vdsm logs:
1) for HE vm case
2) for not HE vm case
Thanks

- Original Message -
From: Cong Yue cong_...@alliedtelesis.com
To: Artyom Lukianov aluki...@redhat.com
Cc: cong yue yuecong1...@gmail.com, stira...@redhat.com, users@ovirt.org
Sent: Thursday, January 1, 2015 2:32:18 AM
Subject: Re: [ovirt-users] VM failover with ovirt3.5

Thanks for the advice. I applied the patch for clientIF.py as
- port = config.getint('addresses', 'management_port')
+ port = config.get('addresses', 'management_port')

Now there is no fatal error in beam.log, also migration can start to happen 
when I set the host where HE VM is to be local maintenance mode. But it finally 
fail with the following log. Also HE VM can not be done with live migration in 
my environment.

MainThread::INFO::2014-12-31
19:08:06,197::states::759::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
Continuing to monitor migration
MainThread::INFO::2014-12-31
19:08:06,430::hosted_engine::327::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Current state EngineMigratingAway (score: 2000)
MainThread::INFO::2014-12-31
19:08:06,430::hosted_engine::332::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
Best remote host 10.0.0.93 (id: 2, score: 2400)
MainThread::ERROR::2014-12-31
19:08:16,490::hosted_engine::867::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitor_migration)
Failed to migrate
Traceback (most recent call last):
 File 
/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py,
line 863, in _monitor_migration
   vm_id,
 File 
/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/vds_client.py,
line 85, in run_vds_client_cmd
   response['status']['message'])
DetailedError: Error 47 from migrateStatus: Migration canceled
MainThread::INFO::2014-12-31
19:08:16,501::brokerlink::111::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Trying: notify time=1420070896.5 type=state_transition
detail=EngineMigratingAway-ReinitializeFSM hostname='compute2-3'
MainThread::INFO::2014-12-31
19:08:16,502::brokerlink::120::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
Success, was notification of state_transition
(EngineMigratingAway-ReinitializeFSM) sent? ignored
MainThread::INFO::2014-12-31

Re: [ovirt-users] Ovirt Engine Clear All tasks

2015-01-06 Thread Yair Zaslavsky


- Original Message -
 From: Donny Davis do...@cloudspin.me
 To: users users@ovirt.org
 Sent: Saturday, January 3, 2015 12:00:43 AM
 Subject: [ovirt-users] Ovirt Engine Clear All tasks
 
 I tried to migrate disks from one storage domain to another, and it is
 taking an unreasonable amount of time to complete. The disks have been
 migrating for 6 hours, and is bringing my system to it's knees.
 
 I have used the taskcleaner utility when the engine was stopped, and
 when I start the engine, it starts trying to migrate the disks again.
 
 How can I fix this

I wonder if the command_entities table in the DB included any entries.
In addition, I wonder what was the status of tasks at SPM at that time.

 
 Thanks
 
 --
 Donny Davis
 CloudSpin.me
 
 ___
 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] templates and freeipa

2015-01-06 Thread Yair Zaslavsky


- Original Message -
 From: Jim Kinney jim.kin...@gmail.com
 To: users@ovirt.org
 Sent: Friday, October 31, 2014 8:55:46 PM
 Subject: [ovirt-users] templates and freeipa
 
 Ovirt 3.5 is running well for me and I have freeIPA controlling access to
 the user portal. I would like to provide templates of various linux setups
 that all have freeipa for user authentication in the VM for my developers
 to be able to create a new VM from and then log in using their freeIPA
 access and sudo control. I'm wanting to group developers by project and use
 freeIPA to set sudo commands as needed (group A get oracle, group B get
 postgresql, etc). Wanting to maximize developer ability while minimizing my
 clean up time :-) They will be able to delete VMs they create.
 
 It's possible to do a kickstart deploy with freeIPA registration but a
 template from that will be a problem as it will have the same keys for all
 VMs.
 
 Is there a post-creation scripting process I can attach to in ovirt or
 should I look at a default root user  and script that personalizes the new
 VM?

טYou mean something like the vdsm hooks?
Bare in mind that the create verb in VDSM is more about running a VM. the 
creation of its metadata is done at engine.

 
 --
 --
 James P. Kinney III
 
 Every time you stop a school, you will have to build a jail. What you gain
 at one end you lose at the other. It's like feeding a dog on his own tail.
 It won't fatten the dog.
 - Speech 11/23/1900 Mark Twain
 
 
 *http://heretothereideas.blogspot.com/
 http://heretothereideas.blogspot.com/*
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Can't migrate/remove VM

2015-01-06 Thread Johan Kooijman
Hi all,

Been playing with an ovirt test setup for the last couple of days.
Created some vm's, started to throw them around on the cluster, but now I'm
stuck. The VM's are running, but when I try to stop them, I get errors like
this:

https://plakbord.cloud.nl/p/zvAEVPFeBBJSBeGspKNxJsqF


When trying to migrate a VM, the node throws this error:

https://plakbord.cloud.nl/p/4Syi9A7tEd8L3A2pQg6boVB6

Any clue on what's happening?

-- 
Met vriendelijke groeten / With kind regards,
Johan Kooijman
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ERROR 'no free file handlers in pool' while creating VM from template

2015-01-06 Thread Tiemen Ruiten
Yeela, any chance you could shed any light on this?

On 5 January 2015 at 15:46, Tiemen Ruiten t.rui...@rdmedia.com wrote:

 Sorry, to be clear: no default disk policy exists for the 3.4 cluster
 storage domain.

 On 5 January 2015 at 15:45, Tiemen Ruiten t.rui...@rdmedia.com wrote:

 Hello,

 I just tried creating a thin-provisioned disk and the same problem (load
 spike, non responsive VMs) occurred. I may have an idea what is going wrong
 now. The following is an excerpt from the engine log after starting the
 disk create job:

 2015-01-05 15:12:14,277 ERROR [org.ovirt.engine.core.bll.SearchQuery]
 (ajp--127.0.0.1-8702-1) Query SearchQuery failed. Exception message is
 StatementCallback; bad SQL grammar [SELECT * FROM (SELECT * FROM
 vds_groups_view WHERE ( vds_group_id IN (SELECT distinct
 vds_groups_storage_domain.vds_group_id FROM  vds_groups_storage_domain
 LEFT OUTER JOIN storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet. :
 org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL
 grammar [SELECT * FROM (SELECT * FROM vds_groups_view WHERE ( vds_group_id
 IN (SELECT distinct vds_groups_storage_domain.vds_group_id FROM
  vds_groups_storage_domain   LEFT OUTER JOIN
 storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet.:
 org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL
 grammar [SELECT * FROM (SELECT * FROM vds_groups_view WHERE ( vds_group_id
 IN (SELECT distinct vds_groups_storage_domain.vds_group_id FROM
  vds_groups_storage_domain   LEFT OUTER JOIN
 storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet.

 This cluster happens to be a oVirt 3.4 cluster, while the engine is 3.5.
 There's also a 3.5 cluster managed by the same engine. Could this be
 related to this BZ https://bugzilla.redhat.com/show_bug.cgi?id=1145241?



 On 17 December 2014 at 12:34, Yeela Kaplan ykap...@redhat.com wrote:

 Just another thought,
 from looking at the vdsm logs it looks like there are too many calls to
 getVolumeSize that are eating up all handlers
 and eventually a timeout occurs.
 Adam, do you have any idea about this?

 - Original Message -
  From: Yeela Kaplan ykap...@redhat.com
  To: Tiemen Ruiten t.rui...@rdmedia.com
  Cc: Users@ovirt.org users@ovirt.org
  Sent: Wednesday, December 17, 2014 1:30:52 PM
  Subject: Re: [ovirt-users] ERROR 'no free file handlers in pool' while
 creating VM from template
 
 
 
  - Original Message -
   From: Tiemen Ruiten t.rui...@rdmedia.com
   To: Yeela Kaplan ykap...@redhat.com
   Cc: Users@ovirt.org users@ovirt.org
   Sent: Wednesday, December 17, 2014 1:22:59 PM
   Subject: Re: [ovirt-users] ERROR 'no free file handlers in pool'
 while
   creating VM from template
  
   Thank you, I will try to increase to 20 and see what happens. Bug is
 filed:
   https://bugzilla.redhat.com/show_bug.cgi?id=1175255
 
  Thank you
  and I forgot to mention that you have to restart vdsmd so the change
 will
  apply...
 
 
  
   On 17 December 2014 at 11:48, Yeela Kaplan ykap...@redhat.com
 wrote:
   
Hi,
You are right, the problem is with the file handlers.
You can increase the number of handlers in pool using the vdsm
 config
file, which is supposed to be under the following directory in your
system:
   
/usr/lib/python2.6/site-packages/vdsm/config.py
   
The default value for 'process_pool_max_slots_per_domain' is 10,
 so you
can increase it by a bit, but not too much.
   
But I suspect the problem is in a larger scale, and this is only a
temporary relief for your system and this needs much more
 attention and a
proper fix.
could you please open a bug on RHEV/vdsm in bugzilla stating all
 of the
details of your setup and logs?
   
thanks,
Yeela
   
- Original Message -
 From: Tiemen Ruiten t.rui...@rdmedia.com
 To: Users@ovirt.org users@ovirt.org
 Sent: Wednesday, December 17, 2014 10:53:39 AM
 Subject: Re: [ovirt-users] ERROR 'no free file handlers in pool'
 while
creating VM from template

 Would this be 

Re: [ovirt-users] templates and freeipa

2015-01-06 Thread Sven Kieske
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 31.10.2014 19:55, Jim Kinney wrote:
 Is there a post-creation scripting process I can attach to in ovirt
 or should I look at a default root user  and script that
 personalizes the new VM?

Yes, in the gui it's available via run-once
in the cloud-init/initial run phase you can
specify new ssh-keys etc.

you need cloud-init or your own wrapper
script inside the vm.

this also works via rest api or sdk.

there is some documentation on this on ovirt.org
and many examples on the users list, just search
the archive.

HTH

Sven
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQGcBAEBAgAGBQJUq8tdAAoJEAq0kGAWDrqlDs0L+wZtyfkUqzIYa8zXvmaspF32
E9FIqPkXnhgP2vus0IN0WA3JsL/q7tSMpuPwQHxXRHpCWGhCuYJ8tjiNmVidmLc2
TY2xg9OiaaFZw2htWfvPijJBJOrHgSB8Yr8JwBvO94imD5vODSABJq4tVsSnOHez
C+/i+jZltDE+V753sz+5XPCdGOGaSkqg4FBc54lTvsoN2qtVBtiePuxurxwJrlQi
rCFUIPBBwbfm0eWC3xm0NAuMH+3LbjfTq5PbKGh7n1mqFg+NAXLXtGPvfAP37m1C
Bv1FZTJFRqW6bzQ239mU9Vo+Qt3m8Yf+ktj/4fW5IR4m/qfmi5bW7MfavaPxMtZW
HO8M9zETzkuE6NZR/ZKZkKrau50dViJAyFSGN4BQYM6gFDdGJCAYDu4YUD3MU3Hm
RtTCkWcsvf58aj+PogaU+M8/WVcaqso6G4ytmGLEHcPjpmrhKOP/zlrmopGpkmyQ
4245XRBip8gD2WCXolgOfaWyYnMwcR4dFQwEjJ61ng==
=5Iqt
-END PGP SIGNATURE-
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Debug Environment for RHEVM

2015-01-06 Thread Yair Zaslavsky


- Original Message -
 From: Vered Volansky ve...@redhat.com
 To: Chao Xie xiec.f...@cn.fujitsu.com
 Cc: users@ovirt.org
 Sent: Monday, December 22, 2014 8:26:56 AM
 Subject: Re: [ovirt-users] Debug Environment for RHEVM
 
 Hi,
 
 It's not that you can't debug RHEV at all, it's just that the instructions in
 the link you cited is will not work as is.
 The packaging, hierarchy and even file names are different.
 
 Regards,
 Vered

It is possible to open the remote debug port for RHEV-M.
The (not so ) tricky part will be to get the exact code-base as of the version 
(i.e - find the proper git tag).
In addition, are you sure you want to debug RHEVM and not oVirt?

Cheers,
Yair

 
 - Original Message -
  From: Chao Xie xiec.f...@cn.fujitsu.com
  To: users@ovirt.org
  Sent: Monday, December 22, 2014 3:55:13 AM
  Subject: [ovirt-users] Debug Environment for RHEVM
  
  
  
  HI,
  
  
  
  I found there is a debug environment for oVirt:
  http://wiki.ovirt.org/OVirt_Engine_Development_Environment
  
  Is it also useful for RHEVM source code?
  
  
  
  Best Regards,
  
  Xie
  
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [ovirt-devel] 3.5 live merge findings and mysteries [was Re: Simple way to activate live merge in FC20 cluster]

2015-01-06 Thread Adam Litke

On 04/01/15 16:34 +0100, Gianluca Cecchi wrote:

On Sun, Jan 4, 2015 at 2:31 PM, Sven Kieske svenkie...@gmail.com wrote:




 Understand me, please. My note was about Release Notes page
 misleading in respect with features' set and newcomers... but also
 frequent users too

 At http://www.ovirt.org/OVirt_3.5_Release_Notes#Live_Merge  ones
 reads:

  Live Merge If an image has one or more snapshots, oVirt 3.5's
 merge command will combine the data of one volume into another.
 Live merges can be performed with data is pulled from one snapshot
 into another snapshot. The engine can merge multiple disks at the
 same time and each merge can independently fail or succeed in each
 operation. 

 I think you have to mention that it is a restricted use case for
 now... and specify that it works only for Fedora 20 and in that
 case you have to manually modify the repo definition to install the
 qemu packages from virt-preview to get the feature.

This still is not fixed!

I can already see the bugreports coming in, claiming live merge does
not work, because the release notes are very misleading!

Did nobody got the time to fix this?



I'm more than available to change it if my edit rights allow it.
But at the end I didn't see any clear answer from developers and/or infra
maintainers...
I think it is a crucial page, so I'd prefer one of them to do it or
explicitly answering here that we are right and we can go change it...


I'll add a disclaimer to the page.

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


Re: [ovirt-users] Would you add the project of Jasper into the Zanata?

2015-01-06 Thread Yuko Katabami

Hi Helen,

Sorry for the delay in responding.

With regard to the JasperServer strings for oVirt Reports, we have two 
projects in zanata.org.
The first one is oVirt Engine Reports which you have already edited 
some translations.
The second one is oVirt Engine DWH, accessible at: 
https://translate.zanata.org/zanata/project/view/ovirt-engine-dwh

(there is only one version called master in this project)

The remaining translations are actually imported from the JasperServer 
community.
If you would like to change those strings, the only way to change them 
is to be part of JasperServer localization group and work with them.


Yaniv and Shirly are able to direct you to the right contact.

I also confirmed with Shirly that the recent fix you applied in oVirt 
Engine Reports (and potentially oVirt Engine DWH) will first be included 
in 3.6, then backported to 3.5.2.


If you have any further questions, please feel free to contact us again.

Kind regards,

Yuko





On 12/28/2014 09:37 AM, Yaniv Dary wrote:

corrections:




*From: *Yaniv Dary yd...@redhat.com
*To: *张亚琪 zhangyingyun...@gmail.com
*Cc: *users@ovirt.org, t...@redhat.com, ykata...@redhat.com
*Sent: *Sunday, December 28, 2014 1:36:27 AM
*Subject: *Re: [ovirt-users] Would you add the project of Jasper
into the Zanata?

JasperServer is used by oVirt, but we do not translate it.
I would contact the Jasper community on how to donate translations.

We do have a translation project for the reports themselves, Yuko can 
refer you to that.







*From: *张亚琪 zhangyingyun...@gmail.com
*To: *users@ovirt.org
*Cc: *t...@redhat.com, ykata...@redhat.com
*Sent: *Friday, December 26, 2014 10:19:00 AM
*Subject: *[ovirt-users] Would you add the project of Jasper
into the Zanata?

hi all,

   Would you add Jasper into zanata? I want to translate
it for reports, and this project is based

on this project. So would you add it for reports? Thanks a lot. :)

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






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


[ovirt-users] oVirt 3.5 ovirt-image-repository (Glance)

2015-01-06 Thread Staffan Öhrberg
Hi,
Short background, I own a startup company that have been used VMware ESXi for a 
year and are trying oVirt to see if that can be a replacement for us.
I have just installed oVirt 3.5, but have trouble accessing 
ovirt-image-repository,Glance (http://glance.ovirt.org:9292).
In the admin console it just says: ”Error while executing action: A Request to 
the server failed with the following Status Code: 500”

In the server.log I got a lot of errors:
2015-01-05 16:57:01,881 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ovirt-engine/webadmin]]
 (ajp--127.0.0.1-8702-7) Exception while dispatching incoming RPC call: 
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract org.ovirt.engine.core.common.action.VdcReturnValueBase 
org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTService.runAction(org.ovirt.engine.core.common.action.VdcActionType,org.ovirt.engine.core.common.action.VdcActionParametersBase)'
 threw an unexpected exception: javax.ejb.EJBException: 
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not 
initialize class com.woorea.openstack.glance.Glance

….

I have search for an answer, but have not found one.
Anyone in this forum have any idea of whats wrong?

Regards,
Staffan Öhrberg___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Possibility to regenerate answer file on primary node

2015-01-06 Thread Christopher Young
I believe that I'm stuck with trying to follow the deployment via the
popular guide at:
http://community.redhat.com/blog/2014/11/up-and-running-with-ovirt-3-5-part-two/

I'm trying to get my second hosted-engine deployed and seem to keep running
into errors with '--deploy' on the second node.

---
  --== NETWORK CONFIGURATION ==--

  Please indicate a pingable gateway IP address [x.x.x.x]:
  The following CPU types are supported by this host:
 - model_Westmere: Intel Westmere Family
 - model_Nehalem: Intel Nehalem Family
 - model_Penryn: Intel Penryn Family
 - model_Conroe: Intel Conroe Family
[ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU
type specified: None

---
It seems like the answer file that is copied from the first node is either
not being copied or is incorrect.  In any case, I was wondering if there
was a way to verify this as well as if there is a method for regenerating
the answer file on the first node should it be missing (which I think that
it might be).

I apologize if this is pretty obvious stuff at this point as I feel like
I'm missing something.  Any help would be greatly appreciated.

Thanks,

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


Re: [ovirt-users] Possibility to regenerate answer file on primary node

2015-01-06 Thread Christopher Young
For added information (a portion from the ovirt-hosted-setup log):

--
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:138 Stage
customization METHOD
otopi.plugins.ovirt_hosted_engine_setup.core.titles.Plugin._vm_start
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:144
condition False
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:138 Stage
customization METHOD
otopi.plugins.ovirt_hosted_engine_setup.vm.configurevm.Plugin._customization
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:490
ENVIRONMENT DUMP - BEGIN
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:500 ENV
OVEHOSTED_VM/vmBoot=str:'disk'
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:504
ENVIRONMENT DUMP - END
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:138 Stage
customization METHOD
otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk.Plugin._customization
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:144
condition False
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:138 Stage
customization METHOD
otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu.Plugin._customization
2015-01-06 19:18:23 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu
cpu._getCompatibleCpuModels:68 Attempting to load the caps vdsm module
2015-01-06 19:18:23 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu
cpu._customization:137 Compatible CPU models are: [u'model_Nehalem',
u'model_Conroe', u'model_coreduo', u'model_core2duo', u'model_Penryn',
u'model_Westmere', u'model_n270']
2015-01-06 19:18:23 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:215 DIALOG:SEND The following CPU types
are supported by this host:
2015-01-06 19:18:23 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:215 DIALOG:SEND- model_Westmere:
Intel Westmere Family
2015-01-06 19:18:23 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:215 DIALOG:SEND- model_Nehalem:
Intel Nehalem Family
2015-01-06 19:18:23 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:215 DIALOG:SEND- model_Penryn: Intel
Penryn Family
2015-01-06 19:18:23 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:215 DIALOG:SEND- model_Conroe: Intel
Conroe Family
2015-01-06 19:18:23 DEBUG otopi.context context._executeMethod:152 method
exception
Traceback (most recent call last):
  File /usr/lib/python2.7/site-packages/otopi/context.py, line 142, in
_executeMethod
method['method']()
  File
/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/vdsmd/cpu.py,
line 194, in _customization
ohostedcons.VDSMEnv.VDSM_CPU
RuntimeError: Invalid CPU type specified: None
2015-01-06 19:18:23 ERROR otopi.context context._executeMethod:161 Failed
to execute stage 'Environment customization': Invalid CPU type specified:
None
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:490
ENVIRONMENT DUMP - BEGIN
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:500 ENV
BASE/error=bool:'True'
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:500 ENV
BASE/exceptionInfo=list:'[(type 'exceptions.RuntimeError',
RuntimeError('Invalid CPU type specified: None',), traceback object at
0x39782d8)]'
2015-01-06 19:18:23 DEBUG otopi.context context.dumpEnvironment:504
ENVIRONMENT DUMP - END
2015-01-06 19:18:23 INFO otopi.context context.runSequence:417 Stage: Clean
up
2015-01-06 19:18:23 DEBUG otopi.context context.runSequence:421 STAGE
cleanup
--

On Tue, Jan 6, 2015 at 7:26 PM, Christopher Young mexigaba...@gmail.com
wrote:

 I believe that I'm stuck with trying to follow the deployment via the
 popular guide at:

 http://community.redhat.com/blog/2014/11/up-and-running-with-ovirt-3-5-part-two/

 I'm trying to get my second hosted-engine deployed and seem to keep
 running into errors with '--deploy' on the second node.

 ---
   --== NETWORK CONFIGURATION ==--

   Please indicate a pingable gateway IP address [x.x.x.x]:
   The following CPU types are supported by this host:
  - model_Westmere: Intel Westmere Family
  - model_Nehalem: Intel Nehalem Family
  - model_Penryn: Intel Penryn Family
  - model_Conroe: Intel Conroe Family
 [ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU
 type specified: None

 ---
 It seems like the answer file that is copied from the first node is either
 not being copied or is incorrect.  In any case, I was wondering if there
 was a way to verify this as well as if there is a method for regenerating
 the answer file on the first node should it be missing (which I think that
 it might be).

 I apologize if this is pretty obvious stuff at this point as I feel like
 I'm missing something.  Any help would be greatly appreciated.

 Thanks,

 Chris


Re: [ovirt-users] LDAP Certificate Location?

2015-01-06 Thread Donny Davis
In the article you referenced you didn't setup tls
On Jan 6, 2015 2:04 PM, Sandvik Agustin agustinsand...@gmail.com wrote:Hi Donny,Sorry to bother you at this time, I installed the 389ds by following this http://www.unixmen.com/setup-directory-serverldap-in-centos-6-4-rhel-6-4/ and now Im following your documentation at https://cloudspin.me/ovirt-simple-ldap-aaa/ Im wondering if where can I find this CA or pem thing you mention on your website /etc/pki/tls/cacerts/ldapCA.pem.Thanks in Advance,
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] HostedEngine Deployment Woes

2015-01-06 Thread Mikola Rose
Thanks for the tip.   That seemed to work and after fixing my nfs issues and 
removing that config the hosted setup completed to the point of creating the vm 
and waiting for the os to be installed on it, however...

I try to connect to the vm via vnc and it just flashes and closes vnc.  Vnc log 
indicated an unexpected close.

We're are the logs for the vnc server end of things so I can see why it's 
closing the session?


On Jan 5, 2015, at 12:32 PM, Mikola Rose 
mr...@power-soft.commailto:mr...@power-soft.com wrote:

I will asap.  I am struggling with my augeas-libs issue.  Still trying to 
resolve my augeas-libs issue. 
https://access.redhat.com/comment/865173#comment-865173






I managed to reproduce, and it seems to me that this is caused by
vdsm trying to contact hosted-engine-ha, because it seems to have been
configured by a previous failed run of deploy, although it's actually
still down. At this point, 'vdsClient -s 0 getVdsStats' indeed got stuck.
Removing /etc/ovirt-hosted-engine/hosted-engine.conf was enough to make it
work.

Mikola, please try that and tell us if it solves. Thanks!

I added a comment [1] on bz.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1099874#c20 .

Best,
--
Didi


Mik Rose | Manager, IT - Support Services | PowerSoft Development Corp
1 (250) 642-0295 x23   http://www.power-soft.comhttp://www.power-soft.com/   
Live 
Supporthttps://secure.logmeinrescue.com/Customer/Download.aspx?EntryID=15095831

This e-mail may be privileged and/or confidential, and the sender does not waive
any related rights and obligations. Any distribution, use or copying of this 
e-mail or the information
it contains by other than an intended recipient is unauthorized.
If you received this e-mail in error, please advise me (by return e-mail or 
otherwise) immediately.







___
Users mailing list
Users@ovirt.orgmailto: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] ERROR 'no free file handlers in pool' while creating VM from template

2015-01-06 Thread Tiemen Ruiten
After creating a default disk profile, I can add new disks and create VMs
without issues. I have updated the bug I reported as a duplicate of 1145241.

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


On 5 January 2015 at 15:46, Tiemen Ruiten t.rui...@rdmedia.com wrote:

 Sorry, to be clear: no default disk policy exists for the 3.4 cluster
 storage domain.

 On 5 January 2015 at 15:45, Tiemen Ruiten t.rui...@rdmedia.com wrote:

 Hello,

 I just tried creating a thin-provisioned disk and the same problem (load
 spike, non responsive VMs) occurred. I may have an idea what is going wrong
 now. The following is an excerpt from the engine log after starting the
 disk create job:

 2015-01-05 15:12:14,277 ERROR [org.ovirt.engine.core.bll.SearchQuery]
 (ajp--127.0.0.1-8702-1) Query SearchQuery failed. Exception message is
 StatementCallback; bad SQL grammar [SELECT * FROM (SELECT * FROM
 vds_groups_view WHERE ( vds_group_id IN (SELECT distinct
 vds_groups_storage_domain.vds_group_id FROM  vds_groups_storage_domain
 LEFT OUTER JOIN storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet. :
 org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL
 grammar [SELECT * FROM (SELECT * FROM vds_groups_view WHERE ( vds_group_id
 IN (SELECT distinct vds_groups_storage_domain.vds_group_id FROM
  vds_groups_storage_domain   LEFT OUTER JOIN
 storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet.:
 org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL
 grammar [SELECT * FROM (SELECT * FROM vds_groups_view WHERE ( vds_group_id
 IN (SELECT distinct vds_groups_storage_domain.vds_group_id FROM
  vds_groups_storage_domain   LEFT OUTER JOIN
 storage_pool_with_storage_domain ON
 vds_groups_storage_domain.storage_pool_id=
 storage_pool_with_storage_domain.idWHERE
 storage_pool_with_storage_domain.name LIKE 'XS4ALL-Strozzi' ))  ORDER BY
 name ASC) as T1 OFFSET (1 -1) LIMIT 100]; nested exception is
 org.postgresql.util.PSQLException: The column name disk_storage_type was
 not found in this ResultSet.

 This cluster happens to be a oVirt 3.4 cluster, while the engine is 3.5.
 There's also a 3.5 cluster managed by the same engine. Could this be
 related to this BZ https://bugzilla.redhat.com/show_bug.cgi?id=1145241?



 On 17 December 2014 at 12:34, Yeela Kaplan ykap...@redhat.com wrote:

 Just another thought,
 from looking at the vdsm logs it looks like there are too many calls to
 getVolumeSize that are eating up all handlers
 and eventually a timeout occurs.
 Adam, do you have any idea about this?

 - Original Message -
  From: Yeela Kaplan ykap...@redhat.com
  To: Tiemen Ruiten t.rui...@rdmedia.com
  Cc: Users@ovirt.org users@ovirt.org
  Sent: Wednesday, December 17, 2014 1:30:52 PM
  Subject: Re: [ovirt-users] ERROR 'no free file handlers in pool' while
 creating VM from template
 
 
 
  - Original Message -
   From: Tiemen Ruiten t.rui...@rdmedia.com
   To: Yeela Kaplan ykap...@redhat.com
   Cc: Users@ovirt.org users@ovirt.org
   Sent: Wednesday, December 17, 2014 1:22:59 PM
   Subject: Re: [ovirt-users] ERROR 'no free file handlers in pool'
 while
   creating VM from template
  
   Thank you, I will try to increase to 20 and see what happens. Bug is
 filed:
   https://bugzilla.redhat.com/show_bug.cgi?id=1175255
 
  Thank you
  and I forgot to mention that you have to restart vdsmd so the change
 will
  apply...
 
 
  
   On 17 December 2014 at 11:48, Yeela Kaplan ykap...@redhat.com
 wrote:
   
Hi,
You are right, the problem is with the file handlers.
You can increase the number of handlers in pool using the vdsm
 config
file, which is supposed to be under the following directory in your
system:
   
/usr/lib/python2.6/site-packages/vdsm/config.py
   
The default value for 'process_pool_max_slots_per_domain' is 10,
 so you
can increase it by a bit, but not too much.
   
But I suspect the problem is in a larger scale, and this is only a
temporary relief for your system and this needs much more
 attention and a
proper fix.
could you please open a bug on RHEV/vdsm in bugzilla stating all
 of the
details of your setup and logs?
   
thanks,
Yeela
   
- Original Message -
 From: Tiemen Ruiten t.rui...@rdmedia.com
 To: Users@ovirt.org users@ovirt.org
 Sent: Wednesday, December 

[ovirt-users] Alerts

2015-01-06 Thread Koen Vanoppen
Hi All,

We recently had a major crash on our ovirt environment due a strange bug
(has been reported in the meanwhile).

But now we are left we a bunch of aerts (+100) that are still standing
there... Is there a way I can flush them manually from command line or so?
Because the right click+clear all, doesn't seem to work that good... :-).

Kind regards,

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


Re: [ovirt-users] Backup solution using the API

2015-01-06 Thread Adam Litke

On 15/12/14 04:31 -0500, Nir Soffer wrote:

- Original Message -

From: Blaster blas...@556nato.com
To: Thomas Keppler (PEBA) thomas.kepp...@kit.edu, users@ovirt.org
Sent: Wednesday, December 10, 2014 8:06:58 PM
Subject: Re: [ovirt-users] Backup solution using the API

On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote:



Now, before I go into any more hassle, has somebody else of you done a
live-backup solution for oVirt? Are there any recommendations? Thanks for
any help provided!


I've been looking for a similar scheme for the last year. It was not (really)
possible in the past as there wasn't any way to destroy a snapshot w/o
shutting down the VM. Is this still the case, or are snap shots fully
implemented now?

Basically, I'd like to:
Tell VM to flush it's buffers
suspend VM
take snap shot of boot virtual disk
resume VM


You don't need to suspend the vm, qemu can create live snapshot. When the
snapshot is done, you don't care about future io, it will simply not
included in the backup.


backup the virtual boot disk from the Hypervisor using standard commands
(tar, cp, whatever)


You can by attaching the snapshot to another vm


destroy the snapshot


You can in ovirt 3.5.1 - we do not depend any more on future libvirt features.
Adam, can you confirm?


Yes, on 3.5.1 you'll be able to destroy the snapshot without impacting
the running VM.



This would at least give some BMR capabilities of your VMs.

Ideally, I'd also like to be able to create a snapshot from within the VM, do


You can do this within the vm by using the engine REST API. But this can
be fragile - for example, if the vm pauses, your backup tool within the vm
will never complete :-)


a yum update, see if I like it or not, if I do, then destroy the snap shot.


Possible in 3.5.1 using REST API


If I don't, I want to promote the snapshot and boot from that, then destroy
the original.


Same

Nir


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