Re: [ovirt-users] Vm:s can not be started

2014-08-15 Thread Joop
On August 15, 2014 3:59:46 PM CEST, Jonas Israelsson  
wrote:
>I screwed up massively today when accidentally assigned a new virtual 
>network (on my host) the same IP-address as on my iscsi SAN subnet and 
>as a result the whole DC collapsed (I only have one host). Recovering 
>was not quite as easy since the host network configuration only can be 
>managed while the host is either in up, down or maintenance mode, and 
>mine seem to be somewhere in between.
>
>I finally however managed to remove the network from the cluster tab 
>marking the net on the hosts nic with a "?" and when the host came back
>
>online and I could later also be remove the faulty network from the
>nic.
>
>All VM:s now where either in mode pause or down, but I could not get 
>any started to I just powered all of them down.
>
>Now everything DC-wise it up and running again still several VM:s can 
>not be started. Out of about 30 vm;s I have only managed to get one up 
>and running.
>
>The following it written to the engine.log when trying to fire up a 
>non-working VM.
>
>2014-08-15 15:26:23,638 INFO  
>[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
>(DefaultQuartzScheduler_Worker-53) START, DestroyVDSCommand(HostName = 
>ft.elementary.se, HostId = 97c43383-3770-4b0c-810c-a597bb187898, 
>vmId=1b13210a-bf05-41f7-b42e-c4b34ca2214d, force=false,
>secondsToWait=0, 
>gracefully=false), log id: 1aaa6470
>2014-08-15 15:26:34,110 INFO  
>[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
>(DefaultQuartzScheduler_Worker-53) FINISH, DestroyVDSCommand, log id: 
>1aaa6470
>2014-08-15 15:26:34,117 INFO  
>[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
>(DefaultQuartzScheduler_Worker-53) Correlation ID: null, Call Stack: 
>null, Custom Event ID: -1, Message: VM moleman is down. Exit message: 
>Requested operation is not valid: domain 'moleman' is already active.
>2014-08-15 15:26:34,118 INFO  
>[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
>(DefaultQuartzScheduler_Worker-53) Running on vds during rerun failed 
>vm: null
>2014-08-15 15:26:34,119 INFO  
>[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
>(DefaultQuartzScheduler_Worker-53) VM moleman 
>(1b13210a-bf05-41f7-b42e-c4b34ca2214d) is running in db and not running
>
>in VDS ft.elementary.se
>2014-08-15 15:26:34,136 ERROR 
>[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
>(DefaultQuartzScheduler_Worker-53) Rerun vm 
>1b13210a-bf05-41f7-b42e-c4b34ca2214d. Called from vds ft.elementary.se
>2014-08-15 15:26:34,142 INFO  
>[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
>(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
>f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event
>ID: 
>-1, Message: Failed to run VM moleman on Host ft.elementary.se.
>2014-08-15 15:26:34,150 INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
>(org.ovirt.thread.pool-6-thread-44) Lock Acquired to object EngineLock 
>[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM
>, sharedLocks= ]
>2014-08-15 15:26:34,155 INFO  
>[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
>(org.ovirt.thread.pool-6-thread-44) START, 
>IsVmDuringInitiatingVDSCommand( vmId = 
>1b13210a-bf05-41f7-b42e-c4b34ca2214d), log id: ee3a648
>2014-08-15 15:26:34,156 INFO  
>[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
>(org.ovirt.thread.pool-6-thread-44) FINISH, 
>IsVmDuringInitiatingVDSCommand, return: false, log id: ee3a648
>2014-08-15 15:26:34,160 WARN  [org.ovirt.engine.core.bll.RunVmCommand] 
>(org.ovirt.thread.pool-6-thread-44) CanDoAction of action RunVm failed.
>
>Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT
>2014-08-15 15:26:34,161 INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
>(org.ovirt.thread.pool-6-thread-44) Lock freed to object EngineLock 
>[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM
>, sharedLocks= ]
>2014-08-15 15:26:34,168 INFO  
>[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
>(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
>f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event
>ID: 
>-1, Message: Failed to run VM moleman (User: isrjo).
>
>I was on Ovirt 3.4.0-0.13.rc.el6 and right or wrong I decided to 
>upgrade the engine to a released version and I'm now on 3.4.0-1.el6, it
>
>however made no difference
>
>Any help would be greatly appreciated.
>
>Rgds Jonas
>___
>Users mailing list
>Users@ovirt.org
>http://lists.ovirt.org/mailman/listinfo/users

Sorry for top posting.

Seems that engine thinks the vms are still running, database says so but that 
vdsm says not. One option might be to edit the database to set all vms to off. 
Make sure to have a backup and that you know how to restore! 
Maybe someone else might have a better idea.
Di

Re: [ovirt-users] Vm:s can not be started

2014-08-15 Thread Jonas Israelsson
I removed the host and re-attached it to the DC and now I am able to 
fire up all VMs again :-)



On 15/08/14 15:59, Jonas Israelsson wrote:
I screwed up massively today when accidentally assigned a new virtual 
network (on my host) the same IP-address as on my iscsi SAN subnet and 
as a result the whole DC collapsed (I only have one host). Recovering 
was not quite as easy since the host network configuration only can be 
managed while the host is either in up, down or maintenance mode, and 
mine seem to be somewhere in between.


I finally however managed to remove the network from the cluster tab 
marking the net on the hosts nic with a "?" and when the host came 
back online and I could later also be remove the faulty network from 
the nic.


All VM:s now where either in mode pause or down, but I could not get 
any started to I just powered all of them down.


Now everything DC-wise it up and running again still several VM:s can 
not be started. Out of about 30 vm;s I have only managed to get one up 
and running.


The following it written to the engine.log when trying to fire up a 
non-working VM.


2014-08-15 15:26:23,638 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
(DefaultQuartzScheduler_Worker-53) START, DestroyVDSCommand(HostName = 
ft.elementary.se, HostId = 97c43383-3770-4b0c-810c-a597bb187898, 
vmId=1b13210a-bf05-41f7-b42e-c4b34ca2214d, force=false, 
secondsToWait=0, gracefully=false), log id: 1aaa6470
2014-08-15 15:26:34,110 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
(DefaultQuartzScheduler_Worker-53) FINISH, DestroyVDSCommand, log id: 
1aaa6470
2014-08-15 15:26:34,117 INFO 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler_Worker-53) Correlation ID: null, Call Stack: 
null, Custom Event ID: -1, Message: VM moleman is down. Exit message: 
Requested operation is not valid: domain 'moleman' is already active.
2014-08-15 15:26:34,118 INFO 
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) Running on vds during rerun failed 
vm: null
2014-08-15 15:26:34,119 INFO 
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) VM moleman 
(1b13210a-bf05-41f7-b42e-c4b34ca2214d) is running in db and not 
running in VDS ft.elementary.se
2014-08-15 15:26:34,136 ERROR 
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) Rerun vm 
1b13210a-bf05-41f7-b42e-c4b34ca2214d. Called from vds ft.elementary.se
2014-08-15 15:26:34,142 INFO 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event 
ID: -1, Message: Failed to run VM moleman on Host ft.elementary.se.
2014-08-15 15:26:34,150 INFO [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) Lock Acquired to object EngineLock 
[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM

, sharedLocks= ]
2014-08-15 15:26:34,155 INFO 
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
(org.ovirt.thread.pool-6-thread-44) START, 
IsVmDuringInitiatingVDSCommand( vmId = 
1b13210a-bf05-41f7-b42e-c4b34ca2214d), log id: ee3a648
2014-08-15 15:26:34,156 INFO 
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
(org.ovirt.thread.pool-6-thread-44) FINISH, 
IsVmDuringInitiatingVDSCommand, return: false, log id: ee3a648
2014-08-15 15:26:34,160 WARN [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) CanDoAction of action RunVm 
failed. 
Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT
2014-08-15 15:26:34,161 INFO [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) Lock freed to object EngineLock 
[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM

, sharedLocks= ]
2014-08-15 15:26:34,168 INFO 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event 
ID: -1, Message: Failed to run VM moleman (User: isrjo).


I was on Ovirt 3.4.0-0.13.rc.el6 and right or wrong I decided to 
upgrade the engine to a released version and I'm now on 3.4.0-1.el6, 
it however made no difference


Any help would be greatly appreciated.

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


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


Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Jorick Astrego


On 08/15/2014 04:20 PM, Jorick Astrego wrote:


On 08/15/2014 03:16 PM, Yedidyah Bar David wrote:

- Original Message -

From: "Jorick Astrego"
Cc:users@ovirt.org
Sent: Friday, August 15, 2014 3:32:09 PM
Subject: Re: [ovirt-users] list of answer file parameters?


On 08/15/2014 02:21 PM, Yedidyah Bar David wrote:

- Original Message -

From: "Alon Bar-Lev"
To: "Jorick Astrego"
Cc:users@ovirt.org
Sent: Friday, August 15, 2014 1:59:41 PM
Subject: Re: [ovirt-users] list of answer file parameters?



- Original Message -

From: "Jorick Astrego"
To:users@ovirt.org
Sent: Friday, August 15, 2014 1:27:23 PM
Subject: [ovirt-users] list of answer file parameters?

Hi,

I'm looking everywhere for a full list of "OVESETUP" parameters that can
be used in the installer answerfile.

Searched the red hat manual and found some in:

"3.6. Passwords in Red Hat Enterprise Virtualization Manager"

But there are more. I can get it from a finished install but some
parameters only apply to some types of installation.

I found this one form lzap:

https://gist.github.com/lzap/7a8cbb7f44d41e4ad171

But I don't know if it's complete or just for his personal use.

No hurry, I know you are all busy ;-)


Hi,

The simplest way is to perform setup and record the answer file.

You can even C at the summary confirmation question and answer file
will be generated for you without installing anything.

Full list is available at
/usr/share/ovirt-engine/setup/ovirt_engine_setup/,
seek *.py and look for @osetupattrs with answerfile=True. Maybe in future
we
can have utility to extract all with description.

Also note:

1. The files there are separated between different packages, so you'll not
necessarily have all, if you did not install some optional ones.

2. Not all combinations are supported, and in principle it's possible to
manually
create answer files that will cause setup to fail, or even to succeed but
leave
an unsupported, unexpected system setup. I started writing about this some
time
ago in [1] but got stuck in the middle, and Alon said I should not call it
Otopi
because it does not document Otopi but engine-setup, and he is largely
right.
See also [2], which is not directly related (key is not answerfile=True),
but does
give a relevant example.

[1]http://www.ovirt.org/Otopi
[2]https://bugzilla.redhat.com/show_bug.cgi?id=1101001

Yes that was my problem, I was trying to do AIO install but
engine-cleanup didn't work because a version mismatch.

Perhaps because you upgraded ovirt-engine-setup without running engine-setup.
You should have been able to fix by downgrading it.


So I tried removing everything by hand but the installer never asked me
the install local VDSM question... Then I thought I'd get smart and just

Perhaps you did not have the allinone plugin itself? Or removed its
/etc/ovirt-engine-setup.conf.d/10-packaging-aio.conf ?
Or something like that?


edit the answer the installer generated and add the AIO lines to it.
But nearly all the settings are undocumented so I had to resort to
searching on what to set them to on pastebin etc. In the end, I
reinstalled the host as it was quicker to do a fresh install.

Also I want to create puppet files and deploy engine through foreman.

I think as a workaround, I'll do a couple of different installs and rip
the generated answer file from them. But when a new parameter get's
introduced, I will never know about it until I run into an issue.

I think that using the kept files during the same minor (e.g. generate
on 3.4.2, use for 3.4.3) should usually be safe (but not always). When
upgrading to 3.5, I suggest to run again interactively to generate new
answer files.


Something like "ovirt-installer --list-answerfile" should be possible
IMHO, as the installer uses and verifies the parameters on install. I'm
not a programmer but it should be able to spit out a list them.

We had several discussions in the past re this.

We'd rather not do that. Main reason is what I explained above - some
combinations will not work well.

I think the main flows to using answer files are:

1. Most common - you have a specific env you want to be able to generate
(including specific packages/plugins installed, specific answers you want
to give etc). You just run engine-setup interactively and keep the
generated answer file, and do not edit it. It will in principle be good
only for an exact copy (same versions of packages etc.).

2. You do some testing of engine-setup and need to run it lots of times,
interactively, and just not want to have to answer all the questions, just
some of them. So you run engine-setup, edit the answer file and remove the
answers you want to give interactively and use that.

3. Similar to 2. above, but you just want to keep very few answers (such
as the one for the question warning you against running setup with not
enough memory :-) ). So you keep a very small answer file and either
press Enter to accept defaults or fill in answers you want to test 
int

Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Jorick Astrego


On 08/15/2014 03:16 PM, Yedidyah Bar David wrote:

- Original Message -

From: "Jorick Astrego" 
Cc: users@ovirt.org
Sent: Friday, August 15, 2014 3:32:09 PM
Subject: Re: [ovirt-users] list of answer file parameters?


On 08/15/2014 02:21 PM, Yedidyah Bar David wrote:

- Original Message -

From: "Alon Bar-Lev" 
To: "Jorick Astrego" 
Cc: users@ovirt.org
Sent: Friday, August 15, 2014 1:59:41 PM
Subject: Re: [ovirt-users] list of answer file parameters?



- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Friday, August 15, 2014 1:27:23 PM
Subject: [ovirt-users] list of answer file parameters?

Hi,

I'm looking everywhere for a full list of "OVESETUP" parameters that can
be used in the installer answerfile.

Searched the red hat manual and found some in:

"3.6. Passwords in Red Hat Enterprise Virtualization Manager"

But there are more. I can get it from a finished install but some
parameters only apply to some types of installation.

I found this one form lzap:

https://gist.github.com/lzap/7a8cbb7f44d41e4ad171

But I don't know if it's complete or just for his personal use.

No hurry, I know you are all busy ;-)


Hi,

The simplest way is to perform setup and record the answer file.

You can even C at the summary confirmation question and answer file
will be generated for you without installing anything.

Full list is available at
/usr/share/ovirt-engine/setup/ovirt_engine_setup/,
seek *.py and look for @osetupattrs with answerfile=True. Maybe in future
we
can have utility to extract all with description.

Also note:

1. The files there are separated between different packages, so you'll not
necessarily have all, if you did not install some optional ones.

2. Not all combinations are supported, and in principle it's possible to
manually
create answer files that will cause setup to fail, or even to succeed but
leave
an unsupported, unexpected system setup. I started writing about this some
time
ago in [1] but got stuck in the middle, and Alon said I should not call it
Otopi
because it does not document Otopi but engine-setup, and he is largely
right.
See also [2], which is not directly related (key is not answerfile=True),
but does
give a relevant example.

[1] http://www.ovirt.org/Otopi
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1101001

Yes that was my problem, I was trying to do AIO install but
engine-cleanup didn't work because a version mismatch.

Perhaps because you upgraded ovirt-engine-setup without running engine-setup.
You should have been able to fix by downgrading it.


So I tried removing everything by hand but the installer never asked me
the install local VDSM question... Then I thought I'd get smart and just

Perhaps you did not have the allinone plugin itself? Or removed its
/etc/ovirt-engine-setup.conf.d/10-packaging-aio.conf ?
Or something like that?


edit the answer the installer generated and add the AIO lines to it.
But nearly all the settings are undocumented so I had to resort to
searching on what to set them to on pastebin etc. In the end, I
reinstalled the host as it was quicker to do a fresh install.

Also I want to create puppet files and deploy engine through foreman.

I think as a workaround, I'll do a couple of different installs and rip
the generated answer file from them. But when a new parameter get's
introduced, I will never know about it until I run into an issue.

I think that using the kept files during the same minor (e.g. generate
on 3.4.2, use for 3.4.3) should usually be safe (but not always). When
upgrading to 3.5, I suggest to run again interactively to generate new
answer files.


Something like "ovirt-installer --list-answerfile" should be possible
IMHO, as the installer uses and verifies the parameters on install. I'm
not a programmer but it should be able to spit out a list them.

We had several discussions in the past re this.

We'd rather not do that. Main reason is what I explained above - some
combinations will not work well.

I think the main flows to using answer files are:

1. Most common - you have a specific env you want to be able to generate
(including specific packages/plugins installed, specific answers you want
to give etc). You just run engine-setup interactively and keep the
generated answer file, and do not edit it. It will in principle be good
only for an exact copy (same versions of packages etc.).

2. You do some testing of engine-setup and need to run it lots of times,
interactively, and just not want to have to answer all the questions, just
some of them. So you run engine-setup, edit the answer file and remove the
answers you want to give interactively and use that.

3. Similar to 2. above, but you just want to keep very few answers (such
as the one for the question warning you against running setup with not
enough memory :-) ). So you keep a very small answer file and either
press Enter to accept defaults or fill in answers you want to test 
interactively.

Of course, if you have a q

[ovirt-users] Vm:s can not be started

2014-08-15 Thread Jonas Israelsson
I screwed up massively today when accidentally assigned a new virtual 
network (on my host) the same IP-address as on my iscsi SAN subnet and 
as a result the whole DC collapsed (I only have one host). Recovering 
was not quite as easy since the host network configuration only can be 
managed while the host is either in up, down or maintenance mode, and 
mine seem to be somewhere in between.


I finally however managed to remove the network from the cluster tab 
marking the net on the hosts nic with a "?" and when the host came back 
online and I could later also be remove the faulty network from the nic.


All VM:s now where either in mode pause or down, but I could not get 
any started to I just powered all of them down.


Now everything DC-wise it up and running again still several VM:s can 
not be started. Out of about 30 vm;s I have only managed to get one up 
and running.


The following it written to the engine.log when trying to fire up a 
non-working VM.


2014-08-15 15:26:23,638 INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
(DefaultQuartzScheduler_Worker-53) START, DestroyVDSCommand(HostName = 
ft.elementary.se, HostId = 97c43383-3770-4b0c-810c-a597bb187898, 
vmId=1b13210a-bf05-41f7-b42e-c4b34ca2214d, force=false, secondsToWait=0, 
gracefully=false), log id: 1aaa6470
2014-08-15 15:26:34,110 INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.DestroyVDSCommand] 
(DefaultQuartzScheduler_Worker-53) FINISH, DestroyVDSCommand, log id: 
1aaa6470
2014-08-15 15:26:34,117 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler_Worker-53) Correlation ID: null, Call Stack: 
null, Custom Event ID: -1, Message: VM moleman is down. Exit message: 
Requested operation is not valid: domain 'moleman' is already active.
2014-08-15 15:26:34,118 INFO  
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) Running on vds during rerun failed 
vm: null
2014-08-15 15:26:34,119 INFO  
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) VM moleman 
(1b13210a-bf05-41f7-b42e-c4b34ca2214d) is running in db and not running 
in VDS ft.elementary.se
2014-08-15 15:26:34,136 ERROR 
[org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] 
(DefaultQuartzScheduler_Worker-53) Rerun vm 
1b13210a-bf05-41f7-b42e-c4b34ca2214d. Called from vds ft.elementary.se
2014-08-15 15:26:34,142 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event ID: 
-1, Message: Failed to run VM moleman on Host ft.elementary.se.
2014-08-15 15:26:34,150 INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) Lock Acquired to object EngineLock 
[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM

, sharedLocks= ]
2014-08-15 15:26:34,155 INFO  
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
(org.ovirt.thread.pool-6-thread-44) START, 
IsVmDuringInitiatingVDSCommand( vmId = 
1b13210a-bf05-41f7-b42e-c4b34ca2214d), log id: ee3a648
2014-08-15 15:26:34,156 INFO  
[org.ovirt.engine.core.vdsbroker.IsVmDuringInitiatingVDSCommand] 
(org.ovirt.thread.pool-6-thread-44) FINISH, 
IsVmDuringInitiatingVDSCommand, return: false, log id: ee3a648
2014-08-15 15:26:34,160 WARN  [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) CanDoAction of action RunVm failed. 
Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,VAR__ACTION__RUN,VAR__TYPE__VM,SCHEDULING_ALL_HOSTS_FILTERED_OUT
2014-08-15 15:26:34,161 INFO  [org.ovirt.engine.core.bll.RunVmCommand] 
(org.ovirt.thread.pool-6-thread-44) Lock freed to object EngineLock 
[exclusiveLocks= key: 1b13210a-bf05-41f7-b42e-c4b34ca2214d value: VM

, sharedLocks= ]
2014-08-15 15:26:34,168 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(org.ovirt.thread.pool-6-thread-44) Correlation ID: 3335521e, Job ID: 
f334270e-2576-46c7-8c69-99c54d868d57, Call Stack: null, Custom Event ID: 
-1, Message: Failed to run VM moleman (User: isrjo).


I was on Ovirt 3.4.0-0.13.rc.el6 and right or wrong I decided to 
upgrade the engine to a released version and I'm now on 3.4.0-1.el6, it 
however made no difference


Any help would be greatly appreciated.

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


Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Yedidyah Bar David
- Original Message -
> From: "Jorick Astrego" 
> Cc: users@ovirt.org
> Sent: Friday, August 15, 2014 3:32:09 PM
> Subject: Re: [ovirt-users] list of answer file parameters?
> 
> 
> On 08/15/2014 02:21 PM, Yedidyah Bar David wrote:
> > - Original Message -
> >> From: "Alon Bar-Lev" 
> >> To: "Jorick Astrego" 
> >> Cc: users@ovirt.org
> >> Sent: Friday, August 15, 2014 1:59:41 PM
> >> Subject: Re: [ovirt-users] list of answer file parameters?
> >>
> >>
> >>
> >> - Original Message -
> >>> From: "Jorick Astrego" 
> >>> To: users@ovirt.org
> >>> Sent: Friday, August 15, 2014 1:27:23 PM
> >>> Subject: [ovirt-users] list of answer file parameters?
> >>>
> >>> Hi,
> >>>
> >>> I'm looking everywhere for a full list of "OVESETUP" parameters that can
> >>> be used in the installer answerfile.
> >>>
> >>> Searched the red hat manual and found some in:
> >>>
> >>> "3.6. Passwords in Red Hat Enterprise Virtualization Manager"
> >>>
> >>> But there are more. I can get it from a finished install but some
> >>> parameters only apply to some types of installation.
> >>>
> >>> I found this one form lzap:
> >>>
> >>> https://gist.github.com/lzap/7a8cbb7f44d41e4ad171
> >>>
> >>> But I don't know if it's complete or just for his personal use.
> >>>
> >>> No hurry, I know you are all busy ;-)
> >>>
> >> Hi,
> >>
> >> The simplest way is to perform setup and record the answer file.
> >>
> >> You can even C at the summary confirmation question and answer file
> >> will be generated for you without installing anything.
> >>
> >> Full list is available at
> >> /usr/share/ovirt-engine/setup/ovirt_engine_setup/,
> >> seek *.py and look for @osetupattrs with answerfile=True. Maybe in future
> >> we
> >> can have utility to extract all with description.
> > Also note:
> >
> > 1. The files there are separated between different packages, so you'll not
> > necessarily have all, if you did not install some optional ones.
> >
> > 2. Not all combinations are supported, and in principle it's possible to
> > manually
> > create answer files that will cause setup to fail, or even to succeed but
> > leave
> > an unsupported, unexpected system setup. I started writing about this some
> > time
> > ago in [1] but got stuck in the middle, and Alon said I should not call it
> > Otopi
> > because it does not document Otopi but engine-setup, and he is largely
> > right.
> > See also [2], which is not directly related (key is not answerfile=True),
> > but does
> > give a relevant example.
> >
> > [1] http://www.ovirt.org/Otopi
> > [2] https://bugzilla.redhat.com/show_bug.cgi?id=1101001
> Yes that was my problem, I was trying to do AIO install but
> engine-cleanup didn't work because a version mismatch.

Perhaps because you upgraded ovirt-engine-setup without running engine-setup.
You should have been able to fix by downgrading it.

> 
> So I tried removing everything by hand but the installer never asked me
> the install local VDSM question... Then I thought I'd get smart and just

Perhaps you did not have the allinone plugin itself? Or removed its
/etc/ovirt-engine-setup.conf.d/10-packaging-aio.conf ?
Or something like that?

> edit the answer the installer generated and add the AIO lines to it.
> But nearly all the settings are undocumented so I had to resort to
> searching on what to set them to on pastebin etc. In the end, I
> reinstalled the host as it was quicker to do a fresh install.
> 
> Also I want to create puppet files and deploy engine through foreman.
> 
> I think as a workaround, I'll do a couple of different installs and rip
> the generated answer file from them. But when a new parameter get's
> introduced, I will never know about it until I run into an issue.

I think that using the kept files during the same minor (e.g. generate
on 3.4.2, use for 3.4.3) should usually be safe (but not always). When
upgrading to 3.5, I suggest to run again interactively to generate new
answer files.

> 
> Something like "ovirt-installer --list-answerfile" should be possible
> IMHO, as the installer uses and verifies the parameters on install. I'm
> not a programmer but it should be able to spit out a list them.

We had several discussions in the past re this.

We'd rather not do that. Main reason is what I explained above - some
combinations will not work well.

I think the main flows to using answer files are:

1. Most common - you have a specific env you want to be able to generate
(including specific packages/plugins installed, specific answers you want
to give etc). You just run engine-setup interactively and keep the
generated answer file, and do not edit it. It will in principle be good
only for an exact copy (same versions of packages etc.).

2. You do some testing of engine-setup and need to run it lots of times,
interactively, and just not want to have to answer all the questions, just
some of them. So you run engine-setup, edit the answer file and remove the
answers you want to give interactively and use that.

3. Simil

Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Jorick Astrego


On 08/15/2014 02:21 PM, Yedidyah Bar David wrote:

- Original Message -

From: "Alon Bar-Lev" 
To: "Jorick Astrego" 
Cc: users@ovirt.org
Sent: Friday, August 15, 2014 1:59:41 PM
Subject: Re: [ovirt-users] list of answer file parameters?



- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Friday, August 15, 2014 1:27:23 PM
Subject: [ovirt-users] list of answer file parameters?

Hi,

I'm looking everywhere for a full list of "OVESETUP" parameters that can
be used in the installer answerfile.

Searched the red hat manual and found some in:

"3.6. Passwords in Red Hat Enterprise Virtualization Manager"

But there are more. I can get it from a finished install but some
parameters only apply to some types of installation.

I found this one form lzap:

https://gist.github.com/lzap/7a8cbb7f44d41e4ad171

But I don't know if it's complete or just for his personal use.

No hurry, I know you are all busy ;-)


Hi,

The simplest way is to perform setup and record the answer file.

You can even C at the summary confirmation question and answer file
will be generated for you without installing anything.

Full list is available at /usr/share/ovirt-engine/setup/ovirt_engine_setup/,
seek *.py and look for @osetupattrs with answerfile=True. Maybe in future we
can have utility to extract all with description.

Also note:

1. The files there are separated between different packages, so you'll not
necessarily have all, if you did not install some optional ones.

2. Not all combinations are supported, and in principle it's possible to 
manually
create answer files that will cause setup to fail, or even to succeed but leave
an unsupported, unexpected system setup. I started writing about this some time
ago in [1] but got stuck in the middle, and Alon said I should not call it Otopi
because it does not document Otopi but engine-setup, and he is largely right.
See also [2], which is not directly related (key is not answerfile=True), but 
does
give a relevant example.

[1] http://www.ovirt.org/Otopi
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1101001
Yes that was my problem, I was trying to do AIO install but 
engine-cleanup didn't work because a version mismatch.


So I tried removing everything by hand but the installer never asked me 
the install local VDSM question... Then I thought I'd get smart and just 
edit the answer the installer generated and add the AIO lines to it.  
But nearly all the settings are undocumented so I had to resort to 
searching on what to set them to on pastebin etc. In the end, I 
reinstalled the host as it was quicker to do a fresh install.


Also I want to create puppet files and deploy engine through foreman.

I think as a workaround, I'll do a couple of different installs and rip 
the generated answer file from them. But when a new parameter get's 
introduced, I will never know about it until I run into an issue.


Something like "ovirt-installer --list-answerfile" should be possible 
IMHO, as the installer uses and verifies the parameters on install. I'm 
not a programmer but it should be able to spit out a list them.


Kind regards,

Jorick Astrego
Netbulae

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


Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Yedidyah Bar David
- Original Message -
> From: "Alon Bar-Lev" 
> To: "Jorick Astrego" 
> Cc: users@ovirt.org
> Sent: Friday, August 15, 2014 1:59:41 PM
> Subject: Re: [ovirt-users] list of answer file parameters?
> 
> 
> 
> - Original Message -
> > From: "Jorick Astrego" 
> > To: users@ovirt.org
> > Sent: Friday, August 15, 2014 1:27:23 PM
> > Subject: [ovirt-users] list of answer file parameters?
> > 
> > Hi,
> > 
> > I'm looking everywhere for a full list of "OVESETUP" parameters that can
> > be used in the installer answerfile.
> > 
> > Searched the red hat manual and found some in:
> > 
> > "3.6. Passwords in Red Hat Enterprise Virtualization Manager"
> > 
> > But there are more. I can get it from a finished install but some
> > parameters only apply to some types of installation.
> > 
> > I found this one form lzap:
> > 
> > https://gist.github.com/lzap/7a8cbb7f44d41e4ad171
> > 
> > But I don't know if it's complete or just for his personal use.
> > 
> > No hurry, I know you are all busy ;-)
> > 
> 
> Hi,
> 
> The simplest way is to perform setup and record the answer file.
> 
> You can even C at the summary confirmation question and answer file
> will be generated for you without installing anything.
> 
> Full list is available at /usr/share/ovirt-engine/setup/ovirt_engine_setup/,
> seek *.py and look for @osetupattrs with answerfile=True. Maybe in future we
> can have utility to extract all with description.

Also note:

1. The files there are separated between different packages, so you'll not
necessarily have all, if you did not install some optional ones.

2. Not all combinations are supported, and in principle it's possible to 
manually
create answer files that will cause setup to fail, or even to succeed but leave
an unsupported, unexpected system setup. I started writing about this some time
ago in [1] but got stuck in the middle, and Alon said I should not call it Otopi
because it does not document Otopi but engine-setup, and he is largely right.
See also [2], which is not directly related (key is not answerfile=True), but 
does
give a relevant example.

[1] http://www.ovirt.org/Otopi
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1101001
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] info about ovirtmgmt bridge config in master

2014-08-15 Thread Gianluca Cecchi
On Fri, Aug 15, 2014 at 12:30 PM, Dan Kenigsberg  wrote:

>
>
> ifcfg-ovirtmgmt network should be found on disk after a successful
> installation of a host. However, if network configuration phase fails,
> ifcfg files should be reverted to their original values.
>

ok.


>
> Could you see your super/vdsm.log if that is the case?
> Could you explain when did "hypervisor part goes in timeout". Can you
> correlate this to something in vdsm.log?
>
> Dan.
>

So, initial config was no dns and I forgot the /etc/hosts part too.
So engine-setup complained about hostname input and asked again.
At this point I filled up /etc/hosts and confirmed hostname in engine-setup
prompt.
It complained about dns part but continued.
As this is an all-in-one setup it arrived at the hypervisor config part.
It gave in engine-setup output the message about time out in having
hypervisor host up a few times and at the end

[ INFO  ] Still waiting for VDSM host to become operational...
[ ERROR ] Timed out while waiting for host to start. Please check the logs.

During these recurring time-out warnings I see in vdsm.log
Detector thread::ERROR::2014-08-13
17:48:59,482::protocoldetector::104::vds.MultiProtocolAcceptor::(serve_forever)
Unhandled exception
Traceback (most recent call last):
  File "/usr/share/vdsm/protocoldetector.py", line 100, in serve_forever
self._process_events()
  File "/usr/share/vdsm/protocoldetector.py", line 117, in _process_events
self._accept_connection()
  File "/usr/share/vdsm/protocoldetector.py", line 180, in
_accept_connection
client_socket, _ = self._socket.accept()
  File "/usr/lib64/python2.6/site-packages/vdsm/sslutils.py", line 121, in
accept
raise SSL.SSLError("%s, client %s" % (e, address[0]))
SSLError: unexpected eof, client 192.168.122.51

engine-setup went ahead with these messages:

[WARNING] Local storage domain not added because the VDSM host was not up.
Please add it manually.
[ INFO  ] Stage: Clean up
  Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20140813173448-i47i1l.log
[ INFO  ] Generating answer file
'/var/lib/ovirt-engine/setup/answers/20140813174959-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Execution of setup completed successfully

inside supervdsm.log no error message. See it here:
https://drive.google.com/file/d/0BwoPbcrMv8mvRVpxR3UzYU9hUmM/edit?usp=sharing

in connectivity.log I see only:
2014-08-13 17:39:41,206:DEBUG:recent_client:True, lo:(operstate:up speed:0
duplex:unknown), ;vdsmdum
my;:(operstate:down speed:0 duplex:unknown), bond0:(operstate:down speed:0
duplex:unknown), eth0:(operstate:up speed:0 duplex:unknown)
2014-08-13 17:40:11,360:DEBUG:recent_client:False

At this moment it seems I can't do anything on the host, nor reinstall or
activate or anything...

BTW: the VM fo all-in-one has 6Gb of ram configured... could it be the
cause in any way?

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


Re: [ovirt-users] list of answer file parameters?

2014-08-15 Thread Alon Bar-Lev


- Original Message -
> From: "Jorick Astrego" 
> To: users@ovirt.org
> Sent: Friday, August 15, 2014 1:27:23 PM
> Subject: [ovirt-users] list of answer file parameters?
> 
> Hi,
> 
> I'm looking everywhere for a full list of "OVESETUP" parameters that can
> be used in the installer answerfile.
> 
> Searched the red hat manual and found some in:
> 
> "3.6. Passwords in Red Hat Enterprise Virtualization Manager"
> 
> But there are more. I can get it from a finished install but some
> parameters only apply to some types of installation.
> 
> I found this one form lzap:
> 
> https://gist.github.com/lzap/7a8cbb7f44d41e4ad171
> 
> But I don't know if it's complete or just for his personal use.
> 
> No hurry, I know you are all busy ;-)
> 

Hi,

The simplest way is to perform setup and record the answer file.

You can even C at the summary confirmation question and answer file will 
be generated for you without installing anything.

Full list is available at /usr/share/ovirt-engine/setup/ovirt_engine_setup/, 
seek *.py and look for @osetupattrs with answerfile=True. Maybe in future we 
can have utility to extract all with description.

> Kind regards,
> 
> Jorick Astrego
> Netbulae B.V.
> 
> ___
> 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] info about ovirtmgmt bridge config in master

2014-08-15 Thread Dan Kenigsberg
On Fri, Aug 15, 2014 at 11:28:58AM +0200, Gianluca Cecchi wrote:
> Hello,
> I'm configuring an all-in-one environment in a Qemu-KVM VM with CentOS 6.5
> using nested virtualization.
> All seems ok except the hypervisor part that goes in timeout during setup
> and after reboot remains in "Unassigned" state.
> 
> I notice that under /etc/sysconfig/network-scripts directory I don't have
> the ifcfg-ovirtmgmt file but only the old ifcfg-eth0 and in fact I only
> have bridge
> 
> [root@ovirtita ~]# brctl show
> bridge name bridge id STP enabled interfaces
> ;vdsmdummy; 8000. no
> 
> Ha anything changed for master and ovirtmgmt network or does this mean that
> during setup something has gone wrong and that I can try to manually create
> ovirtmgmt bridge config...?
> 
> If this can interfer, in my case I don't have dns set up but only entry in
> /etc/hosts.
> With previous versions and this one I got a warning but previously this
> didn't compromise hypervisor part in all-in-one environments..
> 
> engine-setup log
> https://drive.google.com/file/d/0BwoPbcrMv8mvQVRyZXFqdFpCbnM/edit?usp=sharing
> 
> host deploy (on itself) part:
> https://drive.google.com/file/d/0BwoPbcrMv8mvLXhlMl9qcWhqTlU/edit?usp=sharing

ifcfg-ovirtmgmt network should be found on disk after a successful
installation of a host. However, if network configuration phase fails,
ifcfg files should be reverted to their original values.

Could you see your super/vdsm.log if that is the case?
Could you explain when did "hypervisor part goes in timeout". Can you
correlate this to something in vdsm.log?

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


[ovirt-users] list of answer file parameters?

2014-08-15 Thread Jorick Astrego

Hi,

I'm looking everywhere for a full list of "OVESETUP" parameters that can 
be used in the installer answerfile.


Searched the red hat manual and found some in:

"3.6. Passwords in Red Hat Enterprise Virtualization Manager"

But there are more. I can get it from a finished install but some 
parameters only apply to some types of installation.


I found this one form lzap:

https://gist.github.com/lzap/7a8cbb7f44d41e4ad171

But I don't know if it's complete or just for his personal use.

No hurry, I know you are all busy ;-)

Kind regards,

Jorick Astrego
Netbulae B.V.

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


[ovirt-users] info about ovirtmgmt bridge config in master

2014-08-15 Thread Gianluca Cecchi
Hello,
I'm configuring an all-in-one environment in a Qemu-KVM VM with CentOS 6.5
using nested virtualization.
All seems ok except the hypervisor part that goes in timeout during setup
and after reboot remains in "Unassigned" state.

I notice that under /etc/sysconfig/network-scripts directory I don't have
the ifcfg-ovirtmgmt file but only the old ifcfg-eth0 and in fact I only
have bridge

[root@ovirtita ~]# brctl show
bridge name bridge id STP enabled interfaces
;vdsmdummy; 8000. no

Ha anything changed for master and ovirtmgmt network or does this mean that
during setup something has gone wrong and that I can try to manually create
ovirtmgmt bridge config...?

If this can interfer, in my case I don't have dns set up but only entry in
/etc/hosts.
With previous versions and this one I got a warning but previously this
didn't compromise hypervisor part in all-in-one environments..

engine-setup log
https://drive.google.com/file/d/0BwoPbcrMv8mvQVRyZXFqdFpCbnM/edit?usp=sharing

host deploy (on itself) part:
https://drive.google.com/file/d/0BwoPbcrMv8mvLXhlMl9qcWhqTlU/edit?usp=sharing



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


Re: [ovirt-users] oVirt italian translation

2014-08-15 Thread Gianluca Cecchi
On Thu, Aug 14, 2014 at 8:04 AM, Sandro Bonazzola 
wrote:

> Il 13/08/2014 18:09, Gianluca Cecchi ha scritto:
> > 3) If I don't disable master-snapshot.repo entries I'm not able to
> successfully run engine-setup in any way
> > One thing I noted is this: if it finds updates, it asks if you want to
> use them or not. But if you say no it fails...
> > So why does it ask the option related to update packages if in any case
> it fails with message
> >
> > [ ERROR ] Failed to execute stage 'Environment customization': Aborted,
> packages must be updated
> >
> > ???
>
> Please open a BZ about this.
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com
>

Here it is:
https://bugzilla.redhat.com/show_bug.cgi?id=1130445

also added other considerations regarding engine-setup workflow
Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cancel ticket in ovirt-engine

2014-08-15 Thread Michal Skrivanek

On Aug 15, 2014, at 09:55 , mhd  wrote:

> hi
> 
> my scenario: i have multi server installed rhev or ovirt-engine and one sever 
> installed rhevm or ovirt-engine . and i bought thin client which connect 
> by spice to rhev server and controll them...
> 
> i can use thin client for connect to rhev server but the problem every 
> connect i should make new ticket for spice protocol….

you should set the ticket first, for example by REST API "ticket". Then use the 
ticket to connect to the VM's console

> 
> when i run vm by rhevm interface the log for vm in this path 
> :/var/log/libvirt/qemu/vmname.log  is  seem run qemu command and enable 
> options for vm,,,
> 
> my question how i can add this option (disable-ticket) when user start run vm 
> ???
> 
>  another mean i want cancel ticket or make it lifetime ….

it's possible but insecure. we don't support it by default but you can alter 
the xml via a vdsm hook

Thanks,
michal

> 
> tlibvirt hanks..
> 
> i my question not understaded please tell 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


[ovirt-users] cancel ticket in ovirt-engine

2014-08-15 Thread mhd
hi

my scenario: i have multi server installed rhev or ovirt-engine and one
sever installed rhevm or ovirt-engine . and i bought thin client which
connect by spice to rhev server and controll them...

i can use thin client for connect to rhev server but the problem every
connect i should make new ticket for spice protocol

when i run vm by rhevm interface the log for vm in this path
:/var/log/libvirt/qemu/vmname.log  is  seem run qemu command and enable
options for vm,,,

my question how i can add this option (disable-ticket) when user start run
vm ???

 another mean i want cancel ticket or make it lifetime 

thanks..

i my question not understaded please tell me...
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users