Merge lp://qastaging/~doanac/lava-dispatcher/config-warnings into lp://qastaging/lava-dispatcher

Proposed by Andy Doan
Status: Merged
Merged at revision: 477
Proposed branch: lp://qastaging/~doanac/lava-dispatcher/config-warnings
Merge into: lp://qastaging/lava-dispatcher
Diff against target: 27 lines (+10/-0)
1 file modified
lava_dispatcher/config.py (+10/-0)
To merge this branch: bzr merge lp://qastaging/~doanac/lava-dispatcher/config-warnings
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+137431@code.qastaging.launchpad.net

Description of the change

Not a huge fan of this, but it quiets the warnings printed out when a device like fastmodel exists that uses our boot options support.

This fix becomes more important very soon, because the scheduler will be asking the dispatcher for its known devices periodically which could cause our log files to be filled with warning messages.

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Andy Doan <email address hidden> writes:

> Andy Doan has proposed merging lp:~doanac/lava-dispatcher/config-warnings into lp:lava-dispatcher.
>
> Requested reviews:
> Linaro Validation Team (linaro-validation)
>
> For more details, see:
> https://code.launchpad.net/~doanac/lava-dispatcher/config-warnings/+merge/137431
>
> Not a huge fan of this, but it quiets the warnings printed out when a
> device like fastmodel exists that uses our boot options support.

I'm not really a fan of considering extra entries in the config as
errors for a couple of reasons:

1) I do this in my panda config to help readability:

device = /dev/serial/by-path/pci-0000:00:1a.0-usb-0:1.1.3:1.0-port0
connection_command = sg dialout "cu -l %(device)s -s 115200"

2) We're going to want to add things like "which alsa device do we
record from when capturing audio from this device" to the device config
and I don't think it's reasonable to add all these values to the config
as well.

> This fix becomes more important very soon, because the scheduler will
> be asking the dispatcher for its known devices periodically which
> could cause our log files to be filled with warning messages.

That said, +1 on the proposal unless I've convinced you to change
approach :-)

Cheers,
mwh

Revision history for this message
Andy Doan (doanac) wrote :

On 12/02/2012 02:01 PM, Michael Hudson-Doyle wrote:
> Andy Doan <email address hidden> writes:
>
>> Andy Doan has proposed merging lp:~doanac/lava-dispatcher/config-warnings into lp:lava-dispatcher.
>>
>> Requested reviews:
>> Linaro Validation Team (linaro-validation)
>>
>> For more details, see:
>> https://code.launchpad.net/~doanac/lava-dispatcher/config-warnings/+merge/137431
>>
>> Not a huge fan of this, but it quiets the warnings printed out when a
>> device like fastmodel exists that uses our boot options support.
>
> I'm not really a fan of considering extra entries in the config as
> errors for a couple of reasons:
>
> 1) I do this in my panda config to help readability:
>
> device = /dev/serial/by-path/pci-0000:00:1a.0-usb-0:1.1.3:1.0-port0
> connection_command = sg dialout "cu -l %(device)s -s 115200"
>
> 2) We're going to want to add things like "which alsa device do we
> record from when capturing audio from this device" to the device config
> and I don't think it's reasonable to add all these values to the config
> as well.
>
>> This fix becomes more important very soon, because the scheduler will
>> be asking the dispatcher for its known devices periodically which
>> could cause our log files to be filled with warning messages.
>
> That said, +1 on the proposal unless I've convinced you to change
> approach :-)

I think I'll keep my change because it does silence something. However,
we might consider changing the log.warning of the configglue report to
be a log.debug.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches