intermittent issue, Kubernetes bind mounts not created on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Kyle MacLeod |
Bug Description
There is an intermittent issue where on some boots the two kubernetes bind mounts to stage1 and stage2 are not created:
From /etc/fstab, these two bind mounts are not active after booting:
/usr/local/
/usr/local/
Severity: Critical: System/Feature is not usable after the defect
Steps to Reproduce:
Bootstrap system controller. Also happens on subclouds.
Expected Behavior:
Expect that the bind mounts are mounted at /usr/local/
Actual Behavior:
Directories /usr/local/
Reproducibility:
This is intermittent. Sometimes the mounts are created, sometimes not.
System Configuration:
This is a virtualized AIO-DX system running debian, in distributedcloud role. Seen on virtualbox and libvirt.
Load info (eg: 2022-03-
Recent debian builds of both STX and WRCP
Changed in starlingx: | |
status: | New → In Progress |
tags: | added: stx.8.0 stx.config |
Changed in starlingx: | |
importance: | Undecided → Medium |
assignee: | nobody → Kyle MacLeod (kmacleod) |
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/852886 /opendev. org/starlingx/ stx-puppet/ commit/ 3ed94d5c805ee2f b7e1e462b8a2e88 39caf09e47
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 3ed94d5c805ee2f b7e1e462b8a2e88 39caf09e47
Author: Kyle MacLeod <email address hidden>
Date: Thu Aug 11 12:21:02 2022 -0400
Add ostree-remount dependency on kubernetes bind mounts
During system boot systemd parses /etc/fstab and converts kubernetes/ current/ stage{1, 2} entries
the two fstab /usr/local/
into these units:
- usr-local- kubernetes- current- stage1. mount kubernetes- current- stage2. mount
- usr-local-
Currently there's no dependency of these units on the
ostree-remount systemd unit, and so intermittently we see
an installation where the bind mounts don't exist.
This commit adds a dependency on the ostree-remount systemd
unit, in order to ensure that /usr is mounted before the
K8s bind mounts that want to be "on top" of it.
Closes-Bug: 1989022
Test Plan: ostree- remount" options.
Tested system boot with added options, ensured that corresponding
systemd mount units had "After=
Signed-off-by: Kyle MacLeod <email address hidden> 77f776d6788301b 7a1ed492e52
Signed-off-by: Chris Friesen <email address hidden>
Change-Id: I5843ab61790d2b