All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Ibe.Kengo@bx.MitsubishiElectric.co.jp>
To: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
Cc: fuego@lists.linuxfoundation.org
Subject: Re: [Fuego] RFC: Fuego's version up and other changes
Date: Thu, 12 Jan 2017 17:15:52 +0900	[thread overview]
Message-ID: <20170112081552.00007D82.0693@bx.MitsubishiElectric.co.jp> (raw)
In-Reply-To: <003e01d26c9f$55dd6be0$019843a0$@toshiba.co.jp>

Hi, Daniel-san

Thank you for your prompt reply.
I have more a few question.

> Humm You should not need to change any permissions.
OK.
I removed the Fuego and the Fuego-core,
after that, I redownloaded the Fuego and the Fuego-core and rebuilded
and start Docker.
I can see following permissions of directories. Is it correct?
==
melco@debian8:~/$ ./fuego/fuego-host-scripts/docker-start-container.sh
Starting Fuego container (fuego-container)
[ ok ] Starting Jenkins Continuous Integration Server: jenkins.

root@debian8:/# ls -al
total 84
drwxr-xr-x  65 root    root    4096 Jan 12 07:26 .
drwxr-xr-x  65 root    root    4096 Jan 12 07:26 ..
-rwxr-xr-x   1 root    root       0 Jan 12 07:26 .dockerenv
drwxr-xr-x   2 root    root    4096 Jan 12 00:53 bin
drwxr-xr-x   2 root    root    4096 Sep 12 04:09 boot
drwxr-xr-x   5 root    root     380 Jan 12 07:26 dev
drwxr-xr-x  96 root    root    4096 Jan 12 07:26 etc
drwxr-xr-x   4 jenkins jenkins 4096 Jan 12 07:07 fuego-core
drwxr-xr-x   5 jenkins jenkins 4096 Jan 12 07:03 fuego-ro
drwxr-xr-x   2 root    root    4096 Jan 12 07:26 fuego-rw
drwxr-xr-x   2 root    root    4096 Sep 12 04:09 home
~

melco@debian8:~/$ ls -al fuego
合計 68
drwxr-xr-x 8 melco melco 4096  1月 12 16:26 .
drwxr-xr-x 4 melco melco 4096  1月 12 16:02 ..
-rw-r--r-- 1 melco melco   42  1月 12 16:03 .dockerignore
drwxr-xr-x 8 melco melco 4096  1月 12 16:03 .git
-rw-r--r-- 1 melco melco    9  1月 12 16:03 .gitignore
-rw-r--r-- 1 melco melco 1482  1月 12 16:03 CHANGELOG
-rw-r--r-- 1 melco melco 4810  1月 12 16:03 Dockerfile
-rw-r--r-- 1 melco melco 1492  1月 12 16:03 LICENSE
-rw-r--r-- 1 melco melco 3414  1月 12 16:03 README
-rw-r--r-- 1 melco melco   85  1月 12 16:03 VERSION
drwxr-xr-x 3 melco melco 4096  1月 12 16:03 docs
drwxr-xr-x 3 melco melco 4096  1月 12 16:03 frontend-install
drwxr-xr-x 2 melco melco 4096  1月 12 16:03 fuego-host-scripts
drwxr-xr-x 5 melco melco 4096  1月 12 16:03 fuego-ro
drwxr-xr-x 2 root  root  4096  1月 12 16:26 fuego-rw
-rwxr-xr-x 1 melco melco   48  1月 12 16:03 install.sh

==
“melco” user is only user on host PC which is Debian8.
I’m concerned about fuego-rw permissions and owner.

> The script is supposed to use your user's uid/gid for the jenkins
daemon.
Do you mean that I need to make “Jenkins” user on host PC?
Or
Can I use “melco” user inside Docker?

> However, I have only tested it on my pc which has a single user.
> Do you have more than one user?
I have one user. I'v not made "jenkins" user on host PC.

I’ll check other point following your advice.
Thank you so much.
Kengo


----- Original Message -----
件名: RE: [Fuego] RFC: Fuego's version up and other changes
送信者: "Daniel Sangorrin" <daniel.sangorrin@toshiba.co.jp>
送信日時: 2017年01月12日(木) 15:44:34
宛先: Ibe.Kengo@bx.MitsubishiElectric.co.jp
Cc: fuego@lists.linuxfoundation.org

> Hi Kengo-san,
>
> Thanks a lot for your feedback.
>
> > -----Original Message-----
> > From: Ibe.Kengo@bx.MitsubishiElectric.co.jp [mailto:Ibe.Kengo@bx.
MitsubishiElectric.co.jp]
> > Sent: Thursday, January 12, 2017 2:52 PM
> > To: Daniel Sangorrin
> > Cc: fuego@lists.linuxfoundation.org
> > Subject: Re: [Fuego] RFC: Fuego's version up and other changes
> >
> > Hi, Daniel-san.
> >
> > I’m very interested in your work!
> > So I tried to run your build scripts to create Docker image today,
> > then I could run new Fuego.
> > And, I added Docker node and test cases to use following command.
> > ==
> >   $ git clone --branch next https://bitbucket.org/nirrognas/fuego.git

> >   $ git clone --branch next https://bitbucket.org/nirrognas/fuego-core.git

> >
> >   $ cd fuego/
> >   $ ./install.sh
> >   $ ./fuego-host-scripts/docker-create-container.sh
> >   $ ./fuego-host-scripts/docker-start-container.sh
> >   docker# fuego-create-node --board docker
> >   docker# fuego-create-jobs --board docker --testplan testplan_
docker
> > --distrib nosyslogd.dist
> > ==
> >
> > I can see  new node and new test jobs.
> > But, I can’t run tests like Dhrystone on Docker.
> >
> > So far, I had one small problem that is “Failed to mkdirs: /fuego-rw
/
> > buildzone”
> > This reason is the permission or owner of “fuego-rw”,
> > so I added the write permission to “fuego-rw” diredtory.
>
> Humm You should not need to change any permissions.
> The script is supposed to use your user's uid/gid for the jenkins
daemon.
> However, I have only tested it on my pc which has a single user.
> Do you have more than one user? Could you check that the jenkins uid/
gid
> is the same as yours? (you can check on /etc/passwd inside and outside
docker)
> Please also check that the fuego-rw's owner is your user (e.g.: don't
git clone with
> a different user or root)
>
> > I have solved this problem.
> >
> > After that, I got the error message like following in console log.
> > ====
> > Started by user anonymous
> > Building remotely on docker in workspace /fuego-rw/buildzone
> > [buildzone] $ /bin/sh -xe /tmp/hudson1255554151521556820.sh
> > + export Reboot=false
> > + Reboot=false
> > + export Rebuild=true
> > + Rebuild=true
> > + export Target_Cleanup=true
> > + Target_Cleanup=true
> > + export TESTDIR=Benchmark.Dhrystone
> > + TESTDIR=Benchmark.Dhrystone
> > + export TESTNAME=Dhrystone
> > + TESTNAME=Dhrystone
> > + export DISTRIB=nosyslogd.dist
> > + DISTRIB=nosyslogd.dist
> > + export TESTPLAN=testplan_docker
> > + TESTPLAN=testplan_docker
> > + timeout --signal=9 3m /bin/bash
> > /fuego-core/engine/tests/Benchmark.Dhrystone/Dhrystone.sh
> > board overlay: boards/docker.board
> > using boards/docker.board board overlay
> > using nosyslogd.dist overlay
> > BATCH_TESTPLAN is not set, using testplan_docker.json testplan
> > Traceback (most recent call last):
> >   File "/fuego-core/engine/scripts/ovgen/ovgen.py", line 615, in <
module
> > >
> >     run()
> >   File "/fuego-core/engine/scripts/ovgen/ovgen.py", line 607, in run
> >     generateProlog(output, ofcls, classes, testPlans, testSpecs)
> >   File "/fuego-core/engine/scripts/ovgen/ovgen.py", line 375, in
> > generateProlog
> >     outfile = open(outFilePath, "w")
> > IOError: [Errno 2] No such file or directory: '/fuego-rw/work/docker
_
> > prolog.sh'
> >
> > *** ABORTED ***
> >
> > Fuego error reason: Error while prolog.sh file generation
> >
> > Build step 'Execute shell' marked build as failure
> > [description-setter] Description set:
> > Finished: FAILURE
> > ====
> >
> > Did I miss to run test cases on Docker node?
> > If you know this solution, could you give me some advice?
>
> Could you check that fuego-rw is correctly mounted inside docker?
> outside-docker$ touch fuego-rw/hoge
> inside-docker$ ls /fuego-rw
> hoge <-- does it appear?
>
> On my PC (ubuntu 16.04, docker version 1.12.3 ) it's always succesful
so I will
> try on a different one. Which OS and docker version are you using?
>
> Thanks,
> Daniel
>
> > Thank you.
> >
> > Best Regard.
> > Kengo Ibe
> >
> > ----- Original Message -----
> > 件名: [Fuego] RFC: Fuego's version up and other changes
> > 送信者: "Daniel Sangorrin" <daniel.sangorrin@toshiba.co.jp>
> > 送信日時: 2017年01月11日(水) 09:28:07
> > 宛先: "Bird, Timothy" <Tim.Bird@am.sony.com>, fuego@lists.
> > linuxfoundation.org
> >
> > > Hi everyone,
> > >
> > > I've been working on Fuego's upgrade for a few weeks, and in the
> > process I
> > > have made quite a few changes.
> > > You can check it by following these instructions. I'd really
> > appreciate
> > > your feedback:
> > >
> > > Quickstart:
> > >   $ git clone --branch next https://bitbucket.org/nirrognas/fuego.git

> > >   $ git clone --branch next https://bitbucket.org/nirrognas/fuego-core.git

> >
> > >   $ cd fuego/
> > >   $ ./install.sh
> > >   $ ./fuego-host-scripts/docker-create-container.sh
> > >   $ ./fuego-host-scripts/docker-start-container.sh
> > >   docker# fuego-create-node --board docker
> > >   docker# fuego-create-jobs --board docker --testplan testplan_
docker
> > > --distrib nosyslogd.dist
> > >   Then, start the "docker.testplan_docker.batch" job which will
> > trigger
> > > the rest of jobs.
> > >
> > > Here is a list of the most fundamental modifications I've added:
> > > - I automatized the version upgrade process. So far I have updated
> > Jenkins
> > > 3 times quite smoothly.
> > >    The current version is the latest LTS version (2.31.1 LTS)
> > > - I reduced plugin dependencies to the minimum (only 2, and they
can
> > be
> > > made optional).
> > > - I removed dependencies on all groovy scripts.
> > > - Userdata is gone. Instead we now have fuego-ro and fuego-rw,
which
> > > together with fuego-core
> > >    are mounted as external docker volumes. Only fuego-rw, which
> > contains
> > > logs and build folders,
> > >    is mounted in RW mode. I also fixed the uid/gid of jenkins so
that
> > it
> > > matches the one in the host.
> > >    This means you can develop comfortably on your host, with GUI
tools,
> > > and don't fear a buggy
> > >    script deleting your folders.
> > > - I added a  tool for generating jobs from testplans.  Creating
jobs
> > from
> > > testplans is powerful.
> > >    It allows you, for example, to easily specify the timeout for
each
> > test
> > > on your board.
> > >    The tool also generates the corresponding batch job. For
example,
> > you
> > > can easily trigger all
> > >    tests for your board and a specific testplan periodically.
> > >    [Note] This will also enable the creation of scripts for
comparing
> > test
> > > results across
> > >    different boards and test parameters (on my TODO list).
> > >
> > > Other less fundamental changes include:
> > > - I added support for using the docker container itself as a
target
> > board
> > > (e.g.: for a quickstart or unit tests)
> > > - I fixed the flot plugin (java and javascript fixes)
> > > - Now you can click on a node and see which jobs (and testplans)
are
> > > assigned to your board. This was
> > >   one of my old feature requests and makes Fuego's GUI easier to
use.
> > > - I added quite a few fixes and improvements to the core engine
> > scripts
> > > and tests (too detailed to describe here).
> > > - I added Excel output support for IOzone
> > > - Faster docker build time (ARMhf compiler installation is now
> > optional,
> > > no latex..)
> > > - I put a fixed name to the fuego container, instead of the
> > > "last_container_id" file.
> > > - I removed the inotify script
> > > - I added scripts for easily removing the docker container/image.
> > >
> > > I have to split the current "huge" patch into smaller chunks and
test
> > it
> > > further but it would
> > > be nice to get your feedback about the approach in general.
> > >
> > > Tim: I haven't updated ftc nor your "Christmas commits" yet.
> > >
> > > Best regards
> > > Daniel
> > >
> > >
> > > _______________________________________________
> > > Fuego mailing list
> > > Fuego@lists.linuxfoundation.org
> > > https://lists.linuxfoundation.org/mailman/listinfo/fuego
> > >
> >
>
>
>
>



  reply	other threads:[~2017-01-12  8:15 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-11  0:28 [Fuego] RFC: Fuego's version up and other changes Daniel Sangorrin
2017-01-12  5:51 ` Ibe.Kengo
2017-01-12  6:44   ` Daniel Sangorrin
2017-01-12  8:15     ` Ibe.Kengo [this message]
2017-01-12  8:45       ` Daniel Sangorrin
2017-01-12  9:04         ` Ibe.Kengo
2017-01-12  9:18           ` Daniel Sangorrin
2017-01-13  1:02     ` Bird, Timothy
2017-01-13  1:29       ` Daniel Sangorrin
2017-01-13  1:37         ` Bird, Timothy
2017-01-13  1:45           ` Daniel Sangorrin
2017-01-13  1:57             ` Bird, Timothy
2017-01-13  2:05               ` Daniel Sangorrin
2017-01-13  3:34                 ` Bird, Timothy
2017-01-13  4:36                   ` Daniel Sangorrin
2017-01-20  0:53 ` [Fuego] " Bird, Timothy
2017-01-20  7:09   ` Daniel Sangorrin
2017-01-28  2:14     ` Bird, Timothy
2017-01-31  1:56       ` Daniel Sangorrin
2017-01-31 20:54         ` Jan-Simon Möller
2017-02-02  1:25           ` Bird, Timothy
2017-02-02  5:49             ` Daniel Sangorrin
2017-02-02  9:50               ` Jan-Simon Möller
2017-01-31 23:15         ` Jan-Simon Möller
2017-02-01  0:56           ` Daniel Sangorrin
2017-02-01 10:46             ` Jan-Simon Möller
2017-02-02  1:57               ` Bird, Timothy
2017-02-02  6:06                 ` Daniel Sangorrin
2017-02-03  1:04                   ` Daniel Sangorrin
2017-02-13  3:51                     ` Daniel Sangorrin
2017-02-14 19:55                       ` Bird, Timothy
2017-02-15 18:39                         ` Kevin Hilman
2017-02-02  9:57                 ` Jan-Simon Möller
2017-02-02  5:45               ` Daniel Sangorrin
2017-02-02  1:35           ` Bird, Timothy
2017-02-02  5:52             ` Daniel Sangorrin
2017-02-02 10:04             ` Jan-Simon Möller
2017-02-02 20:51             ` Kevin Hilman
2017-02-02 22:16               ` Bird, Timothy
2017-02-02 23:37                 ` Kevin Hilman
2017-02-04  0:07                 ` Jan-Simon Möller
2017-02-07  1:56                   ` Daniel Sangorrin
2017-02-02  1:17         ` Bird, Timothy
2017-01-23 17:28 [Fuego] RFC: " Jan-Simon Möller
2017-01-24 18:20 ` Bird, Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170112081552.00007D82.0693@bx.MitsubishiElectric.co.jp \
    --to=ibe.kengo@bx.mitsubishielectric.co.jp \
    --cc=daniel.sangorrin@toshiba.co.jp \
    --cc=fuego@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.