Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active September 28, 2018 13:59
Show Gist options
  • Save jlsherrill/b726468444d5372bbf78 to your computer and use it in GitHub Desktop.
Save jlsherrill/b726468444d5372bbf78 to your computer and use it in GitHub Desktop.
Errata debugging
6.0/2.0
> foreman-rake console
> User.current = User.first
check to make sure we know which repos the system is using (this is sent by katello-agent)
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.bound_yum_repos
Ask pulp directly what errata it thinks are applicable
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.errata_ids
6.1/2.1/2.2
> foreman-rake console
check to make sure we know which repos the system is using (this is sent by katello-agent)
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.bound_repositories
check to make sure we indexed the repositories properly:
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.bound_repositories.map{|r| r.errata.count}
Ask pulp directly what errata it thinks are applicable
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.errata_ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment