Repository navigation
Add Suse support using the Suse provided packages - #1081
mattmallard wants to merge 13 commits into
Conversation
|
Thank you for the PR, @mattmallard ! I've authorized the basic CI to run (no acceptance tests) and it looks good. Puppet Core 9 failed, but that's an infra issue (need to run that on a branch, not a fork). The CLA assistant seems to be reporting that you haven't signed the contributor license agreement yet. Would you be able to complete that before we move further with the PR? |
|
Thanks @jst-cyr , I have completed the CLA now. |
|
Running CI tests for this PR here: #1083 |
|
Thank you for doing that @mattmallard ! I'll kick off the acceptance tests and we'll see how those do. |
|
Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-docker/actions/runs/39327274334?pr=1083 Failures on CentOS 8 and Debian 11. Both failures match to what is seen with nightly tests against main, so not introduced by this PR. However, there are no results for Suse. This PR is specifically about SUSE support and would require acceptance testing against SUSE. The tests reported this error: The matrix attempted to open an acceptance test against openSUSE-15 but this was not a supported test environment to provision so was unable to do so. For now, progressing with this PR is blocked until acceptance testing is possible against SUSE. We do have supported SUSE Linux Enterprise Server (SLES) images for testing, but likely not openSUSE specifically. This requires some changes to map to the supported SLES images that are used for acceptance testing by looking at another module that already has SLES testing configured in the matrix. |
|
Thanks for the update @jst-cyr , is there anything I can do? I'm pretty sure SLES and openSUSE are identical in their layout and software versions (mostly), but I don't have access to a SLES system. |
|
@mattmallard : Let me do some digging here... I think we have SLES 15 running on some other modules, I'll check to see what they are referencing in the metadata and see if I can fix it up. |
|
@mattmallard : I found in our You'll notice this block: We use SLES as that is the official OS that is supported for Puppet agents. Do you have a hard requirement to only do openSuse? Or would it be okay to update this PR to be focused towards Suse in general, using SLES as the testing bed? If so, I think the only fix you need is to change the operatingsystem in metadata to SLES and then acceptance testing should run. The other changes in the PR look like they should work on either, it would only be the PR description that would need some extra updates since it is specifically about openSuse. |
|
Thanks @jst-cyr , I have now updated it to SLES 15 and 16 (12 is a bit old now and may not work so well with docker). SLES 16 has been out for a year now and it and 15 is pretty aligned to opensuse. I have left the code logic based on Suse which is the family that will match both sles and opensuse. |
|
Thank you @mattmallard ! I agree, adding SLES 12 at this point doesn't make much sense. Right now, Puppet Core doesn't support SLES 16, so I don't know if we'll have any provisioned infrastructure for doing SLES 16 acceptance testing, but we should be able to get the v15 tested. I'll kick off a new round of acceptance testing and let's see if the SLES 15 spins up... |
|
Running CI for this PR here: #1087 |
|
Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-docker/actions/runs/40054939249?pr=1087 All green except for SLES 15. All 3 failures below occur identically on both the Puppet Core 8 and Puppet Core 9 SLES-15 runs, which confirms this is a single root-cause set rather than a version-specific regression. I had Claude analyze and suggest some possible fixes: 1.
|
|
@jst-cyr, sorry for the delay, it takes a while to get time to focus on this. I have submitted some fixes that hopefully get us through the acceptance tests. |
|
No worries on the delay at all, @mattmallard ! Life happens, and I'm really appreciative of the effort you're putting in here. I've approved the base unit tests to run, and if those go green on 8.0 I'll kick off the acceptance test suite. |
|
@mattmallard : It looks like the basic unit tests failed on Rubocop style checks:
|
|
@jst-cyr , I pushed another update, hopefully that's sorted it now. |
|
Thanks @mattmallard ! I confirmed the CI against 8.0 looked good, then merged in latest from main and will kick off the acceptance tests. |
|
Running CI tests for this PR via #1091 |
|
🛑 Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-docker/actions/runs/41901386056?pr=1091 Failures on SLES 15 for both Puppet Core 8 and Puppet Core 9. Otherwise looks good. Given the PR is about Suse/SLES support, this is a blocker. From looking at the error, it seems that there is a mismatch in comparing 'Suse' to 'suse'. The other parts of the module use 'Suse' for checks, but the Needs to be updated to either use the expected casing ('Suse') or string-insensitive comparison. |
|
@jst-cyr , ok I have pushed another fix, glad to know the testing is so thorough! |
|
Thanks @mattmallard ! CI spec test against 8.0 looks good, I'll kick off acceptance tests and report back. |
|
Running CI tests via: #1093 |
specinfra's os[:family] reports SLES hosts as 'sles', not 'suse', unlike Puppet's Facter os.family which uses 'Suse'. The acceptance test was comparing against the wrong value, so it fell through to the docker-ce/netstat checks that don't apply on SLES. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
✅ Acceptance Test Results: https://github.com/puppetlabs/puppetlabs-docker/actions/runs/42310612402?pr=1093 All green! Hooray! The only failure in the first check was in Pushed a fix directly to this branch (commit 6d97023) widening the check to |
|
tested this and it works well for us except the $socket_overrides_template needs to be defined in params.pp at line 305. This worked for me on sles15sp7.
Not sure the best way to contribute directly to someone else's pull request? |
|
@jbagleyjr : Might be best for @mattmallard to coordinate on this so it gets incorporated into the PR. A good find! |
|
@jst-cyr, I added the suggestion |
|
Thanks @mattmallard , I'll kick off the spec testing for initial tests. It looks like there are some conflicts with main branch, now, though. Might be good to get those looked at before I run the acceptance tests. |
Summary
Add Suse Support to Docker Module
Additional Context
I tried to be consistent with the existing platforms as much as possible, but there is no upstream distribution for Suse - just what is in the suse repos, so that is the only supported way to install docker-ce on suse and through this module.
Related Issues (if any)
none
Checklist
puppet apply)