From 60a6f809d358877cd23fa71e4dfdf1625f4d8144 Mon Sep 17 00:00:00 2001 From: weekface Date: Fri, 1 Nov 2019 17:24:53 +0800 Subject: [PATCH] release v1.0.2 (#1080) --- CHANGELOG.md | 56 +++++++++++++++++++ charts/tidb-cluster/values.yaml | 2 +- charts/tidb-operator/values.yaml | 2 +- deploy/aliyun/variables.tf | 4 +- deploy/aws/variables.tf | 2 +- deploy/gcp/variables.tf | 2 +- .../modules/aliyun/tidb-cluster/variable.tf | 2 +- .../modules/aliyun/tidb-operator/variables.tf | 2 +- deploy/modules/aws/tidb-cluster/variables.tf | 2 +- deploy/modules/aws/tidb-operator/variables.tf | 2 +- deploy/modules/gcp/tidb-cluster/variables.tf | 2 +- deploy/modules/gcp/tidb-operator/variables.tf | 2 +- .../share/tidb-cluster-release/variables.tf | 2 +- tests/manifests/stability/stability.yaml | 4 +- 14 files changed, 71 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3bfe25046..bd0e91aa06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,59 @@ +# TiDB Operator v1.0.2 Release Notes + +## v1.0.2 What's New + +### Action Required + +The AWS Terraform script uses auto-scaling-group for all components (PD/TiKV/TiDB/monitor). When an ec2 instance fails the health check, the instance will be replaced. This is helpful for those applications that are stateless or use EBS volumes to store data. + +But a TiKV Pod uses instance store to store its data. When an instance is replaced, all the data on its store will be lost. TiKV has to resync all data to the newly added instance. Though TiDB is a distributed database and can work when a node fails, resyncing data can cost much if the dataset is large. Besides, the ec2 instance may be recovered to a healthy state by rebooting. + +So we disabled the auto-scaling-group's replacing behavior in `v1.0.2`. + +Auto-scaling-group scaling process can also be suspended according to its [documentation](https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html) if you are using `v1.0.1` or prior versions. + +### Improvements + +- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group +- Add a new VM manager `qm` in stability test +- Add `tikv.maxFailoverCount` limit to TiKV +- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun +- Add provider and module versions for AWS + +### Bug fixes + +- Fix the issue that tkctl version does not work when the release name is un-wanted +- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions +- Fix the issue that the `create_tidb_cluster_release` variable in AWS Terraform script does not work +- Fix compatibility issues by adding `v1beta1` to statefulset apiVersions +- Fix the issue that TiDB Loadbalancer is empty in Terraform output +- Fix a compatibility issue of TiKV `maxFailoverCount` +- Fix Terraform providers version constraint issues for GCP and Aliyun +- Fix values file customization for tidb-operator on Aliyun +- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly +- Fix drainer misconfiguration + +## Detailed Bug Fixes and Changes + +- Fix the issue that tkctl version does not work when the release name is un-wanted ([#1065](https://github.com/pingcap/tidb-operator/pull/1065)) +- Fix the issue that the `create_tidb_cluster_release` variable in AWS terraform script does not work ([#1062](https://github.com/pingcap/tidb-operator/pull/1062)) +- Fix compatibility issues for ([#1012](https://github.com/pingcap/tidb-operator/pull/1012)): add `v1beta1` to statefulset apiVersions ([#1054](https://github.com/pingcap/tidb-operator/pull/1054)) +- Enable ConfigMapRollout by default in stability test ([#1036](https://github.com/pingcap/tidb-operator/pull/1036)) +- Fix the issue that TiDB Loadbalancer is empty in Terraform output ([#1045](https://github.com/pingcap/tidb-operator/pull/1045)) +- Migrate statefulsets apiVersion to `app/v1` which fixes compatibility with Kubernetes 1.16 and above versions ([#1012](https://github.com/pingcap/tidb-operator/pull/1012)) +- Only expect TiDB cluster upgrade to be complete when rolling back wrong configuration in stability test ([#1030](https://github.com/pingcap/tidb-operator/pull/1030)) +- Suspend ReplaceUnhealthy process for AWS TiKV auto-scaling-group ([#1014](https://github.com/pingcap/tidb-operator/pull/1014)) +- Add a new VM manager `qm` in stability test ([#896](https://github.com/pingcap/tidb-operator/pull/896)) +- Fix provider versions constraint issues for GCP and Aliyun ([#959](https://github.com/pingcap/tidb-operator/pull/959)) +- Fix values file customization for tidb-operator on Aliyun ([#971](https://github.com/pingcap/tidb-operator/pull/971)) +- Fix a compatibility issue of TiKV `tikv.maxFailoverCount` ([#977](https://github.com/pingcap/tidb-operator/pull/977)) +- Add `tikv.maxFailoverCount` limit to TiKV ([#965](https://github.com/pingcap/tidb-operator/pull/965)) +- Fix tidb-operator crash when users modify statefulset upgrade strategy improperly ([#912](https://github.com/pingcap/tidb-operator/pull/912)) +- Set the default `externalTrafficPolicy` to be `Local` for TiDB service in AWS/GCP/Aliyun ([#947](https://github.com/pingcap/tidb-operator/pull/947)) +- Add note about setting PV reclaim policy to retain ([#911](https://github.com/pingcap/tidb-operator/pull/911)) +- Fix drainer misconfiguration ([#939](https://github.com/pingcap/tidb-operator/pull/939)) +- Add provider and module versions for AWS ([#926](https://github.com/pingcap/tidb-operator/pull/926)) + # TiDB Operator v1.0.1 Release Notes ## v1.0.1 What's New diff --git a/charts/tidb-cluster/values.yaml b/charts/tidb-cluster/values.yaml index 22f29780dc..f8923865b2 100644 --- a/charts/tidb-cluster/values.yaml +++ b/charts/tidb-cluster/values.yaml @@ -34,7 +34,7 @@ services: type: ClusterIP discovery: - image: pingcap/tidb-operator:v1.0.1 + image: pingcap/tidb-operator:v1.0.2 imagePullPolicy: IfNotPresent resources: limits: diff --git a/charts/tidb-operator/values.yaml b/charts/tidb-operator/values.yaml index 96d92625a6..8ca2c066af 100644 --- a/charts/tidb-operator/values.yaml +++ b/charts/tidb-operator/values.yaml @@ -9,7 +9,7 @@ rbac: create: true # operatorImage is TiDB Operator image -operatorImage: pingcap/tidb-operator:v1.0.1 +operatorImage: pingcap/tidb-operator:v1.0.2 imagePullPolicy: IfNotPresent defaultStorageClassName: local-storage diff --git a/deploy/aliyun/variables.tf b/deploy/aliyun/variables.tf index 443f7dd8f6..9a23da38f6 100644 --- a/deploy/aliyun/variables.tf +++ b/deploy/aliyun/variables.tf @@ -10,7 +10,7 @@ variable "bastion_cpu_core_count" { variable "operator_version" { type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { @@ -40,7 +40,7 @@ variable "tidb_version" { } variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "pd_count" { diff --git a/deploy/aws/variables.tf b/deploy/aws/variables.tf index 48c4ff45da..466a53988f 100644 --- a/deploy/aws/variables.tf +++ b/deploy/aws/variables.tf @@ -19,7 +19,7 @@ variable "eks_version" { variable "operator_version" { description = "TiDB operator version" - default = "v1.0.1" + default = "v1.0.2" } variable "operator_values" { diff --git a/deploy/gcp/variables.tf b/deploy/gcp/variables.tf index 180026f098..2c90bb0e53 100644 --- a/deploy/gcp/variables.tf +++ b/deploy/gcp/variables.tf @@ -28,7 +28,7 @@ variable "tidb_version" { } variable "tidb_operator_version" { - default = "v1.0.1" + default = "v1.0.2" } variable "tidb_operator_chart_version" { diff --git a/deploy/modules/aliyun/tidb-cluster/variable.tf b/deploy/modules/aliyun/tidb-cluster/variable.tf index e0a050b989..568f9c4f9f 100644 --- a/deploy/modules/aliyun/tidb-cluster/variable.tf +++ b/deploy/modules/aliyun/tidb-cluster/variable.tf @@ -17,7 +17,7 @@ variable "tidb_version" { variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "pd_count" { diff --git a/deploy/modules/aliyun/tidb-operator/variables.tf b/deploy/modules/aliyun/tidb-operator/variables.tf index 0fe55ba8d6..a9ca422d5a 100644 --- a/deploy/modules/aliyun/tidb-operator/variables.tf +++ b/deploy/modules/aliyun/tidb-operator/variables.tf @@ -22,7 +22,7 @@ variable "cluster_network_type" { variable "operator_version" { type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/aws/tidb-cluster/variables.tf b/deploy/modules/aws/tidb-cluster/variables.tf index 8f124fd256..8514ca768a 100644 --- a/deploy/modules/aws/tidb-cluster/variables.tf +++ b/deploy/modules/aws/tidb-cluster/variables.tf @@ -1,6 +1,6 @@ variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "create_tidb_cluster_release" { diff --git a/deploy/modules/aws/tidb-operator/variables.tf b/deploy/modules/aws/tidb-operator/variables.tf index 90be47d753..9cbad48fcd 100644 --- a/deploy/modules/aws/tidb-operator/variables.tf +++ b/deploy/modules/aws/tidb-operator/variables.tf @@ -12,7 +12,7 @@ variable "eks_version" { variable "operator_version" { description = "TiDB Operator version" type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/gcp/tidb-cluster/variables.tf b/deploy/modules/gcp/tidb-cluster/variables.tf index 636fa8e0b5..3c70d304b6 100644 --- a/deploy/modules/gcp/tidb-cluster/variables.tf +++ b/deploy/modules/gcp/tidb-cluster/variables.tf @@ -13,7 +13,7 @@ variable "cluster_version" { } variable "tidb_cluster_chart_version" { description = "The TiDB cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "override_values" { description = "YAML formatted values that will be passed in to the tidb-cluster helm release" diff --git a/deploy/modules/gcp/tidb-operator/variables.tf b/deploy/modules/gcp/tidb-operator/variables.tf index 5b546ee80e..4fe40dcb46 100644 --- a/deploy/modules/gcp/tidb-operator/variables.tf +++ b/deploy/modules/gcp/tidb-operator/variables.tf @@ -34,7 +34,7 @@ variable "gke_version" { variable "tidb_operator_version" { description = "TiDB Operator version" type = string - default = "v1.0.1" + default = "v1.0.2" } variable "operator_helm_values" { diff --git a/deploy/modules/share/tidb-cluster-release/variables.tf b/deploy/modules/share/tidb-cluster-release/variables.tf index 2c5377d0c0..49fe4e05be 100644 --- a/deploy/modules/share/tidb-cluster-release/variables.tf +++ b/deploy/modules/share/tidb-cluster-release/variables.tf @@ -5,7 +5,7 @@ variable "kubeconfig_filename" { variable "tidb_cluster_chart_version" { description = "tidb-cluster chart version" - default = "v1.0.1" + default = "v1.0.2" } variable "create" { diff --git a/tests/manifests/stability/stability.yaml b/tests/manifests/stability/stability.yaml index 4f6c59981d..a76acf6e14 100644 --- a/tests/manifests/stability/stability.yaml +++ b/tests/manifests/stability/stability.yaml @@ -47,8 +47,8 @@ spec: command: - /usr/local/bin/stability-test - --config=/etc/tidb-operator-stability/config.yaml - - --operator-image=pingcap/tidb-operator:v1.0.1 - - --operator-tag=v1.0.1 + - --operator-image=pingcap/tidb-operator:v1.0.2 + - --operator-tag=v1.0.2 - --slack-webhook-url="" volumeMounts: - mountPath: /logDir