Bug 1790560 - [OCS-3.11.z][TRACKING TICKET] gluster-block-target.service not starting after a reboot with a genconfig failure
Summary: [OCS-3.11.z][TRACKING TICKET] gluster-block-target.service not starting after...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-block
Version: ocs-3.11
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: OCS 3.11.z Batch Update 5
Assignee: Prasanna Kumar Kalever
QA Contact: Arun Kumar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-13 15:52 UTC by Andre Costa
Modified: 2024-06-13 22:22 UTC (History)
10 users (show)

Fixed In Version: gluster-block-0.2.1-35.el7rhgs
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-26 20:05:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1787371 1 None None None 2024-09-18 00:55:24 UTC
Red Hat Product Errata RHBA-2020:0621 0 None None None 2020-02-26 20:05:22 UTC

Description Andre Costa 2020-01-13 15:52:25 UTC
Description of problem:
As mention in ticket https://bugzilla.redhat.com/show_bug.cgi?id=1787371, this ticket is to track the fix on the next releases of OCS 3.11.z

Version-Release number of selected component (if applicable):
OCS 3.11.4

Comment 6 Prasanna Kumar Kalever 2020-01-31 07:25:00 UTC
Problem Statement:
gluster-block-target.service fails to start, after upgrading because there is an empty block config file. The empty config file was created because of the genconfig failure, which runs after every upgrade.


Version:
All OCS versions

Root Cause:
The genconfig was failing in case if there are more than 6 Block Hosting Volumes (BHVs). This is because the genconfig cli rpc buffer holding BHV list is static now and is set to hold only 255 chars only.

Fix Status:
Merged upstream.
Very small change, fix the buffer size to allocate dynamically.


Is this a regression:
No, it's there since the introduction of genconfig feature i.e from rhgs-3.3.1 release of gluster-block.


How to test the changes:
Note this is only the cli side change around genconfig command and hence it doesn't affect other commands workflow. From my review, this change will not lead to any regressions.
The test would be to run genconfig with more than 6 BHV's i.e  '# gluster-block genconfig <BHV1, BHV2.....BHVn> enable-tpg <IP>'

Comment 12 errata-xmlrpc 2020-02-26 20:05:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0621


Note You need to log in before you can comment on or make changes to this bug.