kayobe seed host configure fails to start docker service in seed vm running Rocky 9.3 image
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
kayobe | Status tracked in Caracal | |||||
Caracal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
**Bug Report**
Running `kayobe seed vm provision` fails to start the docker service in the seed vm.
The error can be seen in the following handler:
```
RUNNING HANDLER [openstack.
fatal: [seed]: FAILED! => {"changed": false, "msg": "Unable to start service docker: Job for docker.service failed because the control process exited with error code.\nSee \"systemctl status docker.service\" and \"journalctl -xeu docker.service\" for details.\n"}
```
The journalctl logs provide a bit more info:
```
May 17 10:02:33 seed dockerd[28976]: unable to configure the Docker daemon with file /etc/docker/
May 17 10:02:33 seed systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
```
The failure is due to a type error when parsing `/etc/docker/
**Fix**
Add a type in the ansible role for docker:
```
diff --git a/ansible/
index 13fd6bd0..1ee5976e 100644
--- a/ansible/
+++ b/ansible/
@@ -11,7 +11,7 @@
{%- set _ = options.
{%- endif -%}
{%- if docker_daemon_mtu -%}
- {%- set _ = options.
+ {%- set _ = options.
{%- endif -%}
{%- if docker_
{%- set _ = options.
```
After applying this patch, the `kayobe seed vm provision` playbook succeeds and the docker service is started in the seed vm.
**Environment**
* OS: Rocky Linux 9.3 (Blue Onyx)
* Kernel: Linux seed 5.14.0-
Changed in kayobe: | |
status: | New → Confirmed |
Changed in kayobe: | |
status: | Confirmed → In Progress |
no longer affects: | kayobe/bobcat |
no longer affects: | kayobe/antelope |
Reviewed: https:/ /review. opendev. org/c/openstack /kayobe/ +/919427 /opendev. org/openstack/ kayobe/ commit/ 2e7b5287f39e27f e9c0ba4dcec4ffb 355853a468
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 2e7b5287f39e27f e9c0ba4dcec4ffb 355853a468
Author: Adam McCartney <email address hidden>
Date: Fri May 17 13:49:38 2024 +0200
Add type for mtu field in docker role
Closes-Bug: #2066032
This patch adds an integer type to the task in the docker role that
generates the docker daemon config. This was previously uncast and
defaulting to a string type, which causes an error with certain docker
versions (via the Rocky 9.3 distro). See bug description for more info.
Change-Id: I2a996fa22fedec e2c894b378fadbf c5dd0c045b6