not able to connect to devstack using the sample example on https://github.com/stackforge/openstack-sdk-dotnet

Bug #1323260 reported by rohit mathur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-sdk-dotnet
Fix Released
Critical
Wayne Foley

Bug Description

Dear team,
I am trying to connect to devstack using the sample example given on https://github.com/stackforge/openstack-sdk-dotnet.

Currently getting an error in line

var storageServiceClient = client.CreateServiceClient<IStorageServiceClient>();
Error: "A client that supports the requested service for the given instance of OpenStack could not be found."

Did a little debugging and found out that connection is happening with devstack but in the credential object, service catalog list was empty.

Kindly let me know any resolution for this.

Revision history for this message
Wayne Foley (wayne-foley) wrote :

Thanks for reporting this bug. I have verified it, and will be committing a fix. The root cause is based on differences in the service catalog that were not expected. Expected a fix soon, and an updated nuget package.

Changed in openstack-sdk-dotnet:
importance: Undecided → Critical
status: New → Confirmed
assignee: nobody → Wayne Foley (wayne-foley)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-sdk-dotnet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96596

Revision history for this message
Wayne Foley (wayne-foley) wrote :

Fix is out for review: https://review.openstack.org/#/c/96596/

Once approved/committed/merged, expect an updated nuget package within a day or two.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-sdk-dotnet (master)

Reviewed: https://review.openstack.org/96596
Committed: https://git.openstack.org/cgit/stackforge/openstack-sdk-dotnet/commit/?id=26a876038896ec5fb937ace157e75c34cc639e7f
Submitter: Jenkins
Branch: master

commit 26a876038896ec5fb937ace157e75c34cc639e7f
Author: Wayne Foley <email address hidden>
Date: Thu May 29 12:17:02 2014 -0700

    Fixes a bug where user could not connect to devstack using the sdk example.

    Added the ability to specify a service name when creating a service client.
    Moved the default service name into the service definitions for both Identity and Storage
    Modified the region resolution code to include a fall back when the given service name cannot be found
    Updated unit tests and examples.

    Closes-Bug: #1323260
    Change-Id: Ifefd12ec783429f7a9c0f80c22bbd9aa6985df55

Changed in openstack-sdk-dotnet:
status: In Progress → Fix Committed
Revision history for this message
Wayne Foley (wayne-foley) wrote :

Please note that the Authorization Uri needs to change when consuming the new fix. The Nuget package has been updated (version 0.9.1). Please update your projects and look at the wiki (https://wiki.openstack.org/wiki/OpenStack-SDK-DotNet#Quick_Start) for updated sample code. The change to the Authorization Uri is to remove the "/tokens" from the end. If you have any questions or concerns feel free to contact me.

Changed in openstack-sdk-dotnet:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.