It appears as though custom_registries needs functional test
$ juju run -a containerd "grep 'registry.example.com' /etc/containerd/config.toml" - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/0 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/2 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/3 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/5 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/1 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/4 - Stdout: |2 [plugins.cri.registry.configs."registry.example.com".tls] ca_file = "/etc/containerd/registry.example.com.ca" UnitId: containerd/6
$ juju run -a containerd "ls -la /etc/containerd/" - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 4096 Oct 21 14:32 .. -r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/0 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 4096 Oct 21 14:33 .. -r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/3 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 109 root root 4096 Oct 21 15:12 .. -r--r--r-- 1 root root 2166 Oct 22 15:24 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:24 registry.example.com.ca UnitId: containerd/5 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:12 . drwxr-xr-x 108 root root 4096 Oct 21 14:57 .. -r--r--r-- 1 root root 2165 Oct 22 15:25 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.example.com.ca UnitId: containerd/6 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 108 root root 4096 Oct 21 14:49 .. -r--r--r-- 1 root root 2165 Oct 22 15:25 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.example.com.ca UnitId: containerd/4 - Stdout: | total 24 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 12288 Oct 21 14:33 .. -r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/2 - Stdout: | total 24 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 12288 Oct 21 14:33 .. -r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/1
$ juju config containerd --reset custom_registries
$ juju run -a containerd "grep 'registry.example.com' /etc/containerd/config.toml" - ReturnCode: 1 Stdout: "" UnitId: containerd/1 - ReturnCode: 1 Stdout: "" UnitId: containerd/2 - ReturnCode: 1 Stdout: "" UnitId: containerd/4 - ReturnCode: 1 Stdout: "" UnitId: containerd/0 - ReturnCode: 1 Stdout: "" UnitId: containerd/3 - ReturnCode: 1 Stdout: "" UnitId: containerd/5 - ReturnCode: 1 Stdout: "" UnitId: containerd/6
$ juju run -a containerd "ls -la /etc/containerd/" - Stdout: | total 24 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 12288 Oct 21 14:33 .. -r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/2 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 4096 Oct 21 14:33 .. -r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/3 - Stdout: | total 24 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 117 root root 12288 Oct 21 14:33 .. -r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.example.com.ca UnitId: containerd/1 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 109 root root 4096 Oct 21 15:12 .. -r--r--r-- 1 root root 1815 Oct 22 15:31 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:24 registry.example.com.ca UnitId: containerd/5 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:12 . drwxr-xr-x 108 root root 4096 Oct 21 14:57 .. -r--r--r-- 1 root root 1814 Oct 22 15:30 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.example.com.ca UnitId: containerd/6 - Message: action terminated UnitId: containerd/0 - Stdout: | total 16 drwxr-xr-x 2 root root 4096 Oct 21 17:11 . drwxr-xr-x 108 root root 4096 Oct 21 14:49 .. -r--r--r-- 1 root root 1814 Oct 22 15:30 config.toml -rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.example.com.ca UnitId: containerd/4
It appears as though custom_registries needs functional test
$ juju run -a containerd "grep 'registry. example. com' /etc/containerd /config. toml"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
[plugins. cri.registry. configs. "registry. example. com".tls]
ca_file = "/etc/container d/registry. example. com.ca"
- Stdout: |2
UnitId: containerd/0
- Stdout: |2
UnitId: containerd/2
- Stdout: |2
UnitId: containerd/3
- Stdout: |2
UnitId: containerd/5
- Stdout: |2
UnitId: containerd/1
- Stdout: |2
UnitId: containerd/4
- Stdout: |2
UnitId: containerd/6
$ juju run -a containerd "ls -la /etc/containerd/" example. com.ca example. com.ca example. com.ca example. com.ca example. com.ca example. com.ca example. com.ca
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 4096 Oct 21 14:32 ..
-r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/0
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 4096 Oct 21 14:33 ..
-r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/3
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 109 root root 4096 Oct 21 15:12 ..
-r--r--r-- 1 root root 2166 Oct 22 15:24 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:24 registry.
UnitId: containerd/5
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:12 .
drwxr-xr-x 108 root root 4096 Oct 21 14:57 ..
-r--r--r-- 1 root root 2165 Oct 22 15:25 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.
UnitId: containerd/6
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 108 root root 4096 Oct 21 14:49 ..
-r--r--r-- 1 root root 2165 Oct 22 15:25 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.
UnitId: containerd/4
- Stdout: |
total 24
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 12288 Oct 21 14:33 ..
-r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/2
- Stdout: |
total 24
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 12288 Oct 21 14:33 ..
-r--r--r-- 1 root root 2166 Oct 22 15:23 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/1
$ juju config containerd --reset custom_registries
$ juju run -a containerd "grep 'registry. example. com' /etc/containerd /config. toml"
- ReturnCode: 1
Stdout: ""
UnitId: containerd/1
- ReturnCode: 1
Stdout: ""
UnitId: containerd/2
- ReturnCode: 1
Stdout: ""
UnitId: containerd/4
- ReturnCode: 1
Stdout: ""
UnitId: containerd/0
- ReturnCode: 1
Stdout: ""
UnitId: containerd/3
- ReturnCode: 1
Stdout: ""
UnitId: containerd/5
- ReturnCode: 1
Stdout: ""
UnitId: containerd/6
$ juju run -a containerd "ls -la /etc/containerd/" example. com.ca example. com.ca example. com.ca example. com.ca example. com.ca example. com.ca
- Stdout: |
total 24
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 12288 Oct 21 14:33 ..
-r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/2
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 4096 Oct 21 14:33 ..
-r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/3
- Stdout: |
total 24
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 117 root root 12288 Oct 21 14:33 ..
-r--r--r-- 1 root root 1815 Oct 22 15:29 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:23 registry.
UnitId: containerd/1
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 109 root root 4096 Oct 21 15:12 ..
-r--r--r-- 1 root root 1815 Oct 22 15:31 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:24 registry.
UnitId: containerd/5
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:12 .
drwxr-xr-x 108 root root 4096 Oct 21 14:57 ..
-r--r--r-- 1 root root 1814 Oct 22 15:30 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.
UnitId: containerd/6
- Message: action terminated
UnitId: containerd/0
- Stdout: |
total 16
drwxr-xr-x 2 root root 4096 Oct 21 17:11 .
drwxr-xr-x 108 root root 4096 Oct 21 14:49 ..
-r--r--r-- 1 root root 1814 Oct 22 15:30 config.toml
-rw-r--r-- 1 root root 1939 Oct 22 15:25 registry.
UnitId: containerd/4