https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Bug ID: 1034919 Summary: Docker-io needs libcgroup installed and running in order to function Product: Fedora EPEL Version: el6 Component: docker-io Severity: high Assignee: lsm5@redhat.com Reporter: nux@li.nux.ro QA Contact: extras-qa@fedoraproject.org CC: golang@lists.fedoraproject.org, lsm5@redhat.com, mattdm@redhat.com, vbatts@redhat.com
Description of problem: "docker run" will error out when cgroups are not present: "[error] commands.go:2459 Error resize: Error: bad file descriptor"
Version-Release number of selected component (if applicable): 0.7 0.20.rc7.el6
How reproducible: always
Steps to Reproduce: 1. yum --enablerepo=epel-testing install docker-io 2. service docker start 3. docker run -i -t ubuntu /bin/bash
Actual results: "[error] commands.go:2459 Error resize: Error: bad file descriptor"
Expected results: BASH prompt in the container
Additional info: Installing cgroups fixes the problem: "yum -y install libcgroup && service cgconfig start"
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Vincent Batts vbatts@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|lsm5@redhat.com |vbatts@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Vincent Batts vbatts@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mgoldman@redhat.com
--- Comment #1 from Vincent Batts vbatts@redhat.com --- *** Bug 1035319 has been marked as a duplicate of this bug. ***
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #2 from Vincent Batts vbatts@redhat.com --- The same is likely true for fedora, but libcgroup is already landed. I will add the Requires: not inside a conditional just for RHEL
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #3 from Vincent Batts vbatts@redhat.com --- The new package is building in koji, and will be ready for validation shortly. http://koji.fedoraproject.org/koji/taskinfo?taskID=6233070
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-2.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-9.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-9.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-10.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-10.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Stephen Tweedie sct@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ASSIGNED
--- Comment #7 from Stephen Tweedie sct@redhat.com --- Reopening.
docker-io-0.7.0-10.el6 adds the dependency on libcgroup, but still doesn't ensure that cgconfig is actually started. Starting docker with either service start docker or automatically via chkconfig docer on still results in a non-functioning docker service due to missing cgroups on my rhel6 install:
# service docker start Starting docker: [ OK ] # docker run -n -i -t mattdm/fedora /bin/bash [error] commands.go:2470 Error resize: Error: bad file descriptor # cat /proc/mounts |grep cgroup #
and after chkconfig docker on and a reboot:
# service cgconfig status Stopped # service docker status docker (pid 1477) is running... # cat /proc/mounts |grep cgroup #
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #8 from Marek Goldmann mgoldman@redhat.com --- For sure this should be added to the init.d file:
# Required-Start: $network cgconfig
This will make sure that cgconfig service will be started before docker. Other thing is the cgconfig service start. By default the service is not enabled on boot. I'm unsure what is the valid way to change this. One way is to add it in the %post section of the RPM. But this doesn't seem good to me.
Other option is to check the status of cgconfig in the docker init.d file and launch it if it's stopped. And I think this would be a preferred solution for this.
We can also add a warning that would say how to enable the service (chkconfig cgconfig on) when we detect that docker service is marked to start on boot and cgconfig is not.
Any other ideas / comments?
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #9 from Marek Goldmann mgoldman@redhat.com --- Created attachment 830646 --> https://bugzilla.redhat.com/attachment.cgi?id=830646&action=edit Patch fot cgconfig boot
I'm attaching a patch to fix the cgconfig service boot requirement.
Please note that this patch should be applied against master AFTER applying patch from bug 1036027.
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |ON_QA
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-10.el6 has been pushed to the Fedora EPEL 6 testing repository.
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-12.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-12.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
lnie lnie@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lnie@redhat.com
--- Comment #14 from lnie lnie@redhat.com --- tested with 0.7.0-10.fc20 and 0.7.0-12.both work fine
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #15 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #16 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.fc19
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
--- Comment #17 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/docker-io-0.7.0-14.el6
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |docker-io-0.7.0-14.el6 Resolution|--- |ERRATA Last Closed| |2013-12-02 20:19:34
--- Comment #18 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|docker-io-0.7.0-14.el6 |docker-io-0.7.0-14.fc19
--- Comment #19 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1034919
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version|docker-io-0.7.0-14.fc19 |docker-io-0.7.0-14.fc20
--- Comment #20 from Fedora Update System updates@fedoraproject.org --- docker-io-0.7.0-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
golang@lists.fedoraproject.org