Re: [ovirt-users] API endpoint for a VM to fetch metadata about itself

2018-02-26 Thread Geoff Sweet
OK, that's a great place for me to start. However the problem is that all
my post-install tooling is now running on a VM that knows nothing about
itself (having been installed via pxe and kickstart) like it's {vm_id}.
Can the API be used to query for a VM and it's attributes based on
something like a MAC address or the IP itself?

-Geoff

On Sun, Feb 25, 2018 at 11:05 PM, Ondra Machacek 
wrote:

> We don't have any such resource. We have those information in different
>  places of the API. For example to find the information about devices of
> the VM, like network device information (IP address, MAC, etc), you can
> query:
>
>  /ovirt-engine/api/vms/{vm_id}/reporteddevices
>
> The FQDN is listed right in the basic information of the VM quering the
> VM itself:
>
>   /ovirt-engine/api/vms/{vm_id}
>
> You can find all the information about specific attributes returned by
> the API here in the documentation:
>
>  http://ovirt.github.io/ovirt-engine-api-model/4.2/#types/vm
>
> On 02/25/2018 03:13 AM, Geoff Sweet wrote:
>
>> Is there an API endpoint that VM's can query to discover it's oVirt
>> metadata? Something similar to AWS's http://169.254.169.254/latest/
>> meta-data/  query in EC2? I'm
>> trying to stitch a lot of automation workflow together and so far I have
>> had great luck with oVirt. But the next small hurdle is to figure out how
>> all the post-install setup stuff can figure out who the VM is so it can the
>> appropriate configurations.
>>
>> Thanks!
>> -Geoff
>>
>>
>> ___
>> 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] Start VM automatically

2018-02-26 Thread Christopher Cox

On 02/26/2018 05:33 PM, Fabrice SOLER wrote:

Hi Hanson,

Thank you for your answer, but the routeur is a VM.

So I need that this VM start without the engine. It has to start when 
the node start (after a power failure).


Only when the routeur will be up, I will be able to manage the node and 
the VMs.


Do you think there a solution ?


Obviously this a bit more "chicken-and-egg" than running a hosted 
engine.  Even if there was a "start automatically" sort of thing, this 
is still going to be fraught with potential issues, because almost 
anything could happen to prevent the "router vm" from starting.


I think you've created a fairly high risk scenario.

In other words, even if you got this working, I wouldn't trust it.

Just my opinion.  At a minimum I'd pull the "router" out of the VM 
stack.  Now, you could have a separate hypervisor cluster stack for the 
router, just don't put it's mgmt engine (separate engine req'd) behind 
the router :-)





Sincerely,

Fabrice


Le 26/02/2018 à 18:18, Hanson Turner a écrit :


Hi Fabrice,

If there's an issue with the hypervisor, the VM should pause. In the 
highly available section, (edit the advanced options on the vm) you 
can set the resume options restart/resume/stay off


The engine needs to be able to see + manage the node. You'll have to 
take care of the networking/port forwarding/vpn/vlan etc to make sure 
the engine can control the node.


Once the node's in control, the engine can restore the VM when it 
knows the node is good.


Thanks,

Hanson


On 02/26/2018 04:09 PM, Fabrice SOLER wrote:


Hello,

My node (IP ovirtmgmt) is behind a routeur that is running on the 
hypervisor (the node itself).


So, I need that the VM (routeur) start automatically after the node 
start.


The ovirt engine is running on another infrastructure and the version 
is 4.2.0. The node is also in this version.


Is there a solution ?

Sincerely,

--


___
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] Start VM automatically

2018-02-26 Thread Fabrice SOLER

Hi Hanson,

Thank you for your answer, but the routeur is a VM.

So I need that this VM start without the engine. It has to start when 
the node start (after a power failure).


Only when the routeur will be up, I will be able to manage the node and 
the VMs.


Do you think there a solution ?

Sincerely,

Fabrice


Le 26/02/2018 à 18:18, Hanson Turner a écrit :


Hi Fabrice,

If there's an issue with the hypervisor, the VM should pause. In the 
highly available section, (edit the advanced options on the vm) you 
can set the resume options restart/resume/stay off


The engine needs to be able to see + manage the node. You'll have to 
take care of the networking/port forwarding/vpn/vlan etc to make sure 
the engine can control the node.


Once the node's in control, the engine can restore the VM when it 
knows the node is good.


Thanks,

Hanson


On 02/26/2018 04:09 PM, Fabrice SOLER wrote:


Hello,

My node (IP ovirtmgmt) is behind a routeur that is running on the 
hypervisor (the node itself).


So, I need that the VM (routeur) start automatically after the node 
start.


The ovirt engine is running on another infrastructure and the version 
is 4.2.0. The node is also in this version.


Is there a solution ?

Sincerely,

--


___
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] Start VM automatically

2018-02-26 Thread Fabrice SOLER

Hello,

My node (IP ovirtmgmt) is behind a routeur that is running on the 
hypervisor (the node itself).


So, I need that the VM (routeur) start automatically after the node start.

The ovirt engine is running on another infrastructure and the version is 
4.2.0. The node is also in this version.


Is there a solution ?

Sincerely,

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


Re: [ovirt-users] Hosted Engine VM not imported

2018-02-26 Thread Alessandro De Salvo

Ciao Simone,

many thanks. So, how are we supposed to use those hooks? Should we just 
create a file 
/usr/share/ovirt-hosted-engine-setup/ansible/hooks/enginevm_before_engine_setup/enginevm_before_engine_setup.yml 
with the instructions to restore? Do you have an example for doing that?


For the moment I think I'll stick to the old procedure by calling 
--noansible, as you suggest.


I think the documenttation should be updated anyways, at least to add 
the --he-remove-storage-vm and --he-remove-hosts options, as well as the 
new procedure and the override with --noansible. Also, wouldn't it be 
safer to stick to the old procedure until the new one is fully 
operational? Or maybe at least a warning to the user, otherwise no one 
will ever be able to restorage a db and have it all functional with the 
default options.


Thanks,


    Alessandro


Il 26/02/18 18:17, Simone Tiraboschi ha scritto:



On Sat, Feb 24, 2018 at 2:32 PM, Alessandro De Salvo 
> wrote:


Hi,

I have just migrated my dev cluster to the latest master,
reinstalling the engine VM and reimporting from a previous backup.
I'm trying with 4.3.0-0.0.master.20180222192611.git01e6ace.el7.centos

I had a few problems:

- the documentation seems to be outdated, and I just find by
searching the archives that it's needed to add the two
(undocumented) options --he-remove-storage-vm --he-remove-hosts

- despite the fact I selected "No" to running the engine-setup
command in the VM (the ovirt appliance), the engine-setup is
executed when running hosted-engine --deploy, and as a result the
procedure does not stop allowing to reload the db backup. The only
way I found was to put the hosted-engine in global maintenance
mode, stop the ovirt-engine, do an engine-cleanup and reload the
db, then it's possible to add the first host in the GUI, but must
be done manually

- after it's all done, I can see the hosted_storage is imported,
but the HostedEngine is not imported, and in the Events I see
messages like this:

VDSM atlas-svc-18 command GetVolumeInfoVDS failed: Image path does
not exist or cannot be accessed/created:

(u'/rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/c815ec3f-6e31-4b08-81be-e515e803edce',)

   the path here is clearly wrong, it should be

/rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/b7bc6468-438c-47e7-b7a4-7ed06b786da0/c815ec3f-6e31-4b08-81be-e515e803edce,
and I see the hosted_engine.conf in the shared storage has it
correctly set as vm_disk_id=b7bc6468-438c-47e7-b7a4-7ed06b786da0.


Any hint on what is not allowing the HostedEngine to be imported?
I didn't find a way to add other hosted engine nodes if the HE VM
is not imported in the cluster, like we were used in the past with
the CLI using hosted-engine --deploy on multiple hosts.


Ciao Alessandro,
with 4.2.1 we introduced a new deployment flow for hosted-engine based 
on ansible.
In this new flow we run a local VM with a running engine and we use 
that engine to create a storage domain and a VM there.
At the end we shutdown the locally running engine and we move it's 
disk over the disk of the VM created by the engine on the shared 
storage. At this point we don't need anymore the autoimport process 
since the engine migrated there already contains the engine VM and its 
storage domain.


We have an RFE, for this new flow, to add a mechanism to inject an 
existing engine backup to be automatically restored before executing 
engine-setup for migration/disaster-recovery scenarios.
Unfortunately it's still not ready but we have an hook mechanism to 
have hosted-engine-setup executing custom ansible tasks before running 
engine setup; we have an example 
in /usr/share/ovirt-hosted-engine-setup/ansible/hooks/enginevm_before_engine_setup/enginevm_before_engine_setup.yml.example


Otherwise the old flow is still there, you have just to add 
--noansible and everything should work as in the past.



Thanks for any help,


    Alessandro

___
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] Hosted Engine VM not imported

2018-02-26 Thread Simone Tiraboschi
On Sat, Feb 24, 2018 at 2:32 PM, Alessandro De Salvo <
alessandro.desa...@roma1.infn.it> wrote:

> Hi,
>
> I have just migrated my dev cluster to the latest master, reinstalling the
> engine VM and reimporting from a previous backup. I'm trying with
> 4.3.0-0.0.master.20180222192611.git01e6ace.el7.centos
>
> I had a few problems:
>
> - the documentation seems to be outdated, and I just find by searching the
> archives that it's needed to add the two (undocumented) options
> --he-remove-storage-vm --he-remove-hosts
>
> - despite the fact I selected "No" to running the engine-setup command in
> the VM (the ovirt appliance), the engine-setup is executed when running
> hosted-engine --deploy, and as a result the procedure does not stop
> allowing to reload the db backup. The only way I found was to put the
> hosted-engine in global maintenance mode, stop the ovirt-engine, do an
> engine-cleanup and reload the db, then it's possible to add the first host
> in the GUI, but must be done manually
>
> - after it's all done, I can see the hosted_storage is imported, but the
> HostedEngine is not imported, and in the Events I see messages like this:
>
> VDSM atlas-svc-18 command GetVolumeInfoVDS failed: Image path does not
> exist or cannot be accessed/created: (u'/rhev/data-center/mnt/glust
> erSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/
> f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/c815ec3f-6e31-
> 4b08-81be-e515e803edce',)
>
>the path here is clearly wrong, it should be
> /rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.
> it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/
> images/b7bc6468-438c-47e7-b7a4-7ed06b786da0/c815ec3f-6e31-4b08-81be-e515e803edce,
> and I see the hosted_engine.conf in the shared storage has it correctly set
> as vm_disk_id=b7bc6468-438c-47e7-b7a4-7ed06b786da0.
>
>
> Any hint on what is not allowing the HostedEngine to be imported? I didn't
> find a way to add other hosted engine nodes if the HE VM is not imported in
> the cluster, like we were used in the past with the CLI using hosted-engine
> --deploy on multiple hosts.
>

Ciao Alessandro,
with 4.2.1 we introduced a new deployment flow for hosted-engine based on
ansible.
In this new flow we run a local VM with a running engine and we use that
engine to create a storage domain and a VM there.
At the end we shutdown the locally running engine and we move it's disk
over the disk of the VM created by the engine on the shared storage. At
this point we don't need anymore the autoimport process since the engine
migrated there already contains the engine VM and its storage domain.

We have an RFE, for this new flow, to add a mechanism to inject an existing
engine backup to be automatically restored before executing engine-setup
for migration/disaster-recovery scenarios.
Unfortunately it's still not ready but we have an hook mechanism to have
hosted-engine-setup executing custom ansible tasks before running engine
setup; we have an example
in 
/usr/share/ovirt-hosted-engine-setup/ansible/hooks/enginevm_before_engine_setup/enginevm_before_engine_setup.yml.example

Otherwise the old flow is still there, you have just to add --noansible and
everything should work as in the past.



>
> Thanks for any help,
>
>
> Alessandro
>
> ___
> 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] Hosted Engine VM not imported

2018-02-26 Thread Alessandro De Salvo

Hi,

after checking the engine.log I see a bunch of error like this too:


2018-02-26 03:22:06,806+01 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetVolumeInfoVDSCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] HostName = 
atlas-svc-18
2018-02-26 03:22:06,806+01 ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetVolumeInfoVDSCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] Command 
'GetVolumeInfoVDSCommand(HostName = atlas-svc-18, 
GetVolumeInfoVDSCommandParameters:{hostId='b18c40d8-7932-4b5d-995e-8ebc5ab2e3e2', 
storagePoolId='0001-0001-0001-0001-0056', 
storageDomainId='f02d7d5d-1459-48b8-bf27-4225cdfdce23', 
imageGroupId='c815ec3f-6e31-4b08-81be-e515e803edce', 
imageId='c815ec3f-6e31-4b08-81be-e515e803edce'})' execution failed: 
VDSGenericException: VDSErrorException: Failed to GetVolumeInfoVDS, 
error = Image path does not exist or cannot be accessed/created: 
(u'/rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/c815ec3f-6e31-4b08-81be-e515e803edce',), 
code = 254
2018-02-26 03:22:06,806+01 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetVolumeInfoVDSCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] FINISH, 
GetVolumeInfoVDSCommand, log id: 38adaef0
2018-02-26 03:22:06,806+01 ERROR 
[org.ovirt.engine.core.vdsbroker.irsbroker.GetImageInfoVDSCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] Failed to get 
the volume information, marking as FAILED
2018-02-26 03:22:06,806+01 INFO 
[org.ovirt.engine.core.vdsbroker.irsbroker.GetImageInfoVDSCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] FINISH, 
GetImageInfoVDSCommand, log id: 3ad29b91
2018-02-26 03:22:06,806+01 WARN 
[org.ovirt.engine.core.bll.exportimport.ImportVmCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] Validation of 
action 'ImportVm' failed for user SYSTEM. Reasons: 
VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IMAGE_DOES_NOT_EXIST
2018-02-26 03:22:06,807+01 INFO 
[org.ovirt.engine.core.bll.exportimport.ImportVmCommand] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] Lock freed to 
object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME, 
235b91ce-b6d8-44c6-ac26-791ac3946727=VM]', 
sharedLocks='[235b91ce-b6d8-44c6-ac26-791ac3946727=REMOTE_VM]'}'
2018-02-26 03:22:06,807+01 ERROR 
[org.ovirt.engine.core.bll.HostedEngineImporter] 
(EE-ManagedThreadFactory-engine-Thread-97153) [796a8bc5] Failed 
importing the Hosted Engine VM



Any help?

Thanks,


      Alessandro


Il 24/02/18 14:32, Alessandro De Salvo ha scritto:

Hi,

I have just migrated my dev cluster to the latest master, reinstalling 
the engine VM and reimporting from a previous backup. I'm trying with 
4.3.0-0.0.master.20180222192611.git01e6ace.el7.centos


I had a few problems:

- the documentation seems to be outdated, and I just find by searching 
the archives that it's needed to add the two (undocumented) options 
--he-remove-storage-vm --he-remove-hosts


- despite the fact I selected "No" to running the engine-setup command 
in the VM (the ovirt appliance), the engine-setup is executed when 
running hosted-engine --deploy, and as a result the procedure does not 
stop allowing to reload the db backup. The only way I found was to put 
the hosted-engine in global maintenance mode, stop the ovirt-engine, 
do an engine-cleanup and reload the db, then it's possible to add the 
first host in the GUI, but must be done manually


- after it's all done, I can see the hosted_storage is imported, but 
the HostedEngine is not imported, and in the Events I see messages 
like this:


VDSM atlas-svc-18 command GetVolumeInfoVDS failed: Image path does not 
exist or cannot be accessed/created: 
(u'/rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/c815ec3f-6e31-4b08-81be-e515e803edce',)


   the path here is clearly wrong, it should be 
/rhev/data-center/mnt/glusterSD/atlas-fsserv-07.roma1.infn.it:_atlas-engine-02/f02d7d5d-1459-48b8-bf27-4225cdfdce23/images/b7bc6468-438c-47e7-b7a4-7ed06b786da0/c815ec3f-6e31-4b08-81be-e515e803edce, 
and I see the hosted_engine.conf in the shared storage has it 
correctly set as vm_disk_id=b7bc6468-438c-47e7-b7a4-7ed06b786da0.



Any hint on what is not allowing the HostedEngine to be imported? I 
didn't find a way to add other hosted engine nodes if the HE VM is not 
imported in the cluster, like we were used in the past with the CLI 
using hosted-engine --deploy on multiple hosts.


Thanks for any help,


    Alessandro

___
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 4.1 - skylake - no avx512 support in virtual machines

2018-02-26 Thread Marco Lorenzo Crociani

Hi,
I can't access avx512* instruction set from virtual machines.
I have made a one server compute cluster to test new hardware:

oVirt 4.1.9
CentOS 7
Cluster CPU Type: Intel Skylake Family
Compatibility Version: 4.1

HOST:
CPU Model Name:Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz
Family: Family
CPU Type: Intel Skylake Family

Virtual Machine settings
A) VM:
Custom CPU Type: Use cluster default(Intel Skylake Family)
General Tab shows: Guest CPU Type: Skylake-Client

avx512: NO

B) VM:
Custom CPU Type: Skylake-Client
General Tab shows: Guest CPU Type: Skylake-Client

avx512: NO

C) VM:
Custom CPU Type: Use cluster default(Intel Skylake Family) [grey - 
cannot modify]

Migration mode: Do not allow migration
Pass-Through Host CPU
General Tab shows: Guest CPU Type: Skylake-Client

avx512: YES   ( cat /proc/cpuinfo  |grep avx512: avx512f avx512dq 
avx512cd avx512bw avx512vl )


Using pass-through host cpu (disabling vm migration) is the only way to 
access avx512 in a VM, is it a bug or am I missing something?


Regards,

--
Marco Crociani
Prisma Telecom Testing S.r.l.
via Petrocchi, 4  20127 MILANO  ITALY
Phone:  +39 02 26113507
Fax:  +39 02 26113597
e-mail:  mar...@prismatelecomtesting.com
web:  http://www.prismatelecomtesting.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Network and disk inactive after 4.2.1 upgrade

2018-02-26 Thread Francesco Romani
On 02/13/2018 04:05 PM, Chris Adams wrote:
> I upgraded my dev cluster from 4.2.0 to 4.2.1 yesterday, and I noticed
> that all my VMs show the network interfaces unplugged and disks inactive
> (despite the VMs being up and running just fine).  This includes the
> hosted engine.
>
> I had not rebooted VMs after upgrading, so I tried powering one off and
> on; it would not start until I manually activated the disk.
>
> I haven't seen a problem like this before (although it usually means
> that I did something wrong :) ) - what should I look at?

Hi,

you may have hit this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1542117

it could affect all VMs started with Engine <= 4.1 and later imported in
4.2, or Hosted Engine.

If your VM was first created under oVirt 4.2, please file a new bug.

HTH,

-- 
Francesco Romani
Senior SW Eng., Virtualization R
Red Hat
IRC: fromani github: @fromanirh

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


Re: [ovirt-users] Before migrating to Ovirt

2018-02-26 Thread Yedidyah Bar David
On Fri, Feb 23, 2018 at 6:33 PM, Tal Bar-Or  wrote:
> Hello Ovirt users,
>
> Currently we haveing 4 Xen pools in our organization each pool have 8
> servers.
> Due to new 7.3 version change ,we plan to migrate our upcoming 5th pool to
> Ovirt, the decision to do POC migration to Ovirt is from lots of Xen users
> that suggested Ovirt migration better and  mature product migrate to it.
>
> I started to test Ovirt currently only with one server with engine
> installed, my question regarding Ovirt sine i am really newbie with that
> system , is , is it possible to have multiple engine on it ?
> What happen if the engine server crash with some reason? can i load it on
> another cluster server?
> Please advice

The standard way to have HA for oVirt engine is to set it up as a
self-hosted-engine and have more than one host in the hosted-engine
cluster.

We do know that there are people doing HA using other means, based on external
HA software (heartbeat), but that's more expensive (in hardware, work,
and perhaps software, depends on what you use) - I'd suggest doing that
only if your organization already has in-house expertise and experience
with such software.

Good luck and best regards,
-- 
Didi
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Before migrating to Ovirt

2018-02-26 Thread Dan Yasny
On Fri, Feb 23, 2018 at 11:33 AM, Tal Bar-Or  wrote:

> Hello Ovirt users,
>
> Currently we haveing 4 Xen pools in our organization each pool have 8
> servers.
> Due to new 7.3 version change ,we plan to migrate our upcoming 5th pool to
> Ovirt, the decision to do POC migration to Ovirt is from lots of Xen users
> that suggested Ovirt migration better and  mature product migrate to it.
>
> I started to test Ovirt currently only with one server with engine
> installed, my question regarding Ovirt sine i am really newbie with that
> system , is , is it possible to have multiple engine on it ?
>

No, but you can either cluster the engine in an HA cluster, run backup
frequently (I've had environments where I did an engine dump every hour
without any issues), or use self hosted engine, which is basically the
engine as a VM, so if a host goes down, it gets started on another. What
you cannot do is have multiple engines load-balancing the work, like
openstack controllers for example.


> What happen if the engine server crash with some reason? can i load it on
> another cluster server?
>

If the engine goes down, the hosts and VMs keep working, so you have time
to restore from backup or fix the engine without outages, besides a
management outage of course. If you are running hosted engine, it will
simply get started on another eligible host.


> Please advice
>
> Thanks
>
> --
> Tal Bar-or
>
> ___
> 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] Before migrating to Ovirt

2018-02-26 Thread Tal Bar-Or
Hello Ovirt users,

Currently we haveing 4 Xen pools in our organization each pool have 8
servers.
Due to new 7.3 version change ,we plan to migrate our upcoming 5th pool to
Ovirt, the decision to do POC migration to Ovirt is from lots of Xen users
that suggested Ovirt migration better and  mature product migrate to it.

I started to test Ovirt currently only with one server with engine
installed, my question regarding Ovirt sine i am really newbie with that
system , is , is it possible to have multiple engine on it ?
What happen if the engine server crash with some reason? can i load it on
another cluster server?
Please advice

Thanks

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


Re: [ovirt-users] VM is locked, servlet , and SpiceVersion.txt problem

2018-02-26 Thread Terry hey
Thank for your reply.
OK, then do you know how to delete the lock virtual machine?
Because i cannot find the locked VM by using  "./unlock_entity.sh". I
cannot do anything on it.
Thank you.

2018-02-23 20:36 GMT+08:00 Tomas Jelinek :

>
>
> On Fri, Feb 23, 2018 at 11:31 AM, Terry hey  wrote:
>
>> Hello everyone!
>> Thank for your time to analyize my problem. Totally, i have two question.
>> I encountered vm image lock problem. The following action is what i have
>> to and make the vm image locked.
>> First, i imported a vm. Since it is take too long time to import and the
>> engine.log always repeatly said it was waiting child command id.
>> "2018-02-23 16:37:46,603+08 INFO  [org.ovirt.engine.core.bll.Co
>> ncurrentChildCommandsExecutionCallback] 
>> (EE-ManagedThreadFactory-engineScheduled-Thread-16)
>> [1c44d543-4dcc-429d-a172-386cc860afe0] Command 'ImportVm' (id:
>> '09718bd2-797d-4323-b1ad-1a85604543c3') waiting on child command id:
>> '9e285b2d-c0c7-4a75-8c70-b619b45c6855' type:'CopyImageGroup' to complete
>> "
>> So,I thought the operation was not normal. So,
>> 1. I use "./unlock_entity.sh" to unlock the virtual disk of the vm.
>> 2. Virtual disk was unlocked but vm was still locked. Therefore, i use
>> "./unlock_entity.sh" to show locked vm. But there was nothing.
>> 3. Then i used "./taskcleaner.sh" to clean all task. But nothing happen.
>>
>> Q1: So, now, i would like to ask how to unlock the vm image so that i can
>> delete or use it.
>>
>> Q2: In addition, there are two error or warning appeared in engine.log
>> 1. 2018-02-23 09:57:19,495+08 WARN  
>> [org.ovirt.engine.core.utils.servlet.ServletUtils]
>> (default task-272) [] File'/usr/share/ovirt-engine/u
>> i-plugins/dashboard-resources/css/main-tab.d3769419.css' is 2839039
>> bytes long. Please reconsider using this servlet for files larger than
>> 1048576 bytes.
>> 2. 2018-02-23 09:47:39,656+08 ERROR 
>> [org.ovirt.engine.core.utils.servlet.ServletUtils]
>> (default task-193) [] Can't read file 
>> '/usr/share/ovirt-engine/files/spice/SpiceVersion.txt'
>> for request '/ovirt-engine/services/files/spice/SpiceVersion.txt', will
>> send a 404 error response.
>> Do you guys have any idea what do they mean?
>>
>
> This is pretty cool :) The SpiceVersion.txt has been used years ago for
> the ActiveX SPICE client. This client is not in oVirt for ages, but we
> still have the handling of this file in the code forgotten.
>
> I have opened a bug to clean this up: https://bugzilla.redhat.com/
> show_bug.cgi?id=1548407
> But don't worry about this error, it has no effect on the function.
>
>
>>
>> I really appreciate you help. Thank you!
>>
>> Regards
>> Terry
>>
>> ___
>> 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.2 WebUI Plugin API Docs?

2018-02-26 Thread Alexander Wels
On Monday, February 26, 2018 9:50:37 AM EST Zip wrote:
> Thanks Alexander,
> 
> This works:
> 
> api.addMainTab('oVirtTab', 'ovirt-tab', ‘http://www.something.com',
> {priority: 5});
> 
> Can you advise how to get the api.addSubTab to work?
> 
> api.addSubTab('ovirt-tab', 'Test 123', 'test-123', '#’);
> 
> I tried the above and many other combinations, no errors, just doesnt work.
> Maybe I am wrong on what it does?
> 
> I am looking to add a submenu – same as the current 4.2.1 UI shows Network
> and then(Vnic Profiles) (Networks) as submenus.
> 
> Thanks
> 
> Zip
> 

So api.addSubTab works on adding a 'detail' tab, aka when you click on lets 
say the VMs name, and go to the detail view, addSubTab will add another tab in 
there.

What you want to do, is currently NOT possible. I have a TODO in my long list 
of items to add that capability to the UI plugin API. When the API was 
designed the secondary menus like Networks didn't exist, it was all main tabs 
or sub tabs. The primary and secondary menus are just a way to organize the 
main views instead of having a giant list of menu items. For now I would just 
put it in a primary menu until I get a chance to update the api to allow for 
you to add it to a secondary menu.

> > On Sunday, February 25, 2018 1:11:08 AM EST Zip wrote:
> >>  Hi Alexander,
> >>  
> >>  If I try the following:
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  var api = parent.pluginApi('HelloWorld');
> >>  api.register({
> >>  
> >>  UiInit: function () {
> >>  
> >>  api.addMainTab('FooTab','xtab123','http://foo.com/');
> >>  
> >>  }
> >>  
> >>  });
> >>  api.ready();
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  I get the error in my browser console:
> >>  
> >>  Sun Feb 25 00:03:56 GMT-600 2018
> >>  org.ovirt.engine.ui.webadmin.plugin.PluginManager SEVERE: Exception
> >>  caught
> >>  while invoking event handler function [UiInit] for plugin [HelloWorld]:
> >>  Error: java.lang.IndexOutOfBoundsException webadmin:1:13517
> >>   >>  n_US #dashboard-main>
> >>  
> >>  Sun Feb 25 00:03:56 GMT-600 2018
> >>  org.ovirt.engine.ui.webadmin.plugin.PluginManager WARNING: Plugin
> >>  [HelloWorld] removed from service due to failure
> >>  
> >>  However if I remove the line:
> >>   api.addMainTab('FooTab','xtab123','http://foo.com/Œ);
> >>  
> >>  And replace it with something simple like:
> >>  
> >>  alert(ŒTest 123¹);
> >>  
> >>  There are no errors and the alert fires as it should.
> >>  
> >>  
> >>  Any ideas of what I might be missing?
> >>  
> >>  I am running oVirt 4.2.1 on CentOS ­ Hosted Engine setup with 1 host for
> >>  testing.
> >>  
> >>  Thanks
> >>  
> >>  Zip
> > 
> > Well you found a bug, I will be posting a patch soon. To bypass the
> > problem
> > add the following:
> > 
> > api.addMainTab('FooTab','xtab123','http://foo.com/, {priority: N});
> > 
> > Where N is a number between 0 and 5
> > 
> > This will determine where the new menu item will show up in the menu, 0
> > being at the top below the dashboard, and 5 being right above Events.
> > Normally it is supposed to simply add to the end, however due to the bug
> > it won't.> 
> >>>  > From:  Alexander Wels 
> >>>  > Date:  Monday, February 19, 2018 at 7:54 AM
> >>>  > To:  "users@ovirt.org" 
> >>>  > Cc:  Preston 
> >>>  > Subject:  Re: [ovirt-users] oVirt 4.2 WebUI Plugin API Docs?
> >>>  > 
> >>>  > On Friday, February 16, 2018 6:31:10 PM EST Zip wrote:
>   >>  Are there any updated docs for the WebUI Plugins API?
> >>>  > 
> >>>  > Unfortunately no, I haven't had a chance to create updated
> >>>  > documentation.
> >>>  > However the first two links are mostly still accurate as we haven't
> >>>  > done
> >>>  > any major changes to the API.
> >>>  > 
> >>>  > Some things to note that are different from the API documentation in
> >>>  > https://
> >>>  > www.ovirt.org/develop/release-management/features/ux/uiplugins/
> >>>  > for 4.2:
> >>>  > 
> >>>  > - alignRight no longer has any effect, as the UI in 4.2 no longer
> >>> 
> >>> respects
> >>> 
> >>>  > it. - none of the systemTreeNode selection code does anything (since
> >>>  > there is no more system tree)
> >>>  > - As noted in the documentation itself the RestApiSessionAcquired is
> >>>  > no
> >>>  > longer available as we have a proper SSO mechanism that you can
> >>>  > utilize
> >>>  > at this point.
> >>>  > - Main Tabs are now called Main Views (but the api still calls them
> >>>  > main
> >>>  > tabs, so use the apis described). And sub tabs are now called detail
> >>>  > tabs, but the same thing the API hasn't changed the naming convention
> >>>  > so
> >>>  > use subTabs. - mainTabActionButton location property no longer has
> >>>  

Re: [ovirt-users] oVirt 4.2 WebUI Plugin API Docs?

2018-02-26 Thread Zip
Thanks Alexander,

This works:

api.addMainTab('oVirtTab', 'ovirt-tab', ‘http://www.something.com',
{priority: 5});

Can you advise how to get the api.addSubTab to work?

api.addSubTab('ovirt-tab', 'Test 123', 'test-123', '#’);

I tried the above and many other combinations, no errors, just doesnt work.
Maybe I am wrong on what it does?

I am looking to add a submenu – same as the current 4.2.1 UI shows Network
and then(Vnic Profiles) (Networks) as submenus.

Thanks

Zip


> 
> 
> On Sunday, February 25, 2018 1:11:08 AM EST Zip wrote:
>>  Hi Alexander,
>>  
>>  If I try the following:
>>  
>>  
>>  
>>  
>>  
>>  var api = parent.pluginApi('HelloWorld');
>>  api.register({
>>  UiInit: function () {
>>  api.addMainTab('FooTab','xtab123','http://foo.com/');
>>  }
>>  });
>>  api.ready();
>>  
>>  
>>  
>>  
>>  
>>  I get the error in my browser console:
>>  
>>  Sun Feb 25 00:03:56 GMT-600 2018
>>  org.ovirt.engine.ui.webadmin.plugin.PluginManager SEVERE: Exception caught
>>  while invoking event handler function [UiInit] for plugin [HelloWorld]:
>>  Error: java.lang.IndexOutOfBoundsException webadmin:1:13517
>>  >  #dashboard-main>
>>  
>>  Sun Feb 25 00:03:56 GMT-600 2018
>>  org.ovirt.engine.ui.webadmin.plugin.PluginManager WARNING: Plugin
>>  [HelloWorld] removed from service due to failure
>>  
>>  
>>  However if I remove the line:
>>  
>>   api.addMainTab('FooTab','xtab123','http://foo.com/Œ);
>>  
>>  And replace it with something simple like:
>>  
>>  alert(ŒTest 123¹);
>>  
>>  There are no errors and the alert fires as it should.
>>  
>>  
>>  Any ideas of what I might be missing?
>>  
>>  I am running oVirt 4.2.1 on CentOS ­ Hosted Engine setup with 1 host for
>>  testing.
>>  
>>  Thanks
>>  
>>  Zip
>>  
> 
> Well you found a bug, I will be posting a patch soon. To bypass the problem
> add the following:
> 
> api.addMainTab('FooTab','xtab123','http://foo.com/, {priority: N});
> 
> Where N is a number between 0 and 5
> 
> This will determine where the new menu item will show up in the menu, 0 being
> at the top below the dashboard, and 5 being right above Events. Normally it is
> supposed to simply add to the end, however due to the bug it won't.
> 
>>>  > From:  Alexander Wels 
>>>  > Date:  Monday, February 19, 2018 at 7:54 AM
>>>  > To:  "users@ovirt.org" 
>>>  > Cc:  Preston 
>>>  > Subject:  Re: [ovirt-users] oVirt 4.2 WebUI Plugin API Docs?
>>>  > 
>>>  > On Friday, February 16, 2018 6:31:10 PM EST Zip wrote:
  >>  Are there any updated docs for the WebUI Plugins API?
>>>  > 
>>>  > Unfortunately no, I haven't had a chance to create updated documentation.
>>>  > However the first two links are mostly still accurate as we haven't done
>>>  > any major changes to the API.
>>>  > 
>>>  > Some things to note that are different from the API documentation in
>>>  > https:// www.ovirt.org/develop/release-management/features/ux/uiplugins/
>>>  > for 4.2:
>>>  > 
>>>  > - alignRight no longer has any effect, as the UI in 4.2 no longer
>>> respects
>>>  > it. - none of the systemTreeNode selection code does anything (since
>>>  > there is no more system tree)
>>>  > - As noted in the documentation itself the RestApiSessionAcquired is no
>>>  > longer available as we have a proper SSO mechanism that you can utilize
>>>  > at this point.
>>>  > - Main Tabs are now called Main Views (but the api still calls them main
>>>  > tabs, so use the apis described). And sub tabs are now called detail
>>>  > tabs, but the same thing the API hasn't changed the naming convention so
>>>  > use subTabs. - mainTabActionButton location property no longer has any
>>>  > meaning and is ignored.
>>>  > 
>>>  > That is it I think, we tried to make it so existing plugins would remain
>>>  > working even if some options no longer mean anything.
>>>  > 
  >>  I have found the following which all appear to be old and no longer
  >>  working?
  >>  
  >>  
 https://www.ovirt.org/documentation/admin-guide/appe-oVirt_User_Interfac
  >>  e_Pl ugins/
  >>  
 https://www.ovirt.org/develop/release-management/features/ux/uiplugins/
  >>  
 http://resources.ovirt.org/old-site-files/UI_Plugins_at_oVirt_Workshop_S
  >>  unny vale_2013.pdf
  >>  
  >>  Thanks
  >>  
  >>  Zip
> 
> 
> 


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


Re: [ovirt-users] Ghost Snapshot Disk

2018-02-26 Thread Lionel Caignec
Ok so i reply myself,

Version is 4.1.7.6-1

I just delete manually a snapshot previously created. But this is an io 
intensive vm, whit big disk (2,5To, and 5To).

For the log, i cannot paste all my log on public list security reason, i will 
send you full in private.
Here is an extract relevant to my error 
engine.log-20180210:2018-02-09 23:00:03,200+01 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-312) [44402a8c-3196-43f0-ba33-307ea78e6f49] EVENT_ID: 
USER_CREATE_SNAPSHOT(45), Correlation ID: 44402a8c-3196-43f0-ba33-307ea78e6f49, 
Job ID: 030cd310-fec9-4a89-8c3f-7888504fe973, Call Stack: null, Custom ID: 
null, Custom Event ID: -1, Message: Snapshot 'AUTO_7D_zz_nil_20180209_220002' 
creation for VM 'zz_nil' was initiated by snap_user@internal.
engine.log-20180210:2018-02-09 23:01:06,578+01 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler5) [] EVENT_ID: 
USER_CREATE_SNAPSHOT_FINISHED_SUCCESS(68), Correlation ID: 
44402a8c-3196-43f0-ba33-307ea78e6f49, Job ID: 
030cd310-fec9-4a89-8c3f-7888504fe973, Call Stack: null, Custom ID: null, Custom 
Event ID: -1, Message: Snapshot 'AUTO_7D_zz_nil_20180209_220002' creation for 
VM 'zz_nil' has been completed.
engine.log-20180220:2018-02-19 17:01:23,800+01 INFO  
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default 
task-113) [] EVENT_ID: USER_REMOVE_SNAPSHOT(342), Correlation ID: 
06a9efa4-1b80-4021-bf3e-41ecebe58a88, Job ID: 
c9a918a7-b00c-43cf-b6de-3659ac0765da, Call Stack: null, Custom ID: null, Custom 
Event ID: -1, Message: Snapshot 'AUTO_7D_zz_nil_20180209_220002' deletion for 
VM 'zz_nil' was initiated by acaignec@ldap-cines-authz.
engine.log-20180221:2018-02-20 22:24:45,174+01 ERROR 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(DefaultQuartzScheduler6) [06a9efa4-1b80-4021-bf3e-41ecebe58a88] EVENT_ID: 
USER_REMOVE_SNAPSHOT_FINISHED_FAILURE(357), Correlation ID: 
06a9efa4-1b80-4021-bf3e-41ecebe58a88, Job ID: 
c9a918a7-b00c-43cf-b6de-3659ac0765da, Call Stack: null, Custom ID: null, Custom 
Event ID: -1, Message: Failed to delete snapshot 
'AUTO_7D_zz_nil_20180209_220002' for VM 'zz_nil'.
 2018-02-20 22:24:46,266+01 INFO  
[org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler3) 
[516079c3] SPMAsyncTask::PollTask: Polling task 
'34137342-4f30-476d-b16c-1cb7e0ea0ac0' (Parent Command 'DestroyImage', 
Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') 
returned status 'finished', result 'success'.
2018-02-20 22:24:46,267+01 INFO  [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] 
(DefaultQuartzScheduler3) [516079c3] BaseAsyncTask::onTaskEndSuccess: Task 
'34137342-4f30-476d-b16c-1cb7e0ea0ac0' (Parent Command 'DestroyImage', 
Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') 
ended successfully.
2018-02-20 22:24:46,268+01 INFO  
[org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (DefaultQuartzScheduler3) 
[516079c3] CommandAsyncTask::endActionIfNecessary: All tasks of command 
'fe8c91f2-386b-4b3f-bbf3-aeda8e9244c6' has ended -> executing 'endAction'
2018-02-20 22:24:46,268+01 INFO  
[org.ovirt.engine.core.bll.tasks.CommandAsyncTask] (DefaultQuartzScheduler3) 
[516079c3] CommandAsyncTask::endAction: Ending action for '1' tasks (command 
ID: 'fe8c91f2-386b-4b3f-bbf3-aeda8e9244c6'): calling endAction '.
2018-02-20 22:24:46,268+01 INFO  
[org.ovirt.engine.core.bll.tasks.CommandAsyncTask] 
(org.ovirt.thread.pool-6-thread-20) [516079c3] 
CommandAsyncTask::endCommandAction [within thread] context: Attempting to 
endAction 'DestroyImage',
2018-02-20 22:24:46,269+01 ERROR 
[org.ovirt.engine.core.bll.tasks.CommandAsyncTask] 
(org.ovirt.thread.pool-6-thread-20) [516079c3] [within thread]: endAction for 
action type DestroyImage threw an exception.: java.lang.NullPointerException
at 
org.ovirt.engine.core.bll.tasks.CoCoAsyncTaskHelper.endAction(CoCoAsyncTaskHelper.java:335)
 [bll.jar:]
at 
org.ovirt.engine.core.bll.tasks.CommandCoordinatorImpl.endAction(CommandCoordinatorImpl.java:340)
 [bll.jar:]
at 
org.ovirt.engine.core.bll.tasks.CommandAsyncTask.endCommandAction(CommandAsyncTask.java:154)
 [bll.jar:]
at 
org.ovirt.engine.core.bll.tasks.CommandAsyncTask.lambda$endActionIfNecessary$0(CommandAsyncTask.java:106)
 [bll.jar:]
at 
org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:84)
 [utils.jar:]
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[rt.jar:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[rt.jar:1.8.0_161]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[rt.jar:1.8.0_161]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[rt.jar:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) 

Re: [ovirt-users] oVirt 4.2 WebUI Plugin API Docs?

2018-02-26 Thread Alexander Wels
On Sunday, February 25, 2018 1:11:08 AM EST Zip wrote:
> Hi Alexander,
> 
> If I try the following:
> 
> 
> 
> 
> 
> var api = parent.pluginApi('HelloWorld');
> api.register({
> UiInit: function () {
> api.addMainTab('FooTab','xtab123','http://foo.com/');
> }
> });
> api.ready();
> 
> 
> 
> 
> 
> I get the error in my browser console:
> 
> Sun Feb 25 00:03:56 GMT-600 2018
> org.ovirt.engine.ui.webadmin.plugin.PluginManager SEVERE: Exception caught
> while invoking event handler function [UiInit] for plugin [HelloWorld]:
> Error: java.lang.IndexOutOfBoundsException webadmin:1:13517
>  #dashboard-main>
> 
> Sun Feb 25 00:03:56 GMT-600 2018
> org.ovirt.engine.ui.webadmin.plugin.PluginManager WARNING: Plugin
> [HelloWorld] removed from service due to failure
> 
> 
> However if I remove the line:
> 
>  api.addMainTab('FooTab','xtab123','http://foo.com/Œ);
> 
> And replace it with something simple like:
> 
> alert(ŒTest 123¹);
> 
> There are no errors and the alert fires as it should.
> 
> 
> Any ideas of what I might be missing?
> 
> I am running oVirt 4.2.1 on CentOS ­ Hosted Engine setup with 1 host for
> testing.
> 
> Thanks
> 
> Zip
> 

Well you found a bug, I will be posting a patch soon. To bypass the problem 
add the following:

api.addMainTab('FooTab','xtab123','http://foo.com/, {priority: N});

Where N is a number between 0 and 5

This will determine where the new menu item will show up in the menu, 0 being 
at the top below the dashboard, and 5 being right above Events. Normally it is 
supposed to simply add to the end, however due to the bug it won't.

> > From:  Alexander Wels 
> > Date:  Monday, February 19, 2018 at 7:54 AM
> > To:  "users@ovirt.org" 
> > Cc:  Preston 
> > Subject:  Re: [ovirt-users] oVirt 4.2 WebUI Plugin API Docs?
> > 
> > On Friday, February 16, 2018 6:31:10 PM EST Zip wrote:
> >>  Are there any updated docs for the WebUI Plugins API?
> > 
> > Unfortunately no, I haven't had a chance to create updated documentation.
> > However the first two links are mostly still accurate as we haven't done
> > any major changes to the API.
> > 
> > Some things to note that are different from the API documentation in
> > https:// www.ovirt.org/develop/release-management/features/ux/uiplugins/
> > for 4.2:
> > 
> > - alignRight no longer has any effect, as the UI in 4.2 no longer respects
> > it. - none of the systemTreeNode selection code does anything (since
> > there is no more system tree)
> > - As noted in the documentation itself the RestApiSessionAcquired is no
> > longer available as we have a proper SSO mechanism that you can utilize
> > at this point.
> > - Main Tabs are now called Main Views (but the api still calls them main
> > tabs, so use the apis described). And sub tabs are now called detail
> > tabs, but the same thing the API hasn't changed the naming convention so
> > use subTabs. - mainTabActionButton location property no longer has any
> > meaning and is ignored.
> > 
> > That is it I think, we tried to make it so existing plugins would remain
> > working even if some options no longer mean anything.
> > 
> >>  I have found the following which all appear to be old and no longer
> >>  working?
> >>  
> >>  https://www.ovirt.org/documentation/admin-guide/appe-oVirt_User_Interfac
> >>  e_Pl ugins/
> >>  https://www.ovirt.org/develop/release-management/features/ux/uiplugins/
> >>  http://resources.ovirt.org/old-site-files/UI_Plugins_at_oVirt_Workshop_S
> >>  unny vale_2013.pdf
> >>  
> >>  Thanks
> >>  
> >>  Zip


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


Re: [ovirt-users] Hosts firewall custom setup

2018-02-26 Thread Martin Perina
On Mon, Feb 26, 2018 at 2:49 PM, Nicolas Ecarnot 
wrote:

> Le 26/02/2018 à 14:03, Yedidyah Bar David a écrit :
>
>> On Mon, Feb 26, 2018 at 2:01 PM, Nicolas Ecarnot 
>> wrote:
>>
>>> Hello,
>>>
>>> On oVirt 4.2.1.7, I'm trying to setup custom iptables rules as I'm doing
>>> since years with engine-config --set IPTablesConfigSiteCustom="blah blah
>>> blah".
>>>
>>> On my hosts, I can see in my hosts that /etc/sysconfig/iptables does
>>> contain
>>> the correct custom rules I added, but when manually checking with
>>> iptables
>>> -L, I don't see my rules active.
>>>
>>> On my hosts, I see that the iptables services is stopped and disabled,
>>> and
>>> that the firewalld service is up and running.
>>>
>>> That explains why iptables customization has no effect.
>>>
>>
>> Indeed.
>>
>> IIRC the type of firewall is now set per cluster or something like that,
>> not
>> sure about the details - adding Ondra.
>>
>
> Per cluster, one can indeed choose the firewall type.
> I suppose it translates on the hosts into the activation of the adequate
> service.
> But how do we add custom rules in case of firewalld type?
>
> On the hosts, I imagine that could translate into changes in :
> /etc/firewalld/zones/public.xml
>

​Please take a look at below RFE introducing firewalld support for host and
blog post to read about new possibilities to customize host-deploy process
(which also can be used for custom firewalld rules) in oVirt 4.2:

https://bugzilla.redhat.com/show_bug.cgi?id=995362
https://www.ovirt.org/blog/2017/12/host-deploy-customization/​



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



-- 
Martin Perina
Associate Manager, Software Engineering
Red Hat Czech s.r.o.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosts firewall custom setup

2018-02-26 Thread Yedidyah Bar David
On Mon, Feb 26, 2018 at 3:49 PM, Nicolas Ecarnot  wrote:
> Le 26/02/2018 à 14:03, Yedidyah Bar David a écrit :
>>
>> On Mon, Feb 26, 2018 at 2:01 PM, Nicolas Ecarnot 
>> wrote:
>>>
>>> Hello,
>>>
>>> On oVirt 4.2.1.7, I'm trying to setup custom iptables rules as I'm doing
>>> since years with engine-config --set IPTablesConfigSiteCustom="blah blah
>>> blah".
>>>
>>> On my hosts, I can see in my hosts that /etc/sysconfig/iptables does
>>> contain
>>> the correct custom rules I added, but when manually checking with
>>> iptables
>>> -L, I don't see my rules active.
>>>
>>> On my hosts, I see that the iptables services is stopped and disabled,
>>> and
>>> that the firewalld service is up and running.
>>>
>>> That explains why iptables customization has no effect.
>>
>>
>> Indeed.
>>
>> IIRC the type of firewall is now set per cluster or something like that,
>> not
>> sure about the details - adding Ondra.
>
>
> Per cluster, one can indeed choose the firewall type.
> I suppose it translates on the hosts into the activation of the adequate
> service.
> But how do we add custom rules in case of firewalld type?

Please see: https://ovirt.org/blog/2017/12/host-deploy-customization/

Best regards,

>
> On the hosts, I imagine that could translate into changes in :
> /etc/firewalld/zones/public.xml
>
> --
> Nicolas ECARNOT



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


Re: [ovirt-users] Hosts firewall custom setup

2018-02-26 Thread Nicolas Ecarnot

Le 26/02/2018 à 14:03, Yedidyah Bar David a écrit :

On Mon, Feb 26, 2018 at 2:01 PM, Nicolas Ecarnot  wrote:

Hello,

On oVirt 4.2.1.7, I'm trying to setup custom iptables rules as I'm doing
since years with engine-config --set IPTablesConfigSiteCustom="blah blah
blah".

On my hosts, I can see in my hosts that /etc/sysconfig/iptables does contain
the correct custom rules I added, but when manually checking with iptables
-L, I don't see my rules active.

On my hosts, I see that the iptables services is stopped and disabled, and
that the firewalld service is up and running.

That explains why iptables customization has no effect.


Indeed.

IIRC the type of firewall is now set per cluster or something like that, not
sure about the details - adding Ondra.


Per cluster, one can indeed choose the firewall type.
I suppose it translates on the hosts into the activation of the adequate 
service.

But how do we add custom rules in case of firewalld type?

On the hosts, I imagine that could translate into changes in :
/etc/firewalld/zones/public.xml

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


Re: [ovirt-users] Ghost Snapshot Disk

2018-02-26 Thread Shani Leviim
Hi,

What is your engine version, please?
I'm trying to reproduce your steps, for understanding better was is the
cause for that error. Therefore, a full engine log is needed.
Can you please attach it?

Thanks,


*Shani Leviim*

On Mon, Feb 26, 2018 at 2:48 PM, Lionel Caignec  wrote:

> Hi
>
> 1) this is error message from ui.log
>
>  2018-02-26 13:44:10,001+01 ERROR [org.ovirt.engine.ui.frontend.
> server.gwt.OvirtRemoteLoggingService] (default task-3) [] Permutation
> name: 8C01181C3B121D0AAE1312275CC96415
> 2018-02-26 13:44:10,001+01 ERROR 
> [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService]
> (default task-3) [] Uncaught exception: 
> com.google.gwt.core.client.JavaScriptException:
> (TypeError)
>  __gwt$exception: : Cannot read property 'F' of null
> at org.ovirt.engine.ui.uicommonweb.models.storage.
> DisksAllocationModel$3.$onSuccess(DisksAllocationModel.java:120)
> at org.ovirt.engine.ui.uicommonweb.models.storage.
> DisksAllocationModel$3.onSuccess(DisksAllocationModel.java:120)
> at 
> org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:233)
> [frontend.jar:]
> at 
> org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:233)
> [frontend.jar:]
> at org.ovirt.engine.ui.frontend.communication.
> OperationProcessor$2.$onSuccess(OperationProcessor.java:139)
> [frontend.jar:]
> at org.ovirt.engine.ui.frontend.communication.
> OperationProcessor$2.onSuccess(OperationProcessor.java:139)
> [frontend.jar:]
> at org.ovirt.engine.ui.frontend.communication.
> GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:269)
> [frontend.jar:]
> at org.ovirt.engine.ui.frontend.communication.
> GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:269)
> [frontend.jar:]
> at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.
> onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
> at 
> com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:237)
> [gwt-servlet.jar:]
> at 
> com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409)
> [gwt-servlet.jar:]
> at Unknown.eval(webadmin-0.js@65)
> at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296)
> [gwt-servlet.jar:]
> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335)
> [gwt-servlet.jar:]
> at Unknown.eval(webadmin-0.js@54)
>
>
> 2) This line seems to be about the bad disk :
>
>  f242cc9a-56c1-4ae4-aef0-f75eb01f74b1 | 2018-01-17 22:02:00+01 |
> 2748779069440 | ---- |
> ---- |   4 | 2018-01-18
> 22:01:20.5+01   | 0dd2090c-3491-4fa1-98c3-54ae88be793c
>
>
> 3) Snapshot table is empty for the concerned vm_id.
>
> - Mail original -
> De: "Shani Leviim" 
> À: "Lionel Caignec" 
> Cc: "users" 
> Envoyé: Lundi 26 Février 2018 13:31:23
> Objet: Re: [ovirt-users] Ghost Snapshot Disk
>
> Hi Lionel,
>
> The error message you've mentioned sounds like a UI error.
> Can you please attach your ui log?
>
> Also, on the data from 'images' table you've uploaded, can you describe
> which line is the relevant disk?
>
> Finally (for now), in case the snapshot was deleted, can you please
> validate it by viewing the output of:
> $ select * from snapshots;
>
>
>
> *Regards,*
>
> *Shani Leviim*
>
> On Mon, Feb 26, 2018 at 9:20 AM, Lionel Caignec  wrote:
>
> > Hi Shani,
> > thank you for helping me with your reply,
> > i juste make a little mistake on explanation. In fact it's the snapshot
> > does not exist anymore. This is the disk(s) relative to her wich still
> > exist, and perhaps LVM volume.
> > So can i delete manually this disk in database? what about the lvm
> volume?
> > Is it better to recreate disk sync data and destroy old one?
> >
> >
> >
> > - Mail original -
> > De: "Shani Leviim" 
> > À: "Lionel Caignec" 
> > Cc: "users" 
> > Envoyé: Dimanche 25 Février 2018 14:26:41
> > Objet: Re: [ovirt-users] Ghost Snapshot Disk
> >
> > Hi Lionel,
> >
> > You can try to delete that snapshot directly from the database.
> >
> > In case of using psql  [1], once you've logged in to your database, you
> can
> > run this query:
> > $ select * from snapshots where vm_id = '';
> > This one would list the snapshots associated with a VM by its id.
> >
> > In case you don't have you vm_id, you can locate it by querying:
> > $ select * from vms where vm_name = 'nil';
> > This one would show you some details about a VM by its name (including
> the
> > vm's id).
> >
> > Once you've found the relevant snapshot, you can delete it by running:
> > $ delete from snapshots where snapshot_id = '';
> > This one would delete the desired snapshot from the database.
> >
> > Since it's a delete 

Re: [ovirt-users] Network and disk inactive after 4.2.1 upgrade

2018-02-26 Thread Chris Adams
Once upon a time, Arsène Gschwind  said:
> After upgrading from 4.1.9 to 4.2.1 I had the same problem.
> Had to reactivate network and disk on all VMs.

Do you use the hosted engine?  If so, how did you fix it?
-- 
Chris Adams 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosts firewall custom setup

2018-02-26 Thread Yedidyah Bar David
On Mon, Feb 26, 2018 at 2:01 PM, Nicolas Ecarnot  wrote:
> Hello,
>
> On oVirt 4.2.1.7, I'm trying to setup custom iptables rules as I'm doing
> since years with engine-config --set IPTablesConfigSiteCustom="blah blah
> blah".
>
> On my hosts, I can see in my hosts that /etc/sysconfig/iptables does contain
> the correct custom rules I added, but when manually checking with iptables
> -L, I don't see my rules active.
>
> On my hosts, I see that the iptables services is stopped and disabled, and
> that the firewalld service is up and running.
>
> That explains why iptables customization has no effect.

Indeed.

IIRC the type of firewall is now set per cluster or something like that, not
sure about the details - adding Ondra.

>
> In the engine setup, I see that
> /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf contains :
> OVESETUP_CONFIG/firewallManager=none:None
>
> I'm confused about this setting : when running engine-setup, I'm not sure to
> understand if answering yes to the question about the firewall will modify
> the engine, the hosts, or all of them?

Only the engine.

>
> Actually, I'd like my engine to stay with a disabled firewall, but my hosts
> with an active one.

So you should reply 'No' as you did in 'engine-setup', and handle
iptables/firewalld
on the engine after it's set up (upgraded), I think from the ui.

>
> Is it true to say that this is not an option and I have to answer yes,
> enable the firewall on the engine, allowing the
> OVESETUP_CONFIG/firewallManager option to be set up (to firewalld or
> iptables), thus allowing the spread of this setup towards the hosts?

No, they are unrelated.

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


Re: [ovirt-users] Ghost Snapshot Disk

2018-02-26 Thread Lionel Caignec
Hi 

1) this is error message from ui.log

 2018-02-26 13:44:10,001+01 ERROR 
[org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default 
task-3) [] Permutation name: 8C01181C3B121D0AAE1312275CC96415
2018-02-26 13:44:10,001+01 ERROR 
[org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default 
task-3) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: 
(TypeError) 
 __gwt$exception: : Cannot read property 'F' of null
at 
org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel$3.$onSuccess(DisksAllocationModel.java:120)
at 
org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel$3.onSuccess(DisksAllocationModel.java:120)
at 
org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:233) 
[frontend.jar:]
at org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:233) 
[frontend.jar:]
at 
org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:139)
 [frontend.jar:]
at 
org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:139)
 [frontend.jar:]
at 
org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:269)
 [frontend.jar:]
at 
org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:269)
 [frontend.jar:]
at 
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198)
 [gwt-servlet.jar:]
at 
com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:237) 
[gwt-servlet.jar:]
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409)
 [gwt-servlet.jar:]
at Unknown.eval(webadmin-0.js@65)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296) 
[gwt-servlet.jar:]
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) 
[gwt-servlet.jar:]
at Unknown.eval(webadmin-0.js@54)


2) This line seems to be about the bad disk : 

 f242cc9a-56c1-4ae4-aef0-f75eb01f74b1 | 2018-01-17 22:02:00+01 | 2748779069440 
| ---- | ---- | 
  4 | 2018-01-18 22:01:20.5+01   | 0dd2090c-3491-4fa1-98c3-54ae88be793c


3) Snapshot table is empty for the concerned vm_id.

- Mail original -
De: "Shani Leviim" 
À: "Lionel Caignec" 
Cc: "users" 
Envoyé: Lundi 26 Février 2018 13:31:23
Objet: Re: [ovirt-users] Ghost Snapshot Disk

Hi Lionel,

The error message you've mentioned sounds like a UI error.
Can you please attach your ui log?

Also, on the data from 'images' table you've uploaded, can you describe
which line is the relevant disk?

Finally (for now), in case the snapshot was deleted, can you please
validate it by viewing the output of:
$ select * from snapshots;



*Regards,*

*Shani Leviim*

On Mon, Feb 26, 2018 at 9:20 AM, Lionel Caignec  wrote:

> Hi Shani,
> thank you for helping me with your reply,
> i juste make a little mistake on explanation. In fact it's the snapshot
> does not exist anymore. This is the disk(s) relative to her wich still
> exist, and perhaps LVM volume.
> So can i delete manually this disk in database? what about the lvm volume?
> Is it better to recreate disk sync data and destroy old one?
>
>
>
> - Mail original -
> De: "Shani Leviim" 
> À: "Lionel Caignec" 
> Cc: "users" 
> Envoyé: Dimanche 25 Février 2018 14:26:41
> Objet: Re: [ovirt-users] Ghost Snapshot Disk
>
> Hi Lionel,
>
> You can try to delete that snapshot directly from the database.
>
> In case of using psql  [1], once you've logged in to your database, you can
> run this query:
> $ select * from snapshots where vm_id = '';
> This one would list the snapshots associated with a VM by its id.
>
> In case you don't have you vm_id, you can locate it by querying:
> $ select * from vms where vm_name = 'nil';
> This one would show you some details about a VM by its name (including the
> vm's id).
>
> Once you've found the relevant snapshot, you can delete it by running:
> $ delete from snapshots where snapshot_id = '';
> This one would delete the desired snapshot from the database.
>
> Since it's a delete operation, I would suggest confirming the ids before
> executing it.
>
> Hope you've found it useful!
>
> [1]
> https://www.ovirt.org/documentation/install-guide/appe-Preparing_a_Remote_
> PostgreSQL_Database_for_Use_with_the_oVirt_Engine/
>
>
> *Regards,*
>
> *Shani Leviim*
>
> On Fri, Feb 23, 2018 at 9:25 AM, Lionel Caignec  wrote:
>
> > Hi,
> >
> > i've a problem with snapshot. On one VM i've a "snapshot" ghost without
> > name or uuid, only information is size (see attachment). In the snapshot
> > tab 

Re: [ovirt-users] Ghost Snapshot Disk

2018-02-26 Thread Shani Leviim
Hi Lionel,

The error message you've mentioned sounds like a UI error.
Can you please attach your ui log?

Also, on the data from 'images' table you've uploaded, can you describe
which line is the relevant disk?

Finally (for now), in case the snapshot was deleted, can you please
validate it by viewing the output of:
$ select * from snapshots;



*Regards,*

*Shani Leviim*

On Mon, Feb 26, 2018 at 9:20 AM, Lionel Caignec  wrote:

> Hi Shani,
> thank you for helping me with your reply,
> i juste make a little mistake on explanation. In fact it's the snapshot
> does not exist anymore. This is the disk(s) relative to her wich still
> exist, and perhaps LVM volume.
> So can i delete manually this disk in database? what about the lvm volume?
> Is it better to recreate disk sync data and destroy old one?
>
>
>
> - Mail original -
> De: "Shani Leviim" 
> À: "Lionel Caignec" 
> Cc: "users" 
> Envoyé: Dimanche 25 Février 2018 14:26:41
> Objet: Re: [ovirt-users] Ghost Snapshot Disk
>
> Hi Lionel,
>
> You can try to delete that snapshot directly from the database.
>
> In case of using psql  [1], once you've logged in to your database, you can
> run this query:
> $ select * from snapshots where vm_id = '';
> This one would list the snapshots associated with a VM by its id.
>
> In case you don't have you vm_id, you can locate it by querying:
> $ select * from vms where vm_name = 'nil';
> This one would show you some details about a VM by its name (including the
> vm's id).
>
> Once you've found the relevant snapshot, you can delete it by running:
> $ delete from snapshots where snapshot_id = '';
> This one would delete the desired snapshot from the database.
>
> Since it's a delete operation, I would suggest confirming the ids before
> executing it.
>
> Hope you've found it useful!
>
> [1]
> https://www.ovirt.org/documentation/install-guide/appe-Preparing_a_Remote_
> PostgreSQL_Database_for_Use_with_the_oVirt_Engine/
>
>
> *Regards,*
>
> *Shani Leviim*
>
> On Fri, Feb 23, 2018 at 9:25 AM, Lionel Caignec  wrote:
>
> > Hi,
> >
> > i've a problem with snapshot. On one VM i've a "snapshot" ghost without
> > name or uuid, only information is size (see attachment). In the snapshot
> > tab there is no trace about this disk.
> >
> > In database (table images) i found this :
> >   f242cc9a-56c1-4ae4-aef0-f75eb01f74b1 | 2018-01-17 22:02:00+01 |
> > 2748779069440 | ---- |
> > ---- |   4 | 2018-01-18
> > 22:01:20.5+01   | 0dd2090c-3491-4fa1-98c3-54ae88be793c
> >  |   2 | 4 | 17e26476-cecb-441d-a5f7-46ab3ef387ee |
> > 2018-01-17 22:01:29.663334+01 | 2018-01-19 08:40:14.345229+01 | f  |
> >  1 |   2
> >  1c7650fa-542b-4ec2-83a1-d2c1c31be5fd | 2018-01-17 22:02:03+01 |
> > 536870912 | ---- |
> > ---- |   4 | 2018-01-18
> > 22:01:20.84+01  | 0dd2090c-3491-4fa1-98c3-54ae88be793c
> >  |   2 | 4 | bf834a91-c69f-4d2c-b639-116ed58296d8 |
> > 2018-01-17 22:01:29.836133+01 | 2018-01-19 08:40:19.083508+01 | f  |
> >  1 |   2
> >  8614b21f-c0de-40f2-b4fb-e5cf193b0743 | 2018-02-09 23:00:44+01 |
> > 536870912 | ---- |
> > ---- |   4 | 2018-02-16
> > 23:00:02.855+01 | 390175dc-baf4-4831-936a-5ea68fa4c969
> >
> >
> >  But i does not know which line is my disk. Is it possible to delete
> > directly into database?
> >  Or is it better to dump my disk to another new and delete the "corrupted
> > one"?
> >
> >  Another thing, when i try to move the disk to another storage domain i
> > always get "uncaght exeption occured ..." and no error in engine.log.
> >
> >
> >  Thank you for helping.
> >
> > --
> > Lionel Caignec
> >
> > ___
> > 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] Hosts firewall custom setup

2018-02-26 Thread Nicolas Ecarnot

Hello,

On oVirt 4.2.1.7, I'm trying to setup custom iptables rules as I'm doing 
since years with engine-config --set IPTablesConfigSiteCustom="blah blah 
blah".


On my hosts, I can see in my hosts that /etc/sysconfig/iptables does 
contain the correct custom rules I added, but when manually checking 
with iptables -L, I don't see my rules active.


On my hosts, I see that the iptables services is stopped and disabled, 
and that the firewalld service is up and running.


That explains why iptables customization has no effect.

In the engine setup, I see that 
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf contains :

OVESETUP_CONFIG/firewallManager=none:None

I'm confused about this setting : when running engine-setup, I'm not 
sure to understand if answering yes to the question about the firewall 
will modify the engine, the hosts, or all of them?


Actually, I'd like my engine to stay with a disabled firewall, but my 
hosts with an active one.


Is it true to say that this is not an option and I have to answer yes, 
enable the firewall on the engine, allowing the 
OVESETUP_CONFIG/firewallManager option to be set up (to firewalld or 
iptables), thus allowing the spread of this setup towards the hosts?


Thank you.

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


Re: [ovirt-users] VMs with multiple vdisks don't migrate

2018-02-26 Thread Milan Zamazal
"fsoyer"  writes:

> I don't beleive that this is relatd to a host, tests have been done from 
> victor
> source to ginger dest and ginger to victor. I don't see problems on storage
> (gluster 3.12 native managed by ovirt), when VMs with a uniq disk from 20 to
> 250G migrate without error in some seconds and with no downtime.

The host itself may be fine, but libvirt/QEMU running there may expose
problems, perhaps just for some VMs.  According to your logs something
is not behaving as expected on the source host during the faulty
migration.

> How ca I enable this libvirt debug mode ?

Set the following options in /etc/libvirt/libvirtd.conf (look for
examples in comments there)

- log_level=1
- log_outputs="1:file:/var/log/libvirt/libvirtd.log"

and restart libvirt.  Then /var/log/libvirt/libvirtd.log should contain
the log.  It will be huge, so I suggest to enable it only for the time
of reproducing the problem.

> --
>
> Cordialement,
>
> Frank Soyer 
>
>  
>
> Le Vendredi, Février 23, 2018 09:56 CET, Milan Zamazal  
> a écrit:
>  Maor Lipchuk  writes:
>
>> I encountered a bug (see [1]) which contains the same error mentioned in
>> your VDSM logs (see [2]), but I doubt it is related.
>
> Indeed, it's not related.
>
> The error in vdsm_victor.log just means that the info gathering call
> tries to access libvirt domain before the incoming migration is
> completed. It's ugly but harmless.
>
>> Milan, maybe you have any advice to troubleshoot the issue? Will the
>> libvirt/qemu logs can help?
>
> It seems there is something wrong on (at least) the source host. There
> are no migration progress messages in the vdsm_ginger.log and there are
> warnings about stale stat samples. That looks like problems with
> calling libvirt – slow and/or stuck calls, maybe due to storage
> problems. The possibly faulty second disk could cause that.
>
> libvirt debug logs could tell us whether that is indeed the problem and
> whether it is caused by storage or something else.
>
>> I would suggest to open a bug on that issue so we can track it more
>> properly.
>>
>> Regards,
>> Maor
>>
>>
>> [1]
>> https://bugzilla.redhat.com/show_bug.cgi?id=1486543 - Migration leads to
>> VM running on 2 Hosts
>>
>> [2]
>> 2018-02-16 09:43:35,236+0100 ERROR (jsonrpc/7) [jsonrpc.JsonRpcServer]
>> Internal server error (__init__:577)
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py", line 572,
>> in _handle_request
>> res = method(**params)
>> File "/usr/lib/python2.7/site-packages/vdsm/rpc/Bridge.py", line 198, in
>> _dynamicMethod
>> result = fn(*methodArgs)
>> File "/usr/share/vdsm/API.py", line 1454, in getAllVmIoTunePolicies
>> io_tune_policies_dict = self._cif.getAllVmIoTunePolicies()
>> File "/usr/share/vdsm/clientIF.py", line 454, in getAllVmIoTunePolicies
>> 'current_values': v.getIoTune()}
>> File "/usr/share/vdsm/virt/vm.py", line 2859, in getIoTune
>> result = self.getIoTuneResponse()
>> File "/usr/share/vdsm/virt/vm.py", line 2878, in getIoTuneResponse
>> res = self._dom.blockIoTune(
>> File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 47,
>> in __getattr__
>> % self.vmid)
>> NotConnectedError: VM u'755cf168-de65-42ed-b22f-efe9136f7594' was not
>> started yet or was shut down
>>
>> On Thu, Feb 22, 2018 at 4:22 PM, fsoyer  wrote:
>>
>>> Hi,
>>> Yes, on 2018-02-16 (vdsm logs) I tried with a VM standing on ginger
>>> (192.168.0.6) migrated (or failed to migrate...) to victor (192.168.0.5),
>>> while the engine.log in the first mail on 2018-02-12 was for VMs standing
>>> on victor, migrated (or failed to migrate...) to ginger. Symptoms were
>>> exactly the same, in both directions, and VMs works like a charm before,
>>> and even after (migration "killed" by a poweroff of VMs).
>>> Am I the only one experimenting this problem ?
>>>
>>>
>>> Thanks
>>> --
>>>
>>> Cordialement,
>>>
>>> *Frank Soyer *
>>>
>>>
>>>
>>> Le Jeudi, Février 22, 2018 00:45 CET, Maor Lipchuk 
>>> a écrit:
>>>
>>>
>>> Hi Frank,
>>>
>>> Sorry about the delay repond.
>>> I've been going through the logs you attached, although I could not find
>>> any specific indication why the migration failed because of the disk you
>>> were mentionning.
>>> Does this VM run with both disks on the target host without migration?
>>>
>>> Regards,
>>> Maor
>>>
>>>
>>> On Fri, Feb 16, 2018 at 11:03 AM, fsoyer  wrote:

 Hi Maor,
 sorry for the double post, I've change the email adress of my account and
 supposed that I'd need to re-post it.
 And thank you for your time. Here are the logs. I added a vdisk to an
 existing VM : it no more migrates, needing to poweroff it after minutes.
 Then simply deleting the second disk makes migrate it in exactly 9s without
 problem !
 https://gist.github.com/fgth/4707446331d201eef574ac31b6e89561
 

Re: [ovirt-users] Q: VM disk speed penalty NFS vs Local data center storage

2018-02-26 Thread Yaniv Kaul
On Mon, Feb 26, 2018 at 1:30 PM, Andrei Verovski 
wrote:

> Hi,
>
> Since oVirt doesn’t support more then 1 host in data center with local
> storage domain as described here:
> http://lists.ovirt.org/pipermail/users/2018-January/086118.html
>
> I have to setup NFS server on node with VMs (on same node) access via NFS.
> 10 GB shared storage is in the future plans yet right now have only 2
> nodes with local RAID on each.
>
> Q: What is VM disk speed penalty (approx %)  NFS vs Local RAID in oVirt
> data center storage?
> Currently I have 2 VMs running our accounting/inventory control system
> which are critical to storage performance limits.
> 2 other VMs have very low disk activity.
>

I don't know, but please remember there's both latency and throughput, both
of which are somewhat affected. Throughput will benefit from jumbo frames,
for example. Unfortunately it may affect latency a bit.
There was an interesting patch that if the NFS was local, bypassed the
NFS[1]. It was never completed and merged.
Lastly, chapter 6 at hyper-converged guide (should be available in few
hours) might be an interesting idea for you to consider - a single Gluster
that can later expand.
Y.

[1] https://gerrit.ovirt.org/#/c/68822/
[2]
https://ovirt.org/documentation/gluster-hyperconverged/Gluster_Hyperconverged_Guide/



>
> Thanks in advance
> Andrei Verovski
>
>
> ___
> 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] Can't move/copy VM disks between Data Centers

2018-02-26 Thread Andrei Verovski
Hi,

Thanks for clarification. I’m using 4.2.
Anyway, I have to define another data center with shared storage domain (since 
data center with local storage domain can have only 1 host), and the do what 
you have described.

Is it possible to copy VM disks from 1 data center #1 local storage domain to 
another data center #2 NFS storage domain, or need to use export storage domain 
?


> On 26 Feb 2018, at 13:30, Fred Rolland  wrote:
> 
> Hi,
> Which version are you using?
> 
> in 4.1 , the support of adding shared storage to local DC was added [1].
> You can copy/move disks to the shared storage domain, then detach the SD and 
> attach to another DC.
> 
> In any case, you wont be able to live migrate VMs from the local DC, it is 
> not supported.
> 
> Regards,
> Fred
> 
> [1] 
> https://ovirt.org/develop/release-management/features/storage/sharedStorageDomainsAttachedToLocalDC/
>  
> 
> 
> On Fri, Feb 23, 2018 at 1:35 PM, Andrei V  > wrote:
> Hi,
> 
> I have oVirt setup, separate PC host engine + 2 nodes (#10 + #11) with local 
> storage domains (internal RAIDs).
> 1st node #10 is currently active and can’t be turned off.
> 
> Since oVirt doesn’t support more then 1 host in data center with local 
> storage domain as described here:
> http://lists.ovirt.org/pipermail/users/2018-January/086118.html 
> 
> defined another data center with 1 node #11.
> 
> Problem: 
> 1) can’t copy or move VM disks from node #10 (even of inactive VMs) to node 
> #11, this node is NOT being shown as possible destination.
> 2) can’t migrate active VMs to node #11.
> 3) Added NFS shares to data center #1 -> node #10, but can’t change data 
> center #1 -> storage type to Shared, because this operation requires 
> detachment of local storage domains, which is not possible, several VMs are 
> active and can’t be stopped.
> 
> VM disks placed on local storage domains because of performance limitations 
> of our 1Gbit network. 
> 2 VMs running our accounting/inventory control system, and are critical to 
> NFS storage performance limits.
> 
> How to solve this problem ?
> Thanks in advance.
> 
> Andrei
> 
> 
> ___
> 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] Q: VM disk speed penalty NFS vs Local data center storage

2018-02-26 Thread Andrei Verovski
Hi,

Since oVirt doesn’t support more then 1 host in data center with local storage 
domain as described here:
http://lists.ovirt.org/pipermail/users/2018-January/086118.html 


I have to setup NFS server on node with VMs (on same node) access via NFS.
10 GB shared storage is in the future plans yet right now have only 2 nodes 
with local RAID on each.

Q: What is VM disk speed penalty (approx %)  NFS vs Local RAID in oVirt data 
center storage? 
Currently I have 2 VMs running our accounting/inventory control system which 
are critical to storage performance limits.
2 other VMs have very low disk activity.

Thanks in advance
Andrei Verovski

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


Re: [ovirt-users] Can't move/copy VM disks between Data Centers

2018-02-26 Thread Fred Rolland
Hi,
Which version are you using?

in 4.1 , the support of adding shared storage to local DC was added [1].
You can copy/move disks to the shared storage domain, then detach the SD
and attach to another DC.

In any case, you wont be able to live migrate VMs from the local DC, it is
not supported.

Regards,
Fred

[1]
https://ovirt.org/develop/release-management/features/storage/sharedStorageDomainsAttachedToLocalDC/

On Fri, Feb 23, 2018 at 1:35 PM, Andrei V  wrote:

> Hi,
>
> I have oVirt setup, separate PC host engine + 2 nodes (#10 + #11) with
> local storage domains (internal RAIDs).
> 1st node #10 is currently active and can’t be turned off.
>
> Since oVirt doesn’t support more then 1 host in data center with local
> storage domain as described here:
> http://lists.ovirt.org/pipermail/users/2018-January/086118.html
> defined another data center with 1 node #11.
>
> Problem:
> 1) can’t copy or move VM disks from node #10 (even of inactive VMs) to
> node #11, this node is NOT being shown as possible destination.
> 2) can’t migrate active VMs to node #11.
> 3) Added NFS shares to data center #1 -> node #10, but can’t change data
> center #1 -> storage type to Shared, because this operation requires
> detachment of local storage domains, which is not possible, several VMs are
> active and can’t be stopped.
>
> VM disks placed on local storage domains because of performance
> limitations of our 1Gbit network.
> 2 VMs running our accounting/inventory control system, and are critical to
> NFS storage performance limits.
>
> How to solve this problem ?
> Thanks in advance.
>
> Andrei
>
>
> ___
> 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] VMs with multiple vdisks don't migrate

2018-02-26 Thread fsoyer

Hi,
I don't beleive that this is relatd to a host, tests have been done from victor 
source to ginger dest and ginger to victor. I don't see problems on storage 
(gluster 3.12 native managed by ovirt), when VMs with a uniq disk from 20 to 
250G migrate without error in some seconds and with no downtime.
How ca I enable this libvirt debug mode ?

--

Cordialement,

Frank Soyer

 

Le Vendredi, Février 23, 2018 09:56 CET, Milan Zamazal  a 
écrit:
 Maor Lipchuk  writes:

> I encountered a bug (see [1]) which contains the same error mentioned in
> your VDSM logs (see [2]), but I doubt it is related.

Indeed, it's not related.

The error in vdsm_victor.log just means that the info gathering call
tries to access libvirt domain before the incoming migration is
completed. It's ugly but harmless.

> Milan, maybe you have any advice to troubleshoot the issue? Will the
> libvirt/qemu logs can help?

It seems there is something wrong on (at least) the source host. There
are no migration progress messages in the vdsm_ginger.log and there are
warnings about stale stat samples. That looks like problems with
calling libvirt – slow and/or stuck calls, maybe due to storage
problems. The possibly faulty second disk could cause that.

libvirt debug logs could tell us whether that is indeed the problem and
whether it is caused by storage or something else.

> I would suggest to open a bug on that issue so we can track it more
> properly.
>
> Regards,
> Maor
>
>
> [1]
> https://bugzilla.redhat.com/show_bug.cgi?id=1486543 - Migration leads to
> VM running on 2 Hosts
>
> [2]
> 2018-02-16 09:43:35,236+0100 ERROR (jsonrpc/7) [jsonrpc.JsonRpcServer]
> Internal server error (__init__:577)
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py", line 572,
> in _handle_request
> res = method(**params)
> File "/usr/lib/python2.7/site-packages/vdsm/rpc/Bridge.py", line 198, in
> _dynamicMethod
> result = fn(*methodArgs)
> File "/usr/share/vdsm/API.py", line 1454, in getAllVmIoTunePolicies
> io_tune_policies_dict = self._cif.getAllVmIoTunePolicies()
> File "/usr/share/vdsm/clientIF.py", line 454, in getAllVmIoTunePolicies
> 'current_values': v.getIoTune()}
> File "/usr/share/vdsm/virt/vm.py", line 2859, in getIoTune
> result = self.getIoTuneResponse()
> File "/usr/share/vdsm/virt/vm.py", line 2878, in getIoTuneResponse
> res = self._dom.blockIoTune(
> File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 47,
> in __getattr__
> % self.vmid)
> NotConnectedError: VM u'755cf168-de65-42ed-b22f-efe9136f7594' was not
> started yet or was shut down
>
> On Thu, Feb 22, 2018 at 4:22 PM, fsoyer  wrote:
>
>> Hi,
>> Yes, on 2018-02-16 (vdsm logs) I tried with a VM standing on ginger
>> (192.168.0.6) migrated (or failed to migrate...) to victor (192.168.0.5),
>> while the engine.log in the first mail on 2018-02-12 was for VMs standing
>> on victor, migrated (or failed to migrate...) to ginger. Symptoms were
>> exactly the same, in both directions, and VMs works like a charm before,
>> and even after (migration "killed" by a poweroff of VMs).
>> Am I the only one experimenting this problem ?
>>
>>
>> Thanks
>> --
>>
>> Cordialement,
>>
>> *Frank Soyer *
>>
>>
>>
>> Le Jeudi, Février 22, 2018 00:45 CET, Maor Lipchuk 
>> a écrit:
>>
>>
>> Hi Frank,
>>
>> Sorry about the delay repond.
>> I've been going through the logs you attached, although I could not find
>> any specific indication why the migration failed because of the disk you
>> were mentionning.
>> Does this VM run with both disks on the target host without migration?
>>
>> Regards,
>> Maor
>>
>>
>> On Fri, Feb 16, 2018 at 11:03 AM, fsoyer  wrote:
>>>
>>> Hi Maor,
>>> sorry for the double post, I've change the email adress of my account and
>>> supposed that I'd need to re-post it.
>>> And thank you for your time. Here are the logs. I added a vdisk to an
>>> existing VM : it no more migrates, needing to poweroff it after minutes.
>>> Then simply deleting the second disk makes migrate it in exactly 9s without
>>> problem !
>>> https://gist.github.com/fgth/4707446331d201eef574ac31b6e89561
>>> https://gist.github.com/fgth/f8de9c22664aee53722af676bff8719d
>>>
>>> --
>>>
>>> Cordialement,
>>>
>>> *Frank Soyer *
>>> Le Mercredi, Février 14, 2018 11:04 CET, Maor Lipchuk <
>>> mlipc...@redhat.com> a écrit:
>>>
>>>
>>> Hi Frank,
>>>
>>> I already replied on your last email.
>>> Can you provide the VDSM logs from the time of the migration failure for
>>> both hosts:
>>> ginger.local.systea.f r and v
>>> ictor.local.systea.fr
>>>
>>> Thanks,
>>> Maor
>>>
>>> On Wed, Feb 14, 2018 at 11:23 AM, fsoyer  wrote:

 Hi all,
 I discovered yesterday a problem when migrating VM with more than one
 vdisk.
 On our test servers (oVirt4.1, shared storage with Gluster), I created 2
 VMs needed 

Re: [ovirt-users] Power management - oVirt 4,2

2018-02-26 Thread Martin Perina
On Fri, Feb 23, 2018 at 11:34 AM, Terry hey  wrote:

> Dear Martin,
> I am very sorry that i reply you so late.
> Do you mean that 4.2 can support ilo5 by selecting the option "ilo4" in
> power management?
>

​Yes
​


> "from the error message below I'd say that you are either not using
> correct IP address of iLO5 interface or you haven't enabled remote access
> to your iLO5 interface"
> I just try it and double confirm that i did not type a wrong IP. But the
> error message is same.
>

​Unfortunately I don't have iLO5 server available, so I cannot provide more
details. Anyway could you please double check your server documentation,
that you have enabled access to iLO5 IPMI interface correctly? And could
you please share output of following command?

​
f
​​
ence_ilo4 -a  -l  -p  -v -o status

Thanks

Martin
​


>
> Regards
> Terry
>
> 2018-02-08 16:13 GMT+08:00 Martin Perina :
>
>> Hi Terry,
>>
>> from the error message below I'd say that you are either not using
>> correct IP address of iLO5 interface or you haven't enabled remote access
>> to your iLO5 interface.
>> According to [1] iLO5 should fully IPMI compatible. So are you sure that
>> you enabled the remote access to your iLO5 address in iLO5 management?
>> Please consult [1] how to enable everything and use a user with at least
>> Operator privileges.
>>
>> Regards
>>
>> Martin
>>
>> [1] https://support.hpe.com/hpsc/doc/public/display?docId=a00018324en_us
>>
>>
>> On Thu, Feb 8, 2018 at 7:57 AM, Terry hey  wrote:
>>
>>> Dear Martin,
>>>
>>> Thank you for helping me. To answer your question,
>>> 1. Does the Test in Edit fence agent dialog work​?
>>> Ans: it shows that "Test failed: Internal JSON-RPC error"
>>>
>>> Regardless the fail result, i press "OK" to enable power management.
>>> There are four event log appear in "Events"
>>> The follwing are the log in
>>> "Event""
>>> Host host01 configuration was updated by admin@internal-authz.
>>> Kdump integration is enabled for host hostv01, but kdump is not
>>> configured properly on host.
>>> Health check on Host host01 indicates that future attempts to Stop this
>>> host using Power-Management are expected to fail.
>>> Health check on Host host01 indicates that future attempts to Start this
>>> host using Power-Management are expected to fail.
>>>
>>> 2. If not could you please try to install fence-agents-all package on
>>> different host and execute?
>>> Ans: It just shows "Connection timed out".
>>>
>>> So, does it means that it is not support iLo5 now or i configure wrongly?
>>>
>>> Regards,
>>> Terry
>>>
>>> 2018-02-02 15:46 GMT+08:00 Martin Perina :
>>>


 On Fri, Feb 2, 2018 at 5:40 AM, Terry hey 
 wrote:

> Dear Martin,
>
> Um..Since i am going to use HPE ProLiant DL360 Gen10 Server to setup
> oVirt Node(Hypervisor). HP G10 is using ilo5 rather than ilo4. Therefore, 
> i
> would like to ask whether oVirt power management support iLO5 or not.
>

 ​We don't have any hardware with iLO5 available, but there is a good
 chance that it will be compatible with iLO4. Have you tried to setup your
 server with iLO4? Does the Test in Edit fence agent dialog work​? If not
 could you please try to install fence-agents-all package on different host
 and execute following:

 ​​
 f
 ​​
 ence_ilo4 -a  -l  -p  -v -o status

 and share the output?

 Thanks

 Martin


> If not, do you have any idea to setup power management with HP G10?
>
> Regards,
> Terry
>
> 2018-02-01 16:21 GMT+08:00 Martin Perina :
>
>>
>>
>> On Wed, Jan 31, 2018 at 11:19 PM, Luca 'remix_tj' Lorenzetto <
>> lorenzetto.l...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> From ilo3 and up, ilo fencing agents are an alias for fence_ipmi.
>>> Try using the standard ipmi.
>>>
>>
>> ​It's not just an alias, ilo3/ilo4 also have different defaults than
>> ipmilan. For example if you use ilo4, then by default following is used:
>>
>> ​
>>
>> ​lanplus=1
>>  power_wait=4
>>
>> ​So I recommend to start with ilo4 and add any necessary custom
>> options into Options field. If you need some custom
>> options, could you please share them with us? It would be very
>> helpful for us, if needed we could introduce ilo5 with
>> different defaults then ilo4
>>
>> Thanks
>>
>> Martin
>>
>>
>>> Luca
>>>
>>>
>>>
>>> Il 31 gen 2018 11:14 PM, "Terry hey"  ha
>>> scritto:
>>>
 Dear all,
 Did oVirt 4.2 Power management support iLO5 as i could not see iLO5
 option in Power Management.

 Regards
 Terry

 

Re: [ovirt-users] Power Management - Supermicro SuperBlade

2018-02-26 Thread Martin Perina
On Sun, Feb 25, 2018 at 7:53 AM, Scott Harvanek 
wrote:

> Hoping someone can help here, I've looked and can't find any examples on
> this.
>
> I've got some SuperBlade chassis and the blades are managed via the
> chassis controller.  What is the proper way to configure power management
> then via the controller? You can control individual blades via the
> SMCIPMItool but I'm not entirely sure how to configure that inside of Ovirt
> for power management, does anyone have any experience on this or can point
> me to some good docs?
>

​According to [1] those servers should support IPMI, so you could try
ipmilan fence agent and most probably try to add lanplus=1 into Options
field of an agent. If it doesn't work as expected, could you please try to
execute below commands and share the output?

fence_ipmilan -a  -l  -p  -P -vvv
-o status

Thanks

Martin


[1] https://www.supermicro.com/products/SuperBlade/management/​



> Cheers!
>
> Scott H.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>


-- 
Martin Perina
Associate Manager, Software Engineering
Red Hat Czech s.r.o.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] VMs stuck in migrating state

2018-02-26 Thread nicolas

Hi,

We're running 4.1.9 and during the weekend we had a storage issue that 
seemed to leave some hosts in an strange state. One of the hosts has 
almost all VMs migrating (although it seems to not actually being 
migrating them) and the migration state cannot be cancelled.


When clicking on one of those machines and selecting 'Cancel migration', 
in the ovirt-engine log I see:


2018-02-26 08:52:07,588Z INFO  
[org.ovirt.engine.core.vdsbroker.vdsbroker.CancelMigrateVDSCommand] 
(org.ovirt.thread.pool-6-thread-36) 
[887dfbf9-dece-4f7b-90a8-dac02b849b7f] HostName = host2.domain.com
2018-02-26 08:52:07,588Z ERROR 
[org.ovirt.engine.core.vdsbroker.vdsbroker.CancelMigrateVDSCommand] 
(org.ovirt.thread.pool-6-thread-36) 
[887dfbf9-dece-4f7b-90a8-dac02b849b7f] Command 
'CancelMigrateVDSCommand(HostName = host2.domain.com, 
CancelMigrationVDSParameters:{runAsync='true', 
hostId='e63b9146-10c4-47ad-bd6c-f053a8c5b4eb', 
vmId='26d37e43-32e2-4e55-9c1e-1438518d5021'})' execution failed: 
VDSGenericException: VDSErrorException: Failed to CancelMigrateVDS, 
error = Migration process cancelled, code = 82


On the vdsm side I see:

2018-02-26 08:56:19,396+ INFO  (jsonrpc/0) [vdsm.api] START 
migrateCancel() from=:::10.X.X.X,54654, 
flow_id=874d36d7-63f5-4b71-8a4d-6d9f3ec65858 (api:46)
2018-02-26 08:56:19,398+ INFO  (jsonrpc/0) [vdsm.api] FINISH 
migrateCancel return={'status': {'message': 'Migration process 
cancelled', 'code': 82}, 'progress': 0} from=:::10.X.X.X,54654, 
flow_id=874d36d7-63f5-4b71-8a4d-6d9f3ec65858 (api:52)


So no error on the vdsm side log.

I already tried restarting ovirt-engine but it didn't work.

Could someone shed some light on how to cancel the migration status for 
these machines? All of them seem to be running on the same host.


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