Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 26 2019 12:07
  • Jan 22 2019 06:32
    13567436138 starred openstacknetsdk/openstack.net
  • Jan 19 2019 06:21
    jorgemachucav starred openstacknetsdk/openstack.net
  • Dec 14 2018 11:46
    mcassim commented #663
  • Dec 13 2018 21:38
  • Nov 20 2018 18:27
    dwalleck closed #660
  • Nov 09 2018 03:34
    dwalleck commented #663
  • Nov 07 2018 19:20
    JRichmond27 commented #650
  • Nov 07 2018 18:58
    JRichmond27 commented #650
  • Nov 06 2018 13:51
    TurgutBtc edited #663
  • Nov 06 2018 13:44
    TurgutBtc opened #663
  • Oct 25 2018 11:21
  • Oct 20 2018 23:07

    dwalleck on master

    Workarounds to get build/releas… Merge pull request #662 from op… (compare)

  • Oct 20 2018 23:07
    dwalleck closed #662
  • Oct 20 2018 23:07
    dwalleck opened #662
  • Oct 20 2018 23:06

    dwalleck on fix-build-release

    Workarounds to get build/releas… (compare)

  • Oct 20 2018 22:28

    dwalleck on azure-pipelines

    (compare)

  • Oct 20 2018 22:28

    dwalleck on master

    Set up CI with Azure Pipelines Merge pull request #661 from op… (compare)

  • Oct 20 2018 22:28
    dwalleck closed #661
  • Oct 20 2018 22:26
    azure-pipelines[bot] opened #661
Don Schenck
@DonSchenck

Here's code that I have that actually works; I MAY have made a mistake in either the QuickStart or in the actual SDK. ``` async static void ListCDNFlavors()
{
ContentDeliveryClient cdc = GetContentDeliveryClient();
ListFlavorsApiCall t = await cdc.PrepareListFlavorsAsync(CancellationToken.None);
using (t)
{
Tuple<HttpResponseMessage, ReadOnlyCollectionPage<Flavor>> response = await t.SendAsync(CancellationToken.None);
var responseMessage = response.Item1;
ReadOnlyCollection<Flavor> allFlavors = await response.Item2.GetAllPagesAsync(CancellationToken.None, null);
if (allFlavors.Count == 0)
Console.WriteLine("No flavors were provided by the service.");

            foreach (Flavor flavor in allFlavors)
            {
                Console.WriteLine(String.Format("Flavor: {0}", flavor));
                Console.WriteLine(String.Format("Flavor ID: {0}",  flavor.Id));
                Console.WriteLine(String.Format("Flavor.Providers.IsDefault: {0}", flavor.Providers.IsDefault));

                OpenStack.Services.ContentDelivery.V1.Flavor f = await cdc.GetFlavorAsync(flavor.Id, CancellationToken.None);
                Console.WriteLine("GOT INDIVIDUAL FLAVOR!");
                Console.WriteLine(f.Id);
                Console.WriteLine("----------------------------");

                foreach (FlavorProvider provider in flavor.Providers)
                {
                    Console.WriteLine(String.Format("Flavor Provider: {0}", provider.Provider));
                    Console.WriteLine(String.Format("Flavor.provider.Links.IsDefault: {0}", provider.Links.IsDefault));
                    Console.WriteLine(String.Format("Flavor.provider.Links? {0}", provider.Links.Length > 0));
                    Console.WriteLine(String.Format("Provider {0}", provider.Links[0].Relation));
                    Console.WriteLine(String.Format("Provider {0}", provider.Links[0].Target.AbsoluteUri));
                    Console.WriteLine(provider.Links.Any(i => "provider_url".Equals(i.Relation, StringComparison.OrdinalIgnoreCase)));
                }

                Console.WriteLine(flavor.Links.IsDefault);
                Console.WriteLine(flavor.Links.Length > 0);
                Console.WriteLine(flavor.Links.Any(i => "self".Equals(i.Relation, StringComparison.OrdinalIgnoreCase)));
                Console.WriteLine(flavor.Links[0].Relation);
                Console.WriteLine(flavor.Links[0].Target.AbsoluteUri);
            }

        }

```

Sam Harwell
@sharwell
back
First I wanted to hit on the async/await issue because it's unique to this repository
Prior to .NET 4.5, the Task Parallel Library could be used to incorporate asynchronous tasks (represented by the Task class) into code. In .NET 4.5, the async/await keywords were introduced, and these keywords perform special operations on Task objects (or more generally, awaitables, but that's outside the scope of what we need for this project).
In the OpenStack.NET SDK, we use the Task Parallel Library directly in order to provide support for .NET 3.5 and .NET 4.0 users. However, the majority of our users do use .NET 4.5+, so the samples are written in the manner most appropriate to them. The await operator does not care whether or not the original method used the async keyword. It only cares that the method returns a Task.
Carolyn Van Slyck
@carolynvs
ah okay I think my issue is some of my references (e.g. Rackspace.Threading). I'll start with a fresh project and I think that should fix it
Sam Harwell
@sharwell
What compile error are you seeing?
Carolyn Van Slyck
@carolynvs
No worries, that was the issue and after cleaning up my references/imports it is no longer complaining about a missing async keyword
Sam Harwell
@sharwell
:+1:
Carolyn Van Slyck
@carolynvs
@sharwell Can you please give me (carolynvs) access to the openstack.net sdk nuget package? We need to publish a new version ASAP.
Sam Harwell
@sharwell
I believe you should have access now?
Before it's published, we should resolve this issue
JSIStudios/SimpleRestServices#66
Carolyn Van Slyck
@carolynvs
Thanks, Alan gave Don and myself access
What is JSI Studios? I looked at the linked issue and it appears to be a problem with that repo, not the sdk
Sam Harwell
@sharwell
It's one of the dependencies
The mistake is one I made
:(
but here's the problem - the bug for openstack.net occurs when you use NuGet to upgrade dependencies, which is something that will happen once 1.3.5.0 is released.
It's a bug I need to fix too
@carolynvs do you have skype
arunakambivelu
@arunakambivelu
Hi all, some basic question, which version of https://github.com/openstacknetsdk/openstack.net/releases should i use if have to work with Openstack Kilo ?
Carolyn Van Slyck
@carolynvs
@arunakambivelu, v1.3.6 is the latest release. Check out the feature support wiki page for info on what's supported.
Sam Harwell
@sharwell
That wiki page is wayyyyy out of date
Carolyn Van Slyck
@carolynvs
@sharwell great... :P
Sam Harwell
@sharwell
It doesn't include anything I worked on
Carolyn Van Slyck
@carolynvs
Is there something that is up to date?
Sam Harwell
@sharwell
This isn't broken down in the same level of detail, but it's hyperlinked so it may prove more useful in general: http://www.openstacknetsdk.org/docs/html/e11545c6-88c9-4ff1-b0cf-abffd4bd3ff7.htm
Carolyn Van Slyck
@carolynvs
I'll add a task for myself to get the feature support page up-to-date using that info. Thanks
Sam Harwell
@sharwell
One sec, I have a link with details
I recommend moving away from the wiki, and putting the information directly in the repository
See dotnet/corefx#1781
Carolyn Van Slyck
@carolynvs
Very interesting! Thanks for the link, I haven't worked much with GH wikis didn't realize they were so gimped
halcyondude
@halcyondude
hi there. I've recently inherited a project based on openstack.net sdk. We currently have been working with keystone v2. Is keystone v3 supported by openstack.net?
Sam Harwell
@sharwell
@halcyondude Issue #503 appears to be a feature request for this.
halcyondude
@halcyondude
Ok...cool. Is this project still active, and if so how do I contribute and/or understand what work is in flight? Is there a backlog or other planned work to support liberty features (such as Magnum)?
Jay Van Der Zant
@Amethi
Hey. Has anyone used this with OVH (the host)? Struggling to see how I use this to connect to their open stack platform.
Carolyn Van Slyck
@carolynvs

@Amethi No, I haven't used OpenStack.NET with OVH before. If OVH suports identity v2 you should be able to use OpenStack.NET.

Here is an example of how to connect:

https://github.com/openstacknetsdk/openstack.net/wiki/Connect-and-Authenticate

Jay Van Der Zant
@Amethi
Thanks. I got it working. The problem I was having was that for whatever reason, I had to supply the project Id into the project name property. I don't know if this is me being overly anal or someone somewhere getting their concepts of Id and Name mixed up
i.e. CloudIdentityWithProject.ProjectName = "12342", not CloudIdentityWithProject.ProjectName = "Blah"
Carolyn Van Slyck
@carolynvs
I've had success using the project name before, and skipping the id. I'm glad you found a workaround. If you think this is a bug in the SDK, and not just some quirk with your openstack provider, please open an issue and I will dig in further.
Sorry you've had such a rocky start! :worried: Hopefully we'll have all the kinks worked out soon.
Jay Van Der Zant
@Amethi
It's not the SDK don't worry! I tested this using curl before moving back to the SDK.
Carolyn Van Slyck
@carolynvs
:thumbsup:
Mudasar Rauf
@mudasar
Is there a way I can make it work with newtonsosft json version > 7 ?
Carolyn Van Slyck
@carolynvs
@mudasar I hope to fix that this week, in 1.7.0. I'll ping back here when that goes out
Jay Van Der Zant
@Amethi
For now, I've had to download the source and update the dependencies myself, and reference the source in my project.
Carolyn Van Slyck
@carolynvs
I just released v1.7.0 on nuget with support for json.net 6-8. https://github.com/openstacknetsdk/openstack.net/releases/v1.7.0 If you give it a shot, let me know if you run into any problems! @mudasar @Amethi
Yang
@lygoods
hi
I want to install Openstack for cloudy server. how to do? can I get a tutorial?