Client should not collect custom-graphs data if the server doesn't accept the message type anymore

Bug #285086 reported by Thomas Herve
2
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Medium
Thomas Herve
Landscape Server
Fix Released
Medium
Thomas Herve

Bug Description

Currently, if a computer is removed from the system, the accepted-types is updated, so it'll stop sending message, but will continue launching script and collect data from existing custom graphs. It should check the accepted types at each run to see if it should continue to produce data.

Thomas Herve (therve)
Changed in landscape:
assignee: nobody → therve
importance: Undecided → Medium
milestone: none → thames+1
Thomas Herve (therve)
Changed in landscape:
milestone: thames+1 → thames
status: New → In Progress
Revision history for this message
Thomas Herve (therve) wrote :

This is ready to review in the attached branch.

Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

Nice fix, +1

Does this mean that we should implement some sort of blocker on the server side?

(Obviously the synchronisation deals with removed graphs, but should the server have a way to halt the client data?)

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

[1]

The basic idea looks good, but it'd be good to clean it up a bit. Specifically, continue_run() should be a method on the class. Note that most of run()'s body is a closure, and most the variables that are defined outside of continue_run() (and still in the body of run()) are never actually used outside of the closure, so they may be part of the new class method itself, and there's no need for the closure.

+1 with this!

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Kevin, I don't get what you mean by a blocker on the server side.

Revision history for this message
Thomas Herve (therve) wrote :

Merged in r67.

Changed in landscape:
status: In Progress → Fix Committed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

qa + 1, works nicely. There is one side effect though, which is not the fault of this fix: the client immediately tries to register again :)

Changed in landscape:
milestone: thames → thames+1
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

There is no client release in this milestone, so I'm pushing this to the next one (mountainview-pre-1).

Changed in landscape:
milestone: thames+1 → mountainview-pre-1
Changed in landscape:
milestone: mountainview-pre-1 → mountainview-pre-2
Changed in landscape:
milestone: mountainview-pre-2 → mountainview-pre-3
Changed in landscape:
milestone: mountainview-pre-3 → mountainview-pre-4
Changed in landscape:
milestone: mountainview-pre-4 → mountainview-pre-5
Changed in landscape:
milestone: mountainview-pre-5 → mountainview-pre-6
Changed in landscape:
milestone: mountainview-pre-6 → mountainview-pre-7
Changed in landscape:
milestone: mountainview-pre-7 → mountainview-pre-8
Changed in landscape-client:
importance: Undecided → Medium
status: New → Fix Committed
assignee: nobody → therve
Changed in landscape:
status: Fix Committed → Fix Released
Changed in landscape:
milestone: mountainview-pre-8 → mountainview
status: Fix Released → Fix Committed
Changed in landscape:
status: Fix Committed → Fix Released
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.