Files
rook/update-tarball.sh
Stefan Haas 78a45806ea Accepting request 892260 from home:haass:branches:filesystems:ceph
- Update to v1.6.2
  * Set base Ceph operator image and example deployments to v16.2.2
  * Update snapshot APIs from v1beta1 to v1
  * Documentation for creating static PVs
  * Allow setting primary-affinity for the OSD
  * Remove unneeded debug log statements
  * Preserve volume claim template annotations during upgrade
  * Allow re-creating erasure coded pool with different settings
  * Double mon failover timeout during a node drain
  * Remove unused volumesource schema from CephCluster CRD
  * Set the device class on raw mode osds
  * External cluster schema fix to allow not setting mons
  * Add phase to the CephFilesystem CRD
  * Generate full schema for volumeClaimTemplates in the CephCluster CRD
  * Automate upgrades for the MDS daemon to properly scale down and scale up
  * Add Vault KMS support for object stores
  * Ensure object store endpoint is initialized when creating an object user
  * Support for OBC operations when RGW is configured with TLS
  * Preserve the OSD topology affinity during upgrade for clusters on PVCs
  * Unify timeouts for various Ceph commands
  * Allow setting annotations on RGW service
  * Expand PVC size of mon daemons if requested
- Update to v1.6.1
  * Disable host networking by default in the CSI plugin with option to enable
  * Fix the schema for erasure-coded pools so replication size is not required
  * Improve node watcher for adding new OSDs
  * Operator base image updated to v16.2.1
  * Deployment examples updated to Ceph v15.2.11
  * Update Ceph-CSI to v3.3.1
  * Allow any device class for the OSDs in a pool instead of restricting the schema
  * Fix metadata OSDs for Ceph Pacific
  * Allow setting the initial CRUSH weight for an OSD
  * Fix object store health check in case SSL is enabled
  * Upgrades now ensure latest config flags are set for MDS and RGW
  * Suppress noisy RGW log entry for radosgw-admin commands
- Update to v1.6.0
  * Removed Storage Providers
    * CockroachDB
    * EdgeFS
    * YugabyteDB
  * Ceph
    * Support for creating OSDs via Drive Groups was removed.
    * Ceph Pacific (v16) support
    * CephFilesystemMirror CRD to support mirroring of CephFS volumes with Pacific
    * Ceph CSI Driver
      * CSI v3.3.0 driver enabled by default
      * Volume Replication Controller for improved RBD replication support
      * Multus support
      * GRPC metrics disabled by default
    * Ceph RGW
      * Extended the support of vault KMS configuration
      * Scale with multiple daemons with a single deployment instead of a separate deployment for each rgw daemon
    * OSDs
      * LVM is no longer used to provision OSDs
      * More efficient updates for multiple OSDs at the same time
    * Multiple Ceph mgr daemons are supported for stretch clusters 
      and other clusters where HA of the mgr is critical (set count: 2 under mgr in the CephCluster CR)
    * Pod Disruption Budgets (PDBs) are enabled by default for Mon, 
      RGW, MDS, and OSD daemons. See the disruption management settings.
    * Monitor failover can be disabled, for scenarios where 
      maintenance is planned and automatic mon failover is not desired
    * CephClient CRD has been converted to use the controller-runtime library

OBS-URL: https://build.opensuse.org/request/show/892260
OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/rook?expand=0&rev=95
2021-05-11 14:13:44 +00:00

89 lines
2.6 KiB
Bash

#!/bin/bash
set -xEeuo pipefail
#ROOK_REPO="github.com/rook/rook"
#ROOK_REV="v1.4.0"
ROOK_REPO="github.com/SUSE/rook"
ROOK_REV="suse-release-1.6"
if ! command -V go;
then
echo "ERROR: could not find go binary"
exit 1
fi
if ! command -V git;
then
echo "ERROR: could not find git binary"
exit 1
fi
WORK_DIR=$(mktemp -d -t)
function clean_up {
echo "cleaning up..."
chmod -R +w $WORK_DIR
rm -rf $WORK_DIR
}
trap clean_up EXIT SIGINT SIGTERM
PKG_DIR=$(pwd)
function on_err {
code="$?"
set +Eeuo pipefail
echo "ERROR: previous command has failed"
echo "Removing archives."
rm -f $PKG_DIR/rook-$VERSION.tar.xz
rm -f $PKG_DIR/rook-$VERSION-vendor.tar.xz
exit $code
}
trap on_err ERR
cat <<EOF
tar-ing Rook $ROOK_REPO at revision '$ROOK_REV'
EOF
GOPATH=$WORK_DIR
GOPATH_ROOK="$GOPATH/src/github.com/rook/rook"
# For dep to get dependencies correctly, git repos must be located in their upstream locations in
# the GOPATH. i.e., we have to clone SUSE/rook to github.com/rook/rook
mkdir --parents $GOPATH_ROOK
git -C $GOPATH_ROOK/.. clone https://$ROOK_REPO.git
cd "$GOPATH_ROOK"
git fetch && git fetch --tags
git checkout "$ROOK_REV"
# e.g, DESCRIBE=v1.1.0-0-g56789def OR DESCRIBE=v1.1.0-beta.1-0-g12345abc
describe="$(git describe --long --tags)"
GIT_COMMIT=${describe##*-} # git commit hash is last hyphen-delimited field
remainder=${describe%-*} # strip off the git commit field & continue
GIT_COMMIT_NUM=${remainder##*-} # num of commits after tag is second-to-last hyphen-delimited field
RELEASE=${remainder%-*} # all content before git commit num is the release version tag
RELEASE=${RELEASE//-/'~'} # support upstream beta tags: replace hyphen with tilde
RELEASE=${RELEASE:1} # remove preceding 'v' from beginning of release
# strip off preceding 'v' from RELEASE
VERSION="${RELEASE}+git$GIT_COMMIT_NUM.$GIT_COMMIT"
# make primary source tarball before changing anything in the repo
cd $PKG_DIR
#mv $GOPATH_ROOK/rook $GOPATH_ROOK/rook-$RELEASE
#tar -C "$GOPATH_ROOK" -czf rook-$RELEASE.tar.gz rook-$RELEASE/
#tar -C "$GOPATH_ROOK/.." -cJf rook-$VERSION.tar.xz rook/
tar -C "$GOPATH_ROOK/.." -czf rook-$VERSION.tar.gz rook/
# update spec file versions
#sed -i "s/^Version:.*/Version: $RELEASE/" rook.spec
sed -i "s/^Version:.*/Version: $VERSION/" rook.spec
sed -i "s/^%global rook_container_version .*/%global rook_container_version ${RELEASE}/" rook.spec
# make vendor tarball (any existing rook directory must be removed first)
[ -d ./rook ] && rm -rf ./rook
osc -A https://api.suse.de service disabledrun
echo "Finished successfully!"