 Well, hello everyone and thank you for coming. My name is Tom Thiefield. I'm from the OpenStack Foundation and We're here to talk about your first C-Sharp OpenStack app So how this all started was with the global growth of OpenStack Clouds We realized that we needed some kind of guide for people who Suddenly have access to an OpenStack Cloud and want to build their first application something that leads them through the information they need to know about what a cloud application is and Also the relevant information for the SDK to enable them to actually code it up And so in March we got a team together to write this tutorial called writing your first application on OpenStack and originally that was written just with the libcloud SDK and Thanks to the fantastic work of my friend and colleague Lian Boa We now have the ability to share how to perform those same beginning steps with C-Sharp, so Without further delay, it's my great pleasure to introduce Lian Boa. Please welcome him. He's from 99 Cloud Hi, my name is Lian Boa, and I'm working from 99 Cloud So do you guys hear 99 Cloud before? Good We are the number two contributors in China just after Huawei and the top 20 on the worldwide 99 Cloud is highly focused on OpenStack for three years, and we all have a very friendly partnership in the ecosystem include Brocade, NetApp So just a short description These are the topics I want to share with you today The first thing is the OpenStack first app program just like Tom said I want to also introduce the OpenStack SDK because if we want you if we want develop the application on OpenStack which they use SDK like libcloud like .NET framework SDK Then we can share go through the C-Sharp C-Sharp application on the OpenStack I am trying to Go through the slides as quick as I can because it's the launch time Do you guys hungry? So this is the first app application first app program in the community the link is the Tom's work Use the libcloud on the first application on the on the OpenStack Sorry, I have a little nervous The first application is a part of API site project is actually a tutorial Document stop project that you can find on the github with OpenStack api site And in this tutorial you can find some cloud application architecture principles, so if we want to design a cloud application we should We should take some some good recommendation for the for the architecture if we we are starting design application Like running on the cloud so we can think about these points like How do we separate some some functions to to the microservice? If we put this we put this function to to the services we can easily to scale up or scale scale out so if you want service if one service down we can Handover the workloader to the another service. So it also it have API To automation the application deployment or configuration Well, this is OpenStack SDK. So in fact OpenStack has already have the Python client We are dealing with these clients every day There's two kinds of client library in OpenStack. One is OpenStack client Why is Python another project client like lower client glance client? But we are talking about use SDK to develop Why should we use the SDK because the SDK is Integrates all the service in a single library if we use the client project we have to import every client One by one if I want to if I want provision of VM we show the We show the reference the keystone clients then the glance client to retrieve to grab the images There we have to Reference the Nova client to start instance but with the SDK we can use just the one single library, so if we want to run a application Developer application we can just start with this SDKs Otherwise the SDK can enable the the developers to use another language Like Java like loader.js and the Python or Ruby The Donut SDK is one of them. So I am start I'm starting use the C shop to develop my first application this is the Client libraries this example code to show you how to List the security groups from the open stack the first thing we put the credential information and We can use the Nova client. Sorry. I missed to import the Nova client, but You can see the client class Can have can have many functions So we can call the Nova does security groups don't need to function to retrieve the the security groups and as the result in this act in in in Sorry In this outputs Python Transform the JSON data to the Python object So we can just use it as our code well So Do we have the C shop developer here? Nope Cool Do you know Microsoft don't add framework cool Donut framework is Managed called the technology makes the application can run on the windows platform that's As I have one technology called called the intermediate language so we can transform Several languages to intermediate language then Donut framework can run this code on the windows, but But But the don't ask the don't ask application has the problem is it's can only run on the windows before but thanks to Susie he bring the it brings us monoprojects to allow download application can run on the Linux and OS X and We have and we have several developer tools for making for making don't add program like visual studio don't add that's a classic idea and I'm very like it But but visual studio is not It's not able to run on my max So I am I have a demo to use the Xamarin Studio to run a C shop application We also have another choice is more moral moral develop and Now we have two can we have two Open stack Donut SDK why is open stack donut is supposed Windows cloud like rack space HP cloud is supposed some specific API from these vendors But it not fully support all the open stack features like orchestration service like database service The another one is open stack SDK donut. It's an official project, but unfortunately The author is closed the project 10 days ago But we should bring this project up Because we are lots of C shop develop after all Okay, this is my first the C shop application This link is the draft the documents you can you can find on the develop side So this document can show you how to make the simple C shop application on the open stack if we want to get Get all app on Open stack running so we should know this concept on the open stack The first thing is authentication We can we need to put some credential information to SDK and SDK will use this credential to interactive with the open stack API and if we want to if we want to create the virtual machine images so we should which machines we should To use SDK to to get the image in information to get the flavor information Even we need to put some metadata to the to the virtual machine Okay, this is called This code is the first step we need to import some libraries In the C shop we call we call this we call this name space Not like Python. We just call Python modules, right? I'm I'm gonna using the first SDK. I just described Open stack.net so Next we put some credential informations this credential Include username password a project and also URL. We also need to specify the region information In this block We need we need to write open stack identity provider So we can use it later and the next one is so we have to Knew a cloud server provider instance Then we can easily to get open stack Open stack data like We can use the server provider. Don't list images This is the output. This also is not like Python outputs We have to specify the output output format and The flavors servers are the same as the Images we just use the list blah blah blah, but Some of the open stack Data is not available for this SDK For example the network neutral from neutral. This is SDK can only involve the network information from Nova Nova API Then we can use the create server function to Create a real virtual machine on the open stack. This has some Some specific parameters like you can use what image May use what what flavor and We need to specify the region in information Destroy is more easy than create So we just delete server and give it ID Instance ID parameter for this for me this function So I'm gonna Give you a demo to to see how how the C sharp C sharp code This code just like I'm sure show that before Sorry, I have to bring up the Open stack in this case I'm using a Simple credential for not getting the open stack environment and We have some steps to list images to list flavors list servers instance and List the network pride Networks if you have interesting you can find this code on the C sharp application part on the develop side, but it's draft version though so in in the first step project we have one instance and two images One for project only one for the public image as Cyrus and one private network so we can Run this code to see what happened the first the first part is listed image in informations and the flavors next and The servers next and network next Image open to Cyrus flavor and one and Server API node so This SDK just use Nova API to retrieve the network information So if Nova not returned the network CIDR information We just showed a blank here His this is a quick demo. So My demo is just a finished Do you have any questions? What further work would you like to do from here or are you looking for contributors? What's what's kind of your future plans for what you'd like to do with this? Yeah We want to find more C sharp contributors for the dominant SDK. So All C sharp developers can really develop some cool stuff on the open stack The first thing I'm working with Tom to contribute the API sites the first app tutorials and We want that's more don't add developers to know this project Any other questions? So we can get lunch, right? Sounds good to me Very good. Well, if there's nothing further Please do email Yang Bo if you are a C sharp developer and are interested in working on that SDK or Contributing to this guide or even using this guide. We'd love to hear from you Feel free to email me as well. I'm Tom at open stack to dog But I believe this effort One of the pioneering efforts with C sharp on open stack took a lot of work from from young So I think we should give him another round of applause Thank you. Thank you all