Skip to content

Commit

Permalink
stable-7.0: initial commit
Browse files Browse the repository at this point in the history
let's branch stable-7.0 that will be the corresponding branch for
Ceph Quincy / RHCS 6.0

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits committed Aug 2, 2022
1 parent cd3197c commit b7da473
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
uses: actions/checkout@v2

- name: build the ceph container image
run: make BASEOS_REGISTRY=quay.io/centos BASEOS_TAG=stream8 RELEASE="demo" FLAVORS="main,centos,8" build
run: make BASEOS_REGISTRY=quay.io/centos BASEOS_TAG=stream8 RELEASE="demo" FLAVORS="quincy,centos,8" build

- name: run the ceph demo container
run: docker run -d --privileged --name ceph-demo -v /mnt/ceph:/var/lib/ceph -e RGW_FRONTEND_TYPE=beast -e DEBUG=verbose -e RGW_FRONTEND_PORT=8000 -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=0.0.0.0/0 -e CLUSTER=ceph -e CEPH_DEMO_UID=demo -e CEPH_DEMO_ACCESS_KEY=G1EZ5R4K6IJ7XUQKMAED -e CEPH_DEMO_SECRET_KEY=cNmUrqpBKjCMzcfqG8fg4Qk07Xkoyau52OmvnSsz -e CEPH_DEMO_BUCKET=foobar -e SREE_PORT=5001 -e DATA_TO_SYNC=/etc/modprobe.d -e DATA_TO_SYNC_BUCKET=github -e OSD_COUNT=2 ceph/daemon:demo-main-centos-stream8-x86_64 demo
run: docker run -d --privileged --name ceph-demo -v /mnt/ceph:/var/lib/ceph -e RGW_FRONTEND_TYPE=beast -e DEBUG=verbose -e RGW_FRONTEND_PORT=8000 -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=0.0.0.0/0 -e CLUSTER=ceph -e CEPH_DEMO_UID=demo -e CEPH_DEMO_ACCESS_KEY=G1EZ5R4K6IJ7XUQKMAED -e CEPH_DEMO_SECRET_KEY=cNmUrqpBKjCMzcfqG8fg4Qk07Xkoyau52OmvnSsz -e CEPH_DEMO_BUCKET=foobar -e SREE_PORT=5001 -e DATA_TO_SYNC=/etc/modprobe.d -e DATA_TO_SYNC_BUCKET=github -e OSD_COUNT=2 ceph/daemon:demo-quincy-centos-stream8-x86_64 demo

- name: run the demo validation
run: |
Expand Down Expand Up @@ -39,4 +39,4 @@ jobs:
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

- name: build the ceph container arm64 image
run: make BASEOS_REGISTRY=quay.io BASEOS_TAG=stream8 RELEASE="demo" BASEOS_REPO=centos/arm64v8 DAEMON_BASE_TAG="daemon-base:demo-centos-8-aarch64" DAEMON_TAG="daemon:demo-centos-stream8-aarch64" FLAVORS="main,centos-arm64,8" build
run: make BASEOS_REGISTRY=quay.io BASEOS_TAG=stream8 RELEASE="demo" BASEOS_REPO=centos/arm64v8 DAEMON_BASE_TAG="daemon-base:demo-centos-8-aarch64" DAEMON_TAG="daemon:demo-centos-stream8-aarch64" FLAVORS="quincy,centos-arm64,8" build
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@

# When updating these defaults, be sure to check that ALL_BUILDABLE_FLAVORS is updated
FLAVORS ?= \
octopus,centos,8 \
pacific,centos,8 \
quincy,centos,8 \
main,centos,8

TAG_REGISTRY ?= ceph

Expand All @@ -48,11 +45,7 @@ include maint-lib/makelib.mk

# All flavor options that can be passed to FLAVORS
ALL_BUILDABLE_FLAVORS := \
octopus,centos,7 \
octopus,centos,8 \
pacific,centos,8 \
quincy,centos,8 \
main,centos,8
quincy,centos,8

# ==============================================================================
# Build targets
Expand Down
4 changes: 2 additions & 2 deletions contrib/commit-rhcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ trap cleanup EXIT QUIT INT TERM
step "Updating local repository"
git fetch || fatal 'Cannot fetch the remote repository'
git reset --hard "origin/$CURRENT_GIT_BRANCH" || fatal "Cannot reset the local directory !"
UPSTREAM_BRANCH_VERSION="main"
UPSTREAM_BRANCH_VERSION="stable-7.0"

step "Cloning ceph-container ${UPSTREAM_BRANCH_VERSION}"
git clone https://github.com/ceph/ceph-container.git -b "${UPSTREAM_BRANCH_VERSION}" "$CEPH_CONTAINER_DIR"
Expand All @@ -49,7 +49,7 @@ pushd "$CEPH_CONTAINER_DIR"
contrib/compose-rhcs.sh
popd > /dev/null

COMPOSED_DIR=$CEPH_CONTAINER_DIR/staging/main-ubi8-latest-x86_64/composed
COMPOSED_DIR=$CEPH_CONTAINER_DIR/staging/quincy-ubi8-latest-x86_64/composed

if [ ! -d "$COMPOSED_DIR" ]; then
fatal "There is no composed directory. Looks like the build failed !"
Expand Down
4 changes: 2 additions & 2 deletions contrib/compose-rhcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
# VARIABLES #
#############

STAGING_DIR=staging/main-ubi9-latest-x86_64/
STAGING_DIR=staging/quincy-ubi9-latest-x86_64/
DAEMON_BASE_DIR=$STAGING_DIR/daemon-base/
DOCKERFILE_DAEMON_BASE=$DAEMON_BASE_DIR/Dockerfile
COMPOSED_DIR="${STAGING_DIR}"composed
Expand Down Expand Up @@ -48,7 +48,7 @@ clean_staging() {
}

make_staging() {
make BASEOS_REGISTRY=registry.redhat.io BASEOS_REPO=ubi9/ubi-minimal FLAVORS=main,ubi9,latest IMAGES_TO_BUILD=daemon-base || fatal "Cannot build rhel9"
make BASEOS_REGISTRY=registry.redhat.io BASEOS_REPO=ubi9/ubi-minimal FLAVORS=quincy,ubi9,latest IMAGES_TO_BUILD=daemon-base || fatal "Cannot build rhel9"
}

success() {
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ setenv=
collocation: CEPH_ANSIBLE_SCENARIO_PATH = {toxinidir}/ceph-ansible/tests/functional/collocation/container
lvm_osds: CEPH_ANSIBLE_SCENARIO_PATH = {toxinidir}/ceph-ansible/tests/functional/lvm-osds/container
REGISTRY_ADDRESS = 192.168.121.1:5000
CEPH_ANSIBLE_BRANCH = main
CEPH_ANSIBLE_BRANCH = stable-7.0
VAGRANT_PROVIDER = {env:VAGRANT_PROVIDER:libvirt}
CEPH_ANSIBLE_VAGRANT_BOX = centos/stream8
REGISTRY = quay.io
Expand Down

0 comments on commit b7da473

Please sign in to comment.