cockroachdb / cockroachdb/cockroach-operator

Failed Upgrade Causes Stale Operator Failure Status

Abierto
#464 7 comentarios 0 reacciones 1 asignado Reclamado por @keith-mcclellan Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
318
Forks
104
Merge medio
1 d 6 h
PR fusionados (30 d)
1

Descripción

For the [4/29 Bug bash](https://docs.google.com/spreadsheets/d/1mW7pMPXq9t7Rph9473xj3JmFXwQ769YQIzF668pTIWQ/edit#gid=139881396), I ran the Negative Testing Scenario

**Repro Steps:**
1. Install Operator
2. Using the Operator, install a version of CockroachDB v19.2.x
3. Using the Operator, attempt to upgrade to CockroachDB v20.2.x (expected to fail)
4. Using the Operator, attempt to install a version of CockroachDB v20.1.x (expected to succeed)

**Expected Results:** Step 3 is expected to fail. Step 4 should succeed, and getting status of the cluster via `kubectl describe CrdbCluster cockroachdb` should communicate that the cluster and the Operator are in a healthy status on v20.1.x.

**Actual Results:**
After installing v20.1.x in step 4, the kubectl describe status communicates:
- Cluster is in a failed state
- a stale message of a failed upgrade from step 3

**kubectl describe CrdbCluster cockroachdb:**
```
Status:
Cluster Status: Failed
Conditions:
Last Transition Time: 2021-04-29T14:15:48Z
Status: True
Type: Initialized
Last Transition Time: 2021-04-29T14:32:02Z
Status: True
Type: CrdbVersionChecked
Last Transition Time: 2021-04-29T14:14:57Z
Status: True
Type: CertificateGenerated
Crdbcontainerimage: cockroachdb/cockroach:v20.2.7
Operator Actions:
Last Transition Time: 2021-04-29T14:15:48Z
Message:
Status: Finished
Type: Initialize
Last Transition Time: 2021-04-29T14:33:46Z
Message: failed to update sts with partitioned update: cockroachdb: upgrading from 20.1.11 to 20.2.7 with preserve downgrade option set to 19.2.0 not allowed: can't roll forward due to preserve downgrade option
Status: Failed
Type: PartialUpdate
Version: v20.2.7
Events:
```

**Additional context:**
- On Macbook
- operator version: `image: cockroachdb/cockroach-operator:v1.7.5`

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.