-
Notifications
You must be signed in to change notification settings - Fork 19
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
test: cockpit-pcp is deprecated - use cockpit-machines #181
test: cockpit-pcp is deprecated - use cockpit-machines #181
Conversation
8cd2fd4
to
b79aebf
Compare
[citest] |
1 similar comment
[citest] |
OK -- Note that you will have to replace the "cockpit-pcp" fallback with something else eventually, it's gone in current Ubuntu version as well. |
Ok - I guess we'll need to do that when we add a CI test for |
[citest] |
[citest bad] |
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.
Argh! I did a review three days ago, but apparently actually sending it failed. Sorry! (I was already wondering why I was being ignored..)
b79aebf
to
732a191
Compare
@martinpitt seems |
@richm weird -- it does exist in 22.04, 24.04, and latest: https://launchpad.net/ubuntu/+source/cockpit-podman |
I'm not sure I understand this -- what actually tells the role to install cockpit-podman? Shouldn't that be here? As far as I can see, this only changes the check after the role ran, but not the role invocation itself? Update: That should happen through __cockpit_packages_full:
- cockpit-* So this feels like a bug. |
The test tells the cockpit role to install all packages specified in On RedHat family https://github.com/linux-system-roles/cockpit/blob/main/vars/RedHat-10.yml#L24
Yes.
Right. So the problem is that installing
|
yes, this is a bug - note this from the Ubuntu log:
It is using Debian specific values on Ubuntu |
@martinpitt ah - because Ubuntu is in Debian os_family and because there is a Debian.yml vars file, this code pulls in those variable definitions for Debian on Ubuntu - https://github.com/linux-system-roles/cockpit/blob/main/tasks/set_vars.yml#L32 so what should we do here? Should I create a vars/Ubuntu.yml which uses |
That seems right in general -- Ubuntu as a derivative of Debian should be similar enough to Debian to not warrant another copy I think. So is the problem that https://github.com/linux-system-roles/cockpit/blob/main/vars/Debian.yml#L10 doesn't support a "cockpit-*" glob? As a minimal fix for this PR you may perhaps use "cockpit-machines"? That exists everywhere aside from RHEL 7 (not sure if you still care about that), and it's part of the Debian __full definition. And perhaps in a follow-up add cockpit-podman there, if the globbing doesn't work? Thanks! |
correct - and I don't know enough about Debian to know if it should be
Where is "there"? In Debian.yml in the
ok - but we don't have testing on Debian, so I don't know if
|
732a191
to
4fa5e86
Compare
Yes, sorry.
This should largely be a function of Ansible and apt/python-apt, not of the specific distro (that seems highly unlikely to patch in a derivative), so if it works on Debian stable or Ubuntu 22.04, it ought to work everywhere. |
ok - I'll do that in a separate PR |
[citest] |
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.
Thanks! LGTM, if that goes green.
(although it could just use c-machines everywhere and be simplified, but I don't mind much) |
The tests_packages_full test is failing on el9.6 and later - cockpit-pcp is missing - use cockpit-machines instead which seems to be available on all platforms/versions. Signed-off-by: Rich Megginson <[email protected]>
4fa5e86
to
0317384
Compare
Yes, much simpler |
[citest] |
Yay! |
The tests_packages_full test is failing on el9.6 and later - cockpit-pcp
is missing - use cockpit-machines instead which seems to be available
on all platforms.
Signed-off-by: Rich Megginson [email protected]