-
Notifications
You must be signed in to change notification settings - Fork 130
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
Fixes #29213 - Support el8 #582
Conversation
a54fc02
to
30cc791
Compare
cb8f459
to
d4d8b57
Compare
For the installer itself running against a system, the only error I hit with default config is in this module:
|
I opened #583 to tackle specific runtime issue I see for El8 support. |
e57bd2a
to
d88cd3e
Compare
@ehelms latest changes I've pushed here should fix the el8 spec tests. Investigating failures on centos{7,8} acceptance tests next. |
theforeman/puppet-foreman#830 would fix that. Haven't had time to dive into the test failures. |
when 'CentOS' | ||
it { should contain_file("/tftproot/grub2/grubx64.efi").with_source('/boot/efi/EFI/centos/grubx64.efi') } | ||
it { should contain_file("/tftproot/grub2/shimx64.efi").with_source('/boot/efi/EFI/centos/shimx64.efi').with_owner('root').with_mode('0644') } | ||
end | ||
else | ||
it { is_expected.to contain_class('foreman_proxy::tftp::netboot').with_grub_installation_type('redhat_old') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this is a good time to drop the EL6 code since this module doesn't support EL6. We also don't support running on EL 7.4 so all of that can be cleaned up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will have to research this further. I assume it involves changes to multiple manifests and tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently it's failing for me due to:
I believe we are using a module in |
Did you run |
I will check why that's happening. |
So, tests passed on Travis but the centos7 test is still failing for me locally due to the
I think we could fix that just by making |
Confirmed |
IMHO it's still better to start at the lower tiers, then work your way up. https://github.com/theforeman/foreman-installer-modulesync#finding-the-order You're now testing a module that depends on modules that themselves don't declare themselves compatible with EL8 and that can make you run into issues. |
Looks like this just needs two tests updated due to differences between EL7 and EL8 |
Yeah, I lost the fix there when rebasing. It's my next priority when I'm off this call :) |
93ab5a2
to
6faefc0
Compare
Failures look related to a new release of beaker today: https://rubygems.org/gems/beaker/versions/4.22.0 |
pinning beaker <= 4.22.0 appears to have resolved it. Updated PR title since this is no longer WIP, will update commit messages and push once more, then this should be good to go I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I;m happy with this approach to get the EL8 support in and then use that Redmine issue to fix the problem with beaker version across our modules via modulesync.
@@ -41,13 +41,21 @@ | |||
case facts[:operatingsystem] | |||
when /^(RedHat|Scientific|OracleLinux)$/ | |||
it { should contain_file("/tftproot/grub2/grubx64.efi").with_source('/boot/efi/EFI/redhat/grubx64.efi') } | |||
it { should contain_file("/tftproot/grub2/shim.efi").with_source('/boot/efi/EFI/redhat/shim.efi').with_owner('root').with_mode('0644') } | |||
if facts[:os]['release']['major'].to_i >= 8 | |||
it { should contain_file("/tftproot/grub2/shimx64.efi").with_source('/boot/efi/EFI/redhat/shimx64.efi').with_owner('root').with_mode('0644') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this related to GH-592?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch. The other PR is to essentially drop shim.efi and use only shimx64.efi (both are available on EL7). If that is merged, it would simplify the tests here because there would no longer be a difference between EL7 and EL8.
I think we could go ahead and merge this, since the other one is waiting on contrib with a few requested changes, and the other one would then also need to recombine the EL{7,8} tests to simply test for shimx64.efi in all cases. What do you think @mmoll ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to have other PR in first, tbh...
Please rebase |
Thanks @wbclark ! |
No description provided.