]> git.apps.os.sepia.ceph.com Git - ceph-build.git/log
ceph-build.git
6 years agoadd new ceph-container-build-ceph-base-push-imgs job 1140/head
Sébastien Han [Mon, 1 Oct 2018 12:45:46 +0000 (14:45 +0200)]
add new ceph-container-build-ceph-base-push-imgs job

This job runs on a daily basis and is responsible for building ceph/base
versionned images.

Signed-off-by: Sébastien Han <seb@redhat.com>
6 years agoMerge pull request #1139 from tchaikov/dashboard-pr-sudo
Kefu Chai [Mon, 1 Oct 2018 05:11:46 +0000 (13:11 +0800)]
Merge pull request #1139 from tchaikov/dashboard-pr-sudo

ceph-dashboard-pull-requests: fix permission denied error

Reviewed-by: Laura Paduano <lpaduano@suse.com>
7 years agoceph-dashboard-pull-requests: fix permission denied error 1139/head
Kefu Chai [Sat, 29 Sep 2018 03:47:52 +0000 (11:47 +0800)]
ceph-dashboard-pull-requests: fix permission denied error

as stdout redirect is performed by the shell, and shell is launched by
the "jenkins" user, so permission denied is expected when we are trying
to create a file under /etc/yum.repos.d/. in that case, we'll have
following failure:

/tmp/jenkins8899238112048417478.sh: line 14:
/etc/yum.repos.d/google-chrome.repo: Permission denied
Build step 'Execute shell' marked build as failure

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #1138 from ceph/guits-fix_ca_pr_syntax
Sébastien Han [Fri, 28 Sep 2018 13:12:04 +0000 (15:12 +0200)]
Merge pull request #1138 from ceph/guits-fix_ca_pr_syntax

ceph-ansible: don't check for capital letter in meta directories

7 years agoceph-ansible: don't check for capital letter in meta directories 1138/head
Guillaume Abrioux [Fri, 28 Sep 2018 13:06:18 +0000 (15:06 +0200)]
ceph-ansible: don't check for capital letter in meta directories

it's expected to have capital letters in roles/*/meta/main.yml so let's
exclude this path in git_diff_to_head function.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1137 from tchaikov/wip-lang-none
Kefu Chai [Fri, 28 Sep 2018 09:45:33 +0000 (17:45 +0800)]
Merge pull request #1137 from tchaikov/wip-lang-none

scripts/build_utils.sh: add lang=none option to sources.list

Reviewed-by: Laura Paduano <lpaduano@suse.com>
7 years agoscripts/build_utils.sh: add lang=none option to sources.list 1137/head
Kefu Chai [Fri, 28 Sep 2018 03:15:01 +0000 (11:15 +0800)]
scripts/build_utils.sh: add lang=none option to sources.list

some mirrors do not contains the package description translations. when
apt tries to download the packages descriptions, it fails like:

E: Failed to fetch
http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r/dists/xenial/main/i18n/Translation-en
404  Not Found [IP: 213.180.204.183 80]
E: Some index files failed to download. They have been ignored, or old
ones used instead.

for more info, see sources.list(5) and apt.conf(5). the default value
of "lang" is set by Acquire::Languages, which is in turn "en" and
"environment" by default. we need to override them with "none".

Fixes #1136
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #1135 from callithea/wip-ceph-dashboard-pull-requests-https
Alfredo Deza [Thu, 27 Sep 2018 13:02:10 +0000 (09:02 -0400)]
Merge pull request #1135 from callithea/wip-ceph-dashboard-pull-requests-https

ceph-dashboard-pull-requests: switch to https for Chrome URLs

7 years agoceph-dashboard-pull-requests: switch to https for Chrome URLs 1135/head
Laura Paduano [Wed, 26 Sep 2018 08:32:04 +0000 (10:32 +0200)]
ceph-dashboard-pull-requests: switch to https for Chrome URLs

Signed-off-by: Laura Paduano <lpaduano@suse.com>
7 years agoMerge pull request #1134 from callithea/wip-ceph-dashboard-pull-request-fix
Alfredo Deza [Mon, 24 Sep 2018 17:46:16 +0000 (13:46 -0400)]
Merge pull request #1134 from callithea/wip-ceph-dashboard-pull-request-fix

ceph-dashboard-pull-requests: fix another permission denied issue

7 years agoceph-dashboard-pull-requests: fix another permission denied issue 1134/head
Laura Paduano [Mon, 24 Sep 2018 15:02:02 +0000 (17:02 +0200)]
ceph-dashboard-pull-requests: fix another permission denied issue
when using ``apt-key add``

Signed-off-by: Laura Paduano <lpaduano@suse.com>
7 years agoMerge pull request #1133 from callithea/wip-ceph-dashboard-pull-request-fix
Alfredo Deza [Mon, 24 Sep 2018 11:35:44 +0000 (07:35 -0400)]
Merge pull request #1133 from callithea/wip-ceph-dashboard-pull-request-fix

ceph-dashboard-pull-requests: fix permission denied error

7 years agoceph-dashboard-pull-requests: fix permission denied error 1133/head
Laura Paduano [Mon, 24 Sep 2018 09:17:56 +0000 (11:17 +0200)]
ceph-dashboard-pull-requests: fix permission denied error

Signed-off-by: Laura Paduano <lpaduano@suse.com>
7 years agoMerge pull request #1132 from ceph/cv-nightly-additions
Andrew Schoen [Fri, 21 Sep 2018 14:39:17 +0000 (09:39 -0500)]
Merge pull request #1132 from ceph/cv-nightly-additions

ceph-volume-nightly: add more branches to batch tests

7 years agoceph-volume-nightly: add more branches to batch tests 1132/head
Alfredo Deza [Fri, 21 Sep 2018 11:49:48 +0000 (07:49 -0400)]
ceph-volume-nightly: add more branches to batch tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1086 from callithea/wip-ceph-dashboard-pull-requests
Alfredo Deza [Fri, 21 Sep 2018 12:38:04 +0000 (08:38 -0400)]
Merge pull request #1086 from callithea/wip-ceph-dashboard-pull-requests

ceph-dashboard-pull-requests: Jenkins job for ceph dashboard frontend (e2e) tests

7 years agoceph-dashboard-pull-requests: added inital Jenkins job for dashboard frontend (e2e... 1086/head
Laura Paduano [Mon, 23 Jul 2018 08:50:08 +0000 (10:50 +0200)]
ceph-dashboard-pull-requests: added inital Jenkins job for dashboard frontend (e2e) tests

Signed-off-by: Laura Paduano <lpaduano@suse.com>
7 years agoMerge pull request #1131 from ceph/wip-debug-mutex
Sage Weil [Thu, 20 Sep 2018 14:03:35 +0000 (09:03 -0500)]
Merge pull request #1131 from ceph/wip-debug-mutex

ceph-dev-[new-]setup/build/build: -DWITH_CEPH_DEBUG_MUTEX=ON for notcmalloc

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge branch 'master' into wip-debug-mutex 1131/head
Sage Weil [Thu, 20 Sep 2018 14:00:26 +0000 (09:00 -0500)]
Merge branch 'master' into wip-debug-mutex

7 years agoMerge pull request #1123 from tchaikov/wip-decrease-n-jobs-to-fix-oom
Alfredo Deza [Thu, 20 Sep 2018 12:11:14 +0000 (08:11 -0400)]
Merge pull request #1123 from tchaikov/wip-decrease-n-jobs-to-fix-oom

scripts/build_utils.sh: increase mem per job to 2.2GB

7 years agoscripts/build_utils.sh: increase mem per job to 2.2GB 1123/head
Kefu Chai [Thu, 13 Sep 2018 08:46:36 +0000 (16:46 +0800)]
scripts/build_utils.sh: increase mem per job to 2.2GB

it's observed that on our arm64 build host, using the existing
$total_mem/1600, n_build_jobs=37 . but we still have following error
when compiling Ceph:

virtual memory exhausted: Cannot allocate memory
make[3]: *** [src/mds/CMakeFiles/mds.dir/SnapClient.cc.o] Error 1

so increase the denominator to 2200 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #1130 from ceph/fix-signed-off-check
Ernesto Puerta [Thu, 20 Sep 2018 09:41:31 +0000 (11:41 +0200)]
Merge pull request #1130 from ceph/fix-signed-off-check

ceph-pr-commits: Fix check with many-commit PRs (3rd try)

7 years agoceph-dev-[new-]setup/build/build: -DWITH_CEPH_DEBUG_MUTEX=ON for notcmalloc
Sage Weil [Wed, 19 Sep 2018 22:24:09 +0000 (17:24 -0500)]
ceph-dev-[new-]setup/build/build: -DWITH_CEPH_DEBUG_MUTEX=ON for notcmalloc

Enable the debug ceph::mutex in the notcmalloc build.  The normal build
will use the defaults, which (if it's a Release or RelWithDebug build)
will not include extra debug checks.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-pr-commits: Fix check with many-commit PRs 1130/head
Ernesto Puerta [Thu, 13 Sep 2018 13:12:09 +0000 (15:12 +0200)]
ceph-pr-commits: Fix check with many-commit PRs

Relevant changes:
- All non-compliant commits are reported (previously, only the first
    wrong one was reported, stopping further processing).
- Signed-off-by regex put in place to check for
    <something@somewhere.tld> (including lt and gt symbols). This rule
    could be relaxed, as some commits in the past were sent without
    the enclosing <...>
- `extract_sha` function has been removed

Fixes: http://tracker.ceph.com/issues/36082
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
7 years agoMerge pull request #1129 from ceph/revert-1128-fix-signed-off-check
Ernesto Puerta [Wed, 19 Sep 2018 11:37:02 +0000 (13:37 +0200)]
Merge pull request #1129 from ceph/revert-1128-fix-signed-off-check

Revert "ceph-pr-commits: Fix check with many-commit PRs (2nd try)"

7 years agoRevert "ceph-pr-commits: Fix check with many-commit PRs (2nd try)" 1129/head
Ernesto Puerta [Wed, 19 Sep 2018 11:28:21 +0000 (13:28 +0200)]
Revert "ceph-pr-commits: Fix check with many-commit PRs (2nd try)"

7 years agoMerge pull request #1128 from ceph/fix-signed-off-check
Ernesto Puerta [Wed, 19 Sep 2018 11:22:33 +0000 (13:22 +0200)]
Merge pull request #1128 from ceph/fix-signed-off-check

ceph-pr-commits: Fix check with many-commit PRs (2nd try)

7 years agoceph-pr-commits: Fix check with many-commit PRs 1128/head
Ernesto Puerta [Thu, 13 Sep 2018 13:12:09 +0000 (15:12 +0200)]
ceph-pr-commits: Fix check with many-commit PRs

Relevant changes:
- All non-compliant commits are reported (previously, only the first
    wrong one was reported, stopping further processing).
- Signed-off-by regex put in place to check for
    <something@somewhere.tld> (including lt and gt symbols). This rule
    could be relaxed, as some commits in the past were sent without
    the enclosing <...>
- `extract_sha` function has been removed

Fixes: http://tracker.ceph.com/issues/36082
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
7 years agoMerge pull request #1127 from ceph/revert-1125-fix-signed-off-check
Ernesto Puerta [Wed, 19 Sep 2018 09:44:29 +0000 (11:44 +0200)]
Merge pull request #1127 from ceph/revert-1125-fix-signed-off-check

Revert "ceph-pr-commits: Fix check with many-commit PRs"

7 years agoRevert "ceph-pr-commits: Fix check with many-commit PRs" 1127/head
Ernesto Puerta [Wed, 19 Sep 2018 09:40:40 +0000 (11:40 +0200)]
Revert "ceph-pr-commits: Fix check with many-commit PRs"

7 years agoMerge pull request #1125 from ceph/fix-signed-off-check
Ernesto Puerta [Wed, 19 Sep 2018 09:36:29 +0000 (11:36 +0200)]
Merge pull request #1125 from ceph/fix-signed-off-check

ceph-pr-commits: Fix check with many-commit PRs

7 years agoceph-pr-commits: Fix check with many-commit PRs 1125/head
Ernesto Puerta [Thu, 13 Sep 2018 13:12:09 +0000 (15:12 +0200)]
ceph-pr-commits: Fix check with many-commit PRs

Relevant changes:
- All non-compliant commits are reported (previously, only the first
    wrong one was reported, stopping further processing).
- Signed-off-by regex put in place to check for
    <something@somewhere.tld> (including lt and gt symbols). This rule
    could be relaxed, as some commits in the past were sent without
    the enclosing <...>
- `extract_sha` function has been removed

Fixes: http://tracker.ceph.com/issues/36082
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
7 years agoMerge pull request #1126 from ceph/wip-cap-retention
Guillaume Abrioux [Tue, 18 Sep 2018 17:43:17 +0000 (19:43 +0200)]
Merge pull request #1126 from ceph/wip-cap-retention

ceph-ansible-pipeline: Match days-to-keep with ceph-ansible-prs

7 years agoceph-ansible-pipeline: Match days-to-keep with ceph-ansible-prs 1126/head
David Galloway [Tue, 18 Sep 2018 17:15:16 +0000 (13:15 -0400)]
ceph-ansible-pipeline: Match days-to-keep with ceph-ansible-prs

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #1124 from ceph/cv-target-branch
Andrew Schoen [Thu, 13 Sep 2018 12:35:18 +0000 (07:35 -0500)]
Merge pull request #1124 from ceph/cv-target-branch

ceph-volume-pr: add the TargetBranch param for manually triggering it

7 years agoceph-volume-pr: add the TargetBranch param for manually triggering it 1124/head
Alfredo Deza [Thu, 13 Sep 2018 12:19:15 +0000 (08:19 -0400)]
ceph-volume-pr: add the TargetBranch param for manually triggering it

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1122 from ceph/wip-container-ubuntu
Guillaume Abrioux [Wed, 12 Sep 2018 23:06:53 +0000 (01:06 +0200)]
Merge pull request #1122 from ceph/wip-container-ubuntu

ceph-container: Don't test Ubuntu

7 years agoceph-container: Don't test Ubuntu 1122/head
David Galloway [Wed, 12 Sep 2018 13:57:28 +0000 (09:57 -0400)]
ceph-container: Don't test Ubuntu

No longer tested on Ubuntu: https://github.com/ceph/ceph-container/pull/1167

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #1121 from ceph/log-retention
Alfredo Deza [Wed, 12 Sep 2018 11:55:51 +0000 (07:55 -0400)]
Merge pull request #1121 from ceph/log-retention

Change build discard options for ceph and ceph-volume jobs

7 years agoChange build discard options for ceph and ceph-volume jobs 1121/head
Alfredo Deza [Wed, 12 Sep 2018 11:27:58 +0000 (07:27 -0400)]
Change build discard options for ceph and ceph-volume jobs

So that it isn't limited by the number, it is limited by days only. This
will allow builds to avoid 404'ing when the limit is reached, which is
unexpected if there are too many builds and not long enough time between
them (like 100 builds in one day, but limit is 20 before discarding)

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1118 from ceph/ceph-volume-tests
Alfredo Deza [Tue, 11 Sep 2018 19:02:41 +0000 (15:02 -0400)]
Merge pull request #1118 from ceph/ceph-volume-tests

ceph-volume-nightly: add tests for batch with mixed device types

7 years agoceph-volume-nightly: add tests for batch with mixed device types 1118/head
Andrew Schoen [Thu, 6 Sep 2018 17:41:51 +0000 (12:41 -0500)]
ceph-volume-nightly: add tests for batch with mixed device types

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #1119 from ceph/disable-ceph-medic
Andrew Schoen [Mon, 10 Sep 2018 15:18:52 +0000 (10:18 -0500)]
Merge pull request #1119 from ceph/disable-ceph-medic

ceph-medic-tests: disable nightly tests

7 years agoceph-medic-tests: disable nightly tests disable-ceph-medic 1119/head
Alfredo Deza [Mon, 10 Sep 2018 15:06:19 +0000 (11:06 -0400)]
ceph-medic-tests: disable nightly tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1117 from ceph/ceph-volume-tests
Alfredo Deza [Thu, 6 Sep 2018 17:17:35 +0000 (13:17 -0400)]
Merge pull request #1117 from ceph/ceph-volume-tests

ceph-volume-ansible-pr: include the batch mixed type tests

7 years agoceph-volume-ansible-pr: include the batch mixed type tests 1117/head
Andrew Schoen [Thu, 6 Sep 2018 17:13:56 +0000 (12:13 -0500)]
ceph-volume-ansible-pr: include the batch mixed type tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #1116 from tchaikov/wip-build-with-total-memory
Alfredo Deza [Thu, 6 Sep 2018 11:55:24 +0000 (07:55 -0400)]
Merge pull request #1116 from tchaikov/wip-build-with-total-memory

ceph-*-build: evaluate num jobs using total mem not free mem

7 years agoceph-*-build: evaluate num jobs using total mem not free mem 1116/head
Kefu Chai [Thu, 6 Sep 2018 11:44:52 +0000 (19:44 +0800)]
ceph-*-build: evaluate num jobs using total mem not free mem

there is chance that the system is under extremely high load when `vmstat`
is called. so the "free memory" can not reflect the available memroy
when building Ceph. so use "total memory" instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #1114 from ceph/wip-centos-pip
Alfredo Deza [Wed, 5 Sep 2018 16:15:27 +0000 (12:15 -0400)]
Merge pull request #1114 from ceph/wip-centos-pip

ansible: Install python-pip from epel on centos slaves

7 years agoansible: Install python-pip from epel on centos slaves 1114/head
David Galloway [Tue, 4 Sep 2018 17:43:41 +0000 (13:43 -0400)]
ansible: Install python-pip from epel on centos slaves

I'm not sure why we're just now seeing this.  Perhaps it was manually
fixed on prado.ceph.com and a redeploy overwrote it?  Regardless
non-libvirt slaves are failing to join Jenkins currently.

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #1113 from ceph/group_vars_all
Sébastien Han [Tue, 28 Aug 2018 17:32:41 +0000 (10:32 -0700)]
Merge pull request #1113 from ceph/group_vars_all

ceph-ansible-pr-syntax-check: group_vars operator

7 years agoceph-ansible-pr-syntax-check: group_vars operator 1113/head
Sébastien Han [Tue, 28 Aug 2018 17:23:55 +0000 (10:23 -0700)]
ceph-ansible-pr-syntax-check: group_vars operator

When defaults/main.yml is touched we will generate 2 group_vars files,
one for all.yml.sample and one for rhcs.yml.sample, this is making the
conditional never pass since there is one more value in the count.

Basically if defaults/main.yml and osd/defaults/main.yml are touched
this will result in 3 group_vars file but the count for
defaults/main.yml is 2.

In the end we want to fail if the number of defaults/main.yml is
greather than the number of group_vars files.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1112 from ceph/group_var
Sébastien Han [Tue, 28 Aug 2018 16:51:25 +0000 (18:51 +0200)]
Merge pull request #1112 from ceph/group_var

ceph-ansible-pr-syntax-check: fix typo

7 years agoceph-ansible-pr-syntax-check: fix typo 1112/head
Sébastien Han [Tue, 28 Aug 2018 16:42:45 +0000 (09:42 -0700)]
ceph-ansible-pr-syntax-check: fix typo

The directory we are looking for is called group_vars not group_var

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1105 from ceph/wip-iscsi-release
David Galloway [Tue, 28 Aug 2018 15:40:08 +0000 (11:40 -0400)]
Merge pull request #1105 from ceph/wip-iscsi-release

Add job for ceph-iscsi-* stable releases

7 years agoAdd job for ceph-iscsi-* stable releases 1105/head
David Galloway [Mon, 4 Jun 2018 14:36:54 +0000 (10:36 -0400)]
Add job for ceph-iscsi-* stable releases

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #1111 from ceph/ceph-volume-tests
David Galloway [Mon, 27 Aug 2018 16:15:01 +0000 (12:15 -0400)]
Merge pull request #1111 from ceph/ceph-volume-tests

ceph-volume-ansible-prs: enable tests on centos 7

7 years agoceph-volume-ansible-prs: enable tests on centos 7 1111/head
Andrew Schoen [Mon, 27 Aug 2018 15:28:20 +0000 (10:28 -0500)]
ceph-volume-ansible-prs: enable tests on centos 7

Running the tests on Centos 7.4 hosts allows the vagrant vms
to boot properly.

See:
https://github.com/ceph/mita/pull/126/commits/35d53b13e177831306b0b401b0b5d0fafecf4b78

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #1103 from tchaikov/wip-less-make-j
Kefu Chai [Sat, 25 Aug 2018 04:06:50 +0000 (12:06 +0800)]
Merge pull request #1103 from tchaikov/wip-less-make-j

ceph-pull-requests-arm64: set jobs number according to free memory

7 years agoMerge pull request #1110 from ceph/wip-target-branch
Alfredo Deza [Fri, 24 Aug 2018 18:27:41 +0000 (14:27 -0400)]
Merge pull request #1110 from ceph/wip-target-branch

ceph-volume-ansible-prs: require ghprbTargetBranch when manually triggering

7 years agoceph-volume-ansible-prs: require ghprbTargetBranch when manually triggering 1110/head
Alfredo Deza [Fri, 24 Aug 2018 18:18:55 +0000 (14:18 -0400)]
ceph-volume-ansible-prs: require ghprbTargetBranch when manually triggering

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1109 from ajarr/nfs-ganesha-lttng
Patrick Donnelly [Fri, 24 Aug 2018 16:56:05 +0000 (09:56 -0700)]
Merge pull request #1109 from ajarr/nfs-ganesha-lttng

nfs-ganesha: build with LTTNG

7 years agoceph-*-build: set jobs number according to free memory 1103/head
Kefu Chai [Wed, 22 Aug 2018 07:27:32 +0000 (15:27 +0800)]
ceph-*-build: set jobs number according to free memory

limits the job number of building ceph/ceph pull requests and deb packages
with the (size of free memory in MB)/1800.

guess we are using more compile-time optimizations now, so to compile
ceph source requires more memory. sometimes, a single cc1plus takes
more than 3GB memeory. that's why we are seeing more and more OOM
in our arm64 builders. following is a sample from omani09 -- a
arm64 builder compiling a ceph/ceph PR targeting master:

30474 jenkins+  20   0 2573092 2.388g  16220 R 100.0  3.8   9:11.04 cc1plus
34339 jenkins+  20   0 3279768 3.005g  16296 R 100.0  4.8   5:07.63 cc1plus
36382 jenkins+  20   0  322276 278932  12740 R 100.0  0.4   0:09.78 cc1plus
...

also, the performance of over-all compiling is also impacted by the I/O
subsystem. so lower the number of job could actually reduce the time
of the compiling processes to completing for the I/O queue of local
device. so we can use an conservative number for calc an upper bound of
job number for "make" instead using $(nproc). in this change,
$(free_memory_in_mega / 1800) is used as the upper limit of n_jobs.

on a typical arm64 builder with 48 cores and 64 GB mem, the n_jobs is
now 34 .

when building rpm packages, the number of build jobs is specified by
_smp_mflags macro, which is defined by
/usr/lib/rpm/platform/*/macros and /usr/lib/rpm/redhat/macros.
see
https://github.com/rpm-software-management/rpm/blob/master/platform.in#L53
and rhel/centos use following patch
https://git.centos.org/blob/rpms!redhat-rpm-config.git/eaaa6282147d0797a3733f3b91671b7a0752d448/SOURCES!redhat-rpm-config-9.1.0-ncpus-max.patch;jsessionid=xv8lqw4ipwwetge0i19ejo9t

so one cannot build rpm packages on centos/rhel with more than 16 jobs
when using redhat-rpm-config. and 16 is a safe number for us.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agonfs-ganesha: for shaman, build with LTTNG 1109/head
Ramana Raja [Fri, 24 Aug 2018 13:31:42 +0000 (19:01 +0530)]
nfs-ganesha: for shaman, build with LTTNG

... and install required LTTNG libraries

Signed-off-by: Ramana Raja <rraja@redhat.com>
7 years agoMerge pull request #1108 from ceph/ceph-volume-tests
Alfredo Deza [Fri, 24 Aug 2018 13:16:38 +0000 (09:16 -0400)]
Merge pull request #1108 from ceph/ceph-volume-tests

ceph-volume: deploy the target branch, not the source branch

7 years agoceph-volume-ansible-prs: disable centos7 tests 1108/head
Andrew Schoen [Fri, 24 Aug 2018 12:54:46 +0000 (08:54 -0400)]
ceph-volume-ansible-prs: disable centos7 tests

We're having infrastructure issues with OVH and the centos7 vagrant
vm kernel panics after booting. Disabling these for now until the issue
can be resolved.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume-ansible-prs: deploy the target branch, not the source branch
Andrew Schoen [Wed, 22 Aug 2018 19:38:47 +0000 (15:38 -0400)]
ceph-volume-ansible-prs: deploy the target branch, not the source branch

We're going to start deploying the target branch, the branch we're
merging PRs into, instead of the source branch. This way we don't have to
wait on packages as we can assume there is somethign already available
for the target branch. The ceph-volume code we're testing will be
rsynced to the testing nodes from the source branch.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #1107 from ceph/wip-no-ovh
Sébastien Han [Fri, 24 Aug 2018 11:21:35 +0000 (13:21 +0200)]
Merge pull request #1107 from ceph/wip-no-ovh

ceph-ansible: Run all tests on smithi

7 years agoceph-ansible: Run all tests on smithi 1107/head
David Galloway [Thu, 23 Aug 2018 18:46:05 +0000 (14:46 -0400)]
ceph-ansible: Run all tests on smithi

OVH nodes cause vagrant boxes to kernel panic

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #1104 from ceph/ceph-release
Erwan Velu [Wed, 22 Aug 2018 11:26:45 +0000 (13:26 +0200)]
Merge pull request #1104 from ceph/ceph-release

Ceph release

7 years agoceph-ansible-pr-syntax-chec: add test_ceph_release_in_ceph_default 1104/head
Sébastien Han [Wed, 22 Aug 2018 09:30:53 +0000 (11:30 +0200)]
ceph-ansible-pr-syntax-chec: add test_ceph_release_in_ceph_default
function

This new function searches for statements like '    -
ceph_release_num[ceph_release] ' in the ceph-defaults role. These must
never be used since the ceph_release is set by role running after
ceph-defaults.
However, the ceph-ansible ci passes this variable when running so it's
always defined, even before ceph-defaults runs. This is particularity
from our CI. So this is done, our Ci won't complain but general users
will end with an error like "'dict object' has no attribute" since the
variable does not exist at the time of the ceph-defaults play.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoceph-ansible-pr-syntax-chec: use the two new functions
Sébastien Han [Wed, 22 Aug 2018 09:29:11 +0000 (11:29 +0200)]
ceph-ansible-pr-syntax-chec: use the two new functions

The code now uses git_diff_to_head and match_file functions.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoceph-ansible-pr-syntax-check: add two functions to search files
Sébastien Han [Wed, 22 Aug 2018 09:25:52 +0000 (11:25 +0200)]
ceph-ansible-pr-syntax-check: add two functions to search files

Adding 2 new functions:

* git_diff_to_head which prints the diff for the current new code
* match_file which searches and print a particular file that was
modified by the current code.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1102 from ceph/pipeline-osd
David Galloway [Tue, 21 Aug 2018 11:54:18 +0000 (07:54 -0400)]
Merge pull request #1102 from ceph/pipeline-osd

ceph-ansible-pipeline: reduce pipeline workload

7 years agoceph-ansible-pipeline: reduce pipeline workload 1102/head
Sébastien Han [Mon, 20 Aug 2018 10:40:15 +0000 (12:40 +0200)]
ceph-ansible-pipeline: reduce pipeline workload

We now play the OSD scenarios only when
roles/ceph-defaults/tasks/facts.yml|roles/ceph-osd|ceph-validate are
touched.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1101 from ceph/ceph-ansible-pr-syntax-check-version
Sébastien Han [Mon, 20 Aug 2018 08:45:40 +0000 (10:45 +0200)]
Merge pull request #1101 from ceph/ceph-ansible-pr-syntax-check-version

ceph-ansible-pr-syntax-check: use latest ansible version

7 years agoceph-ansible-pr-syntax-check: use latest ansible version 1101/head
Sébastien Han [Mon, 20 Aug 2018 08:39:21 +0000 (10:39 +0200)]
ceph-ansible-pr-syntax-check: use latest ansible version

There is no reason to pin to an old ansible version. Since this is doing
syntax checking we should have the latest Ansible version to compare
against our latest ceph-ansible code.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1100 from ceph/cv-batch-nightly
Andrew Schoen [Fri, 17 Aug 2018 19:53:52 +0000 (19:53 +0000)]
Merge pull request #1100 from ceph/cv-batch-nightly

ceph-volume-nightly add batch tests for master

7 years agoceph-volume-nightly add batch tests for master 1100/head
Alfredo Deza [Wed, 15 Aug 2018 11:29:00 +0000 (07:29 -0400)]
ceph-volume-nightly add batch tests for master

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1099 from ceph/capital-letters-additions-only
Erwan Velu [Tue, 14 Aug 2018 14:09:31 +0000 (16:09 +0200)]
Merge pull request #1099 from ceph/capital-letters-additions-only

ceph-ansible-pr-syntax-check: do not check for removed lines

7 years agoceph-ansible-pr-syntax-check: do not check for removed lines 1099/head
Sébastien Han [Mon, 13 Aug 2018 16:36:09 +0000 (18:36 +0200)]
ceph-ansible-pr-syntax-check: do not check for removed lines

The git show was returning - and + lines, we only want to check for
lines that were added not removed.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1098 from ceph/wip-cv-batch-underscores
Alfredo Deza [Mon, 13 Aug 2018 14:27:05 +0000 (10:27 -0400)]
Merge pull request #1098 from ceph/wip-cv-batch-underscores

ceph-volume-ansible-prs: use underscores for scenarios

7 years agoceph-volume-ansible-prs: use underscores for scenarios 1098/head
Alfredo Deza [Mon, 13 Aug 2018 12:51:56 +0000 (08:51 -0400)]
ceph-volume-ansible-prs: use underscores for scenarios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1097 from ceph/capital-letters
Sébastien Han [Mon, 13 Aug 2018 12:56:24 +0000 (14:56 +0200)]
Merge pull request #1097 from ceph/capital-letters

ceph-ansible-pr-syntax-check: add cbheck for coding convention

7 years agoceph-ansible-pr-syntax-check: add cbheck for coding convention 1097/head
Sébastien Han [Mon, 13 Aug 2018 12:34:52 +0000 (14:34 +0200)]
ceph-ansible-pr-syntax-check: add cbheck for coding convention

One of our convention in ceph-ansible is to not use capital letters in
task's name. So let's hardcode it in the initial phase of the pipeline.
ALso, this will let user discover what's wrong without us doing the
review and finding the problem.

Signed-off-by: Sébastien Han <seb@redhat.com>
7 years agoMerge pull request #1095 from ceph/wip-cv-batch
Andrew Schoen [Thu, 9 Aug 2018 15:23:26 +0000 (15:23 +0000)]
Merge pull request #1095 from ceph/wip-cv-batch

ceph-volume-ansible-prs: support batch scenarios

7 years agoceph-volume-ansible-prs: support batch scenarios 1095/head
Alfredo Deza [Thu, 9 Aug 2018 14:29:28 +0000 (10:29 -0400)]
ceph-volume-ansible-prs: support batch scenarios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #1094 from ceph/guits-add_params_individual_scenario_testing
Sébastien Han [Tue, 7 Aug 2018 15:14:23 +0000 (17:14 +0200)]
Merge pull request #1094 from ceph/guits-add_params_individual_scenario_testing

ceph-ansible: add docker params for individual scenario testing

7 years agoceph-ansible: add docker params for individual scenario testing 1094/head
Guillaume Abrioux [Tue, 7 Aug 2018 15:02:00 +0000 (17:02 +0200)]
ceph-ansible: add docker params for individual scenario testing

So we can test a specific docker image.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1093 from ceph/guits-fix_find_latest_tag
Guillaume Abrioux [Wed, 25 Jul 2018 09:28:16 +0000 (11:28 +0200)]
Merge pull request #1093 from ceph/guits-fix_find_latest_tag

ceph-ansible-nightly: take the first tag only in find_latest_tag

7 years agoceph-ansible-nightly: take the first tag only in find_latest_tag 1093/head
Guillaume Abrioux [Wed, 25 Jul 2018 09:21:36 +0000 (11:21 +0200)]
ceph-ansible-nightly: take the first tag only in find_latest_tag

`find_latest_tag()` might return more than 1 tag if two tags match the
`jq` query in a same page of results. This breaks the nightly jobs.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
7 years agoMerge pull request #1092 from ceph/wip-ceph-iscsi-cli-flake8
Jason Dillaman [Tue, 24 Jul 2018 19:11:00 +0000 (15:11 -0400)]
Merge pull request #1092 from ceph/wip-ceph-iscsi-cli-flake8

ceph-iscsi-cli-flake8: initial version

7 years agoMerge branch 'master' into wip-ceph-iscsi-cli-flake8 wip-ceph-iscsi-cli-flake8 1092/head
Jason Dillaman [Tue, 24 Jul 2018 19:06:19 +0000 (15:06 -0400)]
Merge branch 'master' into wip-ceph-iscsi-cli-flake8

7 years agoMerge pull request #1091 from ceph/wip-ceph-iscsi-config-flake8
Alfredo Deza [Tue, 24 Jul 2018 18:44:43 +0000 (14:44 -0400)]
Merge pull request #1091 from ceph/wip-ceph-iscsi-config-flake8

ceph-iscsi-config-flake8: added context to GitHub PR status

7 years agoceph-iscsi-cli-flake8: initial version
Jason Dillaman [Tue, 24 Jul 2018 18:44:43 +0000 (14:44 -0400)]
ceph-iscsi-cli-flake8: initial version

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoceph-iscsi-config-flake8: added context to GitHub PR status 1091/head
Jason Dillaman [Tue, 24 Jul 2018 18:40:13 +0000 (14:40 -0400)]
ceph-iscsi-config-flake8: added context to GitHub PR status

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #1090 from ceph/wip-ceph-iscsi-config-flake8
Jason Dillaman [Tue, 24 Jul 2018 17:39:23 +0000 (13:39 -0400)]
Merge pull request #1090 from ceph/wip-ceph-iscsi-config-flake8

ceph-iscsi-config-flake8: removed use of docker

7 years agoceph-iscsi-config-flake8: removed use of docker 1090/head
Jason Dillaman [Tue, 24 Jul 2018 16:50:34 +0000 (12:50 -0400)]
ceph-iscsi-config-flake8: removed use of docker

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #1089 from ceph/wip-ceph-iscsi-config-flake8
Alfredo Deza [Tue, 24 Jul 2018 17:27:49 +0000 (13:27 -0400)]
Merge pull request #1089 from ceph/wip-ceph-iscsi-config-flake8

ceph-iscsi-config-flake8: removed jenkins override

7 years agoceph-iscsi-config-flake8: removed jenkins override 1089/head
Jason Dillaman [Tue, 24 Jul 2018 16:50:34 +0000 (12:50 -0400)]
ceph-iscsi-config-flake8: removed jenkins override

Signed-off-by: Jason Dillaman <dillaman@redhat.com>