hardware plugin not reporting on upgrade

Bug #955734 reported by David Britton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Critical
Björn Tillenius

Bug Description

In doing upgrade tests on the client, I noticed that hardware information was not reported. I traced through the code and I believe the problem is the registration of events that the hardware listens for.

in r470, a change was made to listen on message-type-acceptance-changed, which only seems to fire when events get added or removed from the accepted reporting types list coming back from the server. The effect of this seems to be to only report hardware when the message type list that the server accepts *changes*. Which of course happens when the client is first run on a virgin system, but when doing an upgrade, you will have a stored accepted_types list already in tact, but will have never reported hardware.

Looking at the other client modules, it looks like this should be reported with not only the call_on_accepted callback, but also the call_if_accepted callback which I think will report at startup regardless of state.

I'm attaching a branch with the proposed fix, which works as I expect, but has no tests, and may possibly be a naive implementation.

David Britton (dpb)
tags: added: theme-hardware
Changed in landscape-client:
status: New → In Progress
assignee: nobody → Björn Tillenius (bjornt)
Revision history for this message
Björn Tillenius (bjornt) wrote :

I've added tests to the patch and commited it in r517.

I also filed bug 955899 about how to address this problem properly.

tags: added: points-1 squad-gamma
Changed in landscape-client:
status: In Progress → Fix Committed
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.