Skip to content

Commit

Permalink
chore(bors): merge pull request #471
Browse files Browse the repository at this point in the history
471: Add partial rebuild disable and various fixes r=tiagolobocastro a=tiagolobocastro

    feat(helm): add var to disable partial rebuilds
    
    Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>



Co-authored-by: Tiago Castro <tiagolobocastro@gmail.com>
  • Loading branch information
mayastor-bors and tiagolobocastro committed Apr 10, 2024
2 parents 3bfbe4c + e773891 commit b9c0d3c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spec:
- "--ansi-colors={{ .Values.base.logging.color }}"
- "--create-volume-limit={{ .Values.agents.core.maxCreateVolume }}"{{ if .Values.agents.core.maxRebuilds }}
- "--max-rebuilds={{ .Values.agents.core.maxRebuilds }}"{{ end }}
{{- if .Values.agents.core.partialRebuildDisable }}
- "--disable-partial-rebuild"
{{- end }}
ports:
- containerPort: 50051
env:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ agents:
# faster depending on the log size. Otherwise, the replica will be fully rebuilt.
# A blank value "" means internally derived value will be used.
partialRebuildWaitPeriod: ""
# Set to true to disable partial rebuilds.
partialRebuildDisable:
# The maximum number of system-wide rebuilds permitted at any given time.
# If set to an empty string, there are no limits.
maxRebuilds: ""
Expand Down
2 changes: 1 addition & 1 deletion dependencies/control-plane
Submodule control-plane updated 34 files
+2 −0 Cargo.lock
+4 −4 control-plane/agents/src/bin/core/controller/io_engine/v0/translation.rs
+7 −1 control-plane/agents/src/bin/core/controller/reconciler/nexus/mod.rs
+1 −1 control-plane/agents/src/bin/core/controller/reconciler/volume/hot_spare.rs
+10 −1 control-plane/agents/src/bin/core/controller/registry.rs
+5 −1 control-plane/agents/src/bin/core/controller/scheduling/pool.rs
+1 −1 control-plane/agents/src/bin/core/controller/scheduling/volume_policy/mod.rs
+13 −8 control-plane/agents/src/bin/core/controller/scheduling/volume_policy/node.rs
+2 −2 control-plane/agents/src/bin/core/controller/scheduling/volume_policy/pool.rs
+5 −0 control-plane/agents/src/bin/core/main.rs
+7 −5 control-plane/agents/src/bin/core/nexus/operations_helper.rs
+7 −2 control-plane/agents/src/bin/core/node/service.rs
+16 −1 control-plane/agents/src/bin/core/node/wrapper.rs
+124 −8 control-plane/agents/src/bin/core/tests/rebuild/mod.rs
+1 −0 control-plane/agents/src/bin/core/tests/volume/mod.rs
+3 −3 control-plane/agents/src/bin/core/tests/volume/snapshot.rs
+50 −6 control-plane/agents/src/bin/core/volume/operations.rs
+2 −1 control-plane/agents/src/bin/ha/node/detector.rs
+11 −7 control-plane/agents/src/bin/ha/node/server.rs
+9 −1 control-plane/csi-driver/src/bin/controller/controller.rs
+15 −7 control-plane/csi-driver/src/bin/node/filesystem_ops.rs
+18 −0 control-plane/csi-driver/src/context.rs
+7 −0 control-plane/stor-port/src/types/v0/transport/nexus.rs
+13 −2 deployer/src/infra/csi-driver/node.rs
+17 −0 deployer/src/lib.rs
+1 −0 terraform/cluster/mod/k8s/repo.sh
+10 −3 tests/bdd/features/node/label/test_label_unlabel_node.py
+65 −34 tests/bdd/features/volume/topology/node-topology.feature
+4 −5 tests/bdd/features/volume/topology/test_feature.py
+197 −61 tests/bdd/features/volume/topology/test_node_topology.py
+9 −16 tests/bdd/features/volume/topology/test_pool_topology.py
+2 −0 tests/io-engine/Cargo.toml
+346 −0 tests/io-engine/tests/upgrade.rs
+29 −6 utils/deployer-cluster/src/lib.rs
4 changes: 2 additions & 2 deletions scripts/helm/publish-chart-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ if [ -n "$CHECK_BRANCH" ]; then
elif [ -n "$DEVELOP_TO_REL" ]; then
if [ "$CHART_VERSION" == "0.0.0" ]; then
output_yaml "$APP_TAG" "$APP_TAG" "${CHECK_BRANCH////-}" "Always"
else
die "ERROR: source chart is not from develop branch"
elif [ "$CHART_VERSION" != "$APP_TAG" ]; then
die "ERROR: Already on $CHART_VERSION which does not match $APP_TAG"
fi
exit 0
fi
Expand Down
17 changes: 16 additions & 1 deletion scripts/helm/test-publish-chart-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,21 @@ NEW_CHART_VERSION: $NEW_CHART_VERSION
NEW_CHART_APP_VERSION: $NEW_CHART_APP_VERSION
EOF
elif [ -n "$DEVELOP_TO_REL" ]; then
cat <<EOF
if [ -n "$NEW_CHART_VERSION" ]; then
cat <<EOF
APP_TAG: $APP_TAG
CHART_VERSION: $CHART_VERSION
CHART_APP_VERSION: $CHART_APP_VERSION
NEW_CHART_VERSION: $NEW_CHART_VERSION
NEW_CHART_APP_VERSION: $NEW_CHART_APP_VERSION
EOF
else
cat <<EOF
APP_TAG: $APP_TAG
CHART_VERSION: $CHART_VERSION
CHART_APP_VERSION: $CHART_APP_VERSION
EOF
fi
else
cat <<EOF
APP_TAG: $APP_TAG
Expand Down Expand Up @@ -267,6 +275,13 @@ NEW_CHART_VERSION=2.0.1
NEW_CHART_APP_VERSION=2.0.1
test_one "Upgrade from develop to release"

CHECK_BRANCH=release/2.0.1
DEVELOP_TO_REL=1
APP_TAG=2.0.1
CHART_VERSION=2.0.1
CHART_APP_VERSION=2.0.1
test_one "Already on release, no new version"

APP_TAG=2.0.0-a.0
CHART_VERSION=2.0.0
CHART_APP_VERSION=2.0.0
Expand Down

0 comments on commit b9c0d3c

Please sign in to comment.