This project is mirrored from https://gitee.com/wangmingco/rook.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 22 Jul, 2019 1 commit
  2. 19 Jul, 2019 3 commits
    • Sébastien Han's avatar
      Merge pull request #2778 from leseb/use-ceph-user · 3f67e8ff
      Sébastien Han authored
      ceph: run ceph processes with the 'ceph' user
      Unverified
      3f67e8ff
    • Sébastien Han's avatar
      ceph: chown ceph directories · 9120791e
      Sébastien Han authored
      
      At the beginning of every container startup we now change the ownership
      of every known ceph directories to ceph:ceph.
      
      This will allow daemons to start properly as well as allowing daemon to
      writes their logs on files.
      
      This is needed because ceph daemon now run as 'ceph' instead of 'root'
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      9120791e
    • Sébastien Han's avatar
      ceph: run ceph processes with the 'ceph' user · 900abbc9
      Sébastien Han authored
      Ceph daemons will run as the 'ceph' user instead of the 'root' user.
      Existing data store (osd and mon) owned by root will continue to run as
      'root'.
      ALl CLI calls also inherate from this and will use them when fetching a key
      for instance. If we run on a version of ceph that does not know these
        flags they will simply get ignored.
      
      Consider the following:
      
      [leseb@tarox~/go/src/github.com/rook/rook][use-ceph-user !] kubectl get pods -n rook-ceph
      NAME                                     READY     STATUS      RESTARTS   AGE
      rook-ceph-mds-myfs-a-67cff7df69-fq4l5    1/1       Running     0          3m
      rook-ceph-mds-myfs-b-85bd5f59f5-d8hdn    1/1       Running     0          3m
      rook-ceph-mgr-a-7d88b9457b-jzln6         1/1       Running     2          4m
      rook-ceph-mon-a-64bf697496-r94tc         1/1       Running     0          4m
      rook-ceph-osd-0-c5fdcd74c-9kvb4          1/1       Running     0          3m
      rook-ceph-osd-prepare-minikube-shz9l     0/2       Completed   0          3m
      rook-ceph-rbd-mirror-a-5cbff8469-xv64c   1/1       Running     0          3m
      rook-ceph-rgw-my-store-f7645b44-vlbp4    1/1       Running     0          3m
      
      MDS daemon:
      ceph         1  0.2  0.1 449508 29200 ?        Ssl  15:10   0:00 ceph-mds --fsid=bf359e2c-a1df-4a80-9137-8134b41a5459 --keyring=/etc/ceph/keyring-store/keyring --log-to-stderr=true --err-to-stderr=true --mon-cluster-log-to-stderr=true --log-stderr-prefix=debug  --mon-host=10.110.204.228:6789 --mon-initial-members=a --name=mds.myfs-a --setuser=ceph --setgroup=ceph --foreground --mds-standby-for-fscid=1 --mds-standby-replay=true
      
      MGR daemon:
      ceph         1  0.8  0.6 867176 104732 ?       Ssl  15:10   0:02 ceph-mgr --fsid=bf359e2c-a1df-4a80-9137-8134b41a5459 --keyring=/etc/ceph/keyring-store/keyring --log-to-stderr=true --err-to-stderr=true --mon-cluster-log-to-stderr=true --log-stderr-prefix=debug  --mon-host=10.110.204.228:6789 --mon-initial-members=a --name=mgr.a --setuser=ceph --setgroup=ceph --foreground
      
      MON daemon:
      ceph         1     0  0 15:10 ?        00:00:02 ceph-mon --fsid=bf359e2c-a1df-4a80-9137-8134b41a5459 --keyring=/etc/ceph/keyring-store/keyring --log-to-stderr=true --err-to-stderr=true --mon-cluster-log-to-stderr=true --log-stderr-prefix=debug  --mon-host=10.110.204.228:6789 --mon-initial-members=a --name=mon.a --setuser=ceph --setgroup=ceph --foreground --public-addr=10.110.204.228 --public-bind-addr=172.17.0.6 --setuser-match-path=/var/lib/ceph/mon/ceph-a
      
      OSD daemon:
      ceph     30985  0.9  0.5 885736 81236 ?        Ssl  15:10   0:04      |   \_ ceph-osd --foreground --id 0 --conf /var/lib/rook/osd0/rook-ceph.config --osd-data /var/lib/rook/osd0 --setuser-match-path /var/lib/rook/osd0 --setuser ceph --setgro
      up ceph --keyring /var/lib/rook/osd0/keyring --cluster rook-ceph --osd-uuid 98b4527d-f7a8-44f0-ac47-f8b55ff5ee05 --osd-journal=/var/lib/rook/osd0/journal
      
      RBD mirror daemon:
      ceph         1  0.0  0.1 914500 21848 ?        Ssl  15:10   0:00 rbd-mirror --setuser ceph --setgroup ceph --foreground -n client.rbd-mirror.a --conf /etc/ceph/ceph.conf --keyring /etc/ceph/keyring
      
      RGW daemon:
      ceph         1  0.2  0.3 5179452 52244 ?       Ssl  15:11   0:01 radosgw --setuser ceph --setgroup ceph --foreground --name=client.radosgw.gateway --rgw-mime-types-file=/var/lib/rook/rgw/mime.types
      
      Even though Ceph processes are running as Ceph, the container itself runs as root.
      We haven't reached the situation where we can runAsUser != "root" and enable SecurityContext to RunAsNonRoot, but that's our ultimate goal.
      
      Resolves: https://github.com/rook/rook/issues/2664
      
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      900abbc9
  3. 18 Jul, 2019 8 commits
  4. 17 Jul, 2019 5 commits
  5. 16 Jul, 2019 17 commits
  6. 15 Jul, 2019 2 commits
  7. 14 Jul, 2019 1 commit
  8. 12 Jul, 2019 3 commits