[Pulp-list] Listing Errata Applicable to a Consumer

Matthew Ceroni matthewceroni at gmail.com
Thu Dec 15 06:58:58 UTC 2016


So I have been working with this set of API calls and not sure I am going
down the right path here.

First, I called the regenerate_applicability API call with the following
request

{
  "consumer_criteria": {
    "sort": [
      [
        "id",
        "ascending"
      ]
    ]
  },
  "repo_criteria": {
    "filters": {
      "id": {
        "$in": [
          "x86_64-os-centos7",
          "x86_64-updates-centos7"
        ]
      }
    }
  }
}


My understanding is that this would essentially generate a map of all RPMs
from the specified repo that are installed on all consumers (since I didn't
filter).

>From there I made a call to applicability with the following request

{
  "units": {
    "rpm": [
      {
        "filename": "influxdb-1.0.0_beta2-1.x86_64"
      }
    ]
  },
  "criteria": {
    "sort": [
      [
        "id",
        "ascending"
      ]
    ]
  }
}


Figuring that it would just return to me the consumer(s) that had that RPM
installed. It did not. It appeared to return to me all the consumers and
list all the applicable RPMs (based on ID).

Apparently I am using these API calls incorrectly.

On Thu, Dec 1, 2016 at 12:21 PM, Dennis Kliban <dkliban at redhat.com> wrote:

> The docs for applicability calculations can be found here[0].
>
>
> [0] http://docs.pulpproject.org/dev-guide/integration/rest-api/
> consumer/applicability.html
>
> ----- Original Message -----
> > How do you list errata applicable to a consumer?
> >
> > https://www.fedorahosted.org/pulp/wiki/Errata
> >
> > Which is older documentation is no longer valid as pulp-admin doesn't
> have an
> > errata sub-command.
> >
> > I am running 2.10, have the consumer register and bound to a repository
> that
> > has errata. Would like to be able to query by errata all systems that are
> > affected.
> >
> > Thanks
> >
> > _______________________________________________
> > Pulp-list mailing list
> > Pulp-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/pulp-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20161214/9b165c40/attachment.htm>


More information about the Pulp-list mailing list