Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1354342 - heketi db messed up when using volume expand option
Summary: heketi db messed up when using volume expand option
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: heketi
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: RHGS Container Converged 1.0
Assignee: Luis Pabón
QA Contact: Anoop
Depends On:
Blocks: 1332128
TreeView+ depends on / blocked
Reported: 2016-07-11 07:24 UTC by Neha
Modified: 2016-11-08 22:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2016-08-04 04:52:10 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github heketi heketi issues 426 None None None 2016-07-13 13:35:25 UTC
Red Hat Product Errata RHBA-2016:1498 normal SHIPPED_LIVE heketi update for Red Hat Gluster Storage 3.1 2016-08-04 08:49:19 UTC

Description Neha 2016-07-11 07:24:27 UTC
Description of problem:
Try to expand heketi volume 

heketi-cli volume expand --volume=aa9528067826f36e63ff32d0a4eb016d --expand-size=10

heketi logs:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x40 pc=0x65d3e1]

goroutine 125070 [running]:
panic(0x1654ca0, 0xc820010090)
	/usr/lib/golang/src/runtime/panic.go:481 +0x3e6*SshExecutor).VolumeExpand(0xc8203fe800, 0xc82089bb60, 0x20, 0xc8202043c0, 0x0, 0x0, 0x0)
	/builddir/build/BUILD/heketi-3b3bdef/src/ +0x161*VolumeEntry).Expand(0xc820455960, 0xc820282540, 0x7f2ac802ede8, 0xc8203fe800, 0x7f2ac802ef88, 0xc820464860, 0xa, 0x0, 0x0)
	/builddir/build/BUILD/heketi-3b3bdef/src/ +0x348*App).VolumeExpand.func2(0x0, 0x0, 0x0, 0x0)
	/builddir/build/BUILD/heketi-3b3bdef/src/ +0x1b1*AsyncHttpManager).AsyncHttpRedirectFunc.func1(0xc82025cd00, 0xc8201460e0)
	/builddir/build/BUILD/heketi-3b3bdef/src/ +0x141
created by*AsyncHttpManager).AsyncHttpRedirectFunc
	/builddir/build/BUILD/heketi-3b3bdef/src/ +0x56

After that topology info/ node info is not working

# heketi-cli node info bbc7e8607f186b93e4feb202c2e49bc5
Error: Id not found

# heketi-cli topology info
Error: Id not found

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

How reproducible:

Steps to Reproduce:
Try to expand a volume

Actual results:
volume expansion failed after that not able to list topology/node 

Expected results:
should not mess the database

Additional info:
AFAIK volume expand option is not supported for this release but this is available in heketi-cli.

Not sure how to address this issue for this release but it someone is trying "expand" option it will mess up the database.

Comment 3 Luis Pabón 2016-07-13 12:59:52 UTC
I see the failure here:

This is an easy fix.  Thanks for finding.

Comment 4 Luis Pabón 2016-07-13 13:33:59 UTC

Comment 8 Neha 2016-07-21 12:05:01 UTC
Don't see this issue with latest build. Volume expansion is working fine.

heketi-cli volume expand --volume=588e3b7af2e30f22785110cc7233437b --expand-size=10
Name: vol_588e3b7af2e30f22785110cc7233437b
Size: 70
Volume Id: 588e3b7af2e30f22785110cc7233437b
Cluster Id: 246aed0ea383ab7c1dca4c6a58700095
Mount Options: backup-volfile-servers=,
Durability Type: replicate
Distributed+Replica: 3

Comment 10 errata-xmlrpc 2016-08-04 04:52:10 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.

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