RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1261151 - [docker-storage-setup] docker-storate-setup warn/error when if growpart is not installed
Summary: [docker-storage-setup] docker-storate-setup warn/error when if growpart is no...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Vivek Goyal
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 17:37 UTC by Chris Evich
Modified: 2019-03-06 01:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-07 20:49:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Evich 2015-09-08 17:37:02 UTC
Description of problem:
This is related to Bug 1226990 and Bug 1241256.

If GROWPART=true d-s-s option is specified but growpart is not installed or fails, then d-s-s should report the error and exit non-zero w/o continuing.  It is incorrect behaviour (IMHO) to continue attempting to configure storage since an explicit option was specified and should be assumed as desired.

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

How reproducible:
reliably since docker-1.6.x

Steps to Reproduce:
1. Make sure cloud-utils-growpart is NOT installed (or /usr/bin/growpart is missing or will fail)
2. Add GROWPART=true option to /etc/sysconfig/docker-storage-setup
4. Start docker.service

Actual results:
On docker.service start, d-s-s runs the first time automatically.  It does not extend any partitions, does not report any errors in logs, and continues to create thinpool LV.  Docker service starts successfully, using an undesired storage configuration.

Expected results:
On docker.service start, d-s-s prints & logs an error that GROWPART=true was specified but /bin/growpart binary could not be found or failed.  No further operations are performed and non-zero exit status is returned resulting in docker.service startup failure.

Additional info:
Problem is reproducible on RHEL and Atomic (if first remove/move growpart binary or cause it to fail).  Also, it would be good to document optional /usr/bin/growpart dependency for the GROWPART option.

Comment 2 Vivek Goyal 2015-09-11 16:19:15 UTC
Patch got merged upstream


https://github.com/projectatomic/docker-storage-setup/pull/79

Comment 3 Daniel Walsh 2015-09-29 13:56:35 UTC
Fixed in docker-1.9


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