Latest / Talk Python To Me / #33: OpenStack: Cloud computing built on Python
Transcript
- 0:00You've probably heard of infrastructure-as-a-service cloud providers such as Amazon AWS and, to a lesser degree, Microsoft's Azure cloud platform.
- 0:08But have you heard of OpenStack?
- 0:10It's an incredibly powerful infrastructure-as-a-service platform where you can buy it as a service or install it in your own data center to build your own private cloud.
- 0:19Yeah, private clouds. That's a thing.
- 0:21Flavio Percoco, who works at Red Hat and spends his days writing Python code for OpenStack, is here to tell us all about it.
- 0:29This is Talk Python2Me, episode number 33, recorded October 16th, 2015.
- 0:59Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 1:06This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy.
- 1:10Keep up with the show and listen to past episodes at talkpython.fm, and follow the show on Twitter via at Talk Python.
- 1:17Let me introduce Flavio. Flavio Percoco is a software engineer at Red Hat, where he spends his days working on OpenStack.
- 1:24In his spare time, he speaks at conferences, contributes to Rust, plays with MongoDB, smokes his coffee, and drinks his pipe.
- 1:32Flavio, welcome to the show.
- 1:34Thank you, Michael. Thanks for having me here. It's really exciting.
- 1:37Yeah, it's really exciting, and it's great to catch up with you. It's been a few years since we've met up at the last MongoDB Master Summit in New York City, right?
- 1:44Yeah, it is. I think it's exactly like two years from there, yeah.
- 1:48Yeah, almost. Cool.
- 1:50So we're not going to talk about MongoDB today, even though it is excellent.
- 1:54We're going to talk about OpenStack and your work at Red Hat and cloud computing and all that kind of stuff, right?
- 2:00Yeah. I'm really excited about sharing more stuff about OpenStack.
- 2:05I spend most of my time there, honestly, so I have a lot to say.
- 2:09Yeah, that's excellent.
- 2:11So before we get into what OpenStack is and all the details, what's your story? How did you get into programming?
- 2:17I guess my story about how I got into programming is not like...
- 2:22I guess there are many people like me out there, but it's not like most of the cases where you just like...
- 2:26You were born knowing that you wanted to be a programmer.
- 2:28In my case, I actually didn't know what I wanted to do until very late.
- 2:33And I started digging into different areas.
- 2:36I went to study medicine, and then I went to be a psychologist, and then I wanted to learn foreign languages.
- 2:43And at some point I said, like, let me...
- 2:46Like, I saw this lump course that I...
- 2:50Somewhere, and it's like, okay, like doing webpages.
- 2:53It sounds cool.
- 2:54And I just gave it a try.
- 2:57And I just fell in love with it and started doing more.
- 3:00And I guess that's how I actually started.
- 3:04I tried to go to college, and it just didn't work for me, actually.
- 3:08And I just like...
- 3:10I dropped out of college at some point, and actually it was very early in my career, in my studies there.
- 3:16And I just went straight to working.
- 3:19And I already knew how to program, and I had done a couple of courses anyway.
- 3:23And I got into my first job and started improving and learning a lot from open source.
- 3:28And so I guess, like, it would be fair to say that, like, my background in programming is actually just open source.
- 3:35I started learning from other projects and sharing everything I did.
- 3:40I joined IRC channels and spent a lot of time there and learned from others.
- 3:44Many good people out there.
- 3:46And I guess I just made my way through it and got where I'm at today.
- 3:52Yeah, that's excellent.
- 3:54And, you know, I had a similar path in that I sort of became an accidental programmer.
- 3:59I just learned programming because I was trying to do something else, and I needed to know it.
- 4:03And I realized, wait, this is way better.
- 4:04So, yeah, there's a lot of us out there like that.
- 4:07Yeah, I feel really lucky to have just sort of stumbled into such a cool area.
- 4:12Yeah, same here.
- 4:14Yeah, so that's how you got into programming.
- 4:15How did you get into Python?
- 4:16Well, like I said, like, my first approach to programming was that LAMP course I did a long time ago.
- 4:25So that obviously means that I learned PHP there.
- 4:28And from PHP, I just decided that I wanted to create my own web browser.
- 4:32So I started learning C# for some reason because I didn't know enough back then.
- 4:37And I just, like, started playing with it, and I had all the plugins and stuff.
- 4:40And then I realized that that wasn't actually a very good idea.
- 4:44And I found Python through a friend of mine.
- 4:46And he just started explaining it to me.
- 4:49And I also attended, like, a small, like, Python 101.
- 4:52And I just, like, took off from there.
- 4:56And my first job was actually on Python.
- 4:59And it allowed me to learn way more about it and, you know, like, improve my skills.
- 5:06And I just kept doing Python ever since then.
- 5:09Yeah, that's excellent.
- 5:10And today you get paid to write open source code with Python, right?
- 5:15Yeah.
- 5:16That's awesome.
- 5:17So what do you do?
- 5:18I get paid to write open source code.
- 5:21And it's, like, 100 upstream.
- 5:23So I'm even happier because I'm just, I feel like I'm giving back to all those guys that, at some point, they gave me a lot.
- 5:30And they allowed me to learn.
- 5:31And so I like, like, one of the things I love is not just the technology I'm working on, but the fact that I know that it will be used by some other people to learn how to program.
- 5:40And I'm also part of all the, like, you know, like, mentoring other people.
- 5:45And there are several programs in OpenStack to do that.
- 5:47And I'm always, like, trying to participate there.
- 5:50So that's part of, like, what excites me the most about my current job, actually.
- 5:54Yeah, that's great.
- 5:55And you work at Red Hat, right?
- 5:56I work at Red Hat.
- 5:57I'm a software engineer there.
- 6:00And, like I said, I work 100% upstream on OpenStack, mostly oriented on storage projects.
- 6:07Like, OpenStack has many pieces.
- 6:09Like, it's huge right now.
- 6:11There's something like 375 GitHub repositories or something like this, right?
- 6:16Yeah, it is insane.
- 6:17Like, many of those are services.
- 6:21Tons of them, like, probably most of them are, like, libraries.
- 6:26And then we have a lot of projects that we use for CI that we have written ourselves.
- 6:31And there are many other projects that started off as part of OpenStack, but they just, like, improved and became, like, standalone services.
- 6:39And some others that just died.
- 6:41And we just kept the code there, obviously, because it's OpenStack, and why would you ever delete COVID?
- 6:46Let's start with what is OpenStack.
- 6:50And I just should tell everybody, like, I really don't know a whole lot about OpenStack.
- 6:54I've looked at it a little bit, but I'm basically new to it as well.
- 6:58So tell me, what is OpenStack?
- 7:00I'm going to tell you how OpenStack started.
- 7:03It started as an infrastructure as a service provider.
- 7:05And it just focused a lot on making sure that you could use all the hardware you have to provide cloud services.
- 7:13So it would use all your compute servers and power, sorry.
- 7:19All your compute power, and it will just allow you to use it as a service.
- 7:22And it will do the same for your networking routers and everything you have there.
- 7:27And it will create, like, private networks for you, clouding IP addresses and everything that you would need to have a cloud.
- 7:34And it will do the same with the storage and everything.
- 7:37But it was very focused on infrastructure as a service.
- 7:39So infrastructure as a service is basically using all your, like, metal to provide, like, a cloud service.
- 7:48You would just reuse all that and make sure that you can run several services and virtual machines and everything in there.
- 7:54If I had, like, Python web app I wanted to host, just, like, a simple blog or something, I probably wouldn't go to OpenStack.
- 8:01But if I wanted to create a better data center or my hosting company or something like this, then I would look to use OpenStack to make that happen.
- 8:10Is that accurate?
- 8:10Right.
- 8:11That's quite accurate.
- 8:13But there's, and that's how it started, actually.
- 8:16But there's more to it now.
- 8:17And it's the fact that at some point, the community realized that there was more to OpenStack than just infrastructure.
- 8:24And it just, I like to say, it just outgrow itself to the point that it just became a cloud provider, like, entire cloud provider, instead of just focusing on infrastructure.
- 8:36And you now have a whole lot of other services that are required to actually maintain a cloud.
- 8:41And this is something that I believe the community learned from its own experience while working on OpenStack.
- 8:50And it's the fact that to run a cloud, you need more than just infrastructure.
- 8:53If you want to be a good cloud provider or you want to have a cloud that you can manage easily without suffering a lot on maintenance and controlling it and ops and everything, you need more than that.
- 9:06You need, like, DNS.
- 9:07You need to make your networking easy to use.
- 9:09You probably need a database as a service.
- 9:11You need to make your own database if you have a big, like, you know, developer's team and you want those steps to be able to create databases easily without, like, spending much time maintaining those.
- 9:21But there's, like, you can use that in production as well.
- 9:24So there are many other services that are not necessarily infrastructure.
- 9:27Like, you even have, like, web search as a service.
- 9:30So you can store all your files and things into your cloud.
- 9:35So there's a lot into cloud development, into cloud management and cloud services than just infrastructure.
- 9:41So that's something, like, the community learned by itself while working on OpenStack.
- 9:45And it just became more than infrastructure.
- 9:48It's now, like, a cloud provider.
- 9:49That's how I like to think about it.
- 9:51That's how I like to present OpenStack.
- 9:53It is a cloud provider, and it will give you everything you need to run your cloud.
- 9:56To me, it feels somewhat on par with something like EC2 and the related services at AWS, much more so than, like, somewhere where you can just go get a virtual machine.
- 10:09You know, somewhere like DigitalOcean, where they have great virtual machines, but there's not, like, there's not a lot more than that around to help you, right?
- 10:17There's not.
- 10:18Exactly.
- 10:19Exactly.
- 10:19Exactly.
- 10:20The virtual private networks and the load balancing and the storage and the persistent disks across machines and all that kind of stuff, right?
- 10:28That is correct.
- 10:30And I've been giving this talk, like, this year.
- 10:34It's called Infrastructure as a Service Beyond Infrastructure.
- 10:38Well, like, I kind of, like, talk about what I think your cloud should have in order for it to be considered a cloud, which doesn't mean that companies or services like DigitalOcean are not good.
- 10:51But they're, like, they're not exactly clouds.
- 10:53They just provide a different kind of service.
- 10:55Like, DigitalOcean basically just provides you virtual private services, like servers, sorry.
- 11:00So you create your server and you have to manage it yourself.
- 11:03You don't have everything that you would need to run a cloud right there, right?
- 11:08And if you want to put your application in a cloud, you would just go to either OpenSack or other cloud providers that have all those services that you would need to run your application and don't die while trying to run it.
- 11:23Yeah, so I feel like services like DigitalOcean are excellent, but if you build increasingly complex and large-scale systems, you're probably going to, at some point, outgrow them.
- 11:36And then you're going to start looking around and say, okay, well, I need more than just a bunch of good VMs.
- 11:42I need, you know, all this orchestration and putting it together.
- 11:45And a lot of people go to places like EC2 or maybe Azure.
- 11:51But OpenStack, is there like an online service I can go pay a monthly fee and get access to the system?
- 12:01Or is this something I've got to put on just my data centers?
- 12:03Oh, not at all.
- 12:04There are many public cloud providers running OpenStack right now.
- 12:08A good example, probably one of, well, I'm actually not sure if it is the oldest one.
- 12:14It's probably one of the oldest one.
- 12:15It is Rackspace itself.
- 12:17They run OpenStack.
- 12:18There's also HP Cloud.
- 12:20There's VEX Host.
- 12:22There are tons of them.
- 12:23There's Enter Cloud in Italy as well.
- 12:27So there are many cloud providers, public cloud providers running OpenStack right now.
- 12:32They have different versions.
- 12:33They're not all running the latest version.
- 12:36When you have to decide whether you want to go to AWS, Azure, or just use OpenStack, you have to ask yourself many questions.
- 12:48One of the things that I believe make OpenStack the best solution for you is the fact that OpenStack is interpretable.
- 12:58Whatever you write on, whatever your application looks like, if you're running it in an OpenStack cloud and you want to migrate it from this cloud to another cloud and it is still OpenStack, you are guaranteed to be able to do that in a painless way.
- 13:14Because different OpenStack versions are interpretable.
- 13:18They keep backwards compatibility.
- 13:19So you can be sure that whatever works in HP, an HP cloud will also work in Rackspace cloud.
- 13:24If you write scripts on top of it and everything.
- 13:29Yeah, that's a pretty unique proposition because AWS is entirely proprietary, even though internally it runs a ton of open source stuff.
- 13:39It's all behind the scenes, super secret.
- 13:41Same thing with Windows Azure and some of the other hosting places, right?
- 13:46So the fact that you can take this maybe from a cheap hosting company over to Rackspace and then maybe even later into your own data center, if you really wanted to do that.
- 13:59Right.
- 13:59Right.
- 13:59But that's a possibility that you don't really have to worry about, right?
- 14:02Because it's all OpenStack.
- 14:03Exactly.
- 14:05And you don't just have to...
- 14:07It's not just about migrating your application from one cloud to another cloud.
- 14:11It also applies to using several clouds at the same time because not all public clouds are supposed to run all the services in order for them to be OpenStack compliant.
- 14:21I can decide to have my own public cloud running just Trove, which is database as a service.
- 14:28And there are other clouds like HP Cloud that did run all OpenStack, right?
- 14:31But as a user, if I want to have my internal cloud...
- 14:37So let me give you an example.
- 14:39Let me put it in another way.
- 14:41I may want to have all my web heads and my compute nodes running in one of the public clouds, like let's say Rackspace, right?
- 14:50Or HP Cloud.
- 14:51I want to have them there.
- 14:52But I want all my data to be in my cloud.
- 14:54So I can use my own servers and install my database as a service there or whatever, my own database and have a hybrid cloud.
- 15:01So it is not just a matter of deciding whether you want to have, whether you want to use a public cloud or a private cloud.
- 15:08But it's the fact that you can also mix them together and you are going to be guaranteed that they will be interpretable and they can all use the same service with the same data and everything.
- 15:20Really interesting point.
- 15:21I hadn't thought of just taking an individual piece and running that locally.
- 15:26But yeah, that makes a lot of sense.
- 15:28So cloud computing is, of course, important to Python developers.
- 15:33But OpenStack is especially relevant to Python developers because Python is used a little bit inside the development, right?
- 15:42Yeah.
- 15:43I normally say that OpenStack right now, well, when I joined OpenStack, it's probably not true anymore.
- 15:53When I joined OpenStack, it was like 500% Python.
- 15:56And there was like this 0.0001% of JavaScript because we have a UI dashboard.
- 16:03And I say it's not true anymore because we now also maintain like puppet manifests ourselves.
- 16:11And that's not Python, obviously.
- 16:12We keep like we maintain Ansible scripts.
- 16:15Like there are teams focusing a lot on operations and making OpenStack installable and easy to manage and reduce the maintenance more than from users.
- 16:27So it's not just like 500% Python anymore.
- 16:30But I can say like all the services right now are written in Python and they are mostly pure Python.
- 16:38There are some services doing some experiments with Google as well.
- 16:41But most of them are Python, yeah.
- 16:43Like the community is definitely 100% Python oriented.
- 16:47And there are like obviously other tastes for other programming languages.
- 16:52Yeah, of course.
- 16:54So that's really excellent.
- 16:55And I think that's a great testament to Python itself, right?
- 16:58That you can build such an amazing infrastructure as a service system with it, right?
- 17:04Yeah, it is.
- 17:05And I would say it even goes beyond that.
- 17:09It's not just the fact that you can build such a cloud system with Python, but the fact that it has allowed us to make it in an easy enough way and to be more welcoming as a community.
- 17:24Like to welcome more people because Python is easier to learn because Python is, it has a big, well, it has a quite big community.
- 17:33It is even for beginners.
- 17:35Like we have many people like just still in college or right out of college coming to OpenStack saying, okay, like I still don't have a job, but I want to do something interesting.
- 17:48And they apply for all these mentorship programs.
- 17:50They're like Google, Google Summer of Code or Outreach.
- 17:53And they will just learn as they go from OpenStack itself.
- 17:58So, and all the CI system and the fact that we can test all the programs, all the services easily and run like the number of jobs, of CI jobs that we run daily is insanely high.
- 18:14And I already forgot the exact number, but when I heard it the first time, I was like, that's insane.
- 18:20Like you wouldn't be able to do that with other programming languages like that would require you to compile the software before you can actually test it, for instance.
- 18:28It's interesting to compare OpenStack against places like AWS, where if you're wondering how some service works, you really could go in there and look.
- 18:39And it's out there for everybody to see what's going on, right?
- 18:43Yeah, it is.
- 18:45And one other thing that I like, and I also hate at the same time about OpenStack is the fact that it is non-opinionated in many different areas.
- 18:54And by non-opinionated, I mean that you have, let's talk about Nova, for instance.
- 18:59Nova is the compute service, and it's the one that will allow you to create virtual machines, right?
- 19:04But there are many hypervisors out there.
- 19:07So most of the services, several of the services in OpenStack are just provisioning services.
- 19:11They would sit on top of something else, and they would just manage that.
- 19:16So the default hypervisor for Nova right now is like LibWare to KVM.
- 19:23But you can also have Hyper-V and VMware.
- 19:29You can have different hypervisors under the hood, and you would just pick whatever you want when you want to deploy OpenStack.
- 19:39And what it gives you is that it gives you the opportunity to pick your own flavor of what the underlying virtualization layer should look like,
- 19:52and run whatever you prefer there.
- 19:54It is good to some extent because it just gives you all that flexibility.
- 20:00And the part that I don't really like a lot is because it just forces you to create more and more abstractions on top of that,
- 20:06which I don't think is necessarily bad in many areas, but there are some other areas where being more opinionated would be good.
- 20:15And the reason I'm saying this is because I'm pretty sure AWS is just focused on any single hypervisor,
- 20:21whereas in OpenStack you can also look at how you can orchestrate not only a cloud service,
- 20:26but also a cloud service that can run on top of several different underlying technologies
- 20:32that would allow you to just pick your favorite flavor and just run with it.
- 20:38Yeah, that's interesting.
- 20:40You know, that kind of stuff is good for the flexibility,
- 20:43but it also makes it potentially harder for people who are getting started to know what to choose, right?
- 20:48Because they've got to make a decision instead of just following some opinionated sort of guidance, right?
- 20:55Exactly.
- 20:55And you just made a very good point,
- 20:59and that's something that we started looking at in the last, I would say, two cycles probably.
- 21:04And it's the fact that we wanted to have some kind of like starter kit for people that are coming to OpenStack
- 21:12and they say, okay, okay, I've heard OpenStack is cool, so where should I start?
- 21:17And this starter kit is like four services running in a very simple and tiny that's lightweight,
- 21:28let's say lightweight.
- 21:28And so that you can just run those four, you can play with OpenStack a little bit,
- 21:35but you're not going to hit a dead end because as soon as you start liking it
- 21:41and you want to grow OpenStack and your own development and your own deployment, I'm sorry,
- 21:46you can just start from there and just install more services
- 21:50or change some configurations parameter and make it just better.
- 21:54So that starter kit is really important because it just lets you know where to start from
- 21:59and what are the kind of like essential services to actually have a cloud.
- 22:04Yeah, that sounds really helpful.
- 22:06Excellent.
- 22:06I'll link to that in the show notes as well.
- 22:08Awesome.
- 22:09This episode is brought to you by Hired.
- 22:23Hired is a two-sided, curated marketplace that connects the world's knowledge workers
- 22:28to the best opportunities.
- 22:29Each offer you receive has salary and equity presented right up front
- 22:33and you can view the offers to accept or reject them before you even talk to the company.
- 22:39Typically, candidates receive five or more offers in just the first week and there are no obligations ever.
- 22:45Sounds pretty awesome, doesn't it?
- 22:47Well, did I mention there's a signing bonus?
- 22:49Everyone who accepts a job from Hired gets a $2,000 signing bonus.
- 22:53And as Talk Python listeners, it gets way sweeter.
- 22:57Use the link Hired.com slash Talk Python To Me and Hired will double the signing bonus to $4,000.
- 23:06Opportunity's knocking.
- 23:07Visit Hired.com slash Talk Python To Me and answer the call.
- 23:19So, speaking of starter kits and so on, when would it make sense to think,
- 23:25okay, it's time for me to stop just running a virtual machine here and there and try to focus on
- 23:32maybe bringing OpenStack into my software deployment data center type scenario?
- 23:39What kind of apps do I run?
- 23:41I guess what sort of experiences you have with people getting started and then growing into this?
- 23:47That's actually a very good question because many people think that in order to run OpenStack,
- 23:52the requirement for running OpenStack is having a huge public cloud service.
- 24:00And that is not true.
- 24:01Like, we have people running small deployments of OpenStack.
- 24:07I myself run a small deployment of OpenStack in my test environment.
- 24:11And that's what I used to create, new virtual machines where I would test OpenStack and everything I'm doing.
- 24:16So, and I would say, like, the moment you start needing more than just one virtual machine,
- 24:23and that would be a good moment for you to start considering something like OpenStack.
- 24:28Or even starting from the moment where you need a virtual machine.
- 24:32And the reason I'm saying this is because if you're working on a service,
- 24:35you're likely going to scale it at some point.
- 24:38It's not going to scale enough within a single virtual machine,
- 24:43and you'll need more compute power or storage or network.
- 24:46At least for durability, right?
- 24:48Exactly.
- 24:50Yeah.
- 24:50Exactly.
- 24:51And so you likely need something that will allow you to add more compute or whatever to your deployment.
- 25:02And from that moment, you already need something like OpenStack, like a cloud provider.
- 25:08And if you're starting, you definitely don't want to give money to other people.
- 25:14But obviously, like OpenStack, it doesn't run on air.
- 25:19It obviously needs some compute.
- 25:21And it really depends on what your needs are in that case.
- 25:26But seriously, when you start needing virtual machines to deploy yourself,
- 25:30that's probably a very good moment to start using OpenStack.
- 25:33Because it will allow you to do that easily, and it will manage all the virtual machines for you.
- 25:38And the fact that you don't have to care about it,
- 25:41the fact that you don't have to worry about starting the virtual machine yourself,
- 25:46about making sure that it is running there,
- 25:48and that your data is in the right volume or whatever,
- 25:52and that you're networking, setting up all of your networking, which is very painful.
- 25:57All those things that OpenStack makes easier for you,
- 26:00they will pay off later by saving you a lot of time on development and maintenance and deployment.
- 26:08Yeah, that's good advice.
- 26:10And one of the things that OpenStack has that I'm not entirely sure that AWS has,
- 26:17I haven't seen it, maybe I'm wrong,
- 26:19is like a local dev version of OpenStack.
- 26:24So if I'm disconnected from the internet or whatever,
- 26:27I just want to build out something, I could actually do that locally, right?
- 26:30Yeah.
- 26:31Yeah, you can do that locally with OpenStack.
- 26:33You can install OpenStack on your own laptop and just have it there running.
- 26:38And that's something that's also very helpful in OpenStack,
- 26:45like the fact that you can just run it there and start not only playing with it,
- 26:48but also using it for your own purposes and make something good out of it.
- 26:55That's something you don't get from AWS or any other public cloud
- 26:59that are managed by private companies.
- 27:03Because, well, okay, obviously they don't want to allow you to access the code
- 27:07and install it locally.
- 27:08That's their business, I guess.
- 27:10Yeah, it is their business.
- 27:12But I think that's a really cool advantage
- 27:14because I haven't seen anything like this for AWS.
- 27:17And you're usually on the internet, but at the same time,
- 27:22there's certainly situations where you have spotty connectivity
- 27:25and you'd rather be able to just work, right?
- 27:28But also you don't necessarily want to pay for that,
- 27:30depending on whether the company's paying, you're paying, right?
- 27:33That might or might not be a consideration.
- 27:36Sure.
- 27:38I mean, it's not just about paying.
- 27:39Paying is definitely a big point here,
- 27:43but it's not just about paying.
- 27:45It's also about using your resources wisely,
- 27:48and by resources I also mean time.
- 27:50Like, you don't need...
- 27:53The other thing is that people think that you need a lot of power
- 27:56to run up the stack.
- 27:57It might have been true in the past,
- 28:00but it has come a long way on using less resources
- 28:06from your computing nodes
- 28:09to the point where you can also just run OpenStack on top of Docker.
- 28:13And instead of using a hypervisor,
- 28:19you could use just Docker and create Linux containers
- 28:22which are cheaper for your laptop.
- 28:25Yeah, that's awesome.
- 28:27Yeah, I definitely want to come back and talk about Docker.
- 28:30But maybe before we do,
- 28:31maybe we should talk about the various building blocks of OpenStack
- 28:35because if people are kind of new to it,
- 28:37they maybe don't know what it offers, what it doesn't.
- 28:40If we start from top to bottom from a user perspective,
- 28:45I guess the first service that a user would get is Keystone,
- 28:49which is the one that provides authentication.
- 28:51Whenever you want to log into OpenStack Cloud,
- 28:54you're likely going to talk to Keystone
- 28:56to get a token or something that will...
- 28:59create a session for you
- 29:01so that you can talk to other services
- 29:02and use that as an authenticated user
- 29:04and get your goal and all the information you need from there.
- 29:07Sure.
- 29:07And you guys have a web front-end,
- 29:10like a UI and a command-line interface and an API, right?
- 29:13That is correct.
- 29:15Okay.
- 29:16That is correct.
- 29:17I would say we have a UI and an API.
- 29:21We have a lot of CLI tools,
- 29:23but you could also write your own in your own language if you want, right?
- 29:29And the CLI tool is super useful and we all use it
- 29:34and we tend to think about it as the reference to access OpenStack,
- 29:38but the actual reference is the API that is deployed
- 29:41and then that's the way you actually talk to OpenStack.
- 29:45And so we have a UI.
- 29:46It used to be based in Django
- 29:49and now they moved a lot of things to just JavaScript.
- 29:53And it allows you to access all the services you have deployed.
- 29:56Your OpenStack deployment,
- 29:58you don't need to have them all deployed to use the UI.
- 30:02You can just deploy the UI service
- 30:04and just have a few of the OpenStack services running in the ground
- 30:08and it will just show you the tabs, so to speak,
- 30:11for those services that you have enabled.
- 30:13But even to log in into the UI,
- 30:16you need to access Keystone,
- 30:18which is the one that provides your authentication.
- 30:19So then you have the UI, like I said,
- 30:22and then you have a whole bunch of other services
- 30:25that will provide that cloud thing for you.
- 30:29One of them is Nova.
- 30:32Nova is the one that provides,
- 30:33that manages all the hypervisors and compute resources for you.
- 30:37And then you have Neutron.
- 30:40Neutron is the one responsible for doing all the networking.
- 30:44It will create networks, routers,
- 30:47and it has different support for different network layers.
- 30:51I'm honestly not a network expert,
- 30:53so right now I'm just saying the things I know there are in Neutron,
- 30:58but I probably don't necessarily know what all those things mean.
- 31:02And then you also have Cinder,
- 31:05which is the one that provides block devices,
- 31:07and it takes different storage devices,
- 31:12and it allows you to also attach those devices,
- 31:14those volumes to the virtual machines you're running,
- 31:17so you have all your data persisted in your storage.
- 31:23What else?
- 31:24You also have Swift,
- 31:26which is an object store,
- 31:29and it's pretty much like S3,
- 31:31in case people are not very familiar with object store.
- 31:35It provides,
- 31:36it has its own API,
- 31:39but it also has support for the S3 API,
- 31:41so if you have a service that,
- 31:42a script that talks to S3,
- 31:44and you want to give Swift a try,
- 31:46you can just install Swift,
- 31:47install the Swift S3 layer,
- 31:50and you can talk to S3,
- 31:52even using the Boto library.
- 31:53Oh, that's cool.
- 31:54That's a nice feature.
- 31:55Yeah,
- 31:57yeah,
- 31:57there is.
- 31:58Some of the services have,
- 32:00yeah,
- 32:01some of the services have that as well,
- 32:02but some others have dropped it.
- 32:05I also,
- 32:06I forgot one of the current services is Glance.
- 32:08The fun fact is I'm the technical leader of that project,
- 32:12and I just forgot about it.
- 32:13So,
- 32:13Glance is the service that provides images for your cloud,
- 32:18so whenever you want to start a virtual machine,
- 32:23you've got to tell Nova what image you want to run,
- 32:26and you've got to tell Nova,
- 32:28hey,
- 32:28I want to run this Fedora image.
- 32:30Can you boot it for me?
- 32:32And in that moment,
- 32:34Nova will talk to Glance,
- 32:35and it will say,
- 32:36hey, Glance,
- 32:36you have this image.
- 32:37Like,
- 32:38I was asked to boot this image with this ID,
- 32:40and then Glance will just provide the image to Nova,
- 32:42and Nova will do all the magic.
- 32:44So,
- 32:45Glance is an image registry.
- 32:47You will have all your images there,
- 32:49and whenever you create a snapshot from your virtual machine,
- 32:52the snapshot will be created in the form of an image,
- 32:55and it will be uploaded back to Glance
- 32:56so that you can boot it afterwards whenever you need it.
- 33:01Nice.
- 33:02Can you make images,
- 33:03like,
- 33:03locally on your machine,
- 33:05and then upload them to be booted?
- 33:06Absolutely.
- 33:07Yes.
- 33:07That's cool.
- 33:08Yeah,
- 33:09and it has support for different,
- 33:11for different images formats.
- 33:13It is not tied to a single format.
- 33:15You can upload raw images,
- 33:17cue call images,
- 33:18VHDs,
- 33:19whatever image format you want to upload there.
- 33:21As long as your hypervisor knows how to run those,
- 33:24I think you're going to be just fine.
- 33:26Yeah,
- 33:26very nice.
- 33:27So,
- 33:27those are all the services involved in sort of running and creating the virtual machines.
- 33:31And then you also have,
- 33:32like,
- 33:33some deployment tools.
- 33:34You said there's actually people working just almost dedicated to Ansible and Chef and Puppet work.
- 33:42Yeah,
- 33:42there are many,
- 33:43there are many,
- 33:44many other services.
- 33:45So,
- 33:46the ones that help with all the operations of maintaining and deploying OpenStack,
- 33:51probably,
- 33:52we just,
- 33:53we have,
- 33:53like,
- 33:54Puppet manifest,
- 33:54we have Ansible,
- 33:56we have a service called Triple O,
- 33:57which is,
- 33:58it's Triple O because it's called OpenStack on OpenStack.
- 34:01It basically means it's using OpenStack to deploy OpenStack.
- 34:04What else?
- 34:05We have other,
- 34:06well,
- 34:08there are several installers around the community maintained by different companies as well
- 34:14that will allow you to install OpenStack.
- 34:17And the fun fact about OpenStack is that the problem is not just installing it.
- 34:23Installing OpenStack was,
- 34:25hard at the beginning.
- 34:27It has come a long way.
- 34:28But the,
- 34:29what really matters and what,
- 34:31what,
- 34:32what's really interesting is the,
- 34:34like,
- 34:35the life cycle of an OpenStack deployment.
- 34:37It's not just installing it,
- 34:39but also upgrading it.
- 34:40Like,
- 34:40making sure it runs well,
- 34:42making sure that there are not pieces falling,
- 34:45falling apart in some,
- 34:46in some of the OpenStack areas.
- 34:48So,
- 34:48all that life cycle of OpenStack is,
- 34:51is what,
- 34:52what installers are specializing themselves now.
- 34:55Yeah,
- 34:56that can be a real challenge in infrastructure as a service scenarios,
- 34:59right?
- 35:00Right,
- 35:01especially because you are running actual software on top of it.
- 35:04Like,
- 35:05you're running your production environments in many cases,
- 35:07or test or whatever,
- 35:08analysis environments,
- 35:10and you want to make sure that your virtual machines don't die,
- 35:13um,
- 35:14out of the blue,
- 35:15uh,
- 35:16and that your data is still persisted,
- 35:18and that you're going to be able to access it afterwards,
- 35:20and it's not going to die in one of the upgrades,
- 35:22from one version to another.
- 35:24And,
- 35:25and in many cases,
- 35:26and there are many,
- 35:26um,
- 35:27there,
- 35:28there,
- 35:28there are a couple of folks working on this around the communities,
- 35:31that is,
- 35:31is to provide,
- 35:32uh,
- 35:33live upgrades,
- 35:33live migrations,
- 35:34uh,
- 35:35for,
- 35:36for,
- 35:37for some of their resources,
- 35:38like live migrating virtual machines from,
- 35:40from one compute node to another compute node,
- 35:42like migrating,
- 35:43uh,
- 35:44volumes from,
- 35:44from one storage to another storage.
- 35:46Um,
- 35:47those are very,
- 35:48very interesting things.
- 35:49Yeah,
- 35:50that,
- 35:50that is a,
- 35:50a big challenge,
- 35:52but really super valuable if you get it done right,
- 35:54yeah?
- 35:54Yeah.
- 35:55Yeah.
- 35:55This episode is brought to you by Codeship.
- 36:13Codeship has launched organizations,
- 36:16create teams,
- 36:17set permissions for specific team members,
- 36:19and improve collaboration in your continuous delivery workflow.
- 36:22Maintain centralized control of your organization's project,
- 36:25projects,
- 36:25and teams with Codeship's new organizations plan.
- 36:28And as Talk Python listeners,
- 36:29you can save 20% off any premium plan for the next three months.
- 36:33Just use the code TALKPYTHON,
- 36:35all caps,
- 36:36no spaces.
- 36:37Check them out at Codeship.com and tell them thanks for supporting the show on Twitter,
- 36:41where they're at Codeship.
- 36:42So all of that sounds like infrastructure as a service,
- 36:51but then on top of that,
- 36:53you have some more,
- 36:53you know,
- 36:54platform as a service type of things like queuing and DNS and so on,
- 37:00right?
- 37:00Do you want to talk about what you got there a little bit?
- 37:02Absolutely.
- 37:03So other services that are in the OpenStack,
- 37:08what we call the OpenStack Big Tent,
- 37:09and it's like this huge Big Tent where we welcome projects that are,
- 37:14that are targeting to making the cloud better.
- 37:19we have,
- 37:19we have Trove,
- 37:20which is database as a service.
- 37:22We have Zakar,
- 37:23which is messaging as a service.
- 37:25We have Q,
- 37:28which is also,
- 37:31which is brokers as a service.
- 37:33Instead of providing messaging as a service,
- 37:35it provides,
- 37:36it provisions brokers for you,
- 37:38so you don't have to maintain your own rabbit and you run it,
- 37:41but it will maintain it for you and it allows you to create clusters and everything.
- 37:44What else we've got?
- 37:47We've got DNS as a service.
- 37:48We've got load balances as a service.
- 37:52We've got telemetry and metering services so that you can monitor your cloud environment.
- 37:57And so every OpenStack service,
- 38:02or most of them,
- 38:02emit notifications every time something happens within the service.
- 38:08Like whenever you put a new virtual machine,
- 38:10it will say,
- 38:10hey,
- 38:10I'm putting a new virtual machine with this image.
- 38:12Whenever you do that with a blog device,
- 38:14it will do the same.
- 38:15And then there's this metering service that will just get all those notifications
- 38:22and will create statistics for you.
- 38:25It will allow you to see what's going on in your cloud,
- 38:27when all those virtual machines were started or not.
- 38:30And it will also allow you to build on top of that.
- 38:32Based on that information,
- 38:33you can build users.
- 38:34Like you've been using a lot of like,
- 38:36like and virtual machines and compute resources or storage,
- 38:39or you've been using these images.
- 38:41And you can also even build based on the images they're using
- 38:44and all like different features that can be enabled or disabled in a cloud environment.
- 38:49What else?
- 38:50Oh,
- 38:51Jesus.
- 38:52There are many others and I just forgot about that.
- 38:54Yeah,
- 38:54there's a lot,
- 38:55aren't there?
- 38:55Yeah.
- 38:56So could you maybe walk us through what it's like?
- 38:58So I've already got my OpenStack all set up,
- 39:00but I would like to have a database and I'd like to have three web frontends
- 39:05and a load balancer in a virtual private network.
- 39:08Like what are the steps to make that happen?
- 39:09So you want to have a database,
- 39:11you want to have a load balancer,
- 39:14and you want to have like three web heads.
- 39:16Yeah,
- 39:16exactly.
- 39:17Something like this.
- 39:17So I guess the first step would,
- 39:20would be creating your database so that you get your,
- 39:22your URLs connected to your database.
- 39:24Okay.
- 39:24Um,
- 39:25and after that,
- 39:27uh,
- 39:28you would create obviously your private network,
- 39:30uh,
- 39:31so that whenever you,
- 39:32uh,
- 39:33put your virtual machines,
- 39:34uh,
- 39:35they will connect,
- 39:35they will use a network and they will,
- 39:37uh,
- 39:37get some IP assigned,
- 39:39IPs assigned based,
- 39:41uh,
- 39:41from that network.
- 39:42and once you have your network,
- 39:44you will also,
- 39:45you will start your virtual machines.
- 39:47You'll deploy your web heads there.
- 39:50Uh,
- 39:50obviously they will talk to,
- 39:51uh,
- 39:52your newly created database.
- 39:54And then you'll create your,
- 39:56you'll configure your load balancer,
- 39:58uh,
- 39:59to,
- 39:59to balance the load across those three web heads.
- 40:03And you can do all that without installing,
- 40:08like,
- 40:09I'm,
- 40:09I'm trying to make sure I'm not saying something wrong here.
- 40:11That you can,
- 40:12you can do that all that without installing any single service that is not open stack.
- 40:19Like you can do that by using just CLI tools and say like,
- 40:23give me a load balancer,
- 40:24balance load across these three,
- 40:26three nodes.
- 40:26Give me three virtual machines.
- 40:28And you don't have to install a single service yourself,
- 40:32but you don't have to install,
- 40:33I don't know,
- 40:34HAProxy yourself or NGINX.
- 40:36You don't have to do that.
- 40:37Uh,
- 40:38you can do that all using,
- 40:40like just using open stack tools,
- 40:41which is,
- 40:42it just like,
- 40:43it just blew my mind right now.
- 40:45Yeah.
- 40:45That's,
- 40:46that's really cool.
- 40:47And could I actually put all that together in like an Ansible playbook and just run it and make it all happen?
- 40:53Oh yeah.
- 40:53That just makes it even better.
- 40:54Um,
- 40:55like you,
- 40:56you can just script that,
- 40:58uh,
- 40:58because,
- 40:59uh,
- 40:59every single CLI tool is,
- 41:02um,
- 41:02like the client libraries in open stack,
- 41:04they're all written in Python,
- 41:06uh,
- 41:07right now,
- 41:07but there are also some other outside,
- 41:09um,
- 41:10the repos that are written in other languages.
- 41:11Anyway,
- 41:12I digress.
- 41:12Uh,
- 41:13you can,
- 41:13you can get your libraries and you can write scripts on top of that and make that all scriptable and,
- 41:20and either using Ansible,
- 41:21pop it or even your own script because you don't want to use any of those tools.
- 41:25Yeah.
- 41:25Yeah.
- 41:26That's,
- 41:26that's cool.
- 41:27That it's,
- 41:28it's amazing times we live in,
- 41:29right?
- 41:30Absolutely.
- 41:31Like I,
- 41:32I normally talk about this and I say like,
- 41:35you know,
- 41:35you know,
- 41:35if your clouds,
- 41:36if your cloud don't provide,
- 41:38uh,
- 41:39if your cloud doesn't provide you a load balance as a service,
- 41:42I believe your cloud is incomplete.
- 41:43And now that you just asked me to build that change of events,
- 41:47um,
- 41:48how they would work.
- 41:49I'm just like,
- 41:50whoa,
- 41:50I mean,
- 41:51the fact that you can do it actually,
- 41:52like just using CLI tools and you can get your application running in,
- 41:56in no time,
- 41:57basically.
- 41:57It's just amazing.
- 41:59Yeah,
- 41:59it really is.
- 42:00So what's Red Hat's involvement in OpenStack?
- 42:03Like why you work for Red Hat,
- 42:05but you work on OpenStack.
- 42:06What's the story there?
- 42:07The story is Red Hat is full,
- 42:11uh,
- 42:12immersed in OpenStack.
- 42:13Like we are 100% on,
- 42:17on the project and we believe 100% on it.
- 42:20And we are,
- 42:21we are betting a lot on cloud and,
- 42:25and different flavors and versions of clouds and whatever will make it.
- 42:29make your cloud better and your development workflows better.
- 42:33And that will allow you to scale your application and,
- 42:36and your environments,
- 42:38either private or public,
- 42:39which basically means that when we see something like OpenStack,
- 42:43we say,
- 42:44we gotta be there.
- 42:46And that's,
- 42:47that's what we did.
- 42:47We,
- 42:48we just jumped into OpenStack and we started working on OpenStack full time
- 42:51upstream right away.
- 42:53We got developers and we just put them there.
- 42:55And that's,
- 42:56that's actually my case as well.
- 42:58And that I'm part of,
- 43:00of that upstream only team that dedicates full time to making,
- 43:05or trying to make OpenStack better every day.
- 43:08That's a great mission.
- 43:09Then we talked a little bit about why OpenStack,
- 43:13why it's good for OpenStack to be built with Python.
- 43:16It has this great community.
- 43:18It's easy for newcomers to,
- 43:20to come on board and sort of learn from OpenStack,
- 43:23but also contribute to it.
- 43:24But what,
- 43:25what I recently learned that I thought was pretty interesting is it works the
- 43:29other way as well.
- 43:30Like Python is benefiting from OpenStack,
- 43:31right?
- 43:33It is.
- 43:34It is.
- 43:34It is.
- 43:35Um,
- 43:36I believe one of the good things that OpenStack is giving back,
- 43:40uh,
- 43:41to Python is actually Python.
- 43:43and is the fact that we,
- 43:45the community,
- 43:46the OpenStack community is huge.
- 43:48Uh,
- 43:48there's a lot,
- 43:49a lot of Python going on there.
- 43:51And it's not just huge.
- 43:53We have,
- 43:53we also have many of the key members of the Python community are also part of the
- 43:57OpenStack community,
- 43:58which means we are,
- 44:00we are,
- 44:01we are interconnected with the Python community and everything we do,
- 44:05we do it in a way that we can give back to the community.
- 44:08We,
- 44:08like in the OpenStack community,
- 44:10we are very against of,
- 44:12uh,
- 44:14reinventing the wheel and,
- 44:16and redoing things that exist already in the Python community.
- 44:19Whenever we can just use a Python library that exists already and make it better,
- 44:24which has happened a lot,
- 44:25uh,
- 44:26we,
- 44:27we just do it.
- 44:28And if we end up writing our own library,
- 44:30we make it in a way that is not OpenStack dependent,
- 44:34uh,
- 44:34so that we can just give it back to the Python community.
- 44:37When it is OpenStack dependent,
- 44:39we would just mark it in a way that you would know,
- 44:42it's like all the dope libraries that you know,
- 44:44those are part of dope.
- 44:45Well,
- 44:45we do the same with OpenStack.
- 44:48There are some libraries that we have built that are meant to be used by OpenStack.
- 44:53And it's not,
- 44:54it doesn't necessarily mean that,
- 44:56uh,
- 44:56you cannot use them,
- 44:57uh,
- 44:58outside of OpenStack,
- 44:59but it definitely means the API is,
- 45:01the API has been taught for OpenStack in a way that will make OpenStack better or easier to consume the library across OpenStack.
- 45:09so I believe one of the,
- 45:11the best thing that OpenStack is giving back to Python is actually Python.
- 45:15There's a lot of contributions back to the language itself, to the testing libraries.
- 45:20like I said before,
- 45:21like I said before,
- 45:22like our CI system is huge and it runs a lot of patches and tests per day.
- 45:27And all the things that have been written and found out in our CI system that are not necessarily a problem in OpenStack, but probably a problem outside of OpenStack.
- 45:36All those things have been contributed back.
- 45:38many,
- 45:39many new workflows from,
- 45:42from a test perspective,
- 45:43from a requirements and dependencies management perspective have been contributed back to the community somehow.
- 45:48even in way,
- 45:50even in a way of documentation,
- 45:52um,
- 45:53I believe that's a huge,
- 45:55uh,
- 45:55benefit the Python community is getting from OpenStack.
- 45:57Many things like,
- 45:58it recently happened like two weeks ago,
- 46:01um,
- 46:02there was a new release of Request.
- 46:05And,
- 46:06uh,
- 46:06you know,
- 46:06Request has a,
- 46:07it vendors your,
- 46:09uh,
- 46:09your lead three.
- 46:10And it just like the latest release just brought some of the OpenStack client libraries.
- 46:15And we just found it and it was a lot of like table listed.
- 46:18And one hour later,
- 46:20we just found the issue and we just went back to Request and said like,
- 46:23Hey,
- 46:23you know what?
- 46:24I got,
- 46:24you just broke OpenStack and some of the,
- 46:27yeah.
- 46:27Call up Kenneth writes and say,
- 46:29Hey Kenneth,
- 46:30we have a problem.
- 46:31Exactly.
- 46:32We've got a problem.
- 46:33Um,
- 46:34but it turns out like some of the Request maintainers are also part of OpenStack.
- 46:38So it was even easier to just say like,
- 46:40Hey man,
- 46:41uh,
- 46:41do your mind?
- 46:42And like the issue was resolved in no time.
- 46:45Like the patch was written and landed.
- 46:48In no time.
- 46:49The release came a couple of days later.
- 46:51Uh,
- 46:52in the meantime,
- 46:52we,
- 46:52we kind of tried to apply the workaround for it,
- 46:55but like we resolved the whole issue within a week,
- 46:59which we were talking about Request,
- 47:02which is a like widely used library everywhere.
- 47:06and OpenStack,
- 47:07which has a huge ecosystem,
- 47:09which is hard to maintain consistent and sane.
- 47:12Making all that happen in a single week means that we've managed to create a workflow or to contribute back to the Python community in a way that is effective as well.
- 47:21Yeah.
- 47:22That's,
- 47:22that's a really great story.
- 47:23And one of the points that I heard someone make was you guys are really betting on Python.
- 47:29And if for some reason,
- 47:30say like a section,
- 47:31some operation or something in Python is too slow,
- 47:34instead of saying,
- 47:35Oh,
- 47:35forget this.
- 47:35We're going to switch over to go or something like you guys actually across,
- 47:40you know,
- 47:40Red Hat and Rackspace and so on,
- 47:43actually employ some of the core contributors and actually just make Python better to fix those problems.
- 47:50And that,
- 47:50that benefits everyone.
- 47:51Right.
- 47:51Absolutely.
- 47:53Like we,
- 47:53like we,
- 47:55I can talk about Red Hat because I'm part of it and I know,
- 47:58and I know how it works there.
- 47:59It's not just about just talking about the company that pays my salary.
- 48:03Um,
- 48:04it's yeah.
- 48:05But like we've,
- 48:06we've hired people dedicated to open source library and like they work on those open source libraries that OpenStack consumes.
- 48:16They don't even work on OpenStack.
- 48:18And,
- 48:19and we do that because we believe in OpenStack and that library is a huge part of OpenStack.
- 48:23And if that library breaks or that person just decides to leave the library and drop it and never maintain it,
- 48:28I'm not going to say the community won't pick it up,
- 48:31but why wouldn't you like,
- 48:34why wouldn't you give this guy that has dedicated a lot or GERD that has dedicated a lot of time on that library an opportunity to just keep doing it and,
- 48:42and have OpenStack benefit from that.
- 48:44Right.
- 48:44So it's not a matter of hiring people or having people working on OpenStack.
- 48:48full time,
- 48:49but also having people working on libraries that OpenStack uses to make sure that OpenStack stays sane and,
- 48:55and those libraries won't break it in the future.
- 48:57Yeah.
- 48:57That's a great stabilizing force in the whole open source industry,
- 49:00right?
- 49:02Yeah, exactly.
- 49:02And like I said,
- 49:03like OpenStack is a huge ecosystem and,
- 49:05and keep it sane and consistent and stable.
- 49:09Like it takes a lot of minds and resources to do that.
- 49:12And I'm not going to say like it's rocket science,
- 49:15but it definitely,
- 49:16there are many separate independent pieces that need to talk to each other.
- 49:21And if one of those pieces don't do that,
- 49:23it'll just all fall down right away.
- 49:26Yeah.
- 49:27Thinking of all the interdependencies between 375 different repositories.
- 49:32That's right.
- 49:33That's,
- 49:33that's complicated,
- 49:34but you guys are doing it.
- 49:35That's awesome.
- 49:36So one thing I did want to come back to is Docker.
- 49:39What's the story with Docker and OpenStack?
- 49:42We were just embracing it.
- 49:45It is not a matter of whether you have to pick Docker or you have to pick OpenStack.
- 49:51Even,
- 49:52even if you have Docker,
- 49:53you still need to maintain all your containers,
- 49:56right?
- 49:57There are other tools to do that out there,
- 49:59but OpenStack is also one of them.
- 50:01You can have services,
- 50:03there's Magnum,
- 50:05and it'll,
- 50:06it'll just allow you to manage all your Docker containers like you would do with Nova and virtual machines,
- 50:12basically.
- 50:12So you don't really need to pick one or the other.
- 50:15We believe in Docker.
- 50:17We believe Docker is an amazing tool and it gives you a lot of power and,
- 50:22and resources.
- 50:22It does that in a different way.
- 50:24It has,
- 50:25it has its own issues as virtual machines have their own,
- 50:28but we,
- 50:30we believe that the containers and Docker itself is also part of,
- 50:34of what a good cloud,
- 50:36uh,
- 50:37is and,
- 50:37and which is why we have also services that,
- 50:40that would allow you to just use Docker.
- 50:41there.
- 50:41So much like I can go up to OpenStack and say,
- 50:46I would like three virtual machines with this image and then put them into a private network.
- 50:50I can say,
- 50:51I would like these three containers based on these images and I want them in a private network.
- 50:56Is that possible?
- 50:57Yes,
- 50:58absolutely.
- 50:59And you can also say,
- 51:00I want two virtual machines and just one container and make them work to do it.
- 51:03That's awesome.
- 51:04Yeah.
- 51:06You just like,
- 51:07you pick your,
- 51:08you pick your flavor and like,
- 51:10is it really like,
- 51:11it like everything in our industry depends on the context and your needs.
- 51:15Right.
- 51:15And that's probably one of the best excuse,
- 51:17uh,
- 51:18we have in our industry.
- 51:19Whenever you don't want to answer something,
- 51:21you just say that,
- 51:21uh,
- 51:22like,
- 51:23well,
- 51:23yeah,
- 51:23but I digress.
- 51:24That's,
- 51:24that was a joke.
- 51:25Um,
- 51:25but even for open stack,
- 51:27it really depends on,
- 51:28on your needs actually.
- 51:29Like if you don't want to,
- 51:30if you don't need all the security layers and features that a virtual machine,
- 51:35uh,
- 51:35provides and give you,
- 51:36you can also use Docker.
- 51:38It's not just a matter of resources.
- 51:39It's not like a virtual machine will use more resources than a Docker container.
- 51:43Uh,
- 51:43to some extent that is true,
- 51:45but the footprint of virtual machine has right now,
- 51:48nowadays,
- 51:48has been improved a lot.
- 51:50And,
- 51:50and I'm not going to say it's as,
- 51:51it is as cheap as running a Docker container,
- 51:55but,
- 51:55um,
- 51:55it is not as expensive as it used to be.
- 51:57Yeah.
- 51:58But Docker enables different kinds of workflows and exactly,
- 52:02you know,
- 52:03super responsive scale,
- 52:05right?
- 52:05You know,
- 52:06a hundred milliseconds.
- 52:07You've got a container up and running.
- 52:08Like there's just different things you can do and trade offs you can make.
- 52:11So it's really cool.
- 52:12You guys support it.
- 52:12Yeah,
- 52:14absolutely.
- 52:14Awesome.
- 52:15So Flavio,
- 52:17we're coming up kind of near the end of the show.
- 52:19Do you have any like final call to actions or things you want to let people know about that?
- 52:24we haven't spoken about yet?
- 52:25What I would like to say again is that you don't need to have a huge public cloud for OpenStack to be worth it.
- 52:32Like just install it and improve your development and testing workflow using OpenStack.
- 52:37Uh,
- 52:37you don't need to deploy it on 800 virtual machines.
- 52:39You have a starter kit and you can just start small,
- 52:42give it a try.
- 52:43Uh,
- 52:44and if you like it,
- 52:45you can just grow from there.
- 52:46All right.
- 52:47That's awesome.
- 52:47And they can go out and check out the starter kit to get started maybe,
- 52:50right?
- 52:50Right.
- 52:50And if it,
- 52:51if it doesn't work,
- 52:52you know where to find us.
- 52:53That's right.
- 52:55All right.
- 52:56Two final questions before you go.
- 52:57If you're going to write some Python code,
- 52:59what editor do you open?
- 53:00Uh,
- 53:01right now,
- 53:01Emacs.
- 53:02Um,
- 53:03I,
- 53:03I love both Veeam and Emacs.
- 53:05I used to be a,
- 53:06just only Veeam developer.
- 53:07Then I just gave Emacs a try.
- 53:09and there's a Trump mode that I love.
- 53:11Um,
- 53:12especially when traveling.
- 53:14So,
- 53:15uh,
- 53:15right now is Emacs.
- 53:16That's,
- 53:16that's what I often do.
- 53:18Oh,
- 53:18excellent.
- 53:18They've,
- 53:19they've converted you,
- 53:19huh?
- 53:20Yeah,
- 53:21man,
- 53:21but I can go back.
- 53:22Like I use both.
- 53:23Honestly,
- 53:24it's,
- 53:24it's,
- 53:24it's very weird.
- 53:25Like sometimes I just run bin and start doing it.
- 53:28And,
- 53:29but right now,
- 53:30most of the time it's just Emacs.
- 53:31Cool.
- 53:32And of all the thousands of PyPI packages out there,
- 53:36what are ones you think people should know about that?
- 53:38Maybe they don't.
- 53:40Whoa.
- 53:40Probably one of the,
- 53:43there's,
- 53:44there's this package that I was actually creating as part of OpenStack.
- 53:46And I like a lot.
- 53:47And,
- 53:47and it's called also messaging and it's an RPC library.
- 53:52Um,
- 53:53so,
- 53:53and it's important to understand it's an RPC library.
- 53:56It does not provide just pure messaging across brokers.
- 53:59It is an opinionated RPC library that will allow you to either use RabbitNQ,
- 54:03um,
- 54:04QP Proton,
- 54:06or some other broker that is supported.
- 54:09um,
- 54:09to create your,
- 54:12uh,
- 54:12distributed system and make different parts talk through RPC,
- 54:17uh,
- 54:18calls.
- 54:18So that's widely used in OpenStack.
- 54:21And it's probably one of the,
- 54:22um,
- 54:23one of those sticks that if you remove it,
- 54:26openstack will just fall down.
- 54:28And,
- 54:28and most of the services that have a distributed architecture in OpenStack are using those messaging right now to make sure that all the pieces in the service can talk to each other.
- 54:36Um,
- 54:37so if you,
- 54:38if you are in the need of,
- 54:39of writing,
- 54:40uh,
- 54:41of having different notes talking to each other and,
- 54:43and RPC is one of the things you might want to give a try.
- 54:46Well,
- 54:47Oslo messaging is an amazing library for that.
- 54:49perfect.
- 54:50So very good recommendation.
- 54:52So if you're out there listening,
- 54:54go check out OpenStack and check out their starter kit,
- 54:58which you can find on the homepage.
- 54:59Definitely a cool project.
- 55:01And I love the whole Python component to it,
- 55:03Flavio.
- 55:04Thanks.
- 55:04Awesome.
- 55:05Thank you for having me here.
- 55:06Yeah.
- 55:07Thanks for being on the show.
- 55:08See you later.
- 55:08This has been another episode of Talk Python To Me.
- 55:12Today's guest was Flavio Prococo.
- 55:14And this episode has been sponsored by Hired and Cochip.
- 55:17Thank you guys for supporting the show.
- 55:18Hired wants to help you find your next big thing.
- 55:21Visit Hired.com slash Talk Python To Me to get five or more offers with salary and equity presented right up front and a special listener signing bonus of $4,000.
- 55:30Cochip wants you to always keep shipping.
- 55:34Check them out at Cochip.com and thank them on Twitter via at Cochip.
- 55:38Don't forget the discount code for listeners.
- 55:40It's easy.
- 55:41Talk Python.
- 55:41All caps.
- 55:42No spaces.
- 55:43You can find the links from today's show at talkpython.fm/episodes slash show slash 33.
- 55:50And be sure to subscribe to the show.
- 55:52Open your favorite podcatcher and search for Python.
- 55:55We should be right at the top.
- 55:56You could also find the iTunes and direct RSS feeds in the footer of the website.
- 56:00Our music is Developers, Developers, Developers by Corey Smith who goes by Smix.
- 56:05You can hear the whole song on talkpython.fm.
- 56:09This is your host, Michael Kennedy.
- 56:10Thank you very much for listening.
- 56:12Smix, take us out of here.
- 56:22The mic back to who rocked his best.
- 56:24The mic back to who rocked his best.
- 56:24The mic back to who rocked his best.
- 56:24The mic back to who rocked his best.
- 56:24The mic back to who rocked his best.