-
Notifications
You must be signed in to change notification settings - Fork 217
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
Upgrade base image to centos9 and support both docker on docker and p… #4036
Upgrade base image to centos9 and support both docker on docker and p… #4036
Conversation
/hold not ready yet |
d948a04
to
e21815a
Compare
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 end up with:
No package docker-ce-cli available.
because openshift/release swapped the image with something else. Please check.
e21815a
to
061c6fa
Compare
061c6fa
to
6ff5bd8
Compare
4b20a5a
to
daab395
Compare
/retest |
Ah merd, didn't notice there are git conflicts |
daab395
to
609b299
Compare
609b299
to
fe50e02
Compare
4191709
to
9e1a848
Compare
/retest |
9e1a848
to
ae84f09
Compare
I'd like to update you that the latest PR revision worked okay for me locally.
Tested okay:
|
For some reason
|
2d4afef
to
db67afc
Compare
/hold updating test-infra |
b71a58e
to
c007e1a
Compare
Tested the latest revision. found some issues:
Successfully tagged assisted-service-build:latest
useradd: failure while writing changes to /etc/subuid
CONTAINER_RUNTIME_COMMAND doesn't set on old skipper version -> default to docker. Upgrade your skipper to the latest version docker ps -q --filter "name=postgres" | xargs -r CONTAINER_RUNTIME_COMMAND doesn't set on old skipper version -> default to docker. Upgrade your skipper to the latest version docker kill && sleep 3
/bin/sh: line 1: CONTAINER_RUNTIME_COMMAND: command not found
make: *** [Makefile:488: run-db-container] Error 127
Successfully tagged assisted-service-build:latest
useradd: failure while writing changes to /etc/subuid
python3 ./tools/wait_for_cluster_info.py --namespace "assisted-installer"
2022-07-26 08:04:30.673117 DEBUG - kubectl --namespace assisted-installer cluster-info
Kubernetes control plane is running at https://192.168.49.2:8443
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
mkdir -p /home/nmagnezi/go/src/github.com/assisted-service/build/assisted-installer
(cd ./tools && go run auth_keys_generator.go -keys-dir=/home/nmagnezi/go/src/github.com/assisted-service/build/assisted-installer)
Keys already generated. To re-generate, delete files: /home/nmagnezi/go/src/github.com/assisted-service/build/assisted-installer/auth-test-pub.json, /home/nmagnezi/go/src/github.com/assisted-service/build/assisted-installer/auth-test.json, /home/nmagnezi/go/src/github.com/assisted-service/build/assisted-installer/auth-token*String
# Temporary hack that updates the local k8s(e.g minikube) with the latest image.
# Should be replaced after installing a local registry
./hack/update_local_image.sh
+ source hack/utils.sh
++ kubectl -n assisted-installer config current-context
++ cut -d- -f1
+ CLUSTER_CONTEXT=minikube
+ case "${CLUSTER_CONTEXT}" in
+ command -v minikube
+++ get_container_runtime_command
+++ '[' -z '' ']'
+++ running_from_skipper
+++ '[' -n x ']'
+++ sed s/-remote//
hack/utils.sh: line 12: CONTAINER_RUNTIME_COMMAND: unbound variable
++ SHELL=/bin/bash
++ minikube -env
flag needs an argument: 'v' in -v
Usage of minikube:
--add_dir_header If true, adds the file directory to the header of the log messages
--alsologtostderr log to standard error as well as files
-h, --help
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log_dir string If non-empty, write log files in this directory
--log_file string If non-empty, use this log file
--log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--one_output If true, only write logs to their native severity level (vs also writing to each lower severity level)
--skip_headers If true, avoid header prefixes in the log messages
--skip_log_headers If true, avoid headers when opening log files
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
+ eval flag needs an argument: ''\''v'\''' in -v
++ flag needs an argument: v in -v
./hack/update_local_image.sh: line 40: flag: command not found
make: *** [Makefile:237: _update-local-k8s-image] Error 127 |
51da617
to
bd1e6bc
Compare
Tested the latest revision with skipper 1.29.2 and docker:
Summarizing 4 Failures:
[Fail] test authorization with cluster editor role [It] can delete cluster
/home/nmagnezi/go/src/github.com/assisted-service/subsystem/authz_test.go:124
[Fail] test authorization with cluster editor role [It] can update cluster
/home/nmagnezi/go/src/github.com/assisted-service/subsystem/authz_test.go:130
[Fail] test authorization regular user [It] can't update not owned cluster, can only read cluster
/home/nmagnezi/go/src/github.com/assisted-service/subsystem/authz_test.go:188
[Fail] Leader tests [It] cleaning old leader lock configmap
/home/nmagnezi/go/src/github.com/assisted-service/subsystem/leader_test.go:230
Ran 270 of 273 Specs in 2165.581 seconds
FAIL! -- 266 Passed | 4 Failed | 0 Pending | 3 Skipped
DONE 1 tests, 1 failure in 2168.453s
make[3]: Entering directory '/home/nmagnezi/go/src/github.com/assisted-service'
hack/utils.sh: line 13: /dev/stderr: Permission denied
hack/utils.sh: line 13: /dev/stderr: Permission denied
make _coverage
make[4]: Entering directory '/home/nmagnezi/go/src/github.com/assisted-service'
hack/utils.sh: line 13: /dev/stderr: Permission denied
hack/utils.sh: line 13: /dev/stderr: Permission denied
make[4]: Nothing to be done for '_coverage'.
make[4]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make[3]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make[2]: *** [Makefile:457: _test] Error 1
make[2]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make[1]: *** [Makefile:425: _run_subsystem_test] Error 2
make[1]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make: *** [Makefile:413: test] Error 2
[nmagnezi@rdu-infra-edge-03 assisted-service]$ client_loop: send disconnect: Broken pipe
DONE 62 tests in 72.766s
make _post_unit_test
make[2]: Entering directory '/home/nmagnezi/go/src/github.com/assisted-service'
hack/utils.sh: line 13: /dev/stderr: Permission denied
hack/utils.sh: line 13: /dev/stderr: Permission denied
make _unit_test_coverage
make[3]: Entering directory '/home/nmagnezi/go/src/github.com/assisted-service'
hack/utils.sh: line 13: /dev/stderr: Permission denied
hack/utils.sh: line 13: /dev/stderr: Permission denied
make[3]: Nothing to be done for '_unit_test_coverage'.
make[3]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make[2]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
make[1]: Leaving directory '/home/nmagnezi/go/src/github.com/assisted-service'
docker kill postgres |
bd1e6bc
to
f63a0d2
Compare
…docker and podman on podman
f63a0d2
to
77d633e
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: michaellevy101, osherdp 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 |
@michaellevy101: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
/retest |
/unhold |
…docker and podman on podman (openshift#4036)
For NMState performance improvement, we are upgrading our base images to Centos9 (Assisted Service and Assisted Service build).
This PR deals with the Assisted Service build container only.
Assisted Service build images create containers (e.g. Postgres databases) using a container tool.
Currently assisted-service fully support docker as a container tool. This PR supports using podman as a container tool.
The idea is to expose the host socket to the container and the container uses a thin client to work against the host.
The container detects the right tool by skipper CONTAINER_RUNTIME_COMMAND env parameter (automatically sets by skipper) or CONTAINER_TOOL (manually sets by the user) and then for podman find the right version.
A podman4 cli client (podman-remote or podman -r) does not have backward compatibility and cannot be used with a podman3 server.
We overcome this by installing two podman-remote versions (3 and 4) and selecting the correct one at runtime.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Assignees
/cc @
/cc @
Checklist
docs
, README, etc)Reviewers Checklist