Skip to content

Commit

Permalink
blocked-edges/4.11.*: Declare AWSOldBootImagesLackAfterburn
Browse files Browse the repository at this point in the history
Like 034fa01 (blocked-edges/4.12.*: Declare AWSOldBootImages,
2022-12-14, #2909), this one is sticky, because we don't have PromQL
access to boot-image age, so we cannot automatically distinguish
between "born in 4.1 and still uses the old boot images" and "born
in 4.1, but has subsequently updated boot images".  And because of
a cluster-version operator bug, we don't necessarily have access to
the cluster's born-in release anyway.  The CVO bug fix went back via:

* 4.11.0 https://bugzilla.redhat.com/show_bug.cgi?id=2097067#c12
* 4.10.24 https://bugzilla.redhat.com/show_bug.cgi?id=2108292#c6
* 4.9.45 https://bugzilla.redhat.com/show_bug.cgi?id=2108619#c6
* 4.8.47 https://bugzilla.redhat.com/show_bug.cgi?id=2109962#c6
* 4.7.59 https://bugzilla.redhat.com/show_bug.cgi?id=2117347#c8
* 4.6.61 https://bugzilla.redhat.com/show_bug.cgi?id=2118489#c6

So it's possible for someone born in 4.1 to have spend a whole bunch
of time in 4.9.z and be reporting a 4.9.0-rc.* or something as their
born-in version.  Work around that by declaring this risk for AWS
clusters where the born-in version is 4.9 or earlier, expecting that
we'll have this issue fixed soonish, so folks with old boot images
will be able to update to a later 4.11, and allowing us to be overly
broad/cautious with the risk matching here.

I wrote the 4.11.0 content manually, and then copied over to the other
4.11s with:

  $ curl -s 'https://api.openshift.com/api/upgrades_info/graph?channel=candidate-4.11' | jq -r '.nodes[].version' | grep '^4[.]11[.]' | grep -v '^4[.]11[.]0$' | while read V; do sed "s/4[.]11[.]0/${V}/g" blocked-edges/4.11.0-AWSOldBootImageLackAfterburn.yaml > "blocked-edges/${V}-AWSOldBootImageLackAfterburn.yaml"; done
  • Loading branch information
wking committed Mar 2, 2023
1 parent 976b404 commit 957626a
Show file tree
Hide file tree
Showing 40 changed files with 840 additions and 0 deletions.
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-fc.0-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-fc.0
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-fc.3-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-fc.3
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.0-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.0
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.1-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.1
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.2-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.2
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.3-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.3
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.4-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.4
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.5-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.5
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.6-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.6
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.0-rc.7-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.0-rc.7
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.1-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.1
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.10-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.10
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.11-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.11
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.12-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.12
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.13-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.13
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.14-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.14
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)
21 changes: 21 additions & 0 deletions blocked-edges/4.11.16-AWSOldBootImageLackAfterburn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
to: 4.11.16
from: 4[.]10[.].*
url: https://issues.redhat.com/browse/MCO-519
name: AWSOldBootImagesLackAfterburn
message: |-
4.1 AWS boot images are not compatible with some 4.11 and later, and machines created with them will fail to become nodes. This risk does not apply if a cluster is not on AWS, was installed as version 4.2 or later, or otherwise uses 4.2 or later boot images.
matchingRules:
- type: PromQL
promql:
promql:
topk(1,
label_replace(group(cluster_version{type="initial",version=~"4[.][0-9][.].*"}),"born_by_4_9", "yes, so possibly actually born in 4.1", "", "")
or
label_replace(0 * group(cluster_version{type="initial",version!~"4[.][0-9][.].*"}),"born_by_4_9", "no, born in 4.10 or later", "", "")
)
* on () group_left (type)
(
cluster_infrastructure_provider{type="AWS"}
or
0 * cluster_infrastructure_provider
)

0 comments on commit 957626a

Please sign in to comment.