Page MenuHomePhabricator

Cumin: PuppetDB, fail better if regex are used on resource parameters
Closed, ResolvedPublic

Description

PuppetDB APIv3 doesn't support to use regex while querying resource parameters.

Let Cumin detect this and fail with a nice message that tells the user why instead of a 400 from PuppetDB

Event Timeline

Change 346301 had a related patch set uploaded (by Volans):
[operations/software/cumin@master] PuppetDB backend: consistently use InvalidQueryError

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

Change 346302 had a related patch set uploaded (by Volans):
[operations/software/cumin@master] PuppetDB backend: forbid resource's parameters regex

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

Change 346301 merged by jenkins-bot:
[operations/software/cumin@master] PuppetDB backend: consistently use InvalidQueryError

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

Change 346302 merged by jenkins-bot:
[operations/software/cumin@master] PuppetDB backend: forbid resource's parameters regex

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

Volans triaged this task as Medium priority.
Volans moved this task from In Code Review to Done on the SRE-tools board.
Volans removed a project: Patch-For-Review.