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
Remove python dep from handler and launcher containers #6593
Conversation
hack/rpm-deps.sh
Outdated
@@ -163,6 +161,7 @@ bazel run \ | |||
--name launcherbase_x86_64 \ | |||
--basesystem centos-stream-release \ | |||
--force-ignore-with-dependencies '^mozjs60' \ | |||
--force-ignore-with-dependencies '^python' \ |
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 think you see a compile error now because we try to still create some python binary simplinks on the tar files.
If you remove on the launcher and handler base images these lines:
"/usr/bin/python": "/usr/bin/python3.6",
"/usr/bin/python3": "/usr/bin/python3.6",
in the symlink section in rpm/BUILD.bazel
it should build successfully again.
rpm/BUILD.bazel
Outdated
@@ -477,26 +474,14 @@ rpmtree( | |||
"@pcre2-0__10.32-2.el8.aarch64//rpm", | |||
"@pixman-0__0.38.4-1.el8.aarch64//rpm", | |||
"@platform-python-0__3.6.8-42.el8.aarch64//rpm", |
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.
It may even be possible to also force-remove platform-python*
.
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 changed ^python
to python
, would you suggest to stay more explicit and rather do this?
--force-ignore-with-dependencies '^python' \
--force-ignore-with-dependencies '^platform-python*' \
--force-ignore-with-dependencies '^policycoreutils-python*' \
645d201
to
875b13c
Compare
rpm/BUILD.bazel
Outdated
"@python3-pip-wheel-0__9.0.3-20.el8.x86_64//rpm", | ||
"@python3-setuptools-0__39.2.0-6.el8.x86_64//rpm", | ||
"@python3-setuptools-wheel-0__39.2.0-6.el8.x86_64//rpm", | ||
"@python36-0__3.6.8-38.module_el8.5.0__plus__895__plus__a459eca8.x86_64//rpm", |
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.
This are the dependencies of the sandbox
which bazel uses for building. Can it be that you added the force-remove line also to the sandbox rpmtree
creation? This one needs python since some bazel dependencies need it.
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.
Ah, thank you! Yes, I was on python removing spree. Looking sane now
hack/rpm-deps.sh
Outdated
@@ -107,7 +107,6 @@ sandbox_base=" | |||
findutils | |||
gcc | |||
glibc-static | |||
python36 |
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.
The sandbox needs python. We need to keep this one.
rpm/BUILD.bazel
Outdated
"@zlib-0__1.2.11-17.el8.x86_64//rpm", | ||
], | ||
symlinks = { | ||
"/var/run": "../run", | ||
"/usr/bin/python": "/usr/bin/python3.6", |
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.
The sandbox still needs these links. Just handler and launcher base images don't need it anymore.
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.
Right, thanks!
Python is not used and thus can be removed. Signed-off-by: Radim Hrazdil <rhrazdil@redhat.com>
875b13c
to
8e160f1
Compare
/test pull-kubevirt-e2e-k8s-1.22-sig-storage |
@rhrazdil: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/test pull-kubevirt-e2e-k8s-1.22-sig-storage |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rmohr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Radim Hrazdil rhrazdil@redhat.com
What this PR does / why we need it:
This PR removed python packages from virt-launcher and handler, as it's not used anymore.
Depends on #6579 which removes the last python usage.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #6490
Special notes for your reviewer:
Release note: