Page MenuHomePhabricator

Cumin: create external backend for WMCS Puppet API
Open, MediumPublic

Description

After support for external backends in Cumin was added in T178342, it is now possible to write an external backend for the WMCS Puppet API to allow to query hosts also by their Puppet classes.

Event Timeline

Volans created this task.Nov 6 2017, 11:27 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 6 2017, 11:27 AM
Volans triaged this task as Medium priority.Nov 6 2017, 11:27 AM
Volans removed Volans as the assignee of this task.Feb 14 2019, 5:15 PM
crusnov moved this task from Backlog to Up next on the SRE-tools board.Feb 14 2019, 5:16 PM

openstack-browser is not the source of the data, horizon inserts it into a service known as encapi, openstack-browser merely queries that.

Dzahn awarded a token.Nov 8 2019, 5:45 PM
Dzahn added a subscriber: Dzahn.

People working on this task will probably want to add a GET route to modules/openstack/files/puppet/master/encapi/labspuppetbackend.py in operations/puppet.git (to make it quick to get data about all instances and their puppet classes in one query), and it will be exposed within the labs network at http://puppetmaster.cloudinfra.wmflabs.org:8100 where a cumin backend can pick it up without needing to send hundreds of requests