Updated openstack/openstack
Project: openstack/trove  8d5d26a89967ddf837a99bf18d52725cabbedfab

Fix trove resize-volume resize2fs error

trove resize-volume works by calling the e2fsck and resize2fs
commands. When resize2fs detect errors in the volume, it will
abort with an error: "Please run 'e2fsck -f /dev/vdb' first".

The e2fsck command is currently called with the -n flag, meaning
not to fix any volume errors, which cause the subsequent resize2fs
command to fail. As a result, the trove instance being resized
remain stuck in the RESIZE status.

This patch reverts the e2fsck -n flag back to the -p flag, which
enables auto correction of volume errors, thus allowing resize2fs
to complete the resize-volume operation.

Change-Id: I14b43966d4e7f047a5859bd4a463f2838f03b01f
Closes-Bug: #1391639