drbd resize needs to run after puppet manifest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
John Kung |
Bug Description
Brief Description
-----------------
drbd resize operations need to be run after the filesystem runtime manifest is applied.
An unrelated runtime operation, may trigger the drbd resize operation before the runtime manifest completed application
Severity
--------
Provide the severity of the defect.
Major: rare issue, however, requires manual intervention align filesystem sizes.
Steps to Reproduce
------------------
system controllerfs-modify dockerdistribut
system modify -p (any other runtime manifest command; or system dns-modify).
Expected Behavior
------------------
The drbd-overview and lvs for the updated filesystem should be aligned with same value.
Actual Behavior
----------------
The manifest apply updates the lvs filesystem, however, drbd-overview does not reflect
the increased size.
Reproducibility
---------------
intermittent
potential race condition if there are other runtime configurations being performed.
System Configuration
-------
duplex controllers
Branch/Pull Time/Commit
-------
2020-08-05
Last Pass
---------
Intermittent issue
Timestamp/Logs
--------------
A request increase docker-distribution to 32GB (from 16GB)
sysinv 2020-07-29 02:22:35.713 103995 INFO sysinv.
This sets the condition requiring drbd resize.
2. However, another runtime manifest was applied; and the current condition utilized to perform the drbd resize (config up to date) was met:
sysinv 2020-07-29 02:26:13.052 102841 INFO sysinv.
sysinv 2020-07-29 02:26:13.052 102841 INFO sysinv.
sysinv 2020-07-29 02:26:13.094 102841 INFO sysinv.
sysinv 2020-07-29 02:26:13.189 102841 INFO sysinv.
sysinv 2020-07-29 02:26:13.190 102841 INFO sysinv.
sysinv 2020-07-29 02:26:13.250 102841 INFO sysinv.
This 'drbdadm resize all ' operation was only observed once in the logs but is needed following the lv puppet manifest apply operation.
3. puppet runtime manifest applies docker-
2020-07-
Test Activity
-------------
Regression Testing
Workaround
----------
for docker-
Changed in starlingx: | |
assignee: | nobody → John Kung (john-kung) |
importance: | Undecided → Medium |
tags: | added: stx.5.0 stx.config stx.storage |
Reviewed: https:/ /review. opendev. org/749596 /git.openstack. org/cgit/ starlingx/ stx-puppet/ commit/ ?id=cfa70d82c1a f1927721beda621 73b65c77acc5e1
Committed: https:/
Submitter: Zuul
Branch: master
commit cfa70d82c1af192 7721beda62173b6 5c77acc5e1
Author: John Kung <email address hidden>
Date: Wed Sep 2 17:41:04 2020 -0400
Update drbd resize operation to run after puppet manifest
There is a potential race condition in triggering the filesystem
resize check. The resize check is triggered on the start of
a controller filesystem drbd resize operation, however, if another
configuration is applied before the resize check may be early,
in which case the lv would be resized but not drbd.
In the drbd manifest update to trigger the drbd filesystem resize
check after the lv filesystem have been resized.
Change-Id: I97038d0cc9d57a b639f85c2282677 364b44249c0
Closes-Bug: 1894003
Signed-off-by: John Kung <email address hidden>