fog / fog-openstack

Fog for OpenStack Platform
MIT License
67 stars 130 forks source link

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

Open desmond132518 opened 7 years ago

desmond132518 commented 7 years ago

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' `

seanhandley commented 7 years ago

Do any of the services work?

Have you tried requiring fog-openstack instead?

plribeiro3000 commented 7 years ago

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:

desmond132518 commented 7 years ago

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

plribeiro3000 commented 7 years ago

@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?

desmond132518 commented 7 years ago

@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.

MiloCheung commented 7 years ago

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.