Re: [ovirt-devel] [VDSM] Excessive warnings in vdsm log
by Nir Soffer
The best way is to use warnings.warn instead of logging.warning - we
already using this for similar stuf, and we have a configuration option ti
enabke the warnings in the logs.
Nir
בתאריך 17 במאי 2016 11:33 לפנה״צ, "Martin Sivak" <msivak(a)redhat.com> כתב:
Can't we just configure the logging level for the specific logger?
That is why we use them. Keep the logging, but change the default for
schemaapi to ERROR for now.
Martin
On Tue, May 17, 2016 at 8:47 AM, Yaniv Kaul <ykaul(a)redhat.com> wrote:
>
>
> On Tue, May 17, 2016 at 9:44 AM, Piotr Kliczewski <pkliczew(a)redhat.com>
> wrote:
>>
>> Nir,
>>
>> The warnings were added to annoy people so we could keep the schema align
>> with the code.
>> I think that we should use this opportunity to push fixes instead of
>> disabling it.
>
>
> I agree to the end goal, but I don't think this specific method would
work.
> I much rather we'll do a concentrated effort to drastically reduce those -
> and I don't think right now is the best time for it (a bit late for 4.0)
> Y.
>
>>
>> Thanks,
>> Piotr
>>
>> On Mon, May 16, 2016 at 10:09 PM, Nir Soffer <nsoffer(a)redhat.com> wrote:
>>>
>>> Hi all,
>>>
>>> Since data verification patches were merged, vdsm logs is spammed with
>>> useless warnings (see bellow).
>>>
>>> This spam make it harder to debug vdsm.
>>>
>>> Please add configuration variable to enable this warnings, and make
>>> them disabled by default.
>>>
>>> Thanks,
>>> Nir
>>>
>>> ----
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,719::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['ksmMergeAcrossNodes', 'haStats'] were not
>>> recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,720::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUserVdsmd is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,720::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,720::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuLoad is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,720::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter memUsed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,720::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter elapsedTime is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter netConfigDirty is not boolean type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,721::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,722::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,722::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,722::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,722::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,722::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,723::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,724::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,724::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,724::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,724::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,724::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,725::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,726::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,726::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,726::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,726::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,726::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,727::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,728::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,729::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,729::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,729::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,729::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,729::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,730::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,731::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,731::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,731::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,731::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,731::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,732::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,732::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txErrors is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,732::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter txRate is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,732::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter speed is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,732::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter tx is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,733::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter rxDropped is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,733::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,733::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,733::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,733::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,734::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,734::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,734::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,734::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,734::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,735::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,735::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,735::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,735::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,735::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,736::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,736::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,736::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,736::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,736::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,737::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,737::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,737::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,737::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,737::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,738::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,738::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,738::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,738::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,738::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,739::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,739::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,739::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,739::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,739::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,740::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,740::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,740::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Following parameters ['nodeIndex'] were not recognized
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,740::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSys is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,740::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,741::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property numaNodeIndex is not provided when calling
>>> Host.getStats
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,741::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuIdle is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,741::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuUser is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,741::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter ksmCpu is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,741::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter memFree is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,742::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,742::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,742::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,742::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,742::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,743::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,743::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,743::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,743::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,743::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter lastCheck is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter delay is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter free is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter free is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter free is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,744::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter free is not uint type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,745::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Parameter cpuSysVdsmd is not float type
>>> jsonrpc.Executor/0::WARNING::2016-05-16
>>> 23:05:21,745::schemaapi::140::SchemaCache::(_report_inconsistency)
>>> Required property haStatus is not provided when calling Host.getStats
>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel(a)ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>
>
>
> _______________________________________________
> Devel mailing list
> Devel(a)ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel
8 years, 5 months
[VDSM] protocoldetector test - new failure
by Nir Soffer
Hi all,
This test was very stable since 3.5 - this failure smells like recent
regression.
21:08:14 ======================================================================
21:08:14 ERROR: test_reject_very_slow_client(True)
(protocoldetectorTests.AcceptorTests)
21:08:14 ----------------------------------------------------------------------
21:08:14 Traceback (most recent call last):
21:08:14 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/tests/protocoldetectorTests.py",
line 113, in tearDown
21:08:14 self.acceptor.stop()
21:08:14 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/lib/vdsm/protocoldetector.py",
line 212, in stop
21:08:14 self._acceptor.close()
21:08:14 File "/usr/lib64/python2.7/asyncore.py", line 407, in close
21:08:14 self.del_channel()
21:08:14 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/lib/yajsonrpc/betterAsyncore.py",
line 137, in del_channel
21:08:14 asyncore.dispatcher.del_channel(self, map)
21:08:14 File "/usr/lib64/python2.7/asyncore.py", line 292, in del_channel
21:08:14 del map[fd]
21:08:14 KeyError: 120
21:08:14 -------------------- >> begin captured logging << --------------------
21:08:14 vds.MultiProtocolAcceptor: INFO: Listening at 127.0.0.1:38899
21:08:14 vds.MultiProtocolAcceptor: DEBUG: Adding detector
<protocoldetectorTests.Echo object at 0x7f7479512dd0>
21:08:14 vds.MultiProtocolAcceptor: DEBUG: Adding detector
<protocoldetectorTests.Uppercase object at 0x7f7479512910>
21:08:14 ProtocolDetector.AcceptorImpl: INFO: Accepting connection
from 127.0.0.1:33696
21:08:14 ProtocolDetector.Detector: DEBUG: Using required_size=9
21:08:14 ProtocolDetector.Detector: DEBUG: Timed out while waiting for data
21:08:14 vds.MultiProtocolAcceptor: DEBUG: Stopping Acceptor
21:08:14 --------------------- >> end captured logging << ---------------------
Nir
8 years, 5 months
[VDSM] new virt tests failing
by Nir Soffer
Hi all,
I'm seeing these tests failing locally:
======================================================================
ERROR: test___str__ (vmMigrationTests.TestProgress)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nsoffer/src/vdsm/tests/vmMigrationTests.py", line 166, in setUp
libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED: 42,
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'
======================================================================
ERROR: test___str___without_optional_fields (vmMigrationTests.TestProgress)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nsoffer/src/vdsm/tests/vmMigrationTests.py", line 166, in setUp
libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED: 42,
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'
----------------------------------------------------------------------
And indeed, there is no such constant:
>>> import libvirt
>>> libvirt.VIR_DOMAIN_JOB_TIME_ELAPSED
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_JOB_TIME_ELAPSED'
$ rpm -q libvirt-python
libvirt-python-1.2.13-1.fc22.x86_64
Is this old libvirt version, or the tests are broken?
Cheers,
Nir
8 years, 5 months
[VDSM] testMethodWithIntParam (bridgeTests.BridgeTests) failing
by Nir Soffer
This tests started failing recently
23:10:06 ======================================================================
23:10:06 ERROR: testMethodWithIntParam (bridgeTests.BridgeTests)
23:10:06 ----------------------------------------------------------------------
23:10:06 Traceback (most recent call last):
23:10:06 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/tests/monkeypatch.py",
line 133, in wrapper
23:10:06 return f(*args, **kw)
23:10:06 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/tests/bridgeTests.py",
line 168, in testMethodWithIntParam
23:10:06 self.assertEqual(bridge.dispatch('VM.migrationCreate')(**params),
23:10:06 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/lib/vdsm/rpc/Bridge.py",
line 271, in _dynamicMethod
23:10:06 raise InvalidCall(fn, methodArgs, e)
23:10:06 InvalidCall: Attempt to call function: <bound method
VM.migrationCreate of <bridgeTests.VM instance at 0x7fbf3d64bef0>>
with arguments: ({'vmID': '773adfc7-10d4-4e60-b700-3272ee1871f9'},)
error: migrationCreate() takes exactly 3 arguments (2 given)
23:10:06 -------------------- >> begin captured logging << --------------------
23:10:06 DynamicBridge: ERROR: TypeError raised by dispatched function
23:10:06 Traceback (most recent call last):
23:10:06 File
"/home/jenkins/workspace/vdsm_master_check-patch-fc23-x86_64/vdsm/lib/vdsm/rpc/Bridge.py",
line 268, in _dynamicMethod
23:10:06 result = fn(*methodArgs)
23:10:06 TypeError: migrationCreate() takes exactly 3 arguments (2 given)
23:10:06 --------------------- >> end captured logging << ---------------------
I sent a patch to mark it as broken:
https://gerrit.ovirt.org/57364
The issue should be resolved when https://gerrit.ovirt.org/53305/
will be merged.
Dan, please take this patch until the schema change is ready.
Nir
8 years, 5 months
New network testing failing (netinfo move)
by Nir Soffer
Hi all,
Pleas this test, need to update after netinfo package was moved:
12:56:36 ======================================================================
12:56:36 ERROR: Failure: ImportError (No module named netinfo.addresses)
12:56:36 ----------------------------------------------------------------------
12:56:36 Traceback (most recent call last):
12:56:36 File "/usr/lib/python2.7/site-packages/nose/loader.py",
line 413, in loadTestsFromName
12:56:36 addr.filename, addr.module)
12:56:36 File "/usr/lib/python2.7/site-packages/nose/importer.py",
line 47, in importFromPath
12:56:36 return self.importFromDir(dir_path, fqname)
12:56:36 File "/usr/lib/python2.7/site-packages/nose/importer.py",
line 94, in importFromDir
12:56:36 mod = load_module(part_fqname, fh, filename, desc)
12:56:36 File
"/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/tests/network/ovs_info_test.py",
line 31, in <module>
12:56:36 from vdsm.network.ovs import info
12:56:36 File
"/home/jenkins/workspace/vdsm_master_check-patch-el7-x86_64/vdsm/lib/vdsm/network/ovs/info.py",
line 23, in <module>
12:56:36 from vdsm.netinfo.addresses import getIpAddrs, getIpInfo,
is_ipv6_local_auto
12:56:36 ImportError: No module named netinfo.addresses
This breaks unrelated builds:
http://jenkins.ovirt.org/job/vdsm_master_check-patch-el7-x86_64/1157/console
Cheers,
Nir
8 years, 5 months
[UI plugins] RestApiSessionAcquired is out, api.ssoToken() is in
by Vojtech Szocs
Hi everyone,
we've merged a patch that aligns UI code with Engine SSO infra:
https://gerrit.ovirt.org/#/c/49278/
In particular, UI code that creates & maintains REST webapp's
HTTP session was removed in favor of using SSO token.
**UI plugin authors take note!** The "RestApiSessionAcquired"
callback was removed -- please update your UI plugins to use
the new "api.ssoToken" function when making REST API requests:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://example.com/ovirt-engine/api');
xhr.setRequestHeader('Authorization', 'Bearer ' + api.ssoToken());
xhr.setRequestHeader('Accept', 'application/json');
xhr.addEventListener('load', function () {
// response loaded OK, parse JSON data
var data = JSON.parse(this.responseText);
});
xhr.send();
While being a breaking change, this should simplify UI plugin
code because:
- the new "api.ssoToken" function can be called anytime,
removing the need for an asynchronous callback
- no need to use session-specific request headers anymore
(like "Prefer: persistent-auth" and "JSESSIONID: xxx"),
just use "Authorization: Bearer xxx" and you're good
Please see commit msg of above mentioned patch for further
details on the changes and their implications.
Let me know if you have any questions or comments.
Regards,
Vojtech
8 years, 5 months
[VDSM] Strange build requirements added lately
by Nir Soffer
Hi all,
Building rpms is failing now on my development machine due to new
build requirements:
rpmbuild -ta \
vdsm-4.17.999.tar.gz
error: Failed build dependencies:
PyYAML is needed by vdsm-4.17.999-1091.git4d7d14a.fc22.x86_64
libvirt-python3 is needed by vdsm-4.17.999-1091.git4d7d14a.fc22.x86_64
mom >= 0.5.3 is needed by vdsm-4.17.999-1091.git4d7d14a.fc22.x86_64
openvswitch >= 2.0.0 is needed by vdsm-4.17.999-1091.git4d7d14a.fc22.x86_64
python3-netaddr is needed by vdsm-4.17.999-1091.git4d7d14a.fc22.x86_64
Needing a yaml package and python3-netaddr make sense, but I don't understand
why we need these packages for building vdsm:
- libvirt-python3 - we should not access libvirt using the tests
- mom - we are not running mom on a development machine
- openvswitch - we are not running this on a development machine
If these are not build requirements, please remove them.
Thanks,
Nir
8 years, 5 months