Move the retry mechanism to the client
Bug #1402653 reported by
Fernando Correa Neto
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In order to have the package reporter to retry the 'apt-get update' operation a few times before it gives up, the client must have a retry mechanism.
Changed in landscape-client: | |
importance: | Undecided → High |
Changed in landscape-client: | |
status: | In Progress → Invalid |
importance: | High → Undecided |
assignee: | Fernando Correa Neto (fcorrea) → nobody |
To post a comment you must log in.
Note that if you refer to canonical. twisted. retry in the server, I'm not convinced it's a good choice. That machinery implements blind retries, and it's a workaround that we should eventually drop. That code also has the problem of using the Twisted reactor directly, instead of the wrapper that the client uses (landscape. reactor. Landscape. Reactor) .
I'd probably go for implementing retries by hand for this specific case, using landscape. reactor. LandscapeReacto r.call_ later, and be sure to not blindly retry and instead check for expected error conditions (like the apt db is locked).
Later on we could see if we have enough use cases and enough data to modify canonical. twisted. retry with some information about the failures that should be retried, but that's something I'd not do now.