{"action":"created","issue":{"url":"https://api.github.com/repos/fog/fog/issues/4014","repository_url":"https://api.github.com/repos/fog/fog","labels_url":"https://api.github.com/repos/fog/fog/issues/4014/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog/issues/4014/comments","events_url":"https://api.github.com/repos/fog/fog/issues/4014/events","html_url":"https://github.com/fog/fog/issues/4014","id":368735523,"node_id":"MDU6SXNzdWUzNjg3MzU1MjM=","number":4014,"title":"Fog::Service::NotFound openstack has no storage service","user":{"login":"leemour","id":710919,"node_id":"MDQ6VXNlcjcxMDkxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/710919?v=4","gravatar_id":"","url":"https://api.github.com/users/leemour","html_url":"https://github.com/leemour","followers_url":"https://api.github.com/users/leemour/followers","following_url":"https://api.github.com/users/leemour/following{/other_user}","gists_url":"https://api.github.com/users/leemour/gists{/gist_id}","starred_url":"https://api.github.com/users/leemour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemour/subscriptions","organizations_url":"https://api.github.com/users/leemour/orgs","repos_url":"https://api.github.com/users/leemour/repos","events_url":"https://api.github.com/users/leemour/events{/privacy}","received_events_url":"https://api.github.com/users/leemour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-10T15:55:04Z","updated_at":"2018-10-11T20:34:42Z","closed_at":null,"author_association":"NONE","body":"I'm using `fog-openstack` and it fails to load a fog service. The problem is in https://github.com/fog/fog-core/blob/master/lib/fog/core/services_mixin.rb#L44 where `require_service_provider_library` method is given `'storage'` as service but will only work if `'storage/storage'` is provided. \r\nI get this error when starting Rails:\r\n```\r\n[fog][DEPRECATION] Unable to require fog/openstack/storage\r\n[fog][DEPRECATION] The format fog/storage/openstack is deprecated\r\nExiting\r\n/home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/services_mixin.rb:18:in `rescue in new': openstack has no storage service (Fog::Service::NotFound)\r\n\tfrom /home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/fog-core-2.1.2/lib/fog/core/services_mixin.rb:8:in `new'\r\n\tfrom /home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave/uploader/configuration.rb:126:in `eager_load_fog'\r\n\tfrom /home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave/uploader/configuration.rb:139:in `fog_credentials='\r\n\tfrom /home/leemour/Ruby/burobiz/config/initializers/carrierwave.rb:8:in `block in <main>'\r\n\tfrom /home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave/uploader/configuration.rb:161:in `configure'\r\n\tfrom /home/leemour/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/carrierwave-1.2.3/lib/carrierwave.rb:14:in `configure'\r\n\tfrom /home/leemour/Ruby/burobiz/config/initializers/carrierwave.rb:1:in `<main>'\r\n```\r\nI'm using fog through `carrierwave` and have the following configuration:\r\n```\r\nCarrierWave.configure do |config|\r\n  if Rails.env.test? || Rails.env.cucumber?\r\n    config.storage = :file\r\n    config.enable_processing = false\r\n  else\r\n    config.asset_host   = Rails.application.secrets.asset_host\r\n    config.fog_provider = 'fog/openstack'\r\n    config.fog_credentials = {\r\n      provider:           'OpenStack',\r\n      openstack_auth_url: 'https://api.selcdn.ru/v3',\r\n      openstack_username: Rails.application.secrets.selectel[:username],\r\n      openstack_api_key:  Rails.application.secrets.selectel[:password],\r\n    }\r\n    config.fog_directory  = Rails.application.secrets.selectel_container\r\n    config.fog_public     = true\r\n    config.fog_attributes = {\r\n      cache_control: \"public, max-age=#{365.days.to_i}\"\r\n    }\r\n  end\r\nend\r\n```\r\nI wonder if it's a problem with Carrierwave or with Fog or with Fog-OpenStack? Doesn't seem like `storage/storage` should be an appropriate service name. After overriding `Fog::ServicesMixin#require_service_provider_library` (to do nothing) it works as expected. I'm surprised not find an existing issue, maybe I'm doing smth wrong?"},"comment":{"url":"https://api.github.com/repos/fog/fog/issues/comments/429108859","html_url":"https://github.com/fog/fog/issues/4014#issuecomment-429108859","issue_url":"https://api.github.com/repos/fog/fog/issues/4014","id":429108859,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTEwODg1OQ==","user":{"login":"plribeiro3000","id":672952,"node_id":"MDQ6VXNlcjY3Mjk1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/672952?v=4","gravatar_id":"","url":"https://api.github.com/users/plribeiro3000","html_url":"https://github.com/plribeiro3000","followers_url":"https://api.github.com/users/plribeiro3000/followers","following_url":"https://api.github.com/users/plribeiro3000/following{/other_user}","gists_url":"https://api.github.com/users/plribeiro3000/gists{/gist_id}","starred_url":"https://api.github.com/users/plribeiro3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plribeiro3000/subscriptions","organizations_url":"https://api.github.com/users/plribeiro3000/orgs","repos_url":"https://api.github.com/users/plribeiro3000/repos","events_url":"https://api.github.com/users/plribeiro3000/events{/privacy}","received_events_url":"https://api.github.com/users/plribeiro3000/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T20:34:42Z","updated_at":"2018-10-11T20:34:42Z","author_association":"MEMBER","body":"Not that im aware. Which version of `fog-openstack` are you using?"}}
{"actor":{"display_login":"plribeiro3000"}}