public inbox for kernelci@lists.linux.dev
 help / color / mirror / Atom feed
* [Help] How to use kernelci to eastablish a local CI lab?
@ 2019-01-10  6:01 Li, Xiaoming
  2019-01-10 15:42 ` Dan Rue
  0 siblings, 1 reply; 6+ messages in thread
From: Li, Xiaoming @ 2019-01-10  6:01 UTC (permalink / raw)
  To: kernelci

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 357 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Help] How to use kernelci to eastablish a local CI lab?
  2019-01-10  6:01 [Help] How to use kernelci to eastablish a local CI lab? Li, Xiaoming
@ 2019-01-10 15:42 ` Dan Rue
  2019-01-11  2:08   ` 答复: " Li, Xiaoming
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Rue @ 2019-01-10 15:42 UTC (permalink / raw)
  To: kernelci, lixm.fnst

On Wed, Jan 09, 2019 at 10:01:17PM -0800, Li, Xiaoming wrote:
> 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

-- 
Linaro - Kernel Validation

^ permalink raw reply	[flat|nested] 6+ messages in thread

* 答复: [Help] How to use kernelci to eastablish a local CI lab?
  2019-01-10 15:42 ` Dan Rue
@ 2019-01-11  2:08   ` Li, Xiaoming
  2019-01-14 10:34     ` charles.oliveira
  2019-01-14 21:55     ` 答复: " Kevin Hilman
  0 siblings, 2 replies; 6+ messages in thread
From: Li, Xiaoming @ 2019-01-11  2:08 UTC (permalink / raw)
  To: kernelci@groups.io, dan.rue@linaro.org

Reply is inline

> On Wed, Jan 09, 2019 at 10:01:17PM -0800, Li, Xiaoming wrote:
> > 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.

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.


> 
> 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.

> 
> Thanks,
> Dan
> 
> --
> Linaro - Kernel Validation
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Help] How to use kernelci to eastablish a local CI lab?
  2019-01-11  2:08   ` 答复: " Li, Xiaoming
@ 2019-01-14 10:34     ` charles.oliveira
  2019-01-14 21:55     ` 答复: " Kevin Hilman
  1 sibling, 0 replies; 6+ messages in thread
From: charles.oliveira @ 2019-01-14 10:34 UTC (permalink / raw)
  To: kernelci, lixm.fnst; +Cc: dan.rue@linaro.org

[-- Attachment #1: Type: text/plain, Size: 1938 bytes --]

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

On Fri, 11 Jan 2019 at 00:08, Li, Xiaoming <lixm.fnst@cn.fujitsu.com> wrote:

> Reply is inline
>
> > On Wed, Jan 09, 2019 at 10:01:17PM -0800, Li, Xiaoming wrote:
> > > 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.
>
> 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.
>
>
> >
> > 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.
>
> >
> > Thanks,
> > Dan
> >
> > --
> > Linaro - Kernel Validation
> >
> >
> >
> >
>
>
>
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 2697 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 答复: [Help] How to use kernelci to eastablish a local CI lab?
  2019-01-11  2:08   ` 答复: " Li, Xiaoming
  2019-01-14 10:34     ` charles.oliveira
@ 2019-01-14 21:55     ` Kevin Hilman
  2019-01-15  5:55       ` 答复: " Li, Xiaoming
  1 sibling, 1 reply; 6+ messages in thread
From: Kevin Hilman @ 2019-01-14 21:55 UTC (permalink / raw)
  To: kernelci, lixm.fnst, kernelci@groups.io, dan.rue@linaro.org

Hi Li,

"Li, Xiaoming" <lixm.fnst@cn.fujitsu.com> writes:

> Reply is inline
>
>> On Wed, Jan 09, 2019 at 10:01:17PM -0800, Li, Xiaoming wrote:
>> > 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.
>
> 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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* 答复: 答复: [Help] How to use kernelci to eastablish a local CI lab?
  2019-01-14 21:55     ` 答复: " Kevin Hilman
@ 2019-01-15  5:55       ` Li, Xiaoming
  0 siblings, 0 replies; 6+ messages in thread
From: Li, Xiaoming @ 2019-01-15  5:55 UTC (permalink / raw)
  To: Kevin Hilman, kernelci@groups.io, kernelci@groups.io,
	dan.rue@linaro.org, charles.oliveira@linaro.org

Hi,Dan,Charles,Kevin

Thank you for your reply.
My reply is inline.

> Hi Li,
> 
> "Li, Xiaoming" <lixm.fnst@cn.fujitsu.com> writes:
> 
> > Reply is inline
> >
> >> On Wed, Jan 09, 2019 at 10:01:17PM -0800, Li, Xiaoming wrote:
> >> > 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.
> >
> > 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

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

> 
> - 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
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-15  5:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-10  6:01 [Help] How to use kernelci to eastablish a local CI lab? Li, Xiaoming
2019-01-10 15:42 ` Dan Rue
2019-01-11  2:08   ` 答复: " Li, Xiaoming
2019-01-14 10:34     ` charles.oliveira
2019-01-14 21:55     ` 答复: " Kevin Hilman
2019-01-15  5:55       ` 答复: " Li, Xiaoming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox