Bug 1282431
Summary: | Cannot create docker container with 'docker-1.8.2-7' package installed | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Andrii Balakhtar <abalakht> | ||||||||
Component: | Container Management | Assignee: | David Davis <daviddavis> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Sachin Ghai <sghai> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 6.1.4 | CC: | caugello, chrobert, dherrman, erjones, liko, mmccune, paji, pep, riek, sauchter, sghai, xdmoon | ||||||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||||||
Target Release: | Unused | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 1316374 (view as bug list) | Environment: | |||||||||
Last Closed: | 2016-03-22 15:44:30 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: | 1316374 | ||||||||||
Attachments: |
|
Description
Andrii Balakhtar
2015-11-16 11:44:09 UTC
NOTE: Unlike #1253270, downgrading docker doesn't bring any side affect. In other aspects the defect is pretty similar to #1253270. I've also tried to downgrade ruby193-rubygem-foreman_docker to 1.2.0.22-1, which was used in testing of #1253270 - nothing changed, seems like only downgrading of docker fixes the problem. Created attachment 1095043 [details]
production.log after attempt to create a new docker container via cli
Reproducible also via CLI. Attaching cli_production.log, which contains more informative stacktrace. *** Bug 1279373 has been marked as a duplicate of this bug. *** Verified with sat 6.1.8 compose1 that contains following version of python-crane: ~]# rpm -qa | grep python-crane python-crane-0.2.2-2.el7sat.noarch And installed following docker rpm : docker-1.8.2-10.el7.x86_64 With above rpm versions, I can create a docker container on local(satellite server itself) and on external docker compute-resource. I didn't get "Failed to save" error in logs. Please see the screenshot for verification. Created attachment 1136101 [details]
created container on external docker CR
Created attachment 1136102 [details]
created container on local(satellite) docker CR
Okay, next I tried to create docker container using external registries (registry.access.redhat.com) and it got failed with same error as mentioned in original bz description. UI remains at same page on submitting the new_container wizard and following error thrown in production.log: --- 2016-03-14 06:10:15 [I] Processing by Containers::StepsController#update as HTML 2016-03-14 06:10:15 [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"yhEBU4RWYfjc+7HqFRwnlOfOdrZqD8+ntNEpAfTcMQE=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "wizard_state_id"=>"5", "id"=>"environment"} 2016-03-14 06:10:15 [I] Failed to save: 2016-03-14 06:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.24/app/views/foreman_docker/common_parameters/_environment_variable.html.erb (0.8ms) 2016-03-14 06:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.24/app/views/containers/steps/_form_buttons.html.erb (0.8ms) 2016-03-14 06:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.24/app/views/containers/steps/_title.html.erb (137.8ms) 2016-03-14 06:10:15 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.24/app/views/containers/steps/environment.html.erb within layouts/application (138.1ms) 2016-03-14 06:10:15 [I] Rendered home/_submenu.html.erb (1.5ms) 2016-03-14 06:10:15 [I] Rendered home/_user_dropdown.html.erb (1.0ms) 2016-03-14 06:10:15 [I] Read fragment views/tabs_and_title_records-3 (0.1ms) 2016-03-14 06:10:15 [I] Rendered home/_topbar.html.erb (3.7ms) 2016-03-14 06:10:15 [I] Rendered layouts/base.html.erb (4.7ms) 2016-03-14 06:10:15 [I] Completed 200 OK in 203ms (Views: 143.9ms | ActiveRecord: 35.0ms) Here is the exact error when trying from CLI: ~]# hammer -u admin -p changeme docker container create --name cli_container_02 --registry 'RedHat' --repository-name rhel --tag latest --capsule-id 1 --command top --compute-resource-id 1 Could not create the container: undefined method `save' for nil:NilClass Did you update the CA trust for docker: # curl https://satellite.example.com/pub/katello-server-ca.crt > /etc/pki/ca-trust/source/anchors/katello-server-ca.crt # update-ca-trust enable # update-ca-trust # service docker restart Yes, I tried these steps as mentioned in comment 20 and can see same issue. That should not have anything to do with crane because you are pulling from rh registry and not via a content view or pulp. Can you confirm this worked with 1.7.1 Mike, Sachin, The bad registry url issue is being addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1204925 Mike, Sachin I meant to say its being addressed in http://projects.theforeman.org/issues/14181 connected to https://bugzilla.redhat.com/show_bug.cgi?id=1206300 Ok, that is a different bug, unrelated to this bug. I'm going to move this back ON_QA as the failure is a result of the missing katello-server-ca enabled in the Docker host. Thanks Partha, Mike. The real issue was with registry uri. URI should be "https://registry.access.redhat.com" instead of just "registry.access.redhat.com" I just updated the URI wth https:// and can successfully create container with external registry from UI as well as from CLI. ~]# hammer -u admin -p changeme docker container create --name cli_container_02 --registry 'RedHat' --repository-name rhel --tag latest --capsule-id 1 --command top --compute-resource-id 2 Docker container created Also as Partha mentioned in comment 25 that URI issue is being addressed in https://bugzilla.redhat.com/show_bug.cgi?id=1206300. So moving this bz to verified. thanks Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:0475 |