Bug #9242
closedError in docker plugin in foreman 1.7.2 - Searching image in New container panel
Description
Hello,
I'm not able to select a docker image from official docker hub bu selecting it into the 'New Container -> Images'. Nothing appears in the page and this message is logged:
Started GET "/image_search/27/search_repository?search=centos®istry_id=" for <ip of my server> at 2015-02-05 12:00:54 -0500
Processing by ImageSearchController#search_repository as TEXT
Parameters: {"search"=>"centos", "registry_id"=>"", "id"=>"27"}
Successfully decrypted field for ForemanDocker::Docker hqm-ops-coreos01
Operation FAILED: undefined method `image_search' for <Fog::Compute::Fogdocker::Images
[]
>:Fog::Compute::Fogdocker::Images
Rendered common/500.html.erb (6.2ms)
Completed 500 Internal Server Error in 1396ms (Views: 6.9ms | ActiveRecord: 1.9ms)
Do you need more logs or informations ?
Thank you in advance.
Olivier
Updated by Dominic Cleal almost 10 years ago
- Project changed from Foreman to Docker
Updated by Christopher Williamson almost 10 years ago
I am also facing this problem which does make sense considering on Ubuntu 14.04 LTS when you install The Foreman 1.7.2 along with foreman-compute the following file does not have the subroutine for 'image_search':
/usr/share/foreman/vendor/ruby/1.9.1/gems/fog-1.24.0/lib/fog/fogdocker/models/compute/images.rb
There are various ways to 'rig' this to work (i.e. by replacing the contents of gems/fog-1.24.0 with a compatible version but I'm wondering what the official plan to resolve this issue are?
Thanks!
Updated by Dominic Cleal almost 10 years ago
- Related to Feature #7870: Search images in the host/hub added
Updated by Daniel Lobato Garcia almost 10 years ago
- Assignee set to Daniel Lobato Garcia
Updated by The Foreman Bot almost 10 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman-docker/pull/84 added
- Pull request deleted (
)
Updated by Daniel Lobato Garcia almost 10 years ago
Chris, I submitted a PR that fixes this issue. I'll release a patch version by next Tuesday.
Updated by Daniel Lobato Garcia almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-docker|9f0918fc188718f1ecba9cb061e1ca1b94a5e634.
Updated by Christopher Williamson almost 10 years ago
Hi Daniel - thanks for the fix but sadly this has highlighted a further issue for me:
Started GET "/image_search/2/search_repository?search=centos®istry_id=" for 94.5.47.18 at 2015-02-25 12:01:06 +0100
Processing by ImageSearchController#search_repository as TEXT
Parameters: {"search"=>"centos", "registry_id"=>"", "id"=>"2"}
String does not start with the prefix 'encrypted-', so ForemanDocker::Docker Docker was not decrypted
Operation FAILED: undefined method `downcase_hash_keys' for <Fog::Compute::Fogdocker::Images
[]
>:Fog::Compute::Fogdocker::Images
Rendered common/500.html.erb (2.3ms)
Completed 500 Internal Server Error in 1804.9ms (Views: 2.7ms | ActiveRecord: 0.5ms)
Looks like we're still missing tghe downcase_hash_keys function sadly. Want me to raise another bug for this?
Updated by Christopher Williamson almost 10 years ago
Christopher Williamson wrote:
Hi Daniel - thanks for the fix but sadly this has highlighted a further issue for me:
Started GET "/image_search/2/search_repository?search=centos®istry_id=" for 94.5.47.18 at 2015-02-25 12:01:06 +0100
Processing by ImageSearchController#search_repository as TEXT
Parameters: {"search"=>"centos", "registry_id"=>"", "id"=>"2"}
String does not start with the prefix 'encrypted-', so ForemanDocker::Docker Docker was not decrypted
Operation FAILED: undefined method `downcase_hash_keys' for <Fog::Compute::Fogdocker::Images
[]:Fog::Compute::Fogdocker::Images
Rendered common/500.html.erb (2.3ms)
Completed 500 Internal Server Error in 1804.9ms (Views: 2.7ms | ActiveRecord: 0.5ms)Looks like we're still missing tghe downcase_hash_keys function sadly. Want me to raise another bug for this?
I went ahead and raised this as a separate bug: Bug #9544