Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v1.0.2 #1080

Merged
merged 31 commits into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d05f2fb
release v1.0.2
weekface Oct 29, 2019
cfecf45
Update CHANGELOG.md
weekface Oct 30, 2019
e8aa051
Update CHANGELOG.md
weekface Oct 30, 2019
89930d5
Update CHANGELOG.md
weekface Oct 30, 2019
64c93a5
address comment
weekface Oct 30, 2019
dca4315
Update CHANGELOG.md
weekface Oct 31, 2019
384124d
Update CHANGELOG.md
weekface Oct 31, 2019
c7ba211
Update CHANGELOG.md
weekface Oct 31, 2019
e2c4d0c
Update CHANGELOG.md
weekface Oct 31, 2019
571353e
Update CHANGELOG.md
weekface Oct 31, 2019
5b9d8cb
Update CHANGELOG.md
weekface Oct 31, 2019
a71f116
Update CHANGELOG.md
weekface Oct 31, 2019
4526efc
Update CHANGELOG.md
weekface Oct 31, 2019
70dd0c9
Update CHANGELOG.md
weekface Oct 31, 2019
d95e017
Update CHANGELOG.md
weekface Oct 31, 2019
2775388
Update CHANGELOG.md
weekface Oct 31, 2019
8b66bc0
Update CHANGELOG.md
weekface Oct 31, 2019
8f366ad
Update CHANGELOG.md
weekface Oct 31, 2019
aa54861
Update CHANGELOG.md
weekface Oct 31, 2019
cc770c7
Update CHANGELOG.md
weekface Oct 31, 2019
60e597a
Update CHANGELOG.md
weekface Oct 31, 2019
546587a
Update CHANGELOG.md
weekface Oct 31, 2019
08d7312
Update CHANGELOG.md
weekface Oct 31, 2019
47a5503
Update CHANGELOG.md
weekface Oct 31, 2019
ab7f0d2
Update CHANGELOG.md
weekface Oct 31, 2019
b250752
Update CHANGELOG.md
weekface Oct 31, 2019
113af35
address comment
weekface Oct 31, 2019
d3fa984
Update CHANGELOG.md
weekface Oct 31, 2019
94d90d7
Update CHANGELOG.md
weekface Oct 31, 2019
c15103f
Update CHANGELOG.md
weekface Oct 31, 2019
23c48c1
Update CHANGELOG.md
weekface Nov 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 tkctl version does not work when the release name is un-wanted
weekface marked this conversation as resolved.
Show resolved Hide resolved
- 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 tkctl version does not work when the release name is un-wanted ([#1065](https://github.com/pingcap/tidb-operator/pull/1065))
weekface marked this conversation as resolved.
Show resolved Hide resolved
- Fix that the `create_tidb_cluster_release` variable in AWS terraform script does not work ([#1062](https://github.com/pingcap/tidb-operator/pull/1062))
weekface marked this conversation as resolved.
Show resolved Hide resolved
- 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 upgrade complete when rollback bad configuration in stability test ([#1030](https://github.com/pingcap/tidb-operator/pull/1030))
weekface marked this conversation as resolved.
Show resolved Hide resolved
- 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
Expand Down
2 changes: 1 addition & 1 deletion charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/tidb-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/aliyun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ variable "tidb_version" {
}

variable "tidb_operator_version" {
default = "v1.0.1"
default = "v1.0.2"
}

variable "tidb_operator_chart_version" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aliyun/tidb-cluster/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aliyun/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aws/tidb-cluster/variables.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/aws/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/gcp/tidb-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/gcp/tidb-operator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion deploy/modules/share/tidb-cluster-release/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "cluster_name" {
Expand Down
4 changes: 2 additions & 2 deletions tests/manifests/stability/stability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down