deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leander Bessa Beernaert <leande...@gmail.com>
Subject Re: Help view the /api/docs
Date Tue, 28 Aug 2012 10:50:41 GMT
If i uninstall rake, i'm left without any rake command. I reinstalled it
and the error still remains :/

On Tue, Aug 28, 2012 at 11:46 AM, Michal Fojtik <mfojtik@redhat.com> wrote:

> On Aug 28, 2012, at 12:26 PM, Leander Bessa Beernaert <leanderbb@gmail.com>
> wrote:
>
> Hi,
>
> I saw this backtrace before, when I had installed two 'rake' gems
> in parallel. You can try to remove 'rake' gem (that gem should be
> bundled in Ruby):
>
> $ gem uninstall rake
>
> And see what happen.
>
>
>   -- Michal
>
> > Full trace:
> > /usr/lib/ruby/1.9.1/rake/version.rb:2: warning: already initialized
> > constant VERSION
> > /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> > constant MAJOR
> > /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> > constant MINOR
> > /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> > constant BUILD
> > /usr/lib/ruby/1.9.1/rake/version.rb:6: warning: already initialized
> > constant NUMBERS
> > /usr/lib/ruby/1.9.1/rake.rb:27: warning: already initialized constant
> > RAKEVERSION
> > /usr/lib/ruby/1.9.1/rake/early_time.rb:17: warning: already initialized
> > constant EARLY
> > /usr/lib/ruby/1.9.1/rake/alt_system.rb:32: warning: already initialized
> > constant WINDOWS
> > /usr/lib/ruby/1.9.1/rake/application.rb:31: warning: already initialized
> > constant DEFAULT_RAKEFILES
> > WARNING: Possible conflict with Rake extension: String#ext already exists
> > WARNING: Possible conflict with Rake extension: String#pathmap already
> > exists
> > /usr/lib/ruby/1.9.1/rake/task_arguments.rb:77: warning: already
> initialized
> > constant EMPTY_TASK_ARGS
> > /usr/lib/ruby/1.9.1/rake/invocation_chain.rb:49: warning: already
> > initialized constant EMPTY
> > /usr/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized
> > constant RUBY
> > /usr/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized
> > constant LN_SUPPORTED
> > /usr/lib/ruby/1.9.1/rake/file_utils_ext.rb:16: warning: already
> initialized
> > constant DEFAULT
> > /usr/lib/ruby/1.9.1/rake/dsl_definition.rb:150: warning: already
> > initialized constant DeprecatedCommands
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:44: warning: already initialized
> > constant ARRAY_METHODS
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:47: warning: already initialized
> > constant MUST_DEFINE
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:51: warning: already initialized
> > constant MUST_NOT_DEFINE
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:55: warning: already initialized
> > constant SPECIAL_RETURN
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:61: warning: already initialized
> > constant DELEGATING_METHODS
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:364: warning: already initialized
> > constant DEFAULT_IGNORE_PATTERNS
> > /usr/lib/ruby/1.9.1/rake/file_list.rb:370: warning: already initialized
> > constant DEFAULT_IGNORE_PROCS
> > /usr/lib/ruby/1.9.1/rake.rb:68: warning: already initialized constant
> > FileList
> > /usr/lib/ruby/1.9.1/rake.rb:69: warning: already initialized constant
> > RakeFileUtils
> > rake aborted!
> > Don't know how to build task 'route'
> > /usr/lib/ruby/1.9.1/rake/task_manager.rb:49:in `[]'
> > /usr/lib/ruby/1.9.1/rake/application.rb:115:in `invoke_task'
> > /usr/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in
> > top_level'
> > /usr/lib/ruby/1.9.1/rake/application.rb:94:in `each'
> > /usr/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level'
> > /usr/lib/ruby/1.9.1/rake/application.rb:133:in
> `standard_exception_handling'
> > /usr/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
> > /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in
> `block
> > in run'
> > /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in
> > `standard_exception_handling'
> > /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
> > /var/lib/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
> > /usr/local/bin/rake:19:in `load'
> > /usr/local/bin/rake:19:in `<main>'
> >
> > On Tue, Aug 28, 2012 at 8:32 AM, marios@redhat.com <mandreou@redhat.com
> >wrote:
> >
> >> On 08/27/2012 07:35 PM, Leander Bessa Beernaert wrote:
> >>> @Mario i tried rake routes and this it what happend
> >>>
> >>
> >> hmm strange -can you try again with "--trace" so I can see if there's
> >> something useful in the output? In the meantime, this is what you should
> >> be getting:
> >>
> >> [marios@name server]$ rake routes
> >> Sinatra::Rabbit::MetricsCollection
> >>   GET :index      /api/metrics                   (Index operation on
> >> Sinatra::Rabbit::MetricsCollection collection)
> >>   GET :show       /api/metrics/:id               (Show operation on
> >> Sinatra::Rabbit::MetricsCollection collection)
> >>
> >> Sinatra::Rabbit::ImagesCollection
> >>   GET :index      /api/images                    (Index operation on
> >> Sinatra::Rabbit::ImagesCollection collection)
> >>   GET :show       /api/images/:id                (Show operation on
> >> Sinatra::Rabbit::ImagesCollection collection)
> >>  POST :create     /api/images                    (Create operation on
> >> Sinatra::Rabbit::ImagesCollection collection)
> >> DELETE :destroy    /api/images/:id                (Destroy operation on
> >> Sinatra::Rabbit::ImagesCollection collection)
> >>
> >> Sinatra::Rabbit::StorageSnapshotsCollection
> >>   GET :index      /api/storage_snapshots         (Index operation on
> >> Sinatra::Rabbit::StorageSnapshotsCollection collection)
> >>   GET :show       /api/storage_snapshots/:id     (Show operation on
> >> Sinatra::Rabbit::StorageSnapshotsCollection collection)
> >>  POST :create     /api/storage_snapshots         (Create operation on
> >> Sinatra::Rabbit::StorageSnapshotsCollection collection)
> >> DELETE :destroy    /api/storage_snapshots/:id     (Destroy operation on
> >> Sinatra::Rabbit::StorageSnapshotsCollection collection)
> >>
> >> Sinatra::Rabbit::InstancesCollection
> >>   GET :show       /api/instances/:id             (Show operation on
> >> Sinatra::Rabbit::InstancesCollection collection)
> >>   GET :index      /api/instances                 (Index operation on
> >> Sinatra::Rabbit::InstancesCollection collection)
> >>  POST :create     /api/instances                 (Create operation on
> >> Sinatra::Rabbit::InstancesCollection collection)
> >>  POST :reboot     /api/instances/:id/reboot      (Reboot a running
> >> instance.)
> >>  POST :start      /api/instances/:id/start       (Start an instance.)
> >>  POST :stop       /api/instances/:id/stop        (Stop a running
> >> instance.)
> >> DELETE :destroy    /api/instances/:id             (Destroy operation on
> >> Sinatra::Rabbit::InstancesCollection collection)
> >>  POST :run        /api/instances/:id/run         (Run operation on
> >> Sinatra::Rabbit::InstancesCollection collection)
> >>
> >> Sinatra::Rabbit::InstanceStatesCollection
> >>   GET :index      /api/instance_states           (Index operation on
> >> Sinatra::Rabbit::InstanceStatesCollection collection)
> >>
> >> Sinatra::Rabbit::DriversCollection
> >>   GET :index      /api/drivers                   (Index operation on
> >> Sinatra::Rabbit::DriversCollection collection)
> >>   GET :show       /api/drivers/:id               (Show operation on
> >> Sinatra::Rabbit::DriversCollection collection)
> >>
> >> Sinatra::Rabbit::KeysCollection
> >>   GET :show       /api/keys/:id                  (Show operation on
> >> Sinatra::Rabbit::KeysCollection collection)
> >>   GET :index      /api/keys                      (Index operation on
> >> Sinatra::Rabbit::KeysCollection collection)
> >>  POST :create     /api/keys                      (Create operation on
> >> Sinatra::Rabbit::KeysCollection collection)
> >> DELETE :destroy    /api/keys/:id                  (Destroy operation on
> >> Sinatra::Rabbit::KeysCollection collection)
> >>
> >> Sinatra::Rabbit::FirewallsCollection
> >>   GET :show       /api/firewalls/:id             (Show operation on
> >> Sinatra::Rabbit::FirewallsCollection collection)
> >>   GET :index      /api/firewalls                 (Index operation on
> >> Sinatra::Rabbit::FirewallsCollection collection)
> >>  POST :create     /api/firewalls                 (Create operation on
> >> Sinatra::Rabbit::FirewallsCollection collection)
> >> DELETE :destroy    /api/firewalls/:id             (Destroy operation on
> >> Sinatra::Rabbit::FirewallsCollection collection)
> >>  POST :rules      /api/firewalls/:id/rules       (Rules operation on
> >> Sinatra::Rabbit::FirewallsCollection collection)
> >>
> >> Sinatra::Rabbit::FirewallsCollection::RulesCollection
> >> DELETE :destroy    /api/firewalls/:id/:rule_id    (Destroy operation on
> >> Sinatra::Rabbit::FirewallsCollection::RulesCollection collection)
> >>
> >> Sinatra::Rabbit::BucketsCollection
> >>   GET :show       /api/buckets/:id               (Show operation on
> >> Sinatra::Rabbit::BucketsCollection collection)
> >>   GET :index      /api/buckets                   (Index operation on
> >> Sinatra::Rabbit::BucketsCollection collection)
> >>  POST :create     /api/buckets                   (Create operation on
> >> Sinatra::Rabbit::BucketsCollection collection)
> >> DELETE :destroy    /api/buckets/:id               (Destroy operation on
> >> Sinatra::Rabbit::BucketsCollection collection)
> >>
> >> Sinatra::Rabbit::BucketsCollection::BlobsCollection
> >>   GET :show       /api/buckets/:id/:blob_id      (Show operation on
> >> Sinatra::Rabbit::BucketsCollection::BlobsCollection collection)
> >>  POST :create     /api/buckets/:id               (Create new blob)
> >> DELETE :destroy    /api/buckets/:id/:blob_id      (Destroy operation on
> >> Sinatra::Rabbit::BucketsCollection::BlobsCollection collection)
> >>   PUT :stream     /api/buckets/:id/:blob_id/stream (Stream new blob
> >> data into the blob)
> >>  HEAD :metadata   /api/buckets/:id/:blob_id/metadata (Metadata
> >> operation on Sinatra::Rabbit::BucketsCollection::BlobsCollection
> >> collection)
> >>  POST :update     /api/buckets/:id/:blob_id      (Update operation on
> >> Sinatra::Rabbit::BucketsCollection::BlobsCollection collection)
> >>   GET :content    /api/buckets/:id/:blob_id/content (Download blob
> >> content)
> >>
> >> Sinatra::Rabbit::StorageVolumesCollection
> >>   GET :index      /api/storage_volumes           (Index operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>   GET :show       /api/storage_volumes/:id       (Show operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>   GET :show       /api/storage_volumes/:id       (Show operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>  POST :create     /api/storage_volumes           (Create operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>  POST :attach     /api/storage_volumes/:id/attach (Attach operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>  POST :detach     /api/storage_volumes/:id/detach (Detach operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >> DELETE :destroy    /api/storage_volumes/:id       (Destroy operation on
> >> Sinatra::Rabbit::StorageVolumesCollection collection)
> >>
> >> Sinatra::Rabbit::LoadBalancersCollection
> >>   GET :index      /api/load_balancers            (Index operation on
> >> Sinatra::Rabbit::LoadBalancersCollection collection)
> >>   GET :show       /api/load_balancers/:id        (Show operation on
> >> Sinatra::Rabbit::LoadBalancersCollection collection)
> >>  POST :create     /api/load_balancers            (Create operation on
> >> Sinatra::Rabbit::LoadBalancersCollection collection)
> >>  POST :register   /api/load_balancers/:id/register (Register operation
> >> on Sinatra::Rabbit::LoadBalancersCollection collection)
> >>  POST :unregister /api/load_balancers/:id/unregister (Unregister
> >> operation on Sinatra::Rabbit::LoadBalancersCollection collection)
> >> DELETE :destroy    /api/load_balancers/:id        (Destroy operation on
> >> Sinatra::Rabbit::LoadBalancersCollection collection)
> >>
> >> Sinatra::Rabbit::AddressesCollection
> >>   GET :index      /api/addresses                 (Index operation on
> >> Sinatra::Rabbit::AddressesCollection collection)
> >>   GET :show       /api/addresses/:id             (Show operation on
> >> Sinatra::Rabbit::AddressesCollection collection)
> >>  POST :create     /api/addresses                 (Acquire a new IP
> >> address for use with your account.)
> >> DELETE :destroy    /api/addresses/:id             (Destroy operation on
> >> Sinatra::Rabbit::AddressesCollection collection)
> >>  POST :associate  /api/addresses/:id/associate   (Associate an IP
> >> address to an instance)
> >>  POST :disassociate /api/addresses/:id/disassociate (Disassociate an IP
> >> address from an instance)
> >>
> >> Sinatra::Rabbit::RealmsCollection
> >>   GET :index      /api/realms                    (Index operation on
> >> Sinatra::Rabbit::RealmsCollection collection)
> >>   GET :show       /api/realms/:id                (Show operation on
> >> Sinatra::Rabbit::RealmsCollection collection)
> >>
> >> Sinatra::Rabbit::HardwareProfilesCollection
> >>   GET :index      /api/hardware_profiles         (Index operation on
> >> Sinatra::Rabbit::HardwareProfilesCollection collection)
> >>   GET :show       /api/hardware_profiles/:id     (Show operation on
> >> Sinatra::Rabbit::HardwareProfilesCollection collection)
> >>
> >>
> >>
> >>> /usr/lib/ruby/1.9.1/rake/version.rb:2: warning: already initialized
> >>> constant VERSION
> >>> /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> >>> constant MAJOR
> >>> /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> >>> constant MINOR
> >>> /usr/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized
> >>> constant BUILD
> >>> /usr/lib/ruby/1.9.1/rake/version.rb:6: warning: already initialized
> >>> constant NUMBERS
> >>> /usr/lib/ruby/1.9.1/rake.rb:27: warning: already initialized constant
> >>> RAKEVERSION
> >>> /usr/lib/ruby/1.9.1/rake/early_time.rb:17: warning: already initialized
> >>> constant EARLY
> >>> /usr/lib/ruby/1.9.1/rake/alt_system.rb:32: warning: already initialized
> >>> constant WINDOWS
> >>> /usr/lib/ruby/1.9.1/rake/application.rb:31: warning: already
> initialized
> >>> constant DEFAULT_RAKEFILES
> >>> WARNING: Possible conflict with Rake extension: String#ext already
> exists
> >>> WARNING: Possible conflict with Rake extension: String#pathmap already
> >>> exists
> >>> /usr/lib/ruby/1.9.1/rake/task_arguments.rb:77: warning: already
> >> initialized
> >>> constant EMPTY_TASK_ARGS
> >>> /usr/lib/ruby/1.9.1/rake/invocation_chain.rb:49: warning: already
> >>> initialized constant EMPTY
> >>> /usr/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized
> >>> constant RUBY
> >>> /usr/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized
> >>> constant LN_SUPPORTED
> >>> /usr/lib/ruby/1.9.1/rake/file_utils_ext.rb:16: warning: already
> >> initialized
> >>> constant DEFAULT
> >>> /usr/lib/ruby/1.9.1/rake/dsl_definition.rb:150: warning: already
> >>> initialized constant DeprecatedCommands
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:44: warning: already initialized
> >>> constant ARRAY_METHODS
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:47: warning: already initialized
> >>> constant MUST_DEFINE
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:51: warning: already initialized
> >>> constant MUST_NOT_DEFINE
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:55: warning: already initialized
> >>> constant SPECIAL_RETURN
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:61: warning: already initialized
> >>> constant DELEGATING_METHODS
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:364: warning: already initialized
> >>> constant DEFAULT_IGNORE_PATTERNS
> >>> /usr/lib/ruby/1.9.1/rake/file_list.rb:370: warning: already initialized
> >>> constant DEFAULT_IGNORE_PROCS
> >>> /usr/lib/ruby/1.9.1/rake.rb:68: warning: already initialized constant
> >>> FileList
> >>> /usr/lib/ruby/1.9.1/rake.rb:69: warning: already initialized constant
> >>> RakeFileUtils
> >>> ** Invoke routes (first_time)
> >>> ** Execute routes
> >>> rake aborted!
> >>> stack level too deep
> >>> /usr/lib/ruby/1.9.1/rake/task.rb:162
> >>> Tasks: TOP => routes
> >>>
> >>> @ Michal could you point out where exactly on the website can i have a
> >>> detailed listing of every api operation. I'm unable to find such a page
> >> :/
> >>>
> >>> On Mon, Aug 27, 2012 at 5:25 PM, Michal Fojtik <mfojtik@redhat.com>
> >> wrote:
> >>>
> >>>>
> >>>> On Aug 27, 2012, at 6:21 PM, Leander Bessa Beernaert <
> >> leanderbb@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Hello,
> >>>>>
> >>>>> I am would like to have a complete listing of all the rest api
> >>>> invocations
> >>>>> possible with deltacloud. According to the documentation that listing
> >>>>> should be available at localhost:3001/api/docs/. However, i'm
> presented
> >>>>> with a page which says: "Sinatra doesn't know this ditty" and this
> >>>> appears
> >>>>> in the log:
> >>>>>
> >>>>> 193.136.19.96 - - [27/Aug/2012 16:20:17] "GET /api/docs/ HTTP/1.1"
> 404
> >>>> 455
> >>>>> 0.0172
> >>>>> 193.136.19.96 - - [27/Aug/2012 16:20:17] "GET
> /api/__sinatra__/404.png
> >>>>> HTTP/1.1" 404 469 0.0096
> >>>>>
> >>>>> Am i missing something in my installation? I'm using the OpenStack
> >> driver
> >>>>> by the way.
> >>>>
> >>>> No, you're not missing anything. We did a huge revamp of the DSL we
> use
> >>>> for building collections and operation and the '/api/docs' generator
> >>>> is one of the things that were not migrated over yet.
> >>>>
> >>>> Meanwhile you can use our website for the documentation.
> >>>>
> >>>>  -- Michal
> >>>>
> >>>> Michal Fojtik
> >>>> http://deltacloud.org
> >>>> mfojtik@redhat.com
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
> > --
> > Cumprimentos / Regards,
> > Leander
>
> Michal Fojtik
> http://deltacloud.org
> mfojtik@redhat.com
>
>
>
>


-- 
Cumprimentos / Regards,
Leander

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message