-
Notifications
You must be signed in to change notification settings - Fork 300
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
dragonfly v0.2.0 does not work well with dfdaemon local proxy #3744
Comments
@kelein Dragonfly has no logs, and the traffic does not pass through Dragonfly. Need to check the containerd log why Dragonfly mirror is not used. Please provide the containerd's log and dfdaemon's log. |
@gaius-qi This issue due to my containerd config.toml config error, because I firstly install dragonfly with client image /etc/containerd/certs.d:
└── etc
└── docker
└── certs.d
├── docker.io
│ └── hosts.toml
├── ghcr.io
│ └── hosts.toml
├── artifact
│ └── hosts.toml
└── artifact-dev
└── hosts.toml After I upgrade the client image to /etc/containerd/certs.d
├── docker.io
│ └── hosts.toml
├── ghcr.io
│ └── hosts.toml
├── artifact
│ └── hosts.toml
└── artifact-dev
└── hosts.toml But it does not modify the $ diff config.toml config-old.toml
< config_path = "/etc/containerd/certs.d"
---
> config_path = "/etc/containerd/certs.d:/etc/docker/certs.d" |
@kelein Does containerd's |
Seems not, The official docs does not mention multiple paths supports. containerd-registry-configuration |
@kelein What was the containerd configuration before client changed? Does it include multi paths? |
@gaius-qi No, there was just only one line of |
@kelein Please provide me with the contents of containerd's |
version = 2
root = "/data/containerd/store"
state = "/data/containerd/run"
oom_score = 0
[grpc]
max_recv_message_size = 16777216
max_send_message_size = 16777216
[debug]
address = ""
level = "info"
format = ""
uid = 0
gid = 0
[metrics]
address = ""
grpc_histogram = false
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "registry.k8s.io/pause:3.9"
max_container_log_line_size = -1
enable_unprivileged_ports = false
enable_unprivileged_icmp = false
enable_selinux = false
disable_apparmor = false
tolerate_missing_hugetlb_controller = true
disable_hugetlb_controller = true
image_pull_progress_timeout = "5m"
[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name = "nvidia"
snapshotter = "overlayfs"
discard_unpacked_layers = true
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
runtime_engine = ""
runtime_root = ""
base_runtime_spec = "/etc/containerd/cri-base.json"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
systemdCgroup = true
binaryName = "/usr/local/bin/runc"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia]
runtime_type = "io.containerd.runc.v2"
runtime_engine = ""
runtime_root = ""
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.nvidia.options]
BinaryName = "/usr/bin/nvidia-container-runtime"
[plugins."io.containerd.grpc.v1.cri".registry]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://registry-1.docker.io"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."artifact.jfrog.com"]
endpoint = ["https://artifact.jfrog.com"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."artifact-dev.jfrog.com"]
endpoint = ["https://artifact-dev.jfrog.com"] |
@CormickKneey Thanks! |
What
so the |
Sure, the ting i just only want to know is that why dragonfly client |
Creating |
Hi @kelein ##################### Config after modified ########################
root@dev:/data/d7y
$ diff /etc/containerd/config.toml /etc/containerd/config.toml.original
60c60,69
< config_path = "/etc/containerd/certs.d"
---
> [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
>
> [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
> endpoint = ["https://registry-1.docker.io"]
>
> [plugins."io.containerd.grpc.v1.cri".registry.mirrors."artifact.jfrog.com"]
> endpoint = ["https://artifact.jfrog.com"]
>
> [plugins."io.containerd.grpc.v1.cri".registry.mirrors."artifact-dev.jfrog.com"]
> endpoint = ["https://artifact-dev.jfrog.com"]
######################## Dir created #####################
root@dev:/data/d7y
$ tree /etc/containerd/certs.d/
/etc/containerd/certs.d/
├── artifact
│ └── hosts.toml
├── artifact-dev
│ └── hosts.toml
├── docker.io
│ └── hosts.toml
└── ghcr.io
└── hosts.toml
4 directories, 4 files
######################## dfinit config #####################
root@dev:/data/d7y
$ cat dfinit.yaml
proxy:
addr: http://127.0.0.1:4001
containerRuntime:
containerd:
configPath: /etc/containerd/config.toml
registries:
- hostNamespace: docker.io
serverAddr: https://index.docker.io
capabilities: [ "pull", "resolve" ]
skipVerify: true
- hostNamespace: ghcr.io
serverAddr: https://ghcr.io
capabilities: [ "pull", "resolve" ]
skipVerify: true
- hostNamespace: artifact
serverAddr: https://artifactory.com
capabilities: [ "pull", "resolve" ]
skipVerify: true
- hostNamespace: artifact-dev
serverAddr: https://artifactory-dev.com
capabilities: [ "pull", "resolve" ]
skipVerify: true
######################## dfinit version #####################
root@dev:/data/d7y
$ ./client/target/debug/dfinit -V
dfinit 0.1.125 (df39410f2, 2024-12-09) Can you find the diff in your environment? |
Bug report:
Dragonfly
v0.2.0
does not work well expectedly when I deployed it by helm chartdragonfly-1.2.28
./var/log/dragonfly/dfdaemon/dfdaemon.log
)Expected behavior:
How to reproduce it:
Environment:
v0.2.0
Amazon Linux 2
uname -a
):5.10.228-219.884.amzn2.x86_64
dragonfly-1.2.28
Container Runtime Config
The text was updated successfully, but these errors were encountered: