Bug 1190101
| Summary: | Unable to create new container, submit button failed to save | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
| Component: | Container Management | Assignee: | Daniel Lobato Garcia <dlobatog> |
| Status: | CLOSED WORKSFORME | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | Unspecified | CC: | bkearney, paul.seymour, sasskinn, sghai, ypismerov |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://projects.theforeman.org/issues/10200 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-04 07:54:53 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: | 1190289 | ||
Please fill more details about the compute resource connection, parameters used, and so forth. Reproducible: "always" is not very helpful, can you try not assigning any environment variables, or also pasting the logs from journalctl -u docker (these would be the most useful as they contain the actual calls & errors). Thanks I have exactly same problem. I am using katello-2.2.0-1.201502171650git5cf9de7.el6.noarch with foreman docker 1.2.0 version :( Created redmine issue http://projects.theforeman.org/issues/10200 from this bug I have the same problem with a n Atomic Host as a compute resource with Satellite 6.1 beta:-
2015-06-19 08:48:39 [I] Processing by Containers::StepsController#update as HTML
2015-06-19 08:48:39 [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"T5ANFRNV4EsE5lHF6MA3D1uigg38seHKECC3MKKMv7Q=", "docker_container_wizard_states_environment"=>{"tty"=>"1", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "wizard_state_id"=>"8", "id"=>"environment"}
2015-06-19 08:48:39 [I] String does not start with the prefix 'encrypted-', so ForemanDocker::Docker AtomicHost1 was not decrypted
2015-06-19 08:48:39 [I] Failed to save:
2015-06-19 08:48:39 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.7/app/views/foreman_docker/common_parameters/_environment_variable.html.erb (0.7ms)
2015-06-19 08:48:39 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.7/app/views/containers/steps/_form_buttons.html.erb (0.7ms)
2015-06-19 08:48:39 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.7/app/views/containers/steps/_title.html.erb (8.8ms)
2015-06-19 08:48:39 [I] Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.2.0.7/app/views/containers/steps/environment.html.erb within layouts/application (9.1ms)
2015-06-19 08:48:39 [I] Rendered home/_submenu.html.erb (2.0ms)
2015-06-19 08:48:39 [I] Rendered home/_user_dropdown.html.erb (1.1ms)
2015-06-19 08:48:39 [I] Read fragment views/tabs_and_title_records-4 (0.1ms)
2015-06-19 08:48:39 [I] Rendered home/_topbar.html.erb (4.3ms)
2015-06-19 08:48:39 [I] Rendered layouts/base.html.erb (5.3ms)
2015-06-19 08:48:39 [I] Completed 200 OK in 69ms (Views: 15.8ms | ActiveRecord: 6.9ms)
Using the Satellite cert I can get synced Docker images to work. But not from external registries that are not synced with Satellite 6.1 on Atomic Host compute resources. (In reply to Daniel Lobato Garcia from comment #2) > Please fill more details about the compute resource connection, parameters > used, and so forth. Reproducible: "always" is not very helpful, can you try > not assigning any environment variables, or also pasting the logs from > journalctl -u docker (these would be the most useful as they contain the > actual calls & errors). > > Thanks I configured satellite server as container host. No parameters or env_variables passed.
Looks like this issue appears when creating a container with image which is not known to satellite server
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: time="2015-07-15T06:48:02-04:00" level=info msg="-job image_inspect(centos) = E
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: time="2015-07-15T06:48:02-04:00" level=error msg="Handler for GET /images/{name
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: time="2015-07-15T06:48:02-04:00" level=error msg="HTTP Error: statusCode=404 No
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: time="2015-07-15T06:48:02-04:00" level=info msg="GET /v1.15/images/centos/json"
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: time="2015-07-15T06:48:02-04:00" level=info msg="+job image_inspect(centos)"
Jul 15 06:48:02 cloud-qe-12.idmqe.lab.eng.bos.redhat.com docker[6309]: No such image: centos
Upstream bug component is Container Management Can you try with the latest version see if you can find a reproducer? As it stands right now, I don't have any clear way of reproducing with the latest snap. This bug would be a blocker and would've blocked even other issues from fixing - so I have a hunch it can probably be closed already by looking at the latest snap. Verified with Satellite 6.2 beta snap6.
The reported issue is no longer reproducible now. I can create container on external as well as on local(satellite itself) compute resource.
2016-04-04 03:47:56 [app] [I] Processing by Containers::StepsController#update as HTML
2016-04-04 03:47:56 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"mdxwVdcjzTLgd8BDGwCkAlMR9iPSN4AiT1i7ZnFJYPM=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "button"=>"", "wizard_state_id"=>"13", "id"=>"environment"}
2016-04-04 03:47:56 [app] [D] Setting current user thread-local variable to admin
2016-04-04 03:47:56 [app] [D] Setting current organization thread-local variable to Default Organization
2016-04-04 03:47:56 [app] [D] Setting current location thread-local variable to none
2016-04-04 03:48:22 [app] [I] Redirected to https://cloud-qe-15.idmqe.lab.eng.bos.redhat.com/containers/5
2016-04-04 03:48:22 [app] [I] Completed 302 Found in 26254ms (ActiveRecord: 44.6ms)
2016-04-04 03:48:23 [app] [I] Started GET "/containers/5" for 10.65.193.200 at 2016-04-04 03:48:23 -0400
2016-04-04 03:48:23 [app] [I] Processing by ContainersController#show as HTML
2016-04-04 03:48:23 [app] [I] Parameters: {"id"=>"5"}
2016-04-04 03:48:23 [app] [D] Setting current user thread-local variable to admin
2016-04-04 03:48:23 [app] [D] Setting current organization thread-local variable to Default Organization
2016-04-04 03:48:23 [app] [D] Setting current location thread-local variable to none
2016-04-04 03:48:23 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_docker-2.0.1.2/app/views/containers/show.html.erb within layouts/application (27.8ms)
2016-04-04 03:48:23 [app] [I] Rendered layouts/_application_content.html.erb (0.3ms)
2016-04-04 03:48:23 [app] [I] Rendered home/_submenu.html.erb (0.8ms)
2016-04-04 03:48:23 [app] [I] Rendered home/_user_dropdown.html.erb (1.0ms)
2016-04-04 03:48:23 [app] [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2016-04-04 03:48:23 [app] [I] Rendered home/_topbar.html.erb (2.8ms)
2016-04-04 03:48:23 [app] [I] Rendered layouts/base.html.erb (3.6ms)
2016-04-04 03:48:23 [app] [I] Completed 200 OK in 43ms (Views: 32.5ms | ActiveRecord: 3.6ms)
|
Description of problem: I was trying to create a new container with busybox image but when I submit the button nothing happens on UI. Neither the form was submitted not I got any error on UI. production.log says: ============ Processing by Containers::StepsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"L5BZ5wCNqE3k1CU/2kpbUZFmqNvXkCyRBpVU23ErqXg=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "wizard_state_id"=>"3", "id"=>"environment"} Failed to save: Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/foreman_docker/common_parameters/_environment_variable.html.erb (2.4ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/_form_buttons.html.erb (2.4ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/_title.html.erb (355.0ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/environment.html.erb within layouts/application (355.7ms) Rendered home/_user_dropdown.html.erb (3.6ms) Read fragment views/tabs_and_title_records-3 (0.3ms) Rendered home/_topbar.html.erb (5.7ms) Rendered layouts/base.html.erb (8.8ms) Completed 200 OK in 458ms (Views: 367.9ms | ActiveRecord: 21.5ms) Version-Release number of selected component (if applicable): * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.41-1.el6.noarch * candlepin-common-1.0.20-1.el6.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.41-1.el6.noarch * candlepin-tomcat6-0.9.41-1.el6.noarch * elasticsearch-0.90.10-7.el6.noarch * foreman-1.7.2.3-1.el6_6sat.noarch * foreman-compute-1.7.2.3-1.el6_6sat.noarch * foreman-gce-1.7.2.3-1.el6_6sat.noarch * foreman-libvirt-1.7.2.3-1.el6_6sat.noarch * foreman-ovirt-1.7.2.3-1.el6_6sat.noarch * foreman-postgresql-1.7.2.3-1.el6_6sat.noarch * foreman-proxy-1.7.2.1-1.el6_6sat.noarch * foreman-selinux-1.7.2.8-1.el6_6sat.noarch * foreman-vmware-1.7.2.3-1.el6_6sat.noarch * katello-2.2.0.2-1.el6_6sat.noarch * katello-certs-tools-2.2.1-1.el6_6sat.noarch * katello-common-2.2.0.2-1.el6_6sat.noarch * katello-default-ca-1.0-1.noarch * katello-installer-2.2.0.3-1.el6_6sat.noarch * katello-installer-base-2.2.0.3-1.el6_6sat.noarch * katello-server-ca-1.0-1.noarch * openldap-2.4.39-8.el6.x86_64 * openldap-devel-2.4.39-8.el6.x86_64 * pulp-docker-plugins-0.2.1-0.2.beta.el6_6sat.noarch * pulp-katello-0.3-4.el6sat.noarch * pulp-nodes-common-2.5.0-0.7.beta.el6_6sat.noarch * pulp-nodes-parent-2.5.0-0.7.beta.el6_6sat.noarch * pulp-puppet-plugins-2.5.0-0.7.beta.el6sat.noarch * pulp-puppet-tools-2.5.0-0.7.beta.el6sat.noarch * pulp-rpm-plugins-2.5.0-0.7.beta.el6_6sat.noarch * pulp-selinux-2.5.0-0.7.beta.el6_6sat.noarch * pulp-server-2.5.0-0.7.beta.el6_6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-ldap_fluff-0.3.2-1.el6_6sat.noarch * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.3.0-1.el6_6sat.noarch * rubygem-hammer_cli-0.1.4.3-1.el6_6sat.noarch * rubygem-hammer_cli_foreman-0.1.4.3-1.el6_6sat.noarch * rubygem-hammer_cli_foreman_bootdisk-0.1.2.4-1.el6_6sat.noarch * rubygem-hammer_cli_foreman_tasks-0.0.3.1-1.el6_6sat.noarch * rubygem-hammer_cli_gutterball-0.0.1.1-1.el6_6sat.noarch * rubygem-hammer_cli_import-0.10.6-1.el6sat.noarch * rubygem-hammer_cli_katello-0.0.7.1-1.el6_6sat.noarch How reproducible: always Steps to Reproduce: 1. create new container with busybox image 2. submit 3. Actual results: Unable to create new container, submit button failed to save Processing by Containers::StepsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"L5BZ5wCNqE3k1CU/2kpbUZFmqNvXkCyRBpVU23ErqXg=", "docker_container_wizard_states_environment"=>{"tty"=>"0", "attach_stdin"=>"1", "attach_stdout"=>"1", "attach_stderr"=>"1"}, "wizard_state_id"=>"3", "id"=>"environment"} Failed to save: Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/foreman_docker/common_parameters/_environment_variable.html.erb (2.4ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/_form_buttons.html.erb (2.4ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/_title.html.erb (355.0ms) Rendered /opt/rh/ruby193/root/usr/share/gems/gems/foreman_docker-1.0.1/app/views/containers/steps/environment.html.erb within layouts/application (355.7ms) Rendered home/_user_dropdown.html.erb (3.6ms) Read fragment views/tabs_and_title_records-3 (0.3ms) Rendered home/_topbar.html.erb (5.7ms) Rendered layouts/base.html.erb (8.8ms) Completed 200 OK in 458ms (Views: 367.9ms | ActiveRecord: 21.5ms) Expected results: Additional info: