Skip to content

Commit 29046a4

Browse files
Merge pull request #90 from form3tech-oss/sergii-add-more-retries-to-hv-recovery
Split recovery into phases to use parallel steps better
2 parents 37ad69b + 7168c7b commit 29046a4

File tree

10 files changed

+296
-147
lines changed

10 files changed

+296
-147
lines changed

.github/workflows/build_targets.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
key: ${{ inputs.images-cache-key }}
101101

102102
- name: Upload saved images
103-
uses: actions/upload-artifact@v2
103+
uses: actions/upload-artifact@v4
104104
with:
105105
name: ${{ inputs.images-artifact-name }}
106106
path: ./output/saved-images
@@ -134,7 +134,7 @@ jobs:
134134
key: ${{ inputs.e2e-binary-cache-key }}
135135

136136
- name: Upload e2e binary
137-
uses: actions/upload-artifact@v2
137+
uses: actions/upload-artifact@v4
138138
with:
139139
name: ${{ inputs.e2e-binary-name }}
140140
path: ./e2e-test/image/e2e/bin
@@ -169,7 +169,7 @@ jobs:
169169
echo "chart-name=$chart_name" >> $GITHUB_OUTPUT
170170
171171
- name: Upload chart
172-
uses: actions/upload-artifact@v2
172+
uses: actions/upload-artifact@v4
173173
with:
174174
name: ${{ inputs.chart-artifact-name }}
175175
path: ${{ steps.build-chart.outputs.chart-path }}

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
steps:
5050
- name: Download saved images
5151
id: download-images
52-
uses: actions/download-artifact@v2
52+
uses: actions/download-artifact@v4
5353
with:
5454
name: ${{ needs.build-targets.outputs.images-artifact-name }}
5555
path: ./output/${{ needs.build-targets.outputs.images-artifact-name }}
5656

5757
- name: Download chart
5858
id: download-chart
59-
uses: actions/download-artifact@v2
59+
uses: actions/download-artifact@v4
6060
with:
6161
name: ${{ needs.build-targets.outputs.chart-artifact-name }}
6262
path: ./output/${{ needs.build-targets.outputs.chart-artifact-name }}

.github/workflows/e2e_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
uses: actions/checkout@v2
4141

4242
- name: download saved images
43-
uses: actions/download-artifact@v2
43+
uses: actions/download-artifact@v4
4444
with:
4545
name: ${{ inputs.images-artifact-name }}
4646
path: ./output/saved-images
4747

4848
- name: download e2e binary
49-
uses: actions/download-artifact@v2
49+
uses: actions/download-artifact@v4
5050
with:
5151
name: ${{ inputs.e2e-binary-name }}
5252
path: ./output/e2e-binary

.github/workflows/integration_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Download saved images
2424
id: download-images
25-
uses: actions/download-artifact@v2
25+
uses: actions/download-artifact@v4
2626
with:
2727
name: ${{ inputs.images-artifact-name }}
2828
path: ./output/${{ inputs.images-artifact-name }}
@@ -85,7 +85,7 @@ jobs:
8585
8686
- name: Post run - upload kubernetes cluster info dump
8787
if: always()
88-
uses: actions/upload-artifact@v2
88+
uses: actions/upload-artifact@v4
8989
with:
9090
name: integration-test-kubernetes-cluster-info-dump
9191
path: cluster-info-dump

api/v1alpha1/cloudstackhostchaos_types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ type CloudStackHostChaosSpec struct {
8080
// CloudStackHostChaosStatus represents the status of a CloudStackChaos.
8181
type CloudStackHostChaosStatus struct {
8282
ChaosStatus `json:",inline"`
83+
84+
// Instances keeps track of the affected hosts and vms
85+
// +optional
86+
Instances map[string]CloudStackHostAffected `json:"affectedHosts,omitempty"`
87+
}
88+
89+
type CloudStackHostAffected struct {
90+
Name string `json:"name,omitempty"`
91+
VMs []string `json:"vms,omitempty"`
8392
}
8493

8594
type CloudStackHostChaosSelector struct {
@@ -116,3 +125,7 @@ func (selector *CloudStackHostChaosSelector) Id() string {
116125
func (obj *CloudStackHostChaos) GetSelectorSpecs() map[string]interface{} {
117126
return map[string]interface{}{".": &obj.Spec.Selector}
118127
}
128+
129+
func (obj *CloudStackHostChaos) GetCustomStatus() interface{} {
130+
return &obj.Status.Instances
131+
}

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/chaos-mesh.org_cloudstackhostchaos.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ spec:
120120
status:
121121
description: CloudStackHostChaosStatus represents the status of a CloudStackChaos.
122122
properties:
123+
affectedHosts:
124+
additionalProperties:
125+
properties:
126+
name:
127+
type: string
128+
vms:
129+
items:
130+
type: string
131+
type: array
132+
type: object
133+
description: Instances keeps track of the affected hosts and vms
134+
type: object
123135
conditions:
124136
description: Conditions represents the current global condition of
125137
the chaos

0 commit comments

Comments
 (0)