Initial host-unlock fails on SystemController due to "Failed to make drbd platform primary"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
John Kung |
Bug Description
Brief Description
-----------------
After ansible bootstrap, on the host-unlock, "controller_
Severity
--------
Provide the severity of the defect.
Major: System is usable after workaround.
Steps to Reproduce
------------------
Install load and attempt to host-unlock. This is reproducible on SystemController.
Expected Behavior
------------------
The host-unlock should succeed and drbd filesystems enabled as is observable via 'sudo drbd-overview'
Actual Behavior
----------------
After ansible-playbook and host-unlock, 'sudo drbd-overview' fails to display any resources.
Reproducibility
---------------
Reproducible on SystemController.
System Configuration
-------
Two node system, IPv4/IPv6.
Branch/Pull Time/Commit
-------
stx5.0 2020-10-19_00-00-10
Last Pass
---------
Unknown; passing in stx4.0. This is not a new test scenario.
Timestamp/Logs
--------------
There are no Error logs of note in puppet nor ansible.log.
The following occurs on host-unlock after ansible-playbook:
sw-patch-
2020-10-
2020-10-
2020-10-
Test Activity
-------------
Regression Testing
Workaround
----------
2 Alternatives:
1) Procedural Workaround:
After ansible-playbook bootstrap, and before the first host-unlock.
systemctl restart drbd.service
OR
2) Code workaround:
WorkAround a) Prior to ansible-playbook bootstrap, modify drbd.pp
$ diff /usr/share/
171c171
< $lv_size = '1',
—
> $lv_size = '10',
I.e. modify: to 10 as per the following:
class platform:
$device = '/dev/drbd2',
$lv_name = 'platform-lv',
$lv_size = '10',
$mountpoint = '/opt/platform',
$port = '7790',
$vg_name = 'cgts-vg',
$resource_name = 'drbd-platform',
) {}
Changed in starlingx: | |
assignee: | nobody → John Kung (john-kung) |
Fix proposed to branch: master /review. opendev. org/760551
Review: https:/