[ovirt-devel] getStats exception in Engine

2019-07-30 Thread Ales Musil
Hi,
yesterday we have found out that there is exception thrown in getStats. The
host that was hitting this stayed in connecting state infinitely. This is
caused by recent mom version upgrade in vdsm spec. Mom statistic for
'ksmCpu' is reported as double instead of integer.

I have posted workaround [1] for the vdsm until the proper fix is provided.

Thanks.
Regards,
Ales

[1] https://gerrit.ovirt.org/c/102293/


-- 

Ales Musil

Associate Software Engineer - RHV Network

Red Hat EMEA 

amu...@redhat.comIM: amusil

___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/KWIQK7ZEDELX6D2ESVSAWANMBMXHHAY7/


[ovirt-devel] Re: Vdsm NFS on RHEL 8

2019-07-30 Thread Milan Zamazal
Amit Bawer  writes:

> Cherry-picked (locally)  'py3-hooks' pending gerrit patches on top of
> 'py3_poc' branch.
>
> Able to start VM ,

Cool!

> but cannot connect graphics console - when trying it shows blank
> screen with "connecting to graphics sever" and nothing happens.

Did you try it with VNC console?  There is better chance with VNC than
with SPICE.

> No error message in vdsm.log.
>
> [image: image.png]
>
> On Mon, Jul 29, 2019 at 5:13 PM Amit Bawer  wrote:
>
>> I see. Since there are several patches on this topic. Please ping me when
>> its merged and I'll rebase the PoC branch.
>> Thanks!
>>
>> On Mon, Jul 29, 2019 at 4:51 PM Marcin Sobczyk 
>> wrote:
>>
>>>
>>> On 7/29/19 3:40 PM, Amit Bawer wrote:
>>>
>>> Thanks Marcin.
>>> I think we made a progress, former qemu spice TLS port error is now gone
>>> with this hook.
>>>
>>> Now its seems like py3 issue for hooks handling:
>>>
>>> Unfortunately it doesn't mean the hook actually worked - now you get an
>>> error probably a bit earlier, when trying to run the hook and never get to
>>> the previous place.
>>> As I mentioned in the previous email you need my hook fixes for this
>>> stuff to work.
>>> You can do a quick and dirty fix by simply taking 'hooks.py' from
>>> https://gerrit.ovirt.org/#/c/102049/ or rebase on top of the whole
>>> 'py3-hooks' topic.
>>>
>>>
>>>
>>> 2019-07-29 09:29:54,981-0400 INFO  (vm/f62ae48a) [vds] prepared volume
>>> path: 
>>> /rhev/data-center/mnt/10.35.0.136:_exports_data/8a68eacc-0e0e-436a-bb25-c498c9f5f749/images/111de599-2afa-4dbb-9a99-3378ece66187/61e1e186-f289-4ffa-b59e-af90bde5db65
>>> (clientIF:501)
>>> 2019-07-29 09:29:54,982-0400 INFO  (vm/f62ae48a) [virt.vm]
>>> (vmId='f62ae48a-4e6f-4763-9a66-48e04708a2b5') Enabling drive monitoring
>>> (drivemonitor:56)
>>> 2019-07-29 09:29:55,052-0400 WARN  (vm/f62ae48a) [root] Attempting to add
>>> an existing net user: ovirtmgmt/f62ae48a-4e6f-4763-9a66-48e04708a2b5
>>> (libvirtnetwork:192)
>>> 2019-07-29 09:29:55,054-0400 INFO  (vm/f62ae48a) [virt.vm]
>>> (vmId='f62ae48a-4e6f-4763-9a66-48e04708a2b5') drive 'hdc' path: 'file=' ->
>>> '*file=' (storagexml:333)
>>> 2019-07-29 09:29:55,054-0400 INFO  (vm/f62ae48a) [virt.vm]
>>> (vmId='f62ae48a-4e6f-4763-9a66-48e04708a2b5') drive 'vda' path:
>>> 'file=/rhev/data-center/dab8cf3a-a969-11e9-84eb-080027624b78/8a68eacc-0e0e-436a-bb25-c498c9f5f749/images/111de599-2afa-4dbb-9a99-3378ece66187/61e1e186-f289-4ffa-b59e-af90bde5db65'
>>> -> 
>>> '*file=/rhev/data-center/mnt/10.35.0.136:_exports_data/8a68eacc-0e0e-436a-bb25-c498c9f5f749/images/111de599-2afa-4dbb-9a99-3378ece66187/61e1e186-f289-4ffa-b59e-af90bde5db65'
>>> (storagexml:333)
>>> 2019-07-29 09:29:55,056-0400 ERROR (vm/f62ae48a) [virt.vm]
>>> (vmId='f62ae48a-4e6f-4763-9a66-48e04708a2b5') The vm start process failed
>>> (vm:841)
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 775, in
>>> _startUnderlyingVm
>>> self._run()
>>>   File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 2564, in
>>> _run
>>> final_callback=self._updateDomainDescriptor)
>>>   File "/usr/lib/python3.6/site-packages/vdsm/common/hooks.py", line 159,
>>> in before_vm_start
>>> raiseError=False, errors=errors)
>>>   File "/usr/lib/python3.6/site-packages/vdsm/common/hooks.py", line 79,
>>> in _runHooksDir
>>> os.write(data_fd, data or '')
>>> TypeError: a bytes-like object is required, not 'str'
>>>
>>> On Mon, Jul 29, 2019 at 4:16 PM Marcin Sobczyk 
>>> wrote:
>>>

 On 7/29/19 1:14 PM, Amit Bawer wrote:

 Reviving the mail-thread, checking for Non-TLS host-engine communication
 resolution:

 Current master base for PoC RHEL8 host is:

 commit cfe7b11c71c1bf0dada89a8209c8d544b0d0f138 (vdsm-master/master)
 Author: Marcin Sobczyk 
 Date:   Fri Jul 12 12:54:57 2019 +0200

 When trying to "Run" VM on RHEL8 vdsm.log shows following failure trace:

 9-07-29 06:58:49,140-0400 INFO  (vm/f62ae48a) [virt.vm]
 (vmId='f62ae48a-4e6f-4763-9a66-48e04708a2b5') >>> encoding='utf-8'?>
 http://ovirt.org/vm/tune/1.0"; xmlns:ovirt-vm="
 http://ovirt.org/vm/1.0"; type="kvm">
 vm1
 f62ae48a-4e6f-4763-9a66-48e04708a2b5
 1048576
 1048576
 1
 4194304
 16
 
 
 oVirt
 RHEL
 8.0-0.44.el8
 >>> name="serial">e5825ba8-473e-4821-829a-bc6dbbe79617
 >>> name="uuid">f62ae48a-4e6f-4763-9a66-48e04708a2b5
 
 
 
 
 
 
 
 
 
 
 
 SandyBridge
 
 
 
 
 
 
 
 
 
 
 >>> path="/var/lib/libvirt/qemu/channels/f62ae48a-4e6f-4763-9a66-48e04708a2b5.ovirt-guest-agent.0"
 />
 

[ovirt-devel] Re: Failure to run engine-setup

2019-07-30 Thread Daniel Erez
On Tue, Jul 30, 2019 at 1:48 PM Simone Tiraboschi 
wrote:

>
>
> On Tue, Jul 30, 2019 at 9:48 AM Eyal Shenitzky 
> wrote:
>
>> Hi All,
>>
>> I am failing to run engine-setup due to the following issue:
>>
>> [ INFO  ] Generating post install configuration file
>> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
>>
>> [ ERROR ] Failed to execute stage 'Misc configuration': a bytes-like
>> object is required, not 'str'
>> [ INFO  ] Rolling back database schema
>>
>>
>> In the setup log I can see -
>>
>> 2019-07-30 10:41:31,418+0300 DEBUG otopi.transaction
>> transaction._prepare:61 preparing 'File transaction for
>> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-s
>> etup-ovirt-post.conf''
>> 2019-07-30 10:41:31,418+0300 DEBUG otopi.filetransaction
>> filetransaction.prepare:184 file
>> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.con
>>
>> f' missing
>> 2019-07-30 10:41:31,419+0300 DEBUG otopi.transaction
>> transaction._prepare:66 exception during prepare phase
>> Traceback (most recent call last):
>>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62,
>> in _prepare
>>element.prepare()
>>  File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
>> 253, in prepare
>>os.write(fd, self._content)
>> TypeError: a bytes-like object is required, not 'str'
>> 2019-07-30 10:41:31,420+0300 DEBUG otopi.context
>> context._executeMethod:145 method exception
>> Traceback (most recent call last):
>>  File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in
>> _executeMethod
>>method['method']()
>>  File
>> "/home/eshenitz/ovirt-engine/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/core/postinstall.py",
>> line 98, in _misc
>>otopicons.CoreEnv.MODIFIED_FILES
>>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 106,
>> in append
>> self._prepare(element=element)
>>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62,
>> in _prepare
>>element.prepare()
>>  File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
>> 253, in prepare
>>os.write(fd, self._content)
>> TypeError: a bytes-like object is required, not 'str'
>> 2019-07-30 10:41:31,421+0300 ERROR otopi.context
>> context._executeMethod:154 Failed to execute stage 'Misc configuration': a
>> bytes-like object is required, not 'str'
>> 2019-07-30 10:41:31,421+0300 DEBUG otopi.transaction
>> transaction.abort:119 aborting 'CinderLib Database Transaction'
>>
>> Does anyone encounter it?
>>
>
> Maybe is a side effect of https://gerrit.ovirt.org/#/c/102204/ on python
> 3 env.
>

Indeed. Pushed this to solve it for now:
https://gerrit.ovirt.org/#/c/102259/


> Didi?
>
>
>>
>> Thanks,
>> --
>> Regards,
>> Eyal Shenitzky
>> ___
>> Devel mailing list -- devel@ovirt.org
>> To unsubscribe send an email to devel-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>> oVirt Code of Conduct:
>> https://www.ovirt.org/community/about/community-guidelines/
>> List Archives:
>> https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OXHERFXZVEJVTJSJA2CNCXNWCFYIWOPW/
>>
>
>
> --
>
> Simone Tiraboschi
>
> He / Him / His
>
> Principal Software Engineer
>
> Red Hat 
>
> stira...@redhat.com
> @redhatjobs    redhatjobs
>  @redhatjobs
> 
> 
> 
> ___
> Devel mailing list -- devel@ovirt.org
> To unsubscribe send an email to devel-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/devel@ovirt.org/message/EFC3IDDP3TRLPDKM7K4BHWF3A4H5ITRY/
>
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/X7VJN6JOOVGB4PGA4CQRYNAVOLWKCGSX/


[ovirt-devel] Re: Failure to run engine-setup

2019-07-30 Thread Simone Tiraboschi
On Tue, Jul 30, 2019 at 9:48 AM Eyal Shenitzky  wrote:

> Hi All,
>
> I am failing to run engine-setup due to the following issue:
>
> [ INFO  ] Generating post install configuration file
> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
>
> [ ERROR ] Failed to execute stage 'Misc configuration': a bytes-like
> object is required, not 'str'
> [ INFO  ] Rolling back database schema
>
>
> In the setup log I can see -
>
> 2019-07-30 10:41:31,418+0300 DEBUG otopi.transaction
> transaction._prepare:61 preparing 'File transaction for
> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-s
> etup-ovirt-post.conf''
> 2019-07-30 10:41:31,418+0300 DEBUG otopi.filetransaction
> filetransaction.prepare:184 file
> '/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.con
>
> f' missing
> 2019-07-30 10:41:31,419+0300 DEBUG otopi.transaction
> transaction._prepare:66 exception during prepare phase
> Traceback (most recent call last):
>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in
> _prepare
>element.prepare()
>  File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
> 253, in prepare
>os.write(fd, self._content)
> TypeError: a bytes-like object is required, not 'str'
> 2019-07-30 10:41:31,420+0300 DEBUG otopi.context
> context._executeMethod:145 method exception
> Traceback (most recent call last):
>  File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in
> _executeMethod
>method['method']()
>  File
> "/home/eshenitz/ovirt-engine/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/core/postinstall.py",
> line 98, in _misc
>otopicons.CoreEnv.MODIFIED_FILES
>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 106,
> in append
> self._prepare(element=element)
>  File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in
> _prepare
>element.prepare()
>  File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
> 253, in prepare
>os.write(fd, self._content)
> TypeError: a bytes-like object is required, not 'str'
> 2019-07-30 10:41:31,421+0300 ERROR otopi.context
> context._executeMethod:154 Failed to execute stage 'Misc configuration': a
> bytes-like object is required, not 'str'
> 2019-07-30 10:41:31,421+0300 DEBUG otopi.transaction transaction.abort:119
> aborting 'CinderLib Database Transaction'
>
> Does anyone encounter it?
>

Maybe is a side effect of https://gerrit.ovirt.org/#/c/102204/ on python 3
env.
Didi?


>
> Thanks,
> --
> Regards,
> Eyal Shenitzky
> ___
> Devel mailing list -- devel@ovirt.org
> To unsubscribe send an email to devel-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OXHERFXZVEJVTJSJA2CNCXNWCFYIWOPW/
>


-- 

Simone Tiraboschi

He / Him / His

Principal Software Engineer

Red Hat 

stira...@redhat.com
@redhatjobs    redhatjobs
 @redhatjobs



___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/EFC3IDDP3TRLPDKM7K4BHWF3A4H5ITRY/


[ovirt-devel] ovirt-engine has been tagged (ovirt-engine-4.3.6)

2019-07-30 Thread Tal Nisan

___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/4TF4WABHMDJQAGBL7VJCMOXB4EGBALEH/


[ovirt-devel] vdsm has been tagged (v4.30.25)

2019-07-30 Thread Milan Zamazal

___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/IQGOS372G26ZWQQLVCTUTBCQAQZ4Q2ID/


[ovirt-devel] Failure to run engine-setup

2019-07-30 Thread Eyal Shenitzky
Hi All,

I am failing to run engine-setup due to the following issue:

[ INFO  ] Generating post install configuration file
'/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'

[ ERROR ] Failed to execute stage 'Misc configuration': a bytes-like object
is required, not 'str'
[ INFO  ] Rolling back database schema


In the setup log I can see -

2019-07-30 10:41:31,418+0300 DEBUG otopi.transaction
transaction._prepare:61 preparing 'File transaction for
'/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-s
etup-ovirt-post.conf''
2019-07-30 10:41:31,418+0300 DEBUG otopi.filetransaction
filetransaction.prepare:184 file
'/home/eshenitz/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.con

f' missing
2019-07-30 10:41:31,419+0300 DEBUG otopi.transaction
transaction._prepare:66 exception during prepare phase
Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in
_prepare
   element.prepare()
 File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
253, in prepare
   os.write(fd, self._content)
TypeError: a bytes-like object is required, not 'str'
2019-07-30 10:41:31,420+0300 DEBUG otopi.context context._executeMethod:145
method exception
Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in
_executeMethod
   method['method']()
 File
"/home/eshenitz/ovirt-engine/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/core/postinstall.py",
line 98, in _misc
   otopicons.CoreEnv.MODIFIED_FILES
 File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 106, in
append
self._prepare(element=element)
 File "/usr/lib/python3.6/site-packages/otopi/transaction.py", line 62, in
_prepare
   element.prepare()
 File "/usr/lib/python3.6/site-packages/otopi/filetransaction.py", line
253, in prepare
   os.write(fd, self._content)
TypeError: a bytes-like object is required, not 'str'
2019-07-30 10:41:31,421+0300 ERROR otopi.context context._executeMethod:154
Failed to execute stage 'Misc configuration': a bytes-like object is
required, not 'str'
2019-07-30 10:41:31,421+0300 DEBUG otopi.transaction transaction.abort:119
aborting 'CinderLib Database Transaction'

Does anyone encounter it?

Thanks,
-- 
Regards,
Eyal Shenitzky
___
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/OXHERFXZVEJVTJSJA2CNCXNWCFYIWOPW/