Re: [ovirt-users] problem adding new host to ovirt 4.2

2018-02-25 Thread Yaniv Kaul
On Sat, Feb 24, 2018 at 9:32 AM, Joop van de Wege  wrote:

> On February 24, 2018 7:10:00 AM GMT+01:00, Aristos Vasiliou <
> aris...@aristos.net> wrote:
> >Hi,
> >
> >
> >
> >I've set up a couple of machines to test out ovirt.
> >
> >
> >
> >1.   centos 7 machine running ovirt 4.2 (kvm-manager)
> >
> >2.   centos 7 machine running libvirt (kvm-server)
> >
> >
> >
> >Using the ovirt web interface, I am trying to add a host (machine
> >number 2).
> >I define the IP, user, pass, click OK, and again OK, confirming I don't
> >want
> >to use power management. The status of the new host is now "Installing"
> >and
> >after a few seconds becomes "Install failed"
> >
> >
> >
> >I have a couple of error messages in the Events tab:
> >
> >
> >
> >-  An error has occurred during installation of Host
> >kvm-server:
> >Failed to execute stage 'Setup validation': Cannot locate ovirt-host
> >package, possible cause is incorrect channels.
> >
> >-  Host kvm-server installation failed. Command returned
> >failure
> >code 1 during SSH session 'r...@kvm-server.home.local'.
> >
> Looks like it's missing the ovirt repo on the kvm server.
>

Correct. I'm wondering if there's an easy way to check for an existence of
a repo, thus providing a more concrete error message to the user.
I think yum repolist might be useful, but I don't like it use of a free
text (instead of the URL or some canonical ID for a repo...)
Y.


>
> Regards,
>
> Jooo
>
>
> ___
> 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] Ghost Snapshot Disk

2018-02-25 Thread Lionel Caignec
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


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

2018-02-25 Thread Ondra Machacek

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] oVirt Survey 2018 results

2018-02-25 Thread Yaniv Lavi
YANIV LAVI

SENIOR TECHNICAL PRODUCT MANAGER

Red Hat Israel Ltd. 

34 Jerusalem Road, Building A, 1st floor

Ra'anana, Israel 4350109

yl...@redhat.comT: +972-9-7692306/8272306 F: +972-9-7692223IM: ylavi
  TRIED. TESTED. TRUSTED. 
@redhatnews    Red Hat
   Red Hat



On Sun, Feb 25, 2018 at 4:00 PM, Yaniv Lavi  wrote:

> Some notes that may help the users based on the replies on the survey
> (based on latest 4.2):
>
> - ISO upload to storage domain is supported (UI/API). Can be used just
> like disk upload and it supports quota based on the disk used.
>
> - You now have partial incremental backup support with download/upload API
> (at long as the snapshot still exists):
>https://ovirt.org/develop/release-management/features/
> storage/backup-restore-disk-snapshots/
>
> - You can now download/upload VMs from data storage domains.
>
> Correction:


> - VM keep their compatibility version after cluster version upgrade, so it
> is ok to not restart in upgrade (at least until CentOS 8).
>
> - Ceph can be used with ISCSI target with oVirt.
>
> - macspoofing hook is not really needed in oVirt 4.x, this is a supported
> feature that can be used in vNIC profiles.
>
> - Some of the users change migration settings in VDSM. This is not really
> needed with oVirt 4.2 and migration policies which less error prone and
> more advanced.
>
> Hope this helps some of you.
>
>
> Thanks!
>
>
> YANIV LAVI
>
> SENIOR TECHNICAL PRODUCT MANAGER
>
> Red Hat Israel Ltd. 
>
> 34 Jerusalem Road, Building A, 1st floor
>
> Ra'anana, Israel 4350109
>
> yl...@redhat.comT: +972-9-7692306/8272306 F: +972-9-7692223IM: 
> ylavi
>   TRIED. TESTED. TRUSTED. 
> @redhatnews    Red Hat 
>    Red Hat 
> 
>
>
> On Fri, Feb 2, 2018 at 11:22 AM, Sandro Bonazzola 
> wrote:
>
>> Thank you very much for having participated in oVirt Survey 2018!
>> Results are now publicly available at http://bit.ly/2Ez909d
>> We're now analyzing results for 4.3 planning.
>>
>> --
>>
>> SANDRO BONAZZOLA
>>
>> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>>
>> Red Hat EMEA 
>> 
>> TRIED. TESTED. TRUSTED. 
>>
>>
>> ___
>> 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 Survey 2018 results

2018-02-25 Thread Yaniv Lavi
Some notes that may help the users based on the replies on the survey
(based on latest 4.2):

- ISO upload to storage domain is supported (UI/API). Can be used just like
disk upload and it supports quota based on the disk used.

- You now have partial incremental backup support with download/upload API
(at long as the snapshot still exists):

https://ovirt.org/develop/release-management/features/storage/backup-restore-disk-snapshots/

- You can now download/upload VMs from data storage domains.

- VM not keep their compatibility version after cluster version upgrade, so
it is ok to not restart in upgrade (at least until CentOS 8).

- Ceph can be used with ISCSI target with oVirt.

- macspoofing hook is not really needed in oVirt 4.x, this is a supported
feature that can be used in vNIC profiles.

- Some of the users change migration settings in VDSM. This is not really
needed with oVirt 4.2 and migration policies which less error prone and
more advanced.

Hope this helps some of you.


Thanks!


YANIV LAVI

SENIOR TECHNICAL PRODUCT MANAGER

Red Hat Israel Ltd. 

34 Jerusalem Road, Building A, 1st floor

Ra'anana, Israel 4350109

yl...@redhat.comT: +972-9-7692306/8272306 F: +972-9-7692223IM: ylavi
  TRIED. TESTED. TRUSTED. 
@redhatnews    Red Hat
   Red Hat



On Fri, Feb 2, 2018 at 11:22 AM, Sandro Bonazzola 
wrote:

> Thank you very much for having participated in oVirt Survey 2018!
> Results are now publicly available at http://bit.ly/2Ez909d
> We're now analyzing results for 4.3 planning.
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
>
> ___
> 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] Ghost Snapshot Disk

2018-02-25 Thread Shani Leviim
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


Re: [ovirt-users] ovn related events every 5 minutes on 4.2.1

2018-02-25 Thread Gianluca Cecchi
On Fri, Feb 23, 2018 at 10:30 PM, Dominik Holler  wrote:

> On Fri, 23 Feb 2018 14:57:05 +0100
> Gianluca Cecchi  wrote:
>
> > Hello,
> > in my events pane of 4.2.1 I see, every 5 minutes, this event
> >
> > Networks of Provider ovirt-provider-ovn were successfully
> > synchronized.
> >
> > that fills so my table and prevent easy reading of other ones...
> > Can I disable or "relax" this?
> >
>
> Hello Gianluca,
> please find [1] if you want to disable this automatic background
> synchronization.
> If you want to change the interval to 2h, you can do it like this
> engine-config -s ExternalNetworkProviderSynchronizationRate=7200
> Dominik
>
> [1]
>   https://gist.github.com/dominikholler/ed372e368d734a00cfc71e19b6ef5463
>

Ok, thanks. I will try.
But, apart from the feedback, I don't understand the need of this kind of
background synchronization either...

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