kanku - Bridging the gap between OBS and developers
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Formal Metadata
Title |
| |
Title of Series | ||
Number of Parts | 55 | |
Author | ||
Contributors | ||
License | CC Attribution 3.0 Unported: You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor. | |
Identifiers | 10.5446/54525 (DOI) | |
Publisher | ||
Release Date | ||
Language |
Content Metadata
Subject Area | ||
Genre | ||
Abstract |
|
openSUSE Conference 201827 / 55
8
9
11
15
17
19
20
21
26
28
30
31
32
34
38
39
42
44
45
47
51
52
54
00:00
Computer-generated imageryElectronic meeting systemWeightComputer animation
00:24
Doppel-T-TrägerCartesian coordinate systemMusical ensembleSystems integratorMedical imagingSoftware testingArtificial lifeFront and back endsMultiplication signINTEGRALComputer animation
01:30
Asynchronous Transfer ModeArchitectureClient (computing)Computer-generated imageryConfiguration spaceComplex (psychology)Computer iconServer (computing)Component-based software engineeringDemonTask (computing)Asynchronous Transfer ModeServer (computing)Connectivity (graph theory)MathematicsProof theoryBuildingMultiplication signVirtual machineSoftware testingDemo (music)Rollenbasierte ZugriffskontrolleLaptopHydraulic motorMusical ensembleSoftware
04:04
Computer fileMobile appMedical imagingVirtual machineVirtual realityConfiguration spaceArrow of timeProcess (computing)Source codeJSON
05:23
Software developerLaptopAsynchronous Transfer ModeEmulationRegulärer Ausdruck <Textverarbeitung>Virtual machineAsynchronous Transfer ModeInterrupt <Informatik>Integrated development environmentSource codeMedical imagingComputer animation
05:45
Asynchronous Transfer ModeLaptopSoftware developerScheduling (computing)Open setServer (computing)Maxima and minimaVirtual machineAsynchronous Transfer ModeMedical imagingServer (computing)Scheduling (computing)Directory serviceTask (computing)CodeLaptopVirtualizationProcess (computing)Web 2.0Projective planeMobile appSeries (mathematics)Electronic GovernmentHydraulic jumpWeb pageData managementPhysical systemComputer iconMUDMusical ensembleComputer animation
08:23
Task (computing)Context awarenessTelecommunicationComputer configurationAsynchronous Transfer ModeDistribution (mathematics)Server (computing)Social classConvex hullKolmogorov complexityReduction of orderMaxima and minimaSoftware testingContext awarenessRow (database)CANopenServer (computing)InformationMusical ensembleProcess (computing)Service (economics)Medical imagingProjective planeDescriptive statisticsView (database)VirtualizationYouTubeTelecommunicationEmailOcean currentInstance (computer science)Revision controlVirtual machineWeb 2.0Slide ruleTask (computing)Data storage deviceSource codeQR codeSet (mathematics)Domain nameComputer configurationCASE <Informatik>DatabaseSocial classDemonComplex (psychology)Message passingDistribution (mathematics)Utility softwareFront and back endsBus (computing)Software testingLaptopWorkloadFlow separationComputer animation
16:52
Software testingVirtual machineMusical ensembleMedical imagingCrash (computing)Computer animation
17:17
Software testingVideoconferencingMusical ensembleComputer animation
Transcript: English(auto-generated)
00:07
Hello everyone, my name is Frank, also known as Moses, today I'm gonna talk about one of my favorite projects, it's called Kanku, and this talk has the under title, Bridging
00:23
the Gap between OBS and Developers. I started working as OBS backend developer in 2015 at SUSE, and at this time we didn't
00:42
have integration tests for our application images, and the first questions I would have asked to the audience, who of you is using OBS actively, okay, the second question would
01:05
be, who already built images, KVM images with Kiwi in OBS, okay, and who of you knows vagrant and used it, okay.
01:32
Today I want to talk about the motivation behind Kanku, I would like to give you an overview of the modes of Kanku, and we will talk about the basic concepts and the architecture.
01:51
The motivation and goals. As I already said, when I started in the OBS team, we had no tests for our OBS appliance
02:01
images, and I made some changes in the setup, and I wanted to test them, and then I started with a small proof of concept, just to fire up a virtual machine via KVM
02:21
with a bit, and do this regularly scheduled, to have a nightly build, or a nightly test of our builds.
02:45
After a few weeks, this POC was really getting more and more working for me, and then I thought about a command line tool to use this on my laptop, and this was
03:11
the time when the developer mode was developed, and yeah.
03:24
For the overview, I will try to explain the developer mode, the server mode, the basic concepts like the jobs, the tasks, the handlers, and the utilities, and the
03:46
components which work inside Kanku. Now I will start a short demo.
04:04
Here we see the Kanku init command, which creates a basic configuration file for your Kanku job, then normally you run a Kanku app which downloads the image from the OBS,
04:24
and fires up a virtual machine in your virtual environment on the local machine. After that, you can do a Kanku SSH to log into this machine and start developing.
05:24
Sorry for this short interruption. The developer mode is designed to make it easier for you to work with the images you created on your local machine to get an environment where you can start straight on developing.
05:41
All packages are installed, and you only have to check out the source code, or, for example, Kanku can do this also for you, so only start developing. Jobs are triggered manually in this state. This is Kanku app command.
06:01
We will see later in the server mode which other trigger modes are possible. Later on, I invented the offline mode, which is very useful for me because I'm travelling
06:20
much, and then you have a cached image on your laptop, for example, and can fire up a machine while being offline. Kanku can also share your project directory with the virtual machine, so you can switch
06:41
between developing on your local machine and run the code inside this virtual machine, for example.
07:00
Then the server mode. There are two modes in the server mode. It's distributed, or it's standalone. Standalone means it runs only on one machine, or you can scale over with more than one server to make it more scalable.
07:20
The jobs can either be triggered, or they can be scheduled. There is the Kanku scheduler which enables you to run your tasks regularly, or they can be triggered, event-driven, for example, by RabbitMQ, or via web UI where you just start by clicking your job.
07:44
For me, it's very convenient to fire up a virtual machine on the server, so I can develop with my colleagues on this virtual machine without giving them access to my
08:02
laptop or something like that. Now we come to the basic concepts, the jobs, the tasks, and as you can see, the
08:29
handles and the utils. We start with the jobs. A job is a set of one or more tasks.
08:41
You can use loose coupling. These tasks are normally only one handler is specified, but we come to this on the next slide. There is a job context which is used for the communication between these tasks.
09:05
So, for example, if you run an OBS check to check for the latest image which was built inside OBS, this information is stored in the context, and the next handler, like the image download, can take this information, downloads the image, and stores
09:26
the path to the local image inside the context for the next handler, like the create domain handler.
09:44
A task runs exactly one handler with defined options. Here you can see a small context snippet for the create domain.
10:01
Option in this case is only the domain name. Most of the options or all of the options are documented in POD in the corresponding handlers in the source code. So, at the moment, it's a bit, yeah, you have to be aware of how to read a Perl
10:30
documentation with Perl doc in the installed source tree. Tasks will only execute at once, but you can have several tasks with the same
10:48
handler. As already said, there is always a job context which stores the information for the communication between tasks.
11:01
Here we have the handler classes which are normally located under opt-cancu-lib-cancu handler. They normally have three methods, prepare and execute, and then finalize
11:23
method, and they have multiple distribution nodes. This is required if you run it in a distributed set-up. For example, there is a port forwarding handler which can be run on the master
11:46
server and can port forward ports to the virtual machine, so you can easily access, for example, the web server or the SSH server from the virtual machine over the master server, and the information is displayed in the web
12:04
UI. Then there are worker-only handlers like create domain, which you only run on one specific machine, or a handler can be run on all servers, like remove domain, because when you run a remove domain, you want to remove
12:25
this current instance from all of the servers that you don't run into name conflicts after restarting the job.
12:41
Then we have the util classes. They are mainly helpers for the handler classes to reduce the complexity or to make functionality available for all the handler classes where you may use
13:03
it. Now we come to the basic architecture, and the jobs get triggered.
13:21
They get created in an SQLite database. As already said, there is a trigger daemon which can read from a message bus the web UI or the CLI command, because all of the commands you can do
13:45
on the CLI, you can also, everything you can do in the web UI, you should be able to use the CLI for it to trigger it via REST.
14:04
Then we have the ConcoDispatcher. In distributed mode, it uses RabbitMQ to distribute the workload over the several Conco worker machines.
14:20
Then the job is running, and the virtual machine is created via libvit command. Here I prepared a small cheat sheet, how to install Conco, how to set it up,
14:46
and run your first project. This will be available on GitHub. If you recognise the URL and the QR code at the beginning, this is the URL
15:03
to this presentation. There you can find the cheat sheet. Yes, please test it, use it, or, if you want, contribute,
15:21
contributions are very welcome. Or, on GitHub, you can also open issues, or if you have some questions, you can find me as Moses on Freenode, or also in the public available
15:43
documentation on GitHub. You can find further information. Yes. Are there any questions? Yes? I haven't understood well, I think because I don't have enough knowledge
16:11
of the backend of OBS. So, does Conco is the tool to be able to make the build process of my
16:20
images on my laptop without needing an external OBS appliance? It's not to build your images on your laptop. This you can do with OSC. But once you checked in your image description and OBS built an image for
16:43
you, then Conco can help you to fetch these images from the OBS, the latest image, and fire up a virtual machine with exactly this image. Did this answer your question? Yes, thank you. Okay.
17:03
Any further questions? Okay. Thank you for your attendance.
Recommendations
Series of 18 media