Page MenuHomePhabricator

wmf-auto-reimage: handle multiple conftool services per host
Closed, ResolvedPublic

Description

When wmf-auto-reimage's -c flag is used to depool in conftool, it seems to assume only one service will be returned for the host (which is true on e.g. appservers). Some hosts have multiple services, and the conftool output in this case is one complete JSON "document" per service on separate lines. It parses the whole of the conftool output as a single JSON document, which then fails JSON parsing...

Event Timeline

Change 318550 had a related patch set uploaded (by Volans):
conftool: add --host option

https://gerrit.wikimedia.org/r/318550

Change 318550 merged by Giuseppe Lavagetto:
conftool: add --host option

https://gerrit.wikimedia.org/r/318550

Change 320367 had a related patch set uploaded (by Giuseppe Lavagetto):
conftool: add --host option

https://gerrit.wikimedia.org/r/320367

Change 320367 merged by Giuseppe Lavagetto:
conftool: add --host option

https://gerrit.wikimedia.org/r/320367

Volans claimed this task.
Volans removed a project: Patch-For-Review.

With the refactoring for T166300 this problem will be naturally solved moving from a shellout to confctl to the use of the conftool library. Resolving.