Project

General

Profile

Actions

Bug #9242

closed

Error in docker plugin in foreman 1.7.2 - Searching image in New container panel

Added by Olivier Cruilles over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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&registry_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


Related issues 1 (0 open1 closed)

Related to Docker - Feature #7870: Search images in the host/hubClosed10/09/2014Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Project changed from Foreman to Docker
Actions #2

Updated by Christopher Williamson over 9 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!

Actions #3

Updated by Dominic Cleal over 9 years ago

Actions #4

Updated by Daniel Lobato Garcia over 9 years ago

  • Assignee set to Daniel Lobato Garcia
Actions #5

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/84 added
  • Pull request deleted ()
Actions #6

Updated by Daniel Lobato Garcia over 9 years ago

Chris, I submitted a PR that fixes this issue. I'll release a patch version by next Tuesday.

Actions #7

Updated by Daniel Lobato Garcia over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #8

Updated by Christopher Williamson over 9 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&registry_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?

Actions #9

Updated by Christopher Williamson over 9 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&registry_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

Actions

Also available in: Atom PDF