Bug 1403027
| Summary: | Build fails with Driver devicemapper failed to remove root filesystem: mount still active | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Walid A. <wabouham> |
| Component: | docker | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.0 | CC: | amurdaca, aos-bugs, bparees, dornelas, dwalsh, haowang, imcleod, jhonce, jokerman, lsm5, mifiedle, mmccomas, tatanaka, vgoyal, vlaad, wabouham |
| Target Milestone: | rc | Keywords: | Extras |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | docker-1.12.6-11.el7 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: Previous docker-storage-setup code tried to determine the amount of free space to leave when creating volumes with lvm while lvm did not provide the size of the spare volume.
Consequence: It was possible for lvconvert to fail because of lack of available space.
Fix: Use lvm to create the metadata, data and spare volume while using the --poolmetadatasize option to control the metadata size.
Result:
This patch changes behavior of MIN_DATA_SIZE. Previously we will make sure free space in VG is more than MIN_DATA_SIZE before creating data volume (and after crating metadata volume). Now we do the same check before creating metadata volume. Given metadata volume is very small (.1% of data size). This can be considered sort of round off error and should not be a real problem.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-11-21 21:46:11 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1186913 | ||
|
Description
Walid A.
2016-12-08 22:43:29 UTC
the root cause of this bug appears to be this error: error: build error: building walid/dancer-mysql-example-1:02773ab0 failed when committing the image due to error: Cannot connect to the Docker daemon. Is the docker daemon running on this host? that is the first error that occurs, after that error occurs we attempt to remove the container, which results in this error: error: Execution of post execute step failed warning: Failed to remove container "80a380004979dd6536e6b76fe3460d0391090d96418d022b763b3744d54a7c23": Error response from daemon: Driver devicemapper failed to remove root filesystem 80a380004979dd6536e6b76fe3460d0391090d96418d022b763b3744d54a7c23: mount still active The errors are printed in reverse order due to how our error handling logic is processed. Note that even though we couldn't commit the container, I would still expect us to be able to remove the container, so both errors are a problem, but the main problem is the failure to commit the container. Raised https://bugzilla.redhat.com/show_bug.cgi?id=1405272 for docker-storage-setup setting an unsupported option in /etc/sysconfig/docker-storage on RHEL 7.3.1 Mike, upstream docker-storage-setup has already been fixed to determine dynamically if underlying kernel supports deferred_deletion or not and set the option accordingly. We just need to make sure that both docker-1.12 and docker-1.10 builds have latest docker-storage-setup. Lokesh? Vivek do you want it with the Overlay Patch that got merged yesterday for RHEL7.3.2? Dan, I am merging shishir's changes for docker root volume now.
We should not pull that one in yet. It is very new code.
I think we should pull in till following commit.
commit 516cb9c0bc14883f46ef2362a3f5abd4d6c20b1e
Author: Vivek Goyal <vgoyal>
Date: Tue Nov 15 09:13:45 2016 -0500
Let lvm create metadata volume automatically
Should be fixed in all versions of OCP 3.5. For testing purposes, OCP v3.5.0.17 or newer, and docker 1.10.3 or newer. It works fine on OCP 3.5: openshift v3.5.0.17+c55cf2b , move to verified. |