Page MenuHomePhabricator

Cumin: excluding a deleted OpenStack project in aliases.yaml causes cumin to fail
Closed, ResolvedPublic

Description

aliases.yaml looks like this:

# Cumin aliases, in the form:
# key: query_using_the_global_grammar
all: O{*} and not O{project:contintcloud} and not O{project:admin-monitoring}

For some reason, that 'and not' causes cumin to try to load the 'contintcloud' project. That project doesn't exist anymore, so Cumin gets a 403 from OpenStack and errors out.

Event Timeline

Change 477799 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] cumin: don't mention contintcloud, it doesn't exist

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

Change 477799 merged by Andrew Bogott:
[operations/puppet@production] cumin: don't mention contintcloud, it doesn't exist

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

This is totally expected, that alias query is using the global grammar mixing the results of three different queries to OpenStack according to the provided boolean operators.
The current openstack grammar allow to query with the given parameters either on all projects or a specific one. All projects but some is not a feature of the current OpenStack grammar in Cumin.
So not sure what is the request here,
As to avoid the error, a quick git grep on the Puppet repo when deleting a project should be enough. In fact contintcloud is still mentioned in another two places in the Puppet repo beside this one.

Andrew claimed this task.