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 Foreman 3.11.2 #10304

Merged
merged 10 commits into from
Sep 3, 2024
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 30, 2024

I went through the changes since 3.11 branches and think that these are all relevant picks.

evgeni and others added 7 commits August 30, 2024 15:49
FFI 1.17 needs rubygems 3.3.22+, which is Ruby 3.0+ only

(cherry picked from commit f2e6bca)
Moving it to a different file alphabetically after seeds.rb makes the
callback finalizing plugin end up being put after the callback that does
the seeding.

(cherry picked from commit b5638c7)
Currently when entering an invalid MAC address while editing a host's
interface, the message shown is:
"'fa:16:3e:17:3e:19x' is not a valid MAC address and is not a valid
MAC address"

This is because before the validation itself, another method
Net::Validations::normalize_mac is called, which also raises
an error upon finding a MAC address invalid
(foreman/app/models/nic/base.rb).

Since I found the method normalize_mac being used at multiple places, I
did not want to alter the behavior of this method. Validation through
the MacAddressValidator seems to be used only once, so I deemed more
proper to edit the method there. Still, I am not certain if the two
methods are equivalent as far as validation goes, so I just added a
condition which prevents duplicating the error message if normalize_mac
already threw an error.

(cherry picked from commit 38fae6e)
The sequences can be so large that the resulting IP is outside of the
subnet. That causes tests to fail. It now determines the available IPs
within the subnet and uses modulo to stay within that.

(cherry picked from commit 451ebb1)
When having a domain with a .ics extension we get a
ActionView::MissingTemplate: Missing template react/index error. This
PR change forces the react controller to use the HTML format.
With this change the host is able to be loaded in the UI.

(cherry picked from commit 44160c0)
@ekohl ekohl requested a review from a team as a code owner August 30, 2024 13:53
@pr-processor pr-processor bot added Not yet reviewed Stable branch PRs that are opened against a stable branch. Usually a cherry pick Waiting on contributor labels Aug 30, 2024
Copy link
Member

@evgeni evgeni left a comment

Choose a reason for hiding this comment

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

want to also pick my test fixes from #10302 and #10298 (interestingly, this test is failing here even tho the Fixes one is not in 3.11 it is in 3.11!)?

@ekohl
Copy link
Member Author

ekohl commented Sep 3, 2024

The RHEL 9 build looks unrelated:

 Problem: cannot install the best candidate for the job
  - nothing provides systemd-pam = 252-32.el9_4.7 needed by systemd-252-32.el9_4.7.x86_64 from baseos
  - nothing provides systemd-rpm-macros = 252-32.el9_4.7 needed by systemd-252-32.el9_4.7.x86_64 from baseos

@ekohl ekohl merged commit c15a6b8 into theforeman:3.11-stable Sep 3, 2024
49 of 52 checks passed
@ekohl ekohl deleted the 3.11.2-cherry-picks branch September 3, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stable branch PRs that are opened against a stable branch. Usually a cherry pick Waiting on contributor
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants