Re: [PATCH] Use local copy of kernel-ci if present
Wolfgang Mauerer <wm@...>
Am 19/01/2017 um 15:57 schrieb Daniel Wagner:
In order to develop or debug the setup we should allow to a developerI've had to read the last sentence for a couple of times before I could make sense of it. Perhaps something along the lines of 'The integration scripts test if the repos are present in the shared folder. They are used as source for "git clone" in this case.' the patch as such seems most helpful to me -- struggling with modifications that do not render any effect because sources are pulled from a differnet source have bitten me quite a few times when working with kernelci. Thanks, Wolfgang
|
|
[PATCH] Use local copy of kernel-ci if present
Daniel Wagner <daniel.wagner@...>
In order to develop or debug the setup we should allow to a developer
to use local copy of the sources. This is done by cloning all the remote repos to the project main folder. This folder is shared with the VM. The intergration-scripts are testing if those repos are in the shared folder than git clone uses this as source. To simplify the developer setup a simple setup-dev-env.sh script is added. Note the current path should be the top folder of the project. Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com> --- Hi, This helped me to quite a bit to get things tested in a more simpler way. What do you think? cheers, daniel integration-scripts/install_backend.sh | 8 +++++++- integration-scripts/install_build_script.sh | 9 ++++++++- integration-scripts/install_frontend.sh | 8 +++++++- scripts/setup-dev-env.sh | 11 +++++++++++ 4 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 scripts/setup-dev-env.sh diff --git a/integration-scripts/install_backend.sh b/integration-scripts/install_backend.sh index 72a974033a3c..157e7184e349 100755 --- a/integration-scripts/install_backend.sh +++ b/integration-scripts/install_backend.sh @@ -4,7 +4,13 @@ # Install kernelci backend cd $HOME && mkdir git-repos && cd git-repos -git clone https://github.com/kernelci/kernelci-backend-config.git kernelci-backend + +GIT_SRC="https://github.com/kernelci/kernelci-backend-config.git" +if [ -d /vagrant/kernelci-backend-config ]; then + GIT_SRC=/vagrant/kernelci-backend-config +fi +git clone $GIT_SRC kernelci-backend + cp /vagrant/config/secrets-backend.yml kernelci-backend/secrets.yml # Fixme: Don't let ansible try to create the file in the first place. diff --git a/integration-scripts/install_build_script.sh b/integration-scripts/install_build_script.sh index 322619317af6..879aaed01792 100755 --- a/integration-scripts/install_build_script.sh +++ b/integration-scripts/install_build_script.sh @@ -3,7 +3,14 @@ # Copyright (C) 2016, Siemens AG, Wolfgang Mauerer <wolfgang.mauerer@siemens.com> # SPDX-License-Identifier: Apache-2.0 -cd $HOME && git clone https://github.com/kernelci/kernelci-build.git +cd $HOME + +GIT_SRC="https://github.com/kernelci/kernelci-build.git" +if [ -d /vagrant/kernelci-build ]; then + GIT_SRC=/vagrant/kernelci-build +fi +git clone $GIT_SRC + cd kernelci-build MASTER_KEY=`cat $HOME/backend-admin-token.txt` diff --git a/integration-scripts/install_frontend.sh b/integration-scripts/install_frontend.sh index 48ab91ab83ce..251ef89d28f3 100755 --- a/integration-scripts/install_frontend.sh +++ b/integration-scripts/install_frontend.sh @@ -4,7 +4,13 @@ # Install kernelci frontend cd $HOME/git-repos -git clone https://github.com/kernelci/kernelci-frontend-config.git kernelci-frontend + +GIT_SRC="https://github.com/kernelci/kernelci-frontend-config.git" +if [ -d /vagrant/kernelci-frontend-config ]; then + GIT_SRC=/vagrant/kernelci-frontend-config +fi +git clone $GIT_SRC kernelci-frontend + sed -i kernelci-frontend/roles/install-app/tasks/main.yml \ -e 's/kernelci\/kernelci-frontend.git/siemens\/kernelci-frontend.git/' diff --git a/scripts/setup-dev-env.sh b/scripts/setup-dev-env.sh new file mode 100644 index 000000000000..59c13b233065 --- /dev/null +++ b/scripts/setup-dev-env.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ ! -f "Vagrantfile" ]; then + echo "script is supposed to be run from the top folder where" + echo "the Vagrantfile is." + exit 1 +fi + +git clone https://github.com/kernelci/kernelci-backend-config.git +git clone https://github.com/kernelci/kernelci-build.git +git clone https://github.com/kernelci/kernelci-frontend-config.git -- 2.9.3
|
|
Re: kernelci setup fails
Don Brown <don.f.brown@...>
Hi Everyone, I'm reporting on 2 issues today: 1. Re: kernelci setup fails 2. Re: Kernel-CI Frontend broken links to build.log et al. ----- #1 I have fixed the issue of the Kernel-CI Virtual Machine failing to boot on the 'python3-setproctitle' and various other libraries. You can read about it here: https://gitlab.com/cip-project/testing/issues/12 The TL;DR is that the kernelci_backend was broken between 12-Dec-2016 and the current version. I found that by using the 12-Dec-2016 commit, the backend booted up just fine. So, we are back to where we were at the end of December where we can create builds and view them on the Web Frontend, but the links to the build.log, kernel.config, kernel image and dtbs are still broken ----- #2 I have tracked down the general area where the links to the build.log, kernel.config, kernel image and dtbs are broken. I just need someone who knows the code to help fix it. You can read about it here: https://gitlab.com/cip-project/testing/issues/2 Sorry, there is no TL;DR for this one. Sincerely, Don Brown. PMP don.f.brown@... Mobile: (317) 560-0513 Here's to Life, Linux and the Pursuit of Happiness
On Tue, Jan 17, 2017 at 12:14 PM, <cip-dev-request@...> wrote: Send cip-dev mailing list submissions to
|
|
Re: kernelci setup fails
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
On 17/01/17 17:32, Daniel Wagner wrote: Hi Don,until then... We have discussed what to do. There are several options: 1 Make Python 3.5.2 work on trusty. 2 Move on to Ubuntu 16.04 3 Move to an in-between version. 4 Try to move it into Debian so we can go for a single VM for the whole kernelci tolling. Don is describing in the gitlab ticket his early tries of each option to determine which way to go. Although #4 is the desired one, it seems the most difficult one as well, so we decided to focus on the initial three. We want to have the system working first and then we will figure out how we can simplify the deployment. Best Regards -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
Re: kernelci setup fails
Daniel Wagner <daniel.wagner@...>
On 01/17/2017 03:43 PM, Daniel Wagner wrote:
http://packages.ubuntu.com/search?keywords=python3-setproctitleI gave it a try, no luck though: ==> default: TASK [install-deps : Install MongoDB] ****************************************** ==> default: failed: [kernel-ci-backend] (item=[u'mongodb-org', u'libsnappy1']) => {"failed": true, "item": ["mongodb-org", "libsnappy1"], "msg": "No package matching 'libsnappy1' is available"} So I am stuck at the same level as Don is. Anyway, I was wondering how to be able to have local copies of the kernelci code and use that one as source instead of the hard coded git urls. It seems rather hard to work on the setup if you can't change it :) What about having an option which mounts the local kernelci repos into the virtual machine? Obviously, the kernelci ansible script would also need to be modified to allow overwrites. Thanks, Daniel
|
|
Re: kernelci setup fails
Daniel Wagner <daniel.wagner@...>
Hi Don,
On 01/17/2017 05:04 PM, Don Brown wrote: I have the same problem and worked on it yesterday from several angles.I'll create a gitlab account soon, so that I can collaborate via the ticket system. Thanks. Daniel
|
|
Re: kernelci setup fails
Don Brown <don.f.brown@...>
Hi Daniel, I have the same problem and worked on it yesterday from several angles. My notes are logged in Issue #12 in the GitLab repo. The link is: Don Brown. PMP don.f.brown@... Mobile: (317) 560-0513 Here's to Life, Linux and the Pursuit of Happiness
On Tue, Jan 17, 2017 at 7:00 AM, <cip-dev-request@...> wrote: Send cip-dev mailing list submissions to
|
|
Re: kernelci setup fails
Daniel Wagner <daniel.wagner@...>
Hi Agustin,
On 01/17/2017 03:05 PM, Agustin Benito Bethencourt wrote: maybe this helps?Indeed the second bug report in the ticket is the problem I see too. http://packages.ubuntu.com/search?keywords=python3-setproctitle xenial (16.04LTS) (python): A setproctitle implementation for Python (Python 3) [universe] 1.1.8-1build2: amd64 arm64 armhf i386 powerpc ppc64el s390x yakkety (16.10) (python): A setproctitle implementation for Python (Python 3) 1.1.8-1ubuntu2: amd64 arm64 armhf i386 powerpc ppc64el s390x zesty (python): Setproctitle implementation for Python 3 1.1.10-1: amd64 arm64 armhf i386 powerpc ppc64el s390x So this package is just not part of the trusty version. Is there a specific reason to stick to trusty? Thanks, Daniel
|
|
Re: kernelci setup fails
Agustin Benito Bethencourt <agustin.benito@...>
Hi Daniel
On 17/01/17 09:49, Daniel Wagner wrote: Hi,maybe this helps? https://gitlab.com/cip-project/testing/issues/12 If this is your case, Don is on it. He talked to one of the kernelci developers, Milo Casagrande about it. -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
kernelci setup fails
Daniel Wagner <wagi@...>
Hi,
running 'vagrant up' from a clean setup consistently fails with this: ==> default: TASK [setup] ******************************************************************* ==> default: ok: [kernel-ci-backend] ==> default: ==> default: TASK [common : Tweak kernel configuration for performance] ********************* ==> default: changed: [kernel-ci-backend] ==> default: ==> default: TASK [install-deps : Install OS dependencies] ********************************** ==> default: failed: [kernel-ci-backend] (item=[u'build-essential', u'git', u'lsb-release', u'python-apt', u'python-pip', u'python-pycurl', u'python-virtualenv', u'python2.7-dev', u'sysfsutils', u'python3', u'python3-yaml', u'python3-setproctitle', u'python3-zmq']) => {"failed": true, "item": ["build-essential", "git", "lsb-release", "python-apt", "python-pip", "python-pycurl", "python-virtualenv", "python2.7-dev", "sysfsutils", "python3", "python3-yaml", "python3-setproctitle", "python3-zmq"], "msg": "No package matching 'python3-setproctitle' is available"} A quick search for setproctitle tells me it is installed via kernelci-backend-config/roles/install-deps/tasks/main.yml: - python3-setproctitle But ubuntu doesn't seem to know this package: vagrant@vagrant-ubuntu-trusty-64:~$ apt-cache search setproctitle libbsd-dev - utility functions from BSD systems - development files python-setproctitle - A setproctitle implementation for Python python-setproctitle-dbg - A setproctitle implementation for Python I haven't spend time to figure out what this package is doing or how it used. So my quick question how to fix this? cheers, daniel
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
On 16/01/17 10:35, Agustin Benito Bethencourt wrote: Hi,since there is no further feedback, I assume you will merge the patches, isn't is? -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
On 08/12/16 23:56, Ben Hutchings wrote: This is a backport of changes in 4.5 to extend the range of Addresssince there is no further feedback, I assume you me merge the patches, isn't is? Hopefully in a couple or three more weeks we can start testing it with kernelci tooling. -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Ben Hutchings <ben.hutchings@...>
On Tue, 2017-01-03 at 15:56 -0800, Kees Cook wrote:
On Mon, Dec 19, 2016 at 2:52 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:[...]On 2016-12-09 13:20, Jan Kiszka wrote: Thanks. My backports are identical aside from the placement of someHi!Did you try to discuss the back-port topic with the KSPP folks or otherI've chatted with Elena over this last week, and she talked to Kees who changes in Kconfig files, which shouldn't make a functional difference. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.
|
|
Re: CIP update 07 WK 01
Robert Marshall <robert.marshall@...>
Apologies, the following item was missed out of the report:
toggle quoted messageShow quoted text
* build artifacts - we're still unable to retrieve these and get 404 errors on selecting the link: https://gitlab.com/cip-project/testing/issues/2 Robert Marshall <robert.marshall@codethink.co.uk> writes:
* Virtual machine creation for the testing
|
|
CIP update 07 WK 01
Robert Marshall <robert.marshall@...>
* Virtual machine creation for the testing
We've created 2 vagrant instances one for kernelci and the other for lava (lava is Debian based and kernelci is ubuntu based) work is in progress on merging these to make developer setup simpler and reduce the memory requirements. https://gitlab.com/cip-project/testing/issues/7 * There's a github branch to allow the host to view the kernelci vm webserver https://github.com/RobertAJMarshall/kernelci-frontend-config/tree/external-http this will be merged with the gitlab repository when https://gitlab.com/cip-project/testing/issues/3 has been resolved. * The DeviceDictionary error https://gitlab.com/cip-project/testing/issues/5 is still outstanding * Devices have been added to lava VM but are not yet running https://gitlab.com/cip-project/testing/issues/9 * the lava gitlab and the vagrant instance now has been updated with health check tests and extra documentation. * The QEMU health check results in a KVM module not found failure https://gitlab.com/cip-project/testing/issues/8 * Discussions in progress on adding a 'howto' The developers have a document enumerating the steps involved in getting the testing environment up and running, this document will be streamlined and published to the wiki. Meanwhile, we will add the WIP content to the repository so you can follow it. * Minor additions to the wiki has been made, specially in the kernel maintenance page. Robert
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
On 03/01/17 23:56, Kees Cook wrote: On Mon, Dec 19, 2016 at 2:52 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:It does, thanks. I sent Dmitry Shmidt a mail this morning asking for this. Thanks.On 2016-12-09 13:20, Jan Kiszka wrote:Hi!On 2016-12-09 00:56, Ben Hutchings wrote:I've chatted with Elena over this last week, and she talked to Kees whoThis is a backport of changes in 4.5 to extend the range of AddressDid you try to discuss the back-port topic with the KSPP folks or other -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Kees Cook <keescook@...>
On Mon, Dec 19, 2016 at 2:52 AM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
On 2016-12-09 13:20, Jan Kiszka wrote:Hi!On 2016-12-09 00:56, Ben Hutchings wrote:I've chatted with Elena over this last week, and she talked to Kees whoThis is a backport of changes in 4.5 to extend the range of AddressDid you try to discuss the back-port topic with the KSPP folks or other The Android common kernel tree is visible here: https://android.googlesource.com/kernel/common/ In the android-4.4 branch, the backport are these: b471fcd FROMLIST: mm: ASLR: use get_random_long() 9a3fe39 FROMLIST: drivers: char: random: add get_random_long() d51891f FROMLIST: x86: mm: support ARCH_MMAP_RND_BITS. e2240a1 FROMLIST: arm64: mm: support ARCH_MMAP_RND_BITS. 25106ff FROMLIST: arm: mm: support ARCH_MMAP_RND_BITS. d49d887 FROMLIST: mm: mmap: Add new /proc tunable for mmap_base ASLR. Hopefully that helps! -Kees
-- Kees Cook Nexus Security
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
On 23/12/16 16:46, Ben Hutchings wrote: [Sorry for the delay; I haven't been feeling well.]Please do so. -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
4.4 LTS basic info
Agustin Benito Bethencourt <agustin.benito@...>
Hi,
in the previous CIP Members meeting a question was made related with the 4.4 LTS kernel EOL (end of life). I have added to the wiki basic links that answers this question. Link: https://wiki.linuxfoundation.org/civilinfrastructureplatform/cipkernelmaintenance#cip-kernel-slts-kernel Best regards -- Agustin Benito Bethencourt Principal Consultant - FOSS at Codethink agustin.benito@codethink.co.uk
|
|
Re: [PATCH 4.4-cip 0/6] Extend user-space ASLR range
Ben Hutchings <ben.hutchings@...>
[Sorry for the delay; I haven't been feeling well.]
On Fri, 2016-12-09 at 13:20 +0100, Jan Kiszka wrote: Did you try to discuss the back-port topic with the KSPP folks or otherI would normally cc the upstream developers, but I was hesitant to do so for CIP because this is not related to an official stable branch. Perhaps I should ask on the KSPP list whether a cc for such feature backports would be appreciated? On Mon, 2016-12-19 at 11:52 +0100, Jan Kiszka wrote: I've chatted with Elena over this last week, and she talked to KeesThanks for letting me know. Ben. -- Ben Hutchings Software Developer, Codethink Ltd.
|
|