fog-openstack icon indicating copy to clipboard operation
fog-openstack copied to clipboard

Fog::Service::NotFound: openstack has no metering service

Open desmond132518 opened this issue 9 years ago • 6 comments
trafficstars

I have tried to use the fog-core 1.42.0 to call the metering service in fog-openstack, but it claimed openstack has no metering service when I have all files in "metering" folder.

require_service_provider_library(service_name.downcase, provider) spc = service_provider_constant(service_name, provider_name) spc.new(attributes)

Fog::Service::NotFound: openstack has no metering service from /home/desmond/.rvm/gems/ruby-2.1.2@app360/gems/fog-core-1.42.0/lib/fog/core/services_mixin.rb:19:inrescue in new' `

desmond132518 avatar Aug 30 '16 10:08 desmond132518

Do any of the services work?

Have you tried requiring fog-openstack instead?

seanhandley avatar Aug 30 '16 20:08 seanhandley

We have the same issue in fog-xenserver fog/fog-xenserver#60

I believe the issue might be on loading in fog-core.

@desmond132518 Can you provide more info like:

  • Are you using fog-openstack as standalone or within fog?

plribeiro3000 avatar Aug 30 '16 20:08 plribeiro3000

@seanhandley other services work well, except "metering service" @plribeiro3000 I used fog-openstack as standalone

desmond132518 avatar Aug 31 '16 02:08 desmond132518

@desmond132518 If you take a look at the issue #182 you will see that @MiloCheung was able to find the Metering service but got another issue later. It seems he is using on standalone mode too. Which version of fog-openstack are you using?

plribeiro3000 avatar Aug 31 '16 17:08 plribeiro3000

@plribeiro3000 fog-openstack-0.1.11

Actually @MiloCheung and I are working on the same project. We may try to fall back the fog-openstack version back to 0.1.7 if the issue cannot be fixed in the short run.

desmond132518 avatar Sep 01 '16 01:09 desmond132518

hi @plribeiro3000 , our issue produced in > version 0.1.7. Seem that I am able to access the metering service, but I can't call the service's api.

MiloCheung avatar Sep 06 '16 08:09 MiloCheung