Re: [ovirt-users] After the export, the import OVA failed

2018-03-06 Thread Oliver Riesener

> Am 07.03.2018 um 00:03 schrieb Arik Hadas :
> 
> 
> 
> On Wed, Mar 7, 2018 at 12:10 AM, Oliver Riesener 
> mailto:oliver.riese...@hs-bremen.de>> wrote:
> Hi Arik, Hi Fabrice,
> 
> i have tried the same procedure with 4.2.1, with same results.
> 
> After commands:
> 
> # mkdir /var/log/ovirt-engine/ova
> # chown ovirt.ovirt /var/log/ovirt-engine/ova
> 
> I can provide log files. See ansible script failed. 
> 
> /export/ovirt/export/xx is the correct directory where i have extracted the 
> *.ova file because the UI search for *.ovf file and didn’t recognize *.ova 
> files directly ? 
> 
> Thanks for providing the logs.
> We don't support OVA directory with content (OVF, disks) that was created by 
> oVirt yet (it only works with content that was created by VMware).
> The OVA tar file should not be extracted and the path to the OVA should 
> include the filename, e.g., /export/ovirt/export/xx/my.ova

With the fullname to *.ova, the VM is importable. yeah!

> If you pack the directory's content into an OVA file, please note that the 
> OVF should be placed at the first entry.
> 
> There is a bug about changing 'path' to something like 'path to ova file' in 
> the import dialog [1], I may add a validation for that as well until we'll 
> also support the OVA directory format.
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1547636 
> 
At this point, path is ok, but *.ova should be **browsed** too.

>  
> 
> Please see attachments:
> 
> Cheers
> Olri
> 
> 
> 
> 
> 
>> Am 06.03.2018 um 19:25 schrieb Fabrice SOLER > >:
>> 
>> Hi, 
>> 
>> I have deleted the VM amon and tried to import the OVA. It does not work.
>> I think there is a problem in the ovf file (XML format) like I posted in the 
>> precedente mail :
>> 
>> I constated that the ovf format is not the same when I made the export ova 
>> with vmware and ovirt.
>> 
>> Export ova with vmware :
>> 
>> [root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf
>> AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, with CRLF 
>> line terminators
>> 
>> Export ova with ovirt :
>> [root@ovirt-eple amon]# file vm.ovf
>> vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line 
>> terminators
>> 
>> With Ovirt there is no line terminators.
>> 
>> Is that normal ? Is that why the OVA import does not work ?
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Le 06/03/2018 à 12:11, Oliver Riesener a écrit :
>>> Hi Fabrice,
>>> try to rename the already existing old VM to another name like amon-old.
>>> The import the OVA machine again.
>>> 
>>> On 06.03.2018 15:33, Fabrice SOLER wrote:
 Hello,
 
 I have upgraded the engine and the node, so the version is : 
 4.2.1.1.1-1.el7
 To import, I made a "tar xvf file.ova".
 Then from the portal, I import the VM
 
 
 I saw that :
 
 
 
 After that the amon was removed as we can see in the events  :
 
 
 
 It seems it does not work. Maybe the VM is hide somewhere ?
 
 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 
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] After the export, the import OVA failed

2018-03-06 Thread Arik Hadas
On Wed, Mar 7, 2018 at 12:10 AM, Oliver Riesener <
oliver.riese...@hs-bremen.de> wrote:

> Hi Arik, Hi Fabrice,
>
> i have tried the same procedure with 4.2.1, with same results.
>
> After commands:
>
> # mkdir /var/log/ovirt-engine/ova
> # chown ovirt.ovirt /var/log/ovirt-engine/ova
>
> I can provide log files. See ansible script failed.
>
> /export/ovirt/export/xx is the correct directory where i have extracted
> the *.ova file because the UI search for *.ovf file and didn’t recognize
> *.ova files directly ?
>

Thanks for providing the logs.
We don't support OVA directory with content (OVF, disks) that was created
by oVirt yet (it only works with content that was created by VMware).
The OVA tar file should not be extracted and the path to the OVA should
include the filename, e.g., /export/ovirt/export/xx/my.ova

If you pack the directory's content into an OVA file, please note that the
OVF should be placed at the first entry.

There is a bug about changing 'path' to something like 'path to ova file'
in the import dialog [1], I may add a validation for that as well until
we'll also support the OVA directory format.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1547636


>
> Please see attachments:
>
> Cheers
> Olri
>
>
>
>
>
> Am 06.03.2018 um 19:25 schrieb Fabrice SOLER  fr>:
>
> Hi,
>
> I have deleted the VM amon and tried to import the OVA. It does not work.
> I think there is a problem in the ovf file (XML format) like I posted in
> the precedente mail :
>
> *I constated that the ovf format is not the same when I made the export
> ova with vmware and ovirt.*
>
> * Export ova with vmware :*
>
> * [root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf*
> * AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, with
> CRLF line terminators*
>
> * Export ova with ovirt :*
> * [root@ovirt-eple amon]# file vm.ovf*
> * vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line
> terminators*
>
> * With Ovirt there is no line terminators.*
>
> * Is that normal ? Is that why the OVA import does not work ?*
>
>
>
>
>
>
>
> Le 06/03/2018 à 12:11, Oliver Riesener a écrit :
>
> Hi Fabrice,
> try to rename the already existing old VM to another name like amon-old.
> The import the OVA machine again.
>
> On 06.03.2018 15:33, Fabrice SOLER wrote:
>
> Hello,
>
> I have upgraded the engine and the node, so the version is :
> 4.2.1.1.1-1.el7
> To import, I made a "tar xvf file.ova".
> Then from the portal, I import the VM
>
> 
> I saw that :
>
> 
>
> After that the amon was removed as we can see in the events  :
>
> 
>
> It seems it does not work. Maybe the VM is hide somewhere ?
>
> Sincerely,
>
>
> 
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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] After the export, the import OVA failed

2018-03-06 Thread Oliver Riesener
Hi Arik, Hi Fabrice,i have tried the same procedure with 4.2.1, with same results.After commands:# mkdir /var/log/ovirt-engine/ova# chown ovirt.ovirt /var/log/ovirt-engine/ovaI can provide log files. See ansible script failed. /export/ovirt/export/xx is the correct directory where i have extracted the *.ova file because the UI search for *.ovf file and didn’t recognize *.ova files directly ? Please see attachments:CheersOlri

ovirt-4.2.1-failed-to-import-OVA.engine.log
Description: Binary data


ovirt-import-ova-ansible-20180306223007-ovn-elem.example.org-45e9a51.log
Description: Binary data


ovirt-query-ova-ansible-20180306222952-ovn-elem.example.org.log
Description: Binary data
Am 06.03.2018 um 19:25 schrieb Fabrice SOLER :
  

  
  
Hi, 
  
  I have deleted the VM amon and tried to import the OVA. It does
  not work.
  I think there is a problem in the ovf file (XML format) like I
  posted in the precedente mail :
  
  I constated that the ovf format is not the same when I made
  the export ova with vmware and ovirt.
 
 Export ova with vmware :
 
 [root@eple-rectorat-proto AntiVirus]# file
  AntiVirus.ovf
 AntiVirus.ovf: XML 1.0 document, ASCII text, with
  very long lines, with CRLF line terminators
 
 Export ova with ovirt :
 [root@ovirt-eple amon]# file vm.ovf
 vm.ovf: XML 1.0 document, ASCII text, with very
  long lines, with no line terminators
 
 With Ovirt there is no line terminators.
 
 Is that normal ? Is that why the OVA import does
  not work ?
  
  
  
  
  
  
  
  Le 06/03/2018 à 12:11, Oliver Riesener a écrit :


  
  Hi Fabrice,
  try to rename the already existing old VM to another name like
  amon-old.
  The import the OVA machine again.
  
  On 06.03.2018 15:33, Fabrice SOLER
wrote:
  
  

Hello,
  
  I have upgraded the engine and the node, so the version is :
  4.2.1.1.1-1.el7
  To import, I made a "tar xvf file.ova".
  Then from the portal, I import the VM
  
  
  I saw that :
  
  
  
  After that the amon was removed as we can see in the events  :
  
  
  
  It seems it does not work. Maybe the VM is hide somewhere ?
  
  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] Unremovable disks created through the API

2018-03-06 Thread Richard W.M. Jones
On Tue, Mar 06, 2018 at 11:14:40PM +0200, Arik Hadas wrote:
> On Tue, Mar 6, 2018 at 9:18 PM, Richard W.M. Jones 
> wrote:
> 
> >
> > I've been playing with disk uploads through the API.  As a result
> > I now have lots of disks in the states "Paused by System" and
> > "Paused by User".  They are not attached to any VM, and I'm logged
> > in as admin@internal, but there seems to be no way to use them.
> > Even worse I've now run out of space so can't do anything else.
> >
> > How can I remove them?
> 
> 
> > Screenshot: http://oirase.annexia.org/tmp/ovirt.png
> 
> 
> Hi Richard,
> 
> Selecting Upload->Cancel at that tab will remove such a disk.
> Note that it may take a minute or two.

Yes, that works, thanks.

Rich.

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


Re: [ovirt-users] Unremovable disks created through the API

2018-03-06 Thread Arik Hadas
On Tue, Mar 6, 2018 at 9:18 PM, Richard W.M. Jones 
wrote:

>
> I've been playing with disk uploads through the API.  As a result
> I now have lots of disks in the states "Paused by System" and
> "Paused by User".  They are not attached to any VM, and I'm logged
> in as admin@internal, but there seems to be no way to use them.
> Even worse I've now run out of space so can't do anything else.
>
> How can I remove them?


> Screenshot: http://oirase.annexia.org/tmp/ovirt.png


Hi Richard,

Selecting Upload->Cancel at that tab will remove such a disk.
Note that it may take a minute or two.


>
>
> It's a pretty recent engine:
>
> ovirt-engine-4.2.2.2-0.0.master.20180225172203.
> gitd7cf125.el7.centos.noarch
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~
> rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
> ___
> 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] After the export, the import OVA failed

2018-03-06 Thread Arik Hadas
On Tue, Mar 6, 2018 at 10:23 PM, Fabrice SOLER  wrote:

> Hello,
>
> I have imported a VM with OVA created with VMware and it works !
>

That's great, but note that importing an OVA that was created by VMware is
totally different than importing an OVA that was created by oVirt
implementation-wise.


> So, the problem is in the export ! The vm.ovf has no line terminators,
> that why it does not work !
>
> * [root@ovirt-eple amon]# file vm.ovf*
> * vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line
> terminators*
>
> Is there somebody would know a solution ?
>

I'm afraid that's not the issue here - the OVF inside the OVA seems valid
(otherwise, the UI would have failed to "load" the configuration from the
OVA file).
You may be facing one of the various issues that were already resolved and
will be available in 4.2.2, but it's hard to tell without having the logs.
If you can share the engine+ansible logs, we will gladly look at them and
try to shed more light on the issue you're facing.
Otherwise, I would suggest to wait for 4.2.2 where the new OVA support is
much more mature.


>
> Sincerely,
> Fabrice SOLER
>
>
>
> Le 06/03/2018 à 14:25, Fabrice SOLER a écrit :
>
> Hi,
>
> I have deleted the VM amon and tried to import the OVA. It does not work.
> I think there is a problem in the ovf file (XML format) like I posted in
> the precedente mail :
>
> *I constated that the ovf format is not the same when I made the export
> ova with vmware and ovirt.*
>
> * Export ova with vmware :*
>
> * [root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf*
> * AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, with
> CRLF line terminators*
>
> * Export ova with ovirt :*
> * [root@ovirt-eple amon]# file vm.ovf*
> * vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line
> terminators*
>
> * With Ovirt there is no line terminators.*
>
> * Is that normal ? Is that why the OVA import does not work ?*
>
>
>
>
>
>
>
> Le 06/03/2018 à 12:11, Oliver Riesener a écrit :
>
> Hi Fabrice,
> try to rename the already existing old VM to another name like amon-old.
> The import the OVA machine again.
>
> On 06.03.2018 15:33, Fabrice SOLER wrote:
>
> Hello,
>
> I have upgraded the engine and the node, so the version is :
> 4.2.1.1.1-1.el7
> To import, I made a "tar xvf file.ova".
> Then from the portal, I import the VM
>
>
> I saw that :
>
>
>
> After that the amon was removed as we can see in the events  :
>
>
>
> It seems it does not work. Maybe the VM is hide somewhere ?
>
> Sincerely,
>
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>
>
> --
>
>
> ___
> Users mailing listUsers@ovirt.orghttp://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] After the export, the import OVA failed

2018-03-06 Thread Fabrice SOLER

Hello,

I have imported a VM with OVA created with VMware and it works !
So, the problem is in the export ! The vm.ovf has no line terminators, 
that why it does not work !

*/
/**/[root@ovirt-eple amon]# file vm.ovf/**/
/**/vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no 
line terminators/**/

/*
Is there somebody would know a solution ?

Sincerely,
Fabrice SOLER


Le 06/03/2018 à 14:25, Fabrice SOLER a écrit :

Hi,

I have deleted the VM amon and tried to import the OVA. It does not work.
I think there is a problem in the ovf file (XML format) like I posted 
in the precedente mail :


*/I constated that the ovf format is not the same when I made the 
export ova with vmware and ovirt./**/

/**//**/
/**/Export ova with vmware :/**/
/**//**/
/**/[root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf/**/
/**/AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, 
with CRLF line terminators/**/

/**//**/
/**/Export ova with ovirt :/**/
/**/[root@ovirt-eple amon]# file vm.ovf/**/
/**/vm.ovf: XML 1.0 document, ASCII text, with very long lines, with 
no line terminators/**/

/**//**/
/**/With Ovirt there is no line terminators./**/
/**//**/
/**/Is that normal ? Is that why the OVA import does not work ?/*/
/






Le 06/03/2018 à 12:11, Oliver Riesener a écrit :

Hi Fabrice,
try to rename the already existing old VM to another name like amon-old.
The import the OVA machine again.

On 06.03.2018 15:33, Fabrice SOLER wrote:

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events :



It seems it does not work. Maybe the VM is hide somewhere ?

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



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


[ovirt-users] Unremovable disks created through the API

2018-03-06 Thread Richard W.M. Jones

I've been playing with disk uploads through the API.  As a result
I now have lots of disks in the states "Paused by System" and
"Paused by User".  They are not attached to any VM, and I'm logged
in as admin@internal, but there seems to be no way to use them.
Even worse I've now run out of space so can't do anything else.

How can I remove them?

Screenshot: http://oirase.annexia.org/tmp/ovirt.png

It's a pretty recent engine:

ovirt-engine-4.2.2.2-0.0.master.20180225172203.gitd7cf125.el7.centos.noarch

Rich.

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


Re: [ovirt-users] Pre-snapshot scripts to run before live snapshot

2018-03-06 Thread Yaniv Kaul
On Mar 6, 2018 7:02 PM, "Gianluca Cecchi"  wrote:

Hello,
this thread last year (started by me... ;-) was very useful in different
aspects involved

http://lists.ovirt.org/pipermail/users/2017-March/080322.html

We did cover memory save or not and fsfreeze automatically done by guest
agent if installed inside the VM.
What about pre-snapshot scripts/operations to run inside guest, to have
application consistency?
Eg if I have a database inside the VM and I have scripted my backup job
involving live-snapshot (eg with the backup.py utility of the thread)


https://github.com/guillon/qemu-plugins/blob/master/scripts/qemu-guest-agent/fsfreeze-hook.d/mysql-flush.sh.sample

Y.


Can I leverage this kind of functionality with the oVirt guest agent?
Or is it mandatory to consider a remote connection to the VM (via ssh or
what for windows?) and execute the script/command/bat file?

What are you curently doing in this respect?

Thanks,

Gianluca

___
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] After the export, the import OVA failed

2018-03-06 Thread Fabrice SOLER

Hi,

I have deleted the VM amon and tried to import the OVA. It does not work.
I think there is a problem in the ovf file (XML format) like I posted in 
the precedente mail :


*/I constated that the ovf format is not the same when I made the export 
ova with vmware and ovirt./**/

/**//**/
/**/Export ova with vmware :/**/
/**//**/
/**/[root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf/**/
/**/AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, 
with CRLF line terminators/**/

/**//**/
/**/Export ova with ovirt :/**/
/**/[root@ovirt-eple amon]# file vm.ovf/**/
/**/vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no 
line terminators/**/

/**//**/
/**/With Ovirt there is no line terminators./**/
/**//**/
/**/Is that normal ? Is that why the OVA import does not work ?/*/
/






Le 06/03/2018 à 12:11, Oliver Riesener a écrit :

Hi Fabrice,
try to rename the already existing old VM to another name like amon-old.
The import the OVA machine again.

On 06.03.2018 15:33, Fabrice SOLER wrote:

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

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] How to setup users to see a subset of VMs in oVirt

2018-03-06 Thread Derek Atkins
Hi,

Jean Pickard  writes:

> Hello,
> I need to create user accounts in oVirt that can only manage a specific set of
> VMs and I don't want them to see any other ones.
> example:
> User1 can only see VM1, VM2, VM3, VM4
> User2 can only see VM5, VM6, VM7
> Admin can see all of them.
> How do I accomplish this?

Just set the permissions on the VMs.
It works quite well.

> Thank you,
>
> Payman Vazinkhoo

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Power off VM from VM portal

2018-03-06 Thread Derek Atkins
Hi,

Alexandr Krivulya  writes:

> Hi,
>
> is there any way to power off VM from VM portal (4.2.1.7)? I can't
> find "power off" button, just "shutdown".

I don't know about 4.2, but in 4.1 and 4.0 there is a right-click
context menu that gives you access to the Power Off feature.  If that
doesn't work (ISTR disucssion about removing that context menu), then
there must be a different way to access it now.

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Pre-snapshot scripts to run before live snapshot

2018-03-06 Thread Gianluca Cecchi
Hello,
this thread last year (started by me... ;-) was very useful in different
aspects involved

http://lists.ovirt.org/pipermail/users/2017-March/080322.html

We did cover memory save or not and fsfreeze automatically done by guest
agent if installed inside the VM.
What about pre-snapshot scripts/operations to run inside guest, to have
application consistency?
Eg if I have a database inside the VM and I have scripted my backup job
involving live-snapshot (eg with the backup.py utility of the thread)

Can I leverage this kind of functionality with the oVirt guest agent?
Or is it mandatory to consider a remote connection to the VM (via ssh or
what for windows?) and execute the script/command/bat file?

What are you curently doing in this respect?

Thanks,

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


Re: [ovirt-users] After the export, the import OVA failed

2018-03-06 Thread Fabrice SOLER

Hello,

I constated that the ovf format is not the same when I made the export 
ova with vmware and ovirt.


Export ova with vmware :

[root@eple-rectorat-proto AntiVirus]# file AntiVirus.ovf
AntiVirus.ovf: XML 1.0 document, ASCII text, with very long lines, with 
CRLF line terminators


Export ova with ovirt :
[root@ovirt-eple amon]# file vm.ovf
vm.ovf: XML 1.0 document, ASCII text, with very long lines, with no line 
terminators


With Ovirt there is no line terminators.

Is that normal ? Is that why the OVA import does not work ?

Sincerely,

Fabrice SOLER


Le 06/03/2018 à 10:33, Fabrice SOLER a écrit :

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

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


Re: [ovirt-users] After the export, the import OVA failed

2018-03-06 Thread Oliver Riesener

Hi Fabrice,
try to rename the already existing old VM to another name like amon-old.
The import the OVA machine again.

On 06.03.2018 15:33, Fabrice SOLER wrote:

Hello,

I have upgraded the engine and the node, so the version is : 
4.2.1.1.1-1.el7

To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

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


Re: [ovirt-users] Power off VM from VM portal

2018-03-06 Thread Nicolas Ecarnot

Le 06/03/2018 à 16:02, Alexandr Krivulya a écrit :

Hi,

is there any way to power off VM from VM portal (4.2.1.7)? I can't find 
"power off" button, just "shutdown".



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


Hello Alexandr,

After having clicked on the VM link, you'll notice that on the right of 
the Shutdown button is an arrow allowing you to access to the Power Off 
feature.


Regards,

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


[ovirt-users] Power off VM from VM portal

2018-03-06 Thread Alexandr Krivulya

Hi,

is there any way to power off VM from VM portal (4.2.1.7)? I can't find 
"power off" button, just "shutdown".



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


Re: [ovirt-users] Failure to upgrade Cluster Compatibility Version

2018-03-06 Thread Alexander Wels
On Tuesday, March 6, 2018 9:20:21 AM EST Jonathan Mathews wrote:
> Any chance of getting feedback on this?
> 
> It is becoming urgent.

If you hover over the label it should display a pop-up with the reason why its 
red.


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


Re: [ovirt-users] Failure to upgrade Cluster Compatibility Version

2018-03-06 Thread Michal Skrivanek


> On 28 Feb 2018, at 11:21, Jonathan Mathews  wrote:
> 
> I have been upgrading my oVirt platform from 3.4 and I am trying to get to 
> 4.2.
> 
> I have managed to get the platform to 3.6, but need to upgrade the Cluster 
> Compatibility Version.
> 
> When I select 3.6 in the Cluster Compatibility Version and select OK, it 
> highlights Compatibility Version in red, (image attached).
> 
> There are no errors been displayed on screen, or in the 
> /var/log/ovirt-engine/engine.log file.
> 
> Please let me know if I am missing something and how I can resolve this?

Hi,
well, screenshot’s not really enough to uderstand what exactly are you trying 
to do
Is that in 3.6 engine? Latest 3.6? Do you have any VMs running? Can you share 
that engine.log?

Thanks,
michal


> 
> Thanks
> Jonathan
> ___
> 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] After the export, the import OVA failed

2018-03-06 Thread Fabrice SOLER

Hello,

I have upgraded the engine and the node, so the version is : 4.2.1.1.1-1.el7
To import, I made a "tar xvf file.ova".
Then from the portal, I import the VM


I saw that :



After that the amon was removed as we can see in the events  :



It seems it does not work. Maybe the VM is hide somewhere ?

Sincerely,


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


Re: [ovirt-users] Failure to upgrade Cluster Compatibility Version

2018-03-06 Thread Jonathan Mathews
Any chance of getting feedback on this?

It is becoming urgent.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt Node 4.2.1 on 2 node : problem with ha broker and HE storage

2018-03-06 Thread Simone Tiraboschi
On Mon, Mar 5, 2018 at 10:56 PM, Nicolas Vaye 
wrote:

> Hello,
>
>
> I'd installed oVirt Node 4.2.1 on two host, i'd deployed HE on the first,
> via a storage NFS.
> The administration portal seem to be OK but i can't see the HE VM, the
> portal indicate there is one VM, but impossible to get it into the list of
> the VM.
> I can't see the storage that host the HE-VM too.
> Where is the problem ?
>

Did you deployed with the vintage --noansible flow?
In that case you explicitly have to add another SD before the auto import
process can be started.


>
> I'd added the second host into the cluster and i haven't the option to
> deploy the HE into it during the "add Host" operation.
> After added the second node, i can put into maintenance mode and then
> reinstall with the option DEPLOY for HE but the result is :
> "Cannot edit Host. You are using an unmanaged hosted engine VM. Please add
> the first storage domain in order to start the hosted engine import
> process."
>
>
>
> The logs for the first node indicate this error (very often, every ~
> 30sec) below :
>
> ovirt-ha-broker 
> ovirt_hosted_engine_ha.broker.status_broker.StatusBroker.Update
> ERROR Failed to read state. Traceback (most recent call last): File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/status_broker.py",
> line 88, in run self._storage_broker.get_raw_stats() File
> "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py",
> line 162, in get_raw_stats .format(str(e))) RequestError: failed to read
> metadata: [Errno 2] No such file or directory: '/var/run/vdsm/storage/
> e906ea1d-a5ee-4ea9-838c-bcb4a8b866ff/f1ccdaaf-4682-4d68-9c27-751d54f101a6/
> 13fb32ec-0463-45d4-925a-b557c1dc803f'
>
> With this problem, i can't move the HE vm on the second host. so there is
> no HA.
>
> Thanks.
>
>
> Nicolas VAYE
> ___
> 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] Importing VM fails with "No space left on device"

2018-03-06 Thread Nicolas Ecarnot

Hello,

When importing a VM, I'm facing the know bug :
https://access.redhat.com/solutions/2770791

QImgError: ecode=1, stdout=[], stderr=['qemu-img: error while writing 
sector 93569024: No space left on device'


The difference between my case and what is described in the RH webpage 
is that I have no "Failed to flush the refcount block cache".


Here is what I see :


ecfbd1a4-f9d2-463a-ade6-def5bd217b43::DEBUG::2018-03-06 
09:57:36,460::utils::718::root::(watchCmd) FAILED:  = ['qemu-img: error while 
writing sector 205517952: No space left on device'];  = 1
ecfbd1a4-f9d2-463a-ade6-def5bd217b43::ERROR::2018-03-06 09:57:36,460::image::865::Storage.Image::(copyCollapsed) conversion failure for volume ac08bc8d-1eea-449a-a102-cf763c6726c8 
Traceback (most recent call last):

  File "/usr/share/vdsm/storage/image.py", line 860, in copyCollapsed
volume.fmt2str(dstVolFormat))
  File "/usr/lib/python2.7/site-packages/vdsm/qemuimg.py", line 207, in convert
raise QImgError(rc, out, err)
QImgError: ecode=1, stdout=[], stderr=['qemu-img: error while writing sector 
205517952: No space left on device'], message=None
ecfbd1a4-f9d2-463a-ade6-def5bd217b43::ERROR::2018-03-06 
09:57:36,461::image::878::Storage.Image::(copyCollapsed) Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/image.py", line 866, in copyCollapsed
raise se.CopyImageError(str(e))
CopyImageError: low level Image copy failed: ("ecode=1, stdout=[], 
stderr=['qemu-img: error while writing sector 205517952: No space left on device'], 
message=None",)


I followed the advices in the RH webpage (check if the figures are 
correct between the qemu-img sizes and the meta-data file), and they 
seem to be correct :


root@serv-hv-adm30:/etc# qemu-img info 
/rhev/data-center/mnt/serv-lin-adm1.sdis.isere.fr\:_home_vmexport3/be2878c9-2c46-476b-bfae-8b02a4679022/images/a5d68d88-3b54-488d-a61e-7995a1906994/ac08bc8d-1eea-449a-a102-cf763c6726c8
image: 
/rhev/data-center/mnt/serv-lin-adm1.sdis.isere.fr:_home_vmexport3/be2878c9-2c46-476b-bfae-8b02a4679022/images/a5d68d88-3b54-488d-a61e-7995a1906994/ac08bc8d-1eea-449a-a102-cf763c6726c8

file format: qcow2
virtual size: 98G (105226698752 bytes)
disk size: 97G
cluster_size: 65536
Format specific information:
compat: 0.10
refcount bits: 16

root@serv-hv-adm30:/etc# cat 
/rhev/data-center/mnt/serv-lin-adm1.sdis.isere.fr\:_home_vmexport3/be2878c9-2c46-476b-bfae-8b02a4679022/images/a5d68d88-3b54-488d-a61e-7995a1906994/ac08bc8d-1eea-449a-a102-cf763c6726c8.meta 
DOMAIN=be2878c9-2c46-476b-bfae-8b02a4679022

CTIME=1520318755
FORMAT=COW
DISKTYPE=1
LEGALITY=LEGAL
SIZE=205520896
VOLTYPE=LEAF
DESCRIPTION=
IMAGE=a5d68d88-3b54-488d-a61e-7995a1906994
PUUID=----
MTIME=0
POOL_UUID=
TYPE=SPARSE
EOF


So I don't see what's wrong?

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


Re: [ovirt-users] Cannot activate storage domain

2018-03-06 Thread Shani Leviim
Hi Simone,

Can you please share your vdsm and engine logs?


*Regards,*

*Shani Leviim*

On Tue, Mar 6, 2018 at 7:34 AM, Bruckner, Simone <
simone.bruck...@fabasoft.com> wrote:

> Hello, I apologize for bringing this one up again, but does anybody know
> if there is a change to recover a storage domain, that cannot be activated?
>
>
>
> Thank you,
>
> Simone
>
>
>
> *Von:* users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] *Im
> Auftrag von *Bruckner, Simone
> *Gesendet:* Freitag, 2. März 2018 17:03
>
> *An:* users@ovirt.org
> *Betreff:* Re: [ovirt-users] Cannot activate storage domain
>
>
>
> Hi all,
>
>
>
>   I managed to get the inactive storage domain to maintenance by stopping
> all running VMs that were using it, but I am still not able to activate it.
>
>
>
> Trying to activate results in the following events:
>
>
>
> For each host:
>
> VDSM  command GetVGInfoVDS failed: Volume Group does not exist:
> (u'vg_uuid: 813oRe-64r8-mloU-k9G2-LFsS-dXSG-hpN4kf',)
>
>
>
> And finally:
>
> VDSM command ActivateStorageDomainVDS failed: Storage domain does not
> exist: (u'b83c159c-4ad6-4613-ba16-bab95ccd10c0',)
>
>
>
> Is there anything I can do to recover this storage domain?
>
>
>
> Thank you and all the best,
>
> Simone
>
>
>
> *Von:* users-boun...@ovirt.org [mailto:users-boun...@ovirt.org
> ] *Im Auftrag von *Bruckner, Simone
> *Gesendet:* Donnerstag, 1. März 2018 17:57
> *An:* users@ovirt.org
> *Betreff:* Re: [ovirt-users] Cannot activate storage domain
>
>
>
> Hi,
>
>
>
>   we are still struggling getting a storage domain online again. We tried
> to put the storage domain in maintenance mode, that led to “Failed to
> update OVF disks 809cc8d7-7687-46cf-a342-3be48674a9b3, OVF data isn't
> updated on those OVF stores”.
>
>
>
> Trying again with ignoring OVF update failures put the storage domain in
> “preparing for maintenance”. We see the following message on all hosts:
> “Error releasing host id 26 for domain b83c159c-4ad6-4613-ba16-bab95ccd10c0
> (monitor:578)”.
>
>
>
> Querying the storage domain using vdsm-client on the SPM resulted in
>
> # vdsm-client StorageDomain getInfo "storagedomainID"="b83c159c-
> 4ad6-4613-ba16-bab95ccd10c0"
>
> vdsm-client: Command StorageDomain.getInfo with args {'storagedomainID':
> 'b83c159c-4ad6-4613-ba16-bab95ccd10c0'} failed:
>
> (code=358, message=Storage domain does not exist:
> (u'b83c159c-4ad6-4613-ba16-bab95ccd10c0',))
>
>
>
> Any ideas?
>
>
>
> Thank you and all the best,
>
> Simone
>
>
>
> *Von:* users-boun...@ovirt.org [mailto:users-boun...@ovirt.org
> ] *Im Auftrag von *Bruckner, Simone
> *Gesendet:* Mittwoch, 28. Februar 2018 15:52
> *An:* users@ovirt.org
> *Betreff:* [ovirt-users] Cannot activate storage domain
>
>
>
> Hi all,
>
>
>
>   we run a small oVirt installation that we also use for automated testing
> (automatically creating, dropping vms).
>
>
>
> We got an inactive FC storage domain that we cannot activate any more. We
> see several events at that time starting with:
>
>
>
> VM perftest-c17 is down with error. Exit message: Unable to get volume
> size for domain b83c159c-4ad6-4613-ba16-bab95ccd10c0 volume
> 686376c1-4be1-44c3-89a3-0a8addc8fdf2.
>
>
>
> Trying to activate the strorage domain results in the following alert
> event for each host:
>
>
>
> VDSM  command GetVGInfoVDS failed: Volume Group does not exist:
> (u'vg_uuid: 813oRe-64r8-mloU-k9G2-LFsS-dXSG-hpN4kf',)
>
>
>
> And after those messages from all hosts we get:
>
>
>
> VDSM command ActivateStorageDomainVDS failed: Storage domain does not
> exist: (u'b83c159c-4ad6-4613-ba16-bab95ccd10c0',)
>
> Failed to activate Storage Domain VMHOST_LUN_205 (Data Center Production)
> by 
>
> Invalid status on Data Center Production. Setting status to Non Responsive.
>
> Storage Pool Manager runs on Host vmhost003.fabagl.fabasoft.com (Address:
> vmhost003.fabagl.fabasoft.com), Data Center Production.
>
>
>
> Checking the hosts with multipath –ll we see the LUN without errors.
>
>
>
> We run oVirt 4.2.1 on CentOS 7.4. Hosts are CentOS 7.4 hosts with oVirt
> installed using oVirt engine.
>
> Hosts are connected to about 30 FC LUNs (8 TB each) on two all-flash
> storage arrays.
>
>
>
> Thank you,
>
> Simone Bruckner
>
>
>
>
>
>
>
> ___
> 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] How to setup users to see a subset of VMs in oVirt

2018-03-06 Thread Ondra Machacek

On 03/06/2018 12:03 AM, Jean Pickard wrote:

Hello,
I need to create user accounts in oVirt that can only manage a specific 
set of VMs and I don't want them to see any other ones.

example:
User1 can only see VM1, VM2, VM3, VM4
User2 can only see VM5, VM6, VM7
Admin can see all of them.
How do I accomplish this?


Maybe this can help you:

 http://lists.ovirt.org/pipermail/users/2018-March/087432.html



Thank you,

Payman Vazinkhoo


___
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] Users/Groups Permissions

2018-03-06 Thread Ondra Machacek

On 03/05/2018 10:42 AM, markus.schauf...@ooe.gv.at wrote:

Hi!

Still new to oVirt and got another question:

I have many Windows and Linux VMs and created for each the Windows and 
Linux machines two Usergroups (limited and admins).


Now I want to grant the groups according permissions to according VMs. 
How can I do this without clicking through every VM manually (e.g. by 
mark several vms in the UI and manage their permissions or via CLI)?


You can use our Python SDK, please see below example:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/assign_permission_to_vms.py

Or you can use Ansible if you are familiar with it:


http://docs.ansible.com/ansible/latest/ovirt_permissions_module.html#examples

The playbook would look like:

 ---
- hosts: localhost
  connection: local
  vars:
 username: admin@internal
 password: thepassowrd
 insecure: True
 url: https://ovirt.example.com/ovirt-engine/api

  tasks:
  - name: Obtain SSO token
ovirt_auth:
  url: "{{ url }}"
  username: "{{ username }}"
  password: "{{ password }}"
  insecure: "{{ insecure }}"

  - name: Add permissions to user
ovirt_permissions:
  auth: "{{ ovirt_auth }}"
  user_name: user2
  authz_name: internal-authz
  object_type: vm
  object_name: "{{ item }}"
  role: UserVmManager
with_items:
  - myvm1
  - myvm2
  - myvm3

  - name: Revoke SSO token
ovirt_auth:
  state: absent
  ovirt_auth: "{{ ovirt_auth }}"



Many thanks in advance,

*Markus Schaufler, MSc*

Amt der Oö. Landesregierung
Direktion Präsidium

Abteilung Informationstechnologie

Referat ST3 Server

A-4021 Linz, Kärntnerstraße 16

*Tel.:*+43 (0)732 7720 – 13138

*Fax:*+43 (0)732 7720 - 213255

*email:*markus.schauf...@ooe.gv.at 

*Internet:*www.land-oberoesterreich.gv.at 



*DVR:*0069264

Der Austausch von Nachrichten mit o.a. Absender via e-mail dient 
ausschließlich Informationszwecken.
Rechtsgültige Erklärungen dürfen über dieses Medium nur an das 
offizielle Postfach it.p...@ooe.gv.at  
übermittelt werden.




___
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