Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry Picks for 3.3.1 #6662

Merged
merged 11 commits into from Mar 9, 2017
Merged

Cherry Picks for 3.3.1 #6662

merged 11 commits into from Mar 9, 2017

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Mar 9, 2017

No description provided.

jlsherrill and others added 11 commits March 9, 2017 08:44
During fact importing, RhsmFactName objects are created
in large quantity. Because first_or_create is very susceptible
to race conditions, we rescue on RecordNotUnique within
RhsmFactImporter#add_fact_name.  However if duplicate record
exception is thrown while in a transaction the entire
transaction is aborted.  The run phase does not use a transaction
so the problem should not occur there.

(cherry picked from commit 98bb66d)
Previously, an error with stack trace was logged when a host was not
found by the katello_events job listener.

Instead, just log a warning and move on. The `run` phase also checks
if `@host` is set, so there's no need to raise an exeception.

(cherry picked from commit 6ccc80f)
Go to Content -> Errata and select the Installable check box
Prior to this commit the "installable_for_hosts" method would create a
introduce an extra 'inner join' causing the query to perform painfully
slow. This commit fixes that by selectively adding that duplicate join
table only if required.

The installable repo query also had a duplicate join for the katello
errata table. Which got removed in this commit

Also fixed the unit tests to highlight the point that "Installable
Errata" is determined by the repositories bound to that host.
Basically the query says "Find all applicable errata on this host.
Filter this list further by only including those repos that are enabled
on this host"

Fixed the unit tests to something that make more sense.

Installable errata is determined purely by the repos that are bound to
the host. It does not really matter what environment/content view
this host belongs. CVE gives the master list of repos available to the
host of which only a subset are enabled or bound.

(cherry picked from commit bd158ce)
Org destroy was not properly unassociating environments and content
views from hosts + hostgroups.

Updated the plan to handle that

(cherry picked from commit c6a4c5b)
For Puppet 3 to Puppet 4 upgrades, the distributor path for puppet
content changes. When publishing or promoting we need to ensure that
this update is detected and content lands in the new location.

(cherry picked from commit 2b86ed7)
and instead require that a capsule object be present,
and default to the default capsule

(cherry picked from commit 51811d4)
@mention-bot
Copy link

@ehelms, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jlsherrill, @parthaa and @johnpmitsch to be potential reviewers.

@theforeman-bot
Copy link

There were the following issues with the commit message:

  • length of the first commit message line for f2ee946 exceeds 65 characters

If you don't have a ticket number, please create an issue in Redmine.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

Copy link
Member

@jlsherrill jlsherrill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APJ

@ehelms ehelms merged commit d56b2fd into Katello:KATELLO-3.3 Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants