Repository navigation
Conversation
|
The CI fail on 8.0 repository because it doesn't exist yet, Zabbix 8.0 will be released this month as indicated in the Zabbix roadmap. |
|
Seems good at first glance, we'll run again the pipelines when there'll be a stable release (and see what happens, hopefully meanwhile we'll do a proper test review). Ping me again when there is a stable release (and thanks for the PR!) |
|
Stable has been released! |
|
@Safranil can you rebase and push again? |
0be5b83 to
f124f29
Compare
Done. Unfortunately, I can't test the 8.0 code on a real infrastructure anytime soon... |
5cf5558 to
21f78ad
Compare
smortex
left a comment
There was a problem hiding this comment.
7.0 is fine but later version do not seem to work. If I read correctly, this PR only fix 8.0, but 7.2 and 7.4 are also affected.
Indeed, this PR break on 7.2 and 7.4. This was discussed in #981 where @Valantin told me this module should only support Zabbix LTS. So I'm confused by your proposed change, should I support Zabbix 7.2 and 7.4 or only LTS releases ? |
|
@Safranil I am not aware of the Zabbix release cycle (I hit this by accident 😄). I understand that there is LTS and non-LTS releases, and reading #981 I feel like the comments of @Valantin are mostly about the tests: testing all releases is maybe overkill and we can only run tests against LTS versions as the module currently does. But the module's code may still work regardless of the LTS status of the release? |
Since Zabbix 7.2, the APT repository has changed to repo.zabbix.com/zabbix/7.2/release and packages content moved to a /usr/share/zabbix/ subdirectory.
21f78ad to
6b6606a
Compare
My bad, I misunderstood that on the other PR. I rebased my work on top of master and accepted your changes. I also adapted two spec that check the Zabbix version. |
smortex
left a comment
There was a problem hiding this comment.
Looks good, just a typo to fix and CI should be happy!
Co-authored-by: Romain Tartière <romain@blogreen.org>
smortex
left a comment
There was a problem hiding this comment.
Not at $WORK today to fully test it, but LGTM!
| # Version older than 7.2 | ||
| -1 => "http://repo.zabbix.com/zabbix/${zabbix_version}/${operatingsystem}/", | ||
| # Version 7.2 and newer | ||
| default => "http://repo.zabbix.com/zabbix/${zabbix_version}/stable/${operatingsystem}/", |
There was a problem hiding this comment.
$operatingsystem is debian-arm64 or ubuntu-arm64 on arm64 hosts (set a few lines above), so this branch produces …/7.2/stable/debian-arm64/ and …/8.0/stable/debian-arm64/, and both return 404. Starting with 7.2 the arm64 packages are in the main dist: the stable/debian and stable/ubuntu Release files list arm64, and main/binary-arm64/Packages.gz is present. The separate debian-arm64 tree only exists up to 7.0, so drop the suffix in the 7.2+ branch only.
| default => "http://repo.zabbix.com/zabbix/${zabbix_version}/stable/${operatingsystem}/", | |
| default => "http://repo.zabbix.com/zabbix/${zabbix_version}/stable/${regsubst($operatingsystem, '-arm64$', '')}/", |
| # Version older than 7.2 | ||
| -1 => '/usr/share/zabbix', | ||
| # Version 7.2 and newer | ||
| default => '/usr/share/zabbix/ui', |
There was a problem hiding this comment.
New docroot has no test. spec/classes/web_spec.rb never asserts docroot or the directory paths, and the acceptance tests do not request the UI over HTTP, so the 7.2+/8.0 layout is only checked by reading the code. Please add a unit case with zabbix_version: '8.0' and manage_vhost: true that asserts contain_apache__vhost('zabbix.example.com').with_docroot('/usr/share/zabbix/ui'), and keep an assertion for /usr/share/zabbix on 7.0.
| } | ||
| end | ||
|
|
||
| it { is_expected.to contain_yumrepo('zabbix').with_baseurl("https://repo.zabbix.com/zabbix/8.0/stable/rhel/#{major}/$basearch/") } |
There was a problem hiding this comment.
Only the RHEL URL is covered. The Debian branch in manifests/repo.pp also switches to /stable/, but no test asserts the resulting apt::source('zabbix') location, so a wrong URL there would only show up in the acceptance job. Please add a Debian case asserting the new location.
Pull Request (PR) description
Zabbix 7.2 was published some day ago and some structural change was made by Zabbix Team:
This PR add support for this new structure for the upcoming Zabbix 8.0 LTS release.
This Pull Request (PR) fixes the following issues
Replace PR #981.
This is linked to #995 and #1029, even though the issues refer to a non-LTS version of Zabbix.