Re: [ovirt-users] oVirt 4.2 ansible 'Add hosts' task doesn't work

2017-12-30 Thread Abdurrahman A. Ibrahim
Hello Martin,

Thank you for your reply.

Sorry for not saying that, but using root password was not working for me,
so I used SSH public key as an alternative way.

I have created bug ID '1529851', but please let me know if you need me tho
check any other steps from my side.
https://bugzilla.redhat.com/show_bug.cgi?id=1529851

Best regards,
Ab

On Sat, Dec 30, 2017 at 10:45 AM, Martin Perina  wrote:

>
>
> On Fri, Dec 29, 2017 at 3:05 PM, Abdurrahman A. Ibrahim <
> a.rahman.at...@gmail.com> wrote:
>
>> Hi all,
>>
>> - Here is a simple architecture for my demo deployment using KVM VMs:
>> 1) rhevm1.ab.lab -> oVirt Engine (CentOS 7.4 x86_64)
>> 2) rhevh1.ab.lab -> oVirt Enterprise Linux Host (CentOS 7.4 x86_64)
>> 3) rhevh2.ab.lab ->  oVirt Enterprise Linux Host (CentOS 7.4 x86_64)
>>
>> - How to reproduce issue:
>> 1) I installed 'ovirt-engine' successfully.
>>
>> 2) I tried to add 'rhevh1.ab.lab' from 'rhevm1.ab.lab' using SSH public
>> key.
>>
>
> ​Hi,
>
> could you please try to connect using root password instead of SSH public
> key? If root password option works, could you please create a bug for this
> issue?
>
> Thanks
>
> Martin
> ​
>
>>
>> Everything was OK until I had the following error message:
>> "Host rhevh1 installation failed. Failed to execute Ansible
>> host-deploy role. Please check logs for more details:
>> /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-
>> 20171229144439-rhevh1.ab.lab-13b2b5c4.log."
>>
>> Checking log file showed the following:
>> [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-dep
>> loy/ovirt-host-deploy-ansible-20171229144439-rhevh1.ab.lab-13b2b5c4.log
>> 2017-12-29 14:44:40,320 p=9666 u=ovirt |  [DEPRECATION WARNING]: The
>> use of 'include' for tasks has been deprecated. Use
>> ' import_tasks' for static inclusions or 'include_tasks' for dynamic
>> inclusions.
>> This feature will be removed in a future release. Deprecation
>> warnings can be
>> disabled by setting deprecation_warnings=False in ansible.cfg.
>> 2017-12-29 14:44:40,321 p=9666 u=ovirt |  [DEPRECATION WARNING]:
>> include is kept for backwards compatibility but usage is
>> discouraged. The module documentation details page may explain more
>> about this
>> rationale.. This feature will be removed in a future release.
>> Deprecation
>> warnings can be disabled by setting deprecation_warnings=False in
>> ansible.cfg.
>> 2017-12-29 14:44:40,458 p=9666 u=ovirt |  PLAY [all]
>> *
>> 2017-12-29 14:44:40,469 p=9666 u=ovirt |  TASK [Gathering Facts]
>> *
>> 2017-12-29 14:44:40,801 p=9666 u=ovirt |  fatal: [rhevh1.ab.lab]:
>> UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host
>> via ssh: ssh_exchange_identification: Connection closed by remote
>> host\r\n", "unreachable": true}
>> 2017-12-29 14:44:40,802 p=9666 u=ovirt |  PLAY RECAP
>> *
>> 2017-12-29 14:44:40,802 p=9666 u=ovirt |  rhevh1.ab.lab
>> : ok=0changed=0unreachable=1failed=0
>>
>> 3) I tried to simulate Ansilbe role work by using simple ansible module
>> using 'root' user:
>>[root@rhevm1 tmp]# ansible -m ping rhevhs -i /tmp/tmphosts
>>The authenticity of host '192.168.150.21 (> command>)' can't be established.
>>ECDSA key fingerprint is SHA256:fPem/Gn67v6tEbQpX/NJix/
>> Ff7gPJsQ9Hz9SSBBc5ts.
>>   ECDSA key fingerprint is MD5:12:ca:c7:84:93:50:3f:33:b5
>> :39:e2:20:2d:13:17:43.
>>   Are you sure you want to continue connecting (yes/no)? yes
>>   192.168.150.21 | SUCCESS => {
>>   "changed": false,
>>   "ping": "pong"
>>   }
>>
>>
>> 4) It seems that above ansible role is not able to deal with SSH
>> fingerprint for the first time even if I was able to collect
>> 'rhevh1.ab.lab' fingerprint during adding host procedures.
>>
>> 5) I have tried to disable this feature in ansible.cfg file:
>> [root@rhevm1 tmp]# grep host_key_checking /etc/ansible/ansible.cfg
>> host_key_checking = False
>>
>> 6) Again the same results:
>> [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-dep
>> loy/ovirt-host-deploy-ansible-20171229145907-rhevh1.ab.lab-3e8bace0.log
>> 2017-12-29 14:59:08,005 p=10135 u=ovirt |  [DEPRECATION WARNING]: The use
>> of 'include' for tasks has been deprecated. Use
>> 'import_tasks' for static inclusions or 'include_tasks' for dynamic
>> inclusions.
>>  This feature will be removed in a future release. Deprecation warnings
>> can be
>> disabled by setting deprecation_warnings=False in ansible.cfg.
>> 2017-12-29 14:59:08,006 p=10135 u=ovirt |  [DEPRECATION WARNING]: include
>> is kept for backwards compatibility but usage is
>>  discouraged. The module documentation details page may explain more
>> about this
>>  rationale.. This feature will be removed in a future release.
>> Deprecation
>> warnings can 

Re: [ovirt-users] Get UU

2017-12-30 Thread Yedidyah Bar David
On Sat, Dec 30, 2017 at 10:45 AM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
>
> On 30 Dec 2017, at 06:54, Blaster  wrote:
>
> I need to create an old oVirt Windows VM.  The VM has an old licensed
> product that we can no longer get a licensed reissued for.  It looks like I
> need to feed back the original qemu UUID that was used when the VM was
> created.
>
> I have an engine config backup and a backup of the oVirt storage domain.
>
> I viewed the engine backup, but the format as-is doesn't give any obvious
> configuration details of the VMs at the time of the backup.  Is the UUID as
> obvious as the file name of the VM's boot volume UUID name?
>
>
I think it's the field 'vm_guid' in the table 'vm_static'.

You can restore the backup on a temp vm somewhere - make sure it has no
access to your hosts so that the engine will not start to manage them -
or just look at the db dump. The backup is a tar file, and you can look
at db dumps inside it using 'pg_restore filename | less'.


>
> The guest UUID is configurable per VM in Edit dialog, you can use a custom
> value
>
>
> ___
> 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
>
>


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


Re: [ovirt-users] Warning - MacOS SSH Terminal / oVirt Engine Errors

2017-12-30 Thread Yedidyah Bar David
On Fri, Dec 29, 2017 at 9:41 PM, Maton, Brett  wrote:
> Works just fine from a vanilla Mac OS SSH session, I updated 3 clusters this
> week from a mac
>
> On 29 December 2017 at 13:27, Chris Adams  wrote:
>>
>> Once upon a time, andreil1  said:
>> > Hi !
>> >
>> > I would like to warn all who try to use engine-setup via MacOS X SSH
>> > terminal.
>> > It throws a lot of errors and fails (seems to relate to differently
>> > named UTF8 locales).
>> > From Linux PC everything is fine.
>> >
>> >
>> >
>> > [root@node00 ~]# engine-setup
>> > [ ERROR ] Yum unknown locale: UTF-8
>> > [ ERROR ] Yum unknown locale: UTF-8
>>
>> Is it really setting the locale ($LANG) to UTF-8?  If so, that's wrong;
>> UTF-8 is a character encoding, not a locale.  A proper locale would be
>> something like en_US.utf8.
>>
>> You should be able to override it after login by setting it, like:
>>
>> # export LANG=en_US.utf8

See also:

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

>>
>> --
>> Chris Adams 
>> ___
>> 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
>



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


Re: [ovirt-users] Update to 4.2.0 failing in db check

2017-12-30 Thread Jiri Slezka
On 12/26/2017 01:43 PM, Jiri Slezka wrote:
> Hi,
> 
> I have been also bitten by this bug :-)
> 
> I am also using template with subtemplate. Can I workaround this somehow
> or should I wait until fkvalidator fix is released?

solution was obvious - I just exported (sub)template, deleted it,
upgraded to 4.2 and imported it back.

Cheers,

Jiri

> 
> Cheers, Jiri
> 
> 
> 
> On 12/21/2017 03:19 PM, Giorgio Biacchi wrote:
>> On 12/21/2017 11:24 AM, Sandro Bonazzola wrote:
>>>
>>>
>>> 2017-12-21 11:03 GMT+01:00 Giorgio Biacchi >> >:
>>>
>>>     Hi,
>>>     I have additional info on the problem. I run
>>>     /usr/share/ovirt-engine/setup/dbutils/fkvalidator.sh and the
>>> problem is on 4
>>>     templates subversions. In detail we have two templates and each
>>> one has two
>>>     subversions.
>>>
>>>     Other templates with no subversions have no problem.
>>>
>>>     Thanks again, I hope this helps in debugging.
>>>
>>>
>>> Thanks Giorgio, do you mind open a bug on
>>> https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine to
>>> track this?
>>
>> Bug 1528316 Submitted
>>
>>>
>>>
>>>
>>>     On 12/20/2017 04:04 PM, Martin Perina wrote:
>>>
>>>     Hi,
>>>
>>>     could you please share the full setup log?
>>>
>>>     ​
>>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20171220110337-cy5ri9.log
>>>
>>>     Thanks
>>>
>>>     Martin
>>>
>>>
>>>     On Wed, Dec 20, 2017 at 2:22 PM, Sandro Bonazzola
>>> >>      >>     >> wrote:
>>>
>>>
>>>
>>>      2017-12-20 11:58 GMT+01:00 Giorgio Biacchi
>>> >>     
>>>      >>:
>>>
>>>          Hello list,
>>>          I was about to upgrade from 4.1.8.2-1.el7.centos to
>>> 4.2.0 but
>>>          engine-setup fails. Here's the relevant output:
>>>
>>>          [ ERROR ] Failed to execute stage 'Setup validation':
>>> Failed
>>>     checking
>>>          Engine database: an exception occurred while
>>> validating the Engine
>>>          database, please check the logs for getting more info:
>>>                    Constraint violation found in  vm_interface
>>> (vmt_guid) |1
>>>
>>>          [ INFO  ] Stage: Clean up
>>>                     Log file is located at
>>>          ​​
>>>        
>>> /var/log/ovirt-engine/setup/ovirt-engine-setup-20171220110337-cy5ri9.log
>>>          [ INFO  ] Generating answer file
>>>         
>>> '/var/lib/ovirt-engine/setup/answers/20171220110551-setup.co
>>>     
>>>          >>     >nf'
>>>          [ INFO  ] Stage: Pre-termination
>>>          [ INFO  ] Stage: Termination
>>>          [ ERROR ] Execution of setup failed
>>>
>>>          any ideas??
>>>
>>>
>>>      Adding some people, I think one of your vms has an invalid
>>>     configuration
>>>      saved in the db.
>>>
>>>
>>>          --         gb
>>>
>>>          PGP Key: http://pgp.mit.edu/
>>>          Primary key fingerprint: C510 0765 943E EBED A4F2
>>> 69D3 16CC
>>>     DC90 B9CB 0F34
>>>          ___
>>>          Users mailing list
>>>     Users@ovirt.org  >>     >
>>>     http://lists.ovirt.org/mailman/listinfo/users
>>>     
>>>          >>     >
>>>
>>>
>>>
>>>
>>>      --
>>>      SANDRO BONAZZOLA
>>>
>>>      ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG
>>> VIRTUALIZATION R
>>>
>>>      Red Hat EMEA 
>>>
>>>      
>>>      TRIED. TESTED. TRUSTED. 
>>>
>>>
>>>
>>>
>>>
>>>     --     Martin Perina
>>>     Associate Manager, Software Engineering
>>>     Red Hat Czech s.r.o.
>>>
>>>
>>>     --     gb
>>>
>>>     PGP Key: http://pgp.mit.edu/
>>>     Primary key fingerprint: C510 0765 943E EBED A4F2 69D3 16CC DC90
>>> B9CB 0F34
>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> SANDRO BONAZZOLA
>>>
>>> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>>>
>>> Red Hat EMEA 
>>>
>>>    
>>> TRIED. TESTED. TRUSTED. 
>>>
>>>
>>
> 
> ___
> Users mailing list
> Users@ovirt.org
> 

Re: [ovirt-users] oVirt 4.2 ansible 'Add hosts' task doesn't work

2017-12-30 Thread Martin Perina
On Fri, Dec 29, 2017 at 3:05 PM, Abdurrahman A. Ibrahim <
a.rahman.at...@gmail.com> wrote:

> Hi all,
>
> - Here is a simple architecture for my demo deployment using KVM VMs:
> 1) rhevm1.ab.lab -> oVirt Engine (CentOS 7.4 x86_64)
> 2) rhevh1.ab.lab -> oVirt Enterprise Linux Host (CentOS 7.4 x86_64)
> 3) rhevh2.ab.lab ->  oVirt Enterprise Linux Host (CentOS 7.4 x86_64)
>
> - How to reproduce issue:
> 1) I installed 'ovirt-engine' successfully.
>
> 2) I tried to add 'rhevh1.ab.lab' from 'rhevm1.ab.lab' using SSH public
> key.
>

​Hi,

could you please try to connect using root password instead of SSH public
key? If root password option works, could you please create a bug for this
issue?

Thanks

Martin
​

>
> Everything was OK until I had the following error message:
> "Host rhevh1 installation failed. Failed to execute Ansible
> host-deploy role. Please check logs for more details:
> /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-
> ansible-20171229144439-rhevh1.ab.lab-13b2b5c4.log."
>
> Checking log file showed the following:
> [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-
> deploy/ovirt-host-deploy-ansible-20171229144439-rhevh1.ab.lab-13b2b5c4.log
> 2017-12-29 14:44:40,320 p=9666 u=ovirt |  [DEPRECATION WARNING]: The
> use of 'include' for tasks has been deprecated. Use
> ' import_tasks' for static inclusions or 'include_tasks' for dynamic
> inclusions.
> This feature will be removed in a future release. Deprecation warnings
> can be
> disabled by setting deprecation_warnings=False in ansible.cfg.
> 2017-12-29 14:44:40,321 p=9666 u=ovirt |  [DEPRECATION WARNING]:
> include is kept for backwards compatibility but usage is
> discouraged. The module documentation details page may explain more
> about this
> rationale.. This feature will be removed in a future release.
> Deprecation
> warnings can be disabled by setting deprecation_warnings=False in
> ansible.cfg.
> 2017-12-29 14:44:40,458 p=9666 u=ovirt |  PLAY [all]
> *
> 2017-12-29 14:44:40,469 p=9666 u=ovirt |  TASK [Gathering Facts]
> *
> 2017-12-29 14:44:40,801 p=9666 u=ovirt |  fatal: [rhevh1.ab.lab]:
> UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host
> via ssh: ssh_exchange_identification: Connection closed by remote
> host\r\n", "unreachable": true}
> 2017-12-29 14:44:40,802 p=9666 u=ovirt |  PLAY RECAP
> *
> 2017-12-29 14:44:40,802 p=9666 u=ovirt |  rhevh1.ab.lab  :
> ok=0changed=0unreachable=1failed=0
>
> 3) I tried to simulate Ansilbe role work by using simple ansible module
> using 'root' user:
>[root@rhevm1 tmp]# ansible -m ping rhevhs -i /tmp/tmphosts
>The authenticity of host '192.168.150.21 ( command>)' can't be established.
>ECDSA key fingerprint is SHA256:fPem/Gn67v6tEbQpX/NJix/
> Ff7gPJsQ9Hz9SSBBc5ts.
>   ECDSA key fingerprint is MD5:12:ca:c7:84:93:50:3f:33:
> b5:39:e2:20:2d:13:17:43.
>   Are you sure you want to continue connecting (yes/no)? yes
>   192.168.150.21 | SUCCESS => {
>   "changed": false,
>   "ping": "pong"
>   }
>
>
> 4) It seems that above ansible role is not able to deal with SSH
> fingerprint for the first time even if I was able to collect
> 'rhevh1.ab.lab' fingerprint during adding host procedures.
>
> 5) I have tried to disable this feature in ansible.cfg file:
> [root@rhevm1 tmp]# grep host_key_checking /etc/ansible/ansible.cfg
> host_key_checking = False
>
> 6) Again the same results:
> [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-
> deploy/ovirt-host-deploy-ansible-20171229145907-rhevh1.ab.lab-3e8bace0.log
> 2017-12-29 14:59:08,005 p=10135 u=ovirt |  [DEPRECATION WARNING]: The use
> of 'include' for tasks has been deprecated. Use
> 'import_tasks' for static inclusions or 'include_tasks' for dynamic
> inclusions.
>  This feature will be removed in a future release. Deprecation warnings
> can be
> disabled by setting deprecation_warnings=False in ansible.cfg.
> 2017-12-29 14:59:08,006 p=10135 u=ovirt |  [DEPRECATION WARNING]: include
> is kept for backwards compatibility but usage is
>  discouraged. The module documentation details page may explain more about
> this
>  rationale.. This feature will be removed in a future release. Deprecation
> warnings can be disabled by setting deprecation_warnings=False in
> ansible.cfg.
> 2017-12-29 14:59:08,139 p=10135 u=ovirt |  PLAY [all]
> *
> 2017-12-29 14:59:08,151 p=10135 u=ovirt |  TASK [Gathering Facts]
> *
> 2017-12-29 14:59:08,477 p=10135 u=ovirt |  fatal: [rhevh1.ab.lab]:
> UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host
> via ssh: ssh_exchange_identification: Connection closed by 

Re: [ovirt-users] 4.2.0 Unable to create VM disk from VM Portal

2017-12-30 Thread Michal Skrivanek
On 29 Dec 2017, at 22:03, Vrgotic, Marko  wrote:

Dear Michal,



Thank you for fast reply.



Do you know app. at which point in time the VM Portal will gain the ability
of VM disk manipulation?


Hi Marko,
it’s not in the plan yet, feel free to suggest and design how it should
look like at https://github.com/oVirt/ovirt-web-ui
It’s much more simple js application using regular oVirt REST API and
hopefully it’s easier to contribute to

Thanks,
michal



Kindly awaiting your reply.



--

Met vriendelijke groet / Best regards,

Marko Vrgotic

System Engineer/Customer Care





*From: *Michal Skrivanek 
*Date: *Friday, 29 December 2017 at 20:47
*To: *"Vrgotic, Marko" 
*Cc: *"users@ovirt.org" 
*Subject: *Re: [ovirt-users] 4.2.0 Unable to create VM disk from VM Portal






On 29 Dec 2017, at 16:20, Vrgotic, Marko  wrote:

Dear oVirt community,



I have following setup:

4 servers as glusterfs storage: providing volume 1 for HostedEngine ad
volume 2 for VM Storage

7 Hypervisors

SelfHosted Engine 4.2.0 clean install (not an upgrade)



Problem:

Missing option to add/create VM disk from VM Portal / even as Admin user.



Hi,

there is no disk manipulation in VM Portal



I have tried with Admin suer and creating user “Test” wth PowerUser role.

In both cases there is not option to create or attach disk.



Is the approach changed since 4.2.0?



Yes. The old User Portal where it was possible to fully edit a VM was
discontinued in 4.2. The new VM Portal doesn’t have that capability yet



Perhaps you can use webadmin and limit user’s permissions the way you need



Thanks,

michal

Am I missing a setting?

Please let me know, I will provide more data if needed.



Kindly awaiting your reply.



--

Met vriendelijke groet / Best regards,

Marko Vrgotic

System Engineer/Customer Care



___
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] Get UU

2017-12-30 Thread Michal Skrivanek
On 30 Dec 2017, at 06:54, Blaster  wrote:

I need to create an old oVirt Windows VM.  The VM has an old licensed
product that we can no longer get a licensed reissued for.  It looks like I
need to feed back the original qemu UUID that was used when the VM was
created.

I have an engine config backup and a backup of the oVirt storage domain.

I viewed the engine backup, but the format as-is doesn't give any obvious
configuration details of the VMs at the time of the backup.  Is the UUID as
obvious as the file name of the VM's boot volume UUID name?


The guest UUID is configurable per VM in Edit dialog, you can use a custom
value


___
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