Bug #9184
openError creating new compute resource using Docker plugin
Description
Unable to get past the first step in Docker compute resource creation. After entering a name and selecting the Docker provider, I get this error:
NoMethodError undefined method `email' for #<ForemanDocker::Docker:0x000000094b2608> app/helpers/layout_helper.rb:35:in `block in text_f' app/helpers/layout_helper.rb:164:in `block (3 levels) in field' app/helpers/layout_helper.rb:163:in `block (2 levels) in field' app/helpers/layout_helper.rb:152:in `block in field' app/helpers/layout_helper.rb:151:in `field' app/helpers/layout_helper.rb:32:in `text_f' app/views/compute_resources/_form.html.erb:25:in `block in _987a663e5e10a99ef8e4f503ab1c6d0a' app/helpers/layout_helper.rb:268:in `form_for' app/views/compute_resources/_form.html.erb:2:in `_987a663e5e10a99ef8e4f503ab1c6d0a' app/views/compute_resources/new.html.erb:3:in `_2a555401a38bf899c806bf7afe92686d' app/controllers/application_controller.rb:277:in `process_error' app/controllers/compute_resources_controller.rb:30:in `create' app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' lib/middleware/catch_json_parse_errors.rb:9:in `call'
Running Foreman 1.7.2. Error occurs in both the foreman_docker 1.0.0 gem and the master branch straight from GitHub.
Files
Updated by Dominic Cleal almost 10 years ago
- Project changed from Foreman to Docker
- Category deleted (
Compute resources)
It looks like 'email' is a field that the Docker plugin adds. Could you try running foreman-rake db:migrate
and then restart httpd/Apache?
Updated by Mark Austin over 8 years ago
I'm able to reproduce this issue easily using Foreman 1.12-stable and foreman_docker 2.1.1
``./bin/rake db:migrate`` and ``./bin/rake db:seed`` does't resolve this problem.
Updated by J LP over 8 years ago
Mark Austin wrote:
I'm able to reproduce this issue easily using Foreman 1.12-stable and foreman_docker 2.1.1
``./bin/rake db:migrate`` and ``./bin/rake db:seed`` does't resolve this problem.
Also getting this Exact same error with the same error on Ubuntu 14.04.4
With Docker Plugin installed via Apt (v2.01)
And Foreman version 1.11.3
``./bin/rake db:migrate`` and ``./bin/rake db:seed`` did not solve the problem either.
Any hints?
Updated by Leonardo Serra over 8 years ago
Hello,
I had the same issues here.
I solved this removing this (the line 4)?
<%= text_f f, :email %>
from this file
/usr/share/foreman/vendor/ruby/2.1.0/gems/foreman_docker-1.4.1/app/views/compute_resources/form/_docker.html.erb
Maybe this can help you.
Leonardo Serra