Bug 1221482

Summary: Docker 1.6 mounts /var/log/journal/4809557f6c5a83f899a25b507d72c4d5
Product: [Fedora] Fedora Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: docker-ioAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: adimania, admiller, agoldste, dwalsh, extras-qa, golang-updates, hushan.jia, ichavero, jchaloup, jeder, jpazdziora, jperrin, lsm5, mattdm, mgoldman, miminar, sdodson, s, thrcka, vbatts
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1213385 Environment:
Last Closed: 2015-07-15 21:18:34 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: 1213385    
Bug Blocks:    

Description Jan Pazdziora (Red Hat) 2015-05-14 07:09:15 UTC
+++ This bug was initially created as a clone of Bug #1213385 +++

Description of problem:

With docker-io upgraded to 1.6, docker build and docker runs of https://github.com/adelton/docker-freeipa started to fail.

The reason seems to be that the container gets /var/log/journal/{id-of-the-container?} mounted and you cannot get rid of it because

[root@4809557f6c5a /]# umount -f /var/log/journal/4809557f6c5a83f899a25b507d72c4d5
umount: /var/log/journal/4809557f6c5a83f899a25b507d72c4d5: must be superuser to unmount

That however prevents use from moving /var/log to VOLUME because in build time, /var/log/canot be removed:

rm: cannot remove '/var/log/journal/cf00ac62f9dad464306c48f0267be479': Device or resource busy

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

# rpm -q docker-io docker
docker-io-1.6.0-1.git0591dce.fc21.x86_64
package docker is not installed

How reproducible:

Deterministic.

Steps to Reproduce:
1. Install docker-io.
2. Make no changes to /etc/sysconfig/docker except adding --icc=false to OPTIONS.
3. Run the service.
4. Run docker run -ti fedora:20 mount | grep /var/log

Actual results:

/dev/mapper/fedora--server_mgmt12-root on /var/log/journal/4809557f6c5a83f899a25b507d72c4d5 type ext4 (rw,relatime,seclabel,data=ordered)

Expected results:

Nothing mounted on /var/log.

Additional info:

--- Additional comment from Jan Pazdziora on 2015-04-20 14:58:15 CEST ---

[...]

--- Additional comment from Fedora Update System on 2015-04-24 19:51:30 CEST ---

docker-io-1.6.0-2.git3eac457.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/docker-io-1.6.0-2.git3eac457.fc21

--- Additional comment from Jan Pazdziora on 2015-04-24 21:23:08 CEST ---

(In reply to Fedora Update System from comment #25)
> docker-io-1.6.0-2.git3eac457.fc21 has been submitted as an update for Fedora
> 21.
> https://admin.fedoraproject.org/updates/docker-io-1.6.0-2.git3eac457.fc21

I confirm the new build fixes the issue.

--- Additional comment from Fedora Update System on 2015-04-26 14:53:52 CEST ---

docker-io-1.6.0-2.git3eac457.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

--

With docker-io-1.6.0-4.git350a636.fc21.x86_64, the problem is back.

Comment 2 Daniel Walsh 2015-05-14 13:45:53 UTC
With the patched version of docker it has never been removed from Fedora.  I am working on a patch to only do it during a container, not during a build.

One possible solution that I am not that crazy about would be to mount to /run/journal/UUID and then link /var/log/journal/UUID to this dirctory, but I am not sure if journald would work here.

Comment 3 Jan Pazdziora (Red Hat) 2015-05-14 14:20:20 UTC
(In reply to Daniel Walsh from comment #2)
> With the patched version of docker it has never been removed from Fedora.

It was -- when I downgrade to docker-io-1.6.0-2.git3eac457.fc21, I really see it not mounted. It got back with -4.*.

Comment 4 Daniel Walsh 2015-05-14 14:29:07 UTC
Ok well it might be just showing up in Fedora 21.

Comment 5 Daniel Walsh 2015-06-03 12:04:33 UTC
docker-1.6.2 should not have this issue.  docker-1.7 will definitely not.