Skip to content

Commit

Permalink
OpenStack: Mark instances in ERROR state as 'NeedsUpdate'
Browse files Browse the repository at this point in the history
  • Loading branch information
ederst committed May 22, 2023
1 parent 9ce26de commit df46af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/openstack/server_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func osBuildCloudInstanceGroup(c OpenstackCloud, cluster *kops.Cluster, ig *kops
generationName := fmt.Sprintf("%d-%d", cluster.GetGeneration(), ig.Generation)

status := cloudinstances.CloudInstanceStatusUpToDate
if generationName != observedName {
if generationName != observedName || server.Status == errorStatus {
status = cloudinstances.CloudInstanceStatusNeedsUpdate
}
cm, err := cg.NewCloudInstance(instanceId, status, nodeMap[instanceId])
Expand Down

0 comments on commit df46af4

Please sign in to comment.