Skip to contentSkip to conversation

How to use kernelci to eastablish a local CI lab?

Help Li, Xiaoming 4 participants 6 messages Jan 10, 2019 – Jan 15, 2019

lore
Share & tools
lore
#0 lore raw

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should  I do  to connetc them together? I have investigate the kernelci-wiki and kernelci related presentations, but still got no clues. Could anyone give some hints or link?
Thank you all.

BR.
Li Xiaoming

#1 lore raw
Quoted 7 lines · Xiaoming

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should  I do  to connetc them together? I have investigate the kernelci-wiki and kernelci related presentations, but still got no clues. Could anyone give some hints or link?
Thank you all.

Hi Li Xiaoming!

I'm working on something similar and so maybe we can work together on this.

Do you have a lava instance online with boards attached already? It's not clear if you already have LAVA, and are trying to add it as a kernelci lab, or if you're asking how to set up LAVA.

As a side note, do you work with Liu Wenlong? I was reviewing his work on LAVA+Fuego yesterday, which may be related.

Thanks,
Dan

Signature · 1 line
Linaro - Kernel Validation
#2 lore raw

Reply is inline

Quoted 11 lines · Xiaoming
Quoted 4 lines

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should  I do  to

connetc them together?

Quoted 1 line

I have investigate the kernelci-wiki and kernelci related presentations, but still

got no clues.

Quoted 2 lines

Could anyone give some hints or link?
Thank you all.

Quoted 7 lines

Hi Li Xiaoming!

I'm working on something similar and so maybe we can work together on this.

Do you have a lava instance online with boards attached already? It's not clear if you already have LAVA, and are trying to add it as a kernelci lab, or if you're asking how to set up LAVA.

I know how to install LAVA, by lava-docker or the linaro's default method.
Our lab has servral lava instance, so I can connect kernelci with lava either local or remote, if possible. Yes,I want to know how add lava to kernelci lab.

Quoted 3 lines

As a side note, do you work with Liu Wenlong? I was reviewing his work on LAVA+Fuego yesterday, which may be related.

Yes, Liu is my colleague.
And Liu is not familiar with it.

Quoted 10 lines

Thanks,
Dan

--
Linaro - Kernel Validation

#3 lore raw

Hi Dan, Li,

I've been trying to understand that as well. If you have kernelci up and running already, then you might be close to success.
Please visit: https://github.com/kernelci/kernelci-core. This is kernelci's repo for storing building schemes & templates as well as lab infos. If I understand correctly, after setting up these scripts with a jenkins instance, you should be ready to add you lab by editing this file:
https://github.com/kernelci/kernelci-core/blob/master/labs.ini.

Cheers,
Charles

Quoted 55 lines · Xiaoming

Reply is inline

Quoted 5 lines · Xiaoming
Quoted 4 lines

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should I

do to

Quoted 2 lines

connetc them together?

Quoted 1 line

I have investigate the kernelci-wiki and kernelci related

presentations, but still

Quoted 7 lines

got no clues.

Quoted 2 lines

Could anyone give some hints or link?
Thank you all.

Hi Li Xiaoming!

I'm working on something similar and so maybe we can work together on

this.

Quoted 2 lines

Do you have a lava instance online with boards attached already? It's

not clear

Quoted 1 line

if you already have LAVA, and are trying to add it as a kernelci lab, or

if you're

Quoted 1 line

asking how to set up LAVA.

I know how to install LAVA, by lava-docker or the linaro's default method. Our lab has servral lava instance, so I can connect kernelci with lava either local or remote, if possible.
Yes,I want to know how add lava to kernelci lab.

Quoted 3 lines

As a side note, do you work with Liu Wenlong? I was reviewing his work on LAVA+Fuego yesterday, which may be related.

Yes, Liu is my colleague.
And Liu is not familiar with it.

Quoted 10 lines

Thanks,
Dan

--
Linaro - Kernel Validation

#4 lore raw
In reply to Li, Xiaoming

Hi Li,

Quoted 17 lines · Xiaoming

Reply is inline

Quoted 15 lines · Xiaoming
Quoted 4 lines

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should  I do  to

connetc them together?

Quoted 1 line

I have investigate the kernelci-wiki and kernelci related presentations, but still

got no clues.

Quoted 2 lines

Could anyone give some hints or link?
Thank you all.

Hi Li Xiaoming!

I'm working on something similar and so maybe we can work together on this.

Quoted 7 lines
Quoted 3 lines

Do you have a lava instance online with boards attached already? It's not clear if you already have LAVA, and are trying to add it as a kernelci lab, or if you're asking how to set up LAVA.

I know how to install LAVA, by lava-docker or the linaro's default method.
Our lab has servral lava instance, so I can connect kernelci with lava either local or remote, if possible. Yes,I want to know how add lava to kernelci lab.

There are several steps in the process, but it's not clear (to me) which steps you're asking about, so let me crudely summarize the steps, and see which ones you're having questions about:

- kernelci-core: jenkins jobs to watch kernel trees for changes

- kernelci-core: create LAVA jobs and submit to multiple LAVA labs
API: LAVA's XML-RPC API.
Auth: requies LAVA auth token to be shared with kernelci-core admins

- LAVA labs: run LAVA jobs on hardware/VMs etc.

- LAVA labs: submit results to kernelci-backend
(NOTE: the LAVA jobs include "notify" sections which tell the LAVA
where to post results after each LAVA Job)

API: REST API (api.kernelci.org). In particular /boot, /test
Auth: kernelci-backend admin generates token to be shared with LAVA
lab

For the main kernelci.org site, there is a main instance of the kernelci-backend and kernelci-frontend, so you don't have to run those (via kernelci-docker) if you're just hoping to contribute to the main site. However, you still need to exchange tokens for both the "Auth" steps I list above.

If however, you want to run your own kernelci-backend and -frontend, which I gather you do since you've setup kernelci-docker, then you can create and share all the auth tokens yourself.

I hope that clarifies the process a little bit. When we know which steps you're struggling with, we can answer more detailed questions.

BTW, for kernelci-docker, I strongly recommend using this fork for now:
https://github.com/lucj/kernelci-docker. We (BayLibre) have been
working on that fork and are using it regularily. I recommend using that until we get those enhancements merged back into the main repo.

Thanks,

Kevin

#5 lore raw

Hi,Dan,Charles,Kevin

Thank you for your reply.
My reply is inline.

Quoted 30 lines

Hi Li,

Quoted 18 lines · Xiaoming

Reply is inline

Quoted 16 lines · Xiaoming
Quoted 5 lines

hi,all

I am a rookie to kernelci.
I have already install kernelci-docker and lava, then what should I do  to

connetc them together?

Quoted 2 lines

I have investigate the kernelci-wiki and kernelci related presentations, but still

got no clues.

Quoted 2 lines

Could anyone give some hints or link?
Thank you all.

Hi Li Xiaoming!

I'm working on something similar and so maybe we can work together on

this.

Quoted 7 lines
Quoted 4 lines

Do you have a lava instance online with boards attached already? It's not clear if you already have LAVA, and are trying to add it as a kernelci lab, or if you're asking how to set up LAVA.

I know how to install LAVA, by lava-docker or the linaro's default method. Our lab has servral lava instance, so I can connect kernelci with lava either

Quoted 8 lines

local or remote, if possible.

Quoted 1 line

Yes,I want to know how add lava to kernelci lab.

There are several steps in the process, but it's not clear (to me) which steps you're asking about, so let me crudely summarize the steps, and see which ones you're having questions about:

- kernelci-core: jenkins jobs to watch kernel trees for changes

Yes, may be I am down here.
According to Charles, git clone kernelci-core(https://github.com/kernelci/kernelci-core). 2 questions:
1st:
Then how can I access the Jenkins UI? OR do I need to install Jenkins separately? 2ed:
Where is lava-stream-log.py and lava-job-runner.py in kernelci-core's readme?

Thanks
Li

Quoted 40 lines

- kernelci-core: create LAVA jobs and submit to multiple LAVA labs
API: LAVA's XML-RPC API.
Auth: requies LAVA auth token to be shared with kernelci-core admins

- LAVA labs: run LAVA jobs on hardware/VMs etc.

- LAVA labs: submit results to kernelci-backend
(NOTE: the LAVA jobs include "notify" sections which tell the LAVA
where to post results after each LAVA Job)

API: REST API (api.kernelci.org). In particular /boot, /test
Auth: kernelci-backend admin generates token to be shared with LAVA
lab

For the main kernelci.org site, there is a main instance of the kernelci-backend and kernelci-frontend, so you don't have to run those (via kernelci-docker) if you're just hoping to contribute to the main site. However, you still need to exchange tokens for both the "Auth"
steps I list above.

If however, you want to run your own kernelci-backend and -frontend, which I gather you do since you've setup kernelci-docker, then you can create and share all the auth tokens yourself.

I hope that clarifies the process a little bit. When we know which steps you're struggling with, we can answer more detailed questions.

BTW, for kernelci-docker, I strongly recommend using this fork for now:
https://github.com/lucj/kernelci-docker. We (BayLibre) have been
working on that fork and are using it regularily. I recommend using that until we get those enhancements merged back into the main repo.

Thanks,

Kevin