]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commit
ceph-{ansible,installer}-rpm: fix mock group addition 598/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 15 Dec 2016 18:12:15 +0000 (11:12 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 15 Dec 2016 18:15:58 +0000 (11:15 -0700)
commit0d90b3c5fec43fe66fc1e9c3856519f91e4454cf
tree6fd01a9dee4ab9d8e3d50417283c50330b74dd4f
parentee4b381a63118ee317ae2cd445751d2661960068
ceph-{ansible,installer}-rpm: fix mock group addition

When an ephemeral slave is first created, we have to add the
jenkins-build UID to the "mock" group so that it can run mock.

The problem is that "usermod -a -G" will not affect the current login
shell. When the ceph-*-rpm jobs run "usermod" for the first time,
the jenkins-build UID obtains those group rights for any future jobs,
but not the current job.

The result is that every time an ephemeral slave boots, it will fail its
first ceph-*-rpm build job (and future ones succeed).

Call "newgrp" to refresh the groups for this login shell, so that all
mock operations succeed, including the first one on each slave.
ceph-ansible-rpm/build/build
ceph-installer-rpm/build/build