[Pulp-list] Pulp 2.8.0: "pulp-admin rpm repo search" with filters does not work as expected

Simon Baatz gmbnomis at gmail.com
Wed Mar 16 16:22:32 UTC 2016


Hi,

on a freshly installed Pulp 2.8.0 install (CentOS 7), pulp-admin
behaves different to 2.7.1 when searching RPM repos. 

There is a single RPM repo with id "sum42" on Pulp.  Searching for it
using the example syntax given in the command's help text yields
nothing:

$ pulp-admin rpm repo search --fields id --str-eq="id=sum42"
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+




However, using "repo_id" as attribute name works:

$ pulp-admin rpm repo search --fields id --str-eq="repo_id=sum42"
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:           sum42




Interestingly, a raw JSON Mongo filter seems to accept both "id" and
"repo_id":

$ pulp-admin rpm repo search --fields id --filters '{"id": "sum42"}'
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:           sum42



Given this inconsistency, this looks like a bug(?)



- Simon




More information about the Pulp-list mailing list