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. 06 Sep, 2019 29 commits
    • Blaine Gardner's avatar
      NFS: Fix operator.yaml line endings · 5a5436e1
      Blaine Gardner authored
      
      NFS operator.yaml example file had Windows (CRLF) line endings instead
      of the Unix (LF) line endings used elsewhere. Fix this.
      Signed-off-by: default avatarBlaine Gardner <blaine.gardner@suse.com>
      5a5436e1
    • travisn's avatar
      ceph: Adds support for MDB controller and machineLabel controller · 3dd5aa48
      travisn authored
      
      Add support for MachineDisruptionBudget controller and MachineLabel controller required for fencing
      in OpenShift. This will ensure that machines are only fenced and OSDs are only stopped
      when Ceph is in a healthy state.
      Co-authored-by: default avatarAshish Ranjan <aranjan@redhat.com>
      Signed-off-by: default avatartravisn <tnielsen@redhat.com>
      3dd5aa48
    • Dmitry Yusupov's avatar
    • Blaine Gardner's avatar
      ceph upgrade doc: add note about required configs · 0cede77a
      Blaine Gardner authored
      
      Make users aware of the newly 'required' configs earlier in the upgrade
      doc so they have more context when they arrive at the upgrade step to
      consider changing these for their own clusters.
      Signed-off-by: default avatarBlaine Gardner <blaine.gardner@suse.com>
      0cede77a
    • Rohan CJ's avatar
      Fix topologyAware on PVC-based OSDs · 5adaff81
      Rohan CJ authored
      Signed-off-by: default avatarRohan CJ <rohantmp@gmail.com>
      5adaff81
    • travisn's avatar
      ceph: ability to enable mgr module via CRD · 1647fb25
      travisn authored
      
      We can now enable via the cluster CR any manager module with a
      setting under the new mgr element
      
      mgr:
        modules:
        - name: pg_autoscaler
          enabled: true
      Co-authored-by: default avatarSébastien Han <seb@redhat.com>
      Co-authored-by: default avatartravisn <tnielsen@redhat.com>
      Signed-off-by: default avatartravisn <tnielsen@redhat.com>
      1647fb25
    • Umanga Chapagain's avatar
      updating additionalPrinterColumns for CephFS · 2be65505
      Umanga Chapagain authored
      
      - Renamed MDSCOUNT to ActiveMDS & updated Description
        This was to remove the confusion about what the count
        is actually about (Active or Active+Standby).
      Signed-off-by: default avatarUmanga Chapagain <chapagainumanga@gmail.com>
      2be65505
    • Madhu Rajanna's avatar
      Use release ceph-csi version · 5060b9fd
      Madhu Rajanna authored
      
      replace canary tag with release ceph-csi
      v1.2.0 tag
      Signed-off-by: default avatarMadhu Rajanna <madhupr007@gmail.com>
      5060b9fd
    • Madhu Rajanna's avatar
      configure cephfs and rbd servers · 59bc7eab
      Madhu Rajanna authored
      https://github.com/ceph/ceph-csi/pull/550
      
       made
      the servers configurable to avoid noise
      on the GRPC metrics and also to avoid
      unnecessary server starting
      Signed-off-by: default avatarMadhu Rajanna <madhupr007@gmail.com>
      59bc7eab
    • Blaine Gardner's avatar
      Ceph osd: lower OSD pod minimum mem to 2Gb · a164bc1c
      Blaine Gardner authored
      
      Some users have reported issues running Ceph OSDs in environments
      without beefy systems. After consulting with Ceph experts, we believe
      2Gb is still a safe minimum for Ceph for users with more modest systems
      that won't result in disfunction in Ceph.
      Signed-off-by: default avatarBlaine Gardner <blaine.gardner@suse.com>
      a164bc1c
    • travisn's avatar
      fix build break from bad merge with method rename · 4c260e18
      travisn authored
      Signed-off-by: default avatartravisn <tnielsen@redhat.com>
      4c260e18
    • Ashish Ranjan's avatar
      fix(osd prepare): osd prepare job getting into panic state · 60b8ddae
      Ashish Ranjan authored
      
      Osd pods getting into panic state due to index out of range error.
      
      logs of osd prepare job:
      
      ```
      [aranjan@localhost:~]$ oc logs -f rook-ceph-osd-prepare-set1-0-data-6f2nh-zh4zl
      2019-09-06 07:48:11.448085 I | cephcmd: desired devices to configure osds: [{Name:/mnt/set1-0-data-6f2nh OSDsPerDevice:1 MetadataDevice: DatabaseSizeMB:0 DeviceClass: IsFilter:false}]
      2019-09-06 07:48:11.449841 I | rookcmd: starting Rook v1.0.0-623.gc18d575c.dirty with arguments '/rook/rook ceph osd provision'
      2019-09-06 07:48:11.449866 I | rookcmd: flag values: --cluster-id=308f232a-d07a-11e9-96ba-0adfe2bb9bfc, --data-device-filter=, --data-devices=/mnt/set1-0-data-6f2nh, --data-directories=, --encrypted-device=false, --force-format=false, --
      help=false, --location=, --log-flush-frequency=5s, --log-level=INFO, --metadata-device=, --node-name=set1-0-data-6f2nh, --operator-image=, --osd-database-size=0, --osd-journal-size=5120, --osd-store=, --osd-wal-size=576, --osds-per-devic
      e=1, --pvc-backed-osd=true, --service-account=
      2019-09-06 07:48:11.449875 I | op-mon: parsing mon endpoints: a=172.30.150.154:6789
      2019-09-06 07:48:11.470058 I | cephconfig: writing config file /var/lib/rook/rook-ceph/rook-ceph.config
      2019-09-06 07:48:11.470797 I | cephconfig: generated admin config in /var/lib/rook/rook-ceph
      2019-09-06 07:48:11.470989 I | cephosd: discovering hardware
      2019-09-06 07:48:11.471030 I | exec: Running command: lsblk /mnt/set1-0-data-6f2nh --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
      2019-09-06 07:48:11.473887 I | exec: Running command: sgdisk --print /mnt/set1-0-data-6f2nh
      2019-09-06 07:48:11.476048 I | cephosd: creating and starting the osds
      2019-09-06 07:48:11.476070 I | exec: Running command: lsblk /mnt/set1-0-data-6f2nh --bytes --pairs --output NAME,SIZE,TYPE,PKNAME
      2019-09-06 07:48:11.478030 I | sys: Output: NAME="xvdbg" SIZE="10737418240" TYPE="disk" PKNAME=""
      2019-09-06 07:48:11.478056 I | cephosd: /mnt/set1-0-data-6f2nh found in the desired devices
      2019-09-06 07:48:11.488231 I | cephosd: configuring osd devices: {"Entries":{"/mnt/set1-0-data-6f2nh":{"Data":-1,"Metadata":null,"Config":{"Name":"/mnt/set1-0-data-6f2nh","OSDsPerDevice":1,"MetadataDevice":"","DatabaseSizeMB":0,"DeviceCl
      ass":"","IsFilter":false},"LegacyPartitionsFound":false}}}
      2019-09-06 07:48:11.492191 I | cephosd: device /mnt/set1-0-data-6f2nh to be configured by ceph-volume
      2019-09-06 07:48:11.492213 I | cephosd: 0/0 pre-ceph-volume osd devices succeeded on this node
      2019-09-06 07:48:11.492399 I | exec: Running command: ceph auth get-or-create-key client.bootstrap-osd mon allow profile bootstrap-osd --connect-timeout=15 --cluster=rook-ceph --conf=/var/lib/rook/rook-ceph/rook-ceph.config --keyring=/va
      r/lib/rook/rook-ceph/client.admin.keyring --format json --out-file /tmp/973674470
      2019-09-06 07:48:12.020858 I | cephosd: Successfully updated lvm config file
      2019-09-06 07:48:12.020894 I | cephosd: configuring new device /mnt/set1-0-data-6f2nh
      2019-09-06 07:48:12.020908 I | exec: Running command: stdbuf -oL ceph-volume lvm prepare --data /mnt/set1-0-data-6f2nh
      2019-09-06 07:48:55.172366 I | cephosd:
      panic: runtime error: index out of range
      
      goroutine 1 [running]:
      github.com/rook/rook/pkg/daemon/ceph/osd.getLVPath(0x0, 0x0, 0x1e3c60d, 0x2)
              /home/aranjan/Project/go/src/github.com/rook/rook/pkg/daemon/ceph/osd/volume.go:128 +0x2fd
      github.com/rook/rook/pkg/daemon/ceph/osd.(*OsdAgent).initializeBlockPVC(0xc000829c30, 0xc00072e1e0, 0xc000736e70, 0x1e4927d, 0xd, 0x0, 0x0)
              /home/aranjan/Project/go/src/github.com/rook/rook/pkg/daemon/ceph/osd/volume.go:108 +0x50b
      github.com/rook/rook/pkg/daemon/ceph/osd.(*OsdAgent).configureCVDevices(0xc000829c30, 0xc00072e1e0, 0xc000736e70, 0x38, 0xc000829310, 0x2, 0x2, 0x0)
              /home/aranjan/Project/go/src/github.com/rook/rook/pkg/daemon/ceph/osd/volume.go:70 +0x33a
      github.com/rook/rook/pkg/daemon/ceph/osd.(*OsdAgent).configureDevices(0xc000829c30, 0xc00072e1e0, 0xc0000bc370, 0x1c, 0xc0008296e8, 0x1, 0x1, 0xd)
              /home/aranjan/Project/go/src/github.com/rook/rook/pkg/daemon/ceph/osd/agent.go:213 +0x97d
      github.com/rook/rook/pkg/daemon/ceph/osd.Provision(0xc00072e1e0, 0xc000829c30, 0xc0000560d0, 0x24)
              /home/aranjan/Project/go/src/github.com/rook/rook/pkg/daemon/ceph/osd/daemon.go:166 +0xeb2
      github.com/rook/rook/cmd/rook/ceph.prepareOSD(0x359be60, 0x35cd220, 0x0, 0x0, 0x0, 0x0)
              /home/aranjan/Project/go/src/github.com/rook/rook/cmd/rook/ceph/osd.go:252 +0x838
      github.com/rook/rook/vendor/github.com/spf13/cobra.(*Command).execute(0x359be60, 0x35cd220, 0x0, 0x0, 0x359be60, 0x35cd220)
              /home/aranjan/Project/go/src/github.com/rook/rook/vendor/github.com/spf13/cobra/command.go:762 +0x465
      github.com/rook/rook/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x359e200, 0xc0006eff30, 0xb, 0xb)
              /home/aranjan/Project/go/src/github.com/rook/rook/vendor/github.com/spf13/cobra/command.go:852 +0x2ec
      github.com/rook/rook/vendor/github.com/spf13/cobra.(*Command).Execute(...)
              /home/aranjan/Project/go/src/github.com/rook/rook/vendor/github.com/spf13/cobra/command.go:800
      main.main()
              /home/aranjan/Project/go/src/github.com/rook/rook/cmd/rook/main.go:35 +0x12e
      ```
      Signed-off-by: default avatarAshish Ranjan <aranjan@redhat.com>
      60b8ddae
    • Dmitry Yusupov's avatar
      support for mdpsize · 81603770
      Dmitry Yusupov authored
      Signed-off-by: default avatarDmitry Yusupov <dmitry.yusupov@nexenta.com>
      81603770
    • Kristoffer Grönlund's avatar
    • travisn's avatar
      ceph: add the rbac to the helm chart for bucket provisioning · 39297cfc
      travisn authored
      
      The bucket provisioning feature was merged without the rbac
      for the helm chart. This brings the helm chart back into
      parity with common.yaml and avoid seeing errors in the operator
      log about attempting to watch the bucket provisioning CR.
      Signed-off-by: default avatartravisn <tnielsen@redhat.com>
      39297cfc
    • Santosh Pillai's avatar
      fix random OSD daemon pod failures when running OSD on PVC · 92543159
      Santosh Pillai authored
      
      OSD pods when running on PVC fail randomly due to some race condition:
       - OSD daemon pod was activating the volume group using vgchange -an without any volume group name.
       - This caused the pods to fail randomly when number of OSDs is more, say greater than 10.
       - This fix adds Volume group name while activating/deactivating volume groups to fix this
      Signed-off-by: default avatarSantosh Pillai <sapillai@redhat.com>
      92543159
    • Dmitry Yusupov's avatar
      9ae61c1c
    • Rohan CJ's avatar
    • Blaine Gardner's avatar
      ceph: remove configOverride functionality from CRD · 876d59a3
      Blaine Gardner authored
      
      After further consideration and working with the feature for a few
      weeks, the `configOverride` functionality seems to be more complexity
      than is worth it for the expected benefit. Users still have the most
      preferred option of setting configs in Ceph's config database using
      `ceph cofig set` or the dashboard, and the override ConfigMap still
      exists for fallback scenarios. The config database can still be used
      by Rook for setting necessary configs, but the user has no way of
      telling Rook to do so.
      Signed-off-by: default avatarBlaine Gardner <blaine.gardner@suse.com>
      876d59a3
    • Maksim Nabokikh's avatar
      ceph: Add dynamic flexvolume expansion · cc9c3ca0
      Maksim Nabokikh authored
      
      Allow to dynamic resize of rook volumes
      Signed-off-by: default avatarMaksim Nabokikh <maksim.nabokikh@flant.com>
      cc9c3ca0
    • travisn's avatar
      ceph: refactor version detection of external cluster · 023a51a4
      travisn authored
      
      Reduce the duplication of detecting the version of the external cluster
      by refactoring to a single method that retrieves and validates the
      version
      Signed-off-by: default avatartravisn <tnielsen@redhat.com>
      023a51a4
    • Sébastien Han's avatar
      ceph: external create 'rook-config-override' cm · 816360b1
      Sébastien Han authored
      
      This configmap is needed by RGW and MDS pods, if it's not present we
      won't be able to start any of them.
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      816360b1
    • Sébastien Han's avatar
      ceph: external be a bit more flexible on upgrade · b8d970e9
      Sébastien Han authored
      Add various upgrade tests so that the local cluster does not fail if
      an upgrade is available on the external cluster.
      
      Also, add better upgrades handling on update and on add. We now rely as
      much as possible on a unique function that works both local and external
      cluster 'detectAndValidateCephVersion()'. So the code will act the same
      way wether a CR update is triggered or if the operator is restarted.
      
      The health check now reports any topology changes on the external
      cluster such as odd number of mons and low number. It will also detect
      if the external cluster has been upgraded and will log that information,
        helping the admin in his/her decision to trigger an image upgrade.
      
      Finally, we prevent the creation of new CRs if the external cluster
      version has a higher major number than the local one.
      
      Closes: https://github.com/rook/rook/issues/3731
      
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      b8d970e9
    • Sébastien Han's avatar
      ceph: remove dead code · 48d5c622
      Sébastien Han authored
      
      These functions were not used anywhere, so removing them.
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      48d5c622
    • Madhu Rajanna's avatar
      Remove attacher service account · 467f4e35
      Madhu Rajanna authored
      
      attacher is part of provisioner deployment,
      so provisioner service account will be used
      for provisisoner deployments, no need of
      attacher service account.
      Signed-off-by: default avatarMadhu Rajanna <madhupr007@gmail.com>
      467f4e35
    • Blaine Gardner's avatar
      Ceph: update upgrade docs for v1.1 release · 4644fec2
      Blaine Gardner authored
      
      Update docs and manifests for updating from the Rook v1.0 to v1.1
      release.
      Signed-off-by: default avatarBlaine Gardner <blaine.gardner@suse.com>
      4644fec2
    • Kristoffer Grönlund's avatar
      Remove outdated cluster/charts/rook-ceph/.gitignore · a81a27d7
      Kristoffer Grönlund authored
      
      Since values.yaml is no longer generated from a template
      thanks to #3701, the .gitignore file shouldn't be needed.
      Signed-off-by: default avatarKristoffer Grönlund <kgronlund@suse.com>
      a81a27d7
    • Dinar Valeev's avatar
      bugfix: copy helm chart aside for packaging · a0971646
      Dinar Valeev authored
      
      In order to not leave any modified file after release, lets put
      chart tree aside and run sed logic on it.
      Signed-off-by: default avatarDinar Valeev <k0da@opensuse.org>
      a0971646
    • Sébastien Han's avatar
      ceph: osd lvm flag · 0a51219e
      Sébastien Han authored
      
      udev is not running in the container so lvm might be stuck requesting lvm
      devices. So let's not talk to udev to get lvm devices.
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      0a51219e
  2. 03 Sep, 2019 2 commits
  3. 30 Aug, 2019 9 commits