-
Notifications
You must be signed in to change notification settings - Fork 124
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
Local provisioning on Ubuntu fails in prepare step #2673
Comments
Hello, I'm afraid this is an unexpected side effect of us recently identifying For 1.32, I'd like to finish a refactoring of package manager implementations, #2557, and it covers Ubuntu and other distros with |
I believe this has been covered by the new package manager implementation: Verified with the following plan provision:
how: container
image: ubuntu
prepare:
how: shell
script: apt update
execute:
how: tmt
script: bash --version For |
Issue teemtee/tmt#2673 was in tmt 1.32, so we can remove pinning to version 1.30 Signed-off-by: Martin Perina <mperina@redhat.com>
Issue teemtee/tmt#2673 was fixed in tmt 1.32, so we can remove pinning to version 1.30 Signed-off-by: Martin Perina <mperina@redhat.com>
Issue teemtee/tmt#2673 was fixed in tmt 1.32, so we can remove pinning to version 1.30 Signed-off-by: Martin Perina <mperina@redhat.com>
Describe the bug
In BlueChi we use tmt to run our integration tests in the GitHub CI on Ubuntu (since this is the only linux OS supported there). Since the new release 1.31.0 those tests keep failing due to
Package manager "None" is not supported.
in the prepare step:We are using the following plan: https://github.com/eclipse-bluechi/bluechi/blob/main/tests/plans/tier0.fmf
Note:
After briefly investigating, I found that
/usr/bin/flock
is automatically added as a required dependency (added in #2622). And when tmt tries to install it on the local host (due to theprovision: how: local
) it first determines the package manager - which throws the"None" package manager not supported
error.To Reproduce
On any OS with a package manager not supported (see list in code), e.g. Ubuntu, then execute a
tmt run
on a plan withIt will automatically add
/usr/bin/flock
as a required dependency, try to install it on the local host and when determining the package manager throw the error forNone
package manager not supported.Expected behavior
Ideally, we could use tmt 1.31 on hosts with an OS that doesn't use any of the package managers in the list of supported ones, e.g. Ubuntu.
Is it possible to skip or not add this automatically generated preparation step in those cases?
Note: We currently mitigate this by pinning the version to 1.30.
The text was updated successfully, but these errors were encountered: