Skip to content

Commit 926f849

Browse files
authored
Feat: increase timeouts for iaas handlers (#1516)
* feat: increase network handler timeouts * feat: increase volume handler timeouts * docs: add changelog entry
1 parent b2dd1ee commit 926f849

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
- **Feature:** Add method to list all public ip ranges: `ListPublicIpRanges`
1818
- Add size attribute to image model
1919
- Add CPU architecture attribute to image config model
20-
- `serviceenablement: [v0.6.0](services/serviceenablement/CHANGELOG.md#v060-2025-02-27)
20+
- `iaas`: [v0.21.1](services/iaas/CHANGELOG.md#v0211-2025-03-02)
21+
- Increase Timeouts for volume and network wait handlers
22+
- `serviceenablement`: [v0.6.0](services/serviceenablement/CHANGELOG.md#v060-2025-02-27)
2123
- **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request.
2224

2325

services/iaas/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
## v0.21.1 (2025-03-02)
2+
3+
- Increase Timeouts for volume and network wait handlers
4+
15
## v0.21.0 (2025-02-27)
26

37
- **Feature:** Add method to list all public ip ranges: `ListPublicIpRanges`
48
- Add size attribute to image model
59
- Add CPU architecture attribute to image config model
610

711
## v0.20.0 (2025-02-21)
12+
813
- **New:** Minimal go version is now Go 1.21
914

1015
## v0.19.0 (2024-12-20)

services/iaas/wait/wait.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func CreateNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, org
6363
}
6464
return false, area, nil
6565
})
66-
handler.SetTimeout(10 * time.Minute)
66+
handler.SetTimeout(15 * time.Minute)
6767
return handler
6868
}
6969

@@ -84,7 +84,7 @@ func UpdateNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, org
8484
return false, area, nil
8585
})
8686
handler.SetSleepBeforeWait(2 * time.Second)
87-
handler.SetTimeout(10 * time.Minute)
87+
handler.SetTimeout(15 * time.Minute)
8888
return handler
8989
}
9090

@@ -104,7 +104,7 @@ func DeleteNetworkAreaWaitHandler(ctx context.Context, a APIClientInterface, org
104104
}
105105
return true, nil, nil
106106
})
107-
handler.SetTimeout(10 * time.Minute)
107+
handler.SetTimeout(15 * time.Minute)
108108
return handler
109109
}
110110

@@ -125,7 +125,7 @@ func CreateNetworkWaitHandler(ctx context.Context, a APIClientInterface, project
125125
return false, network, nil
126126
})
127127
handler.SetSleepBeforeWait(2 * time.Second)
128-
handler.SetTimeout(10 * time.Minute)
128+
handler.SetTimeout(15 * time.Minute)
129129
return handler
130130
}
131131

@@ -146,7 +146,7 @@ func UpdateNetworkWaitHandler(ctx context.Context, a APIClientInterface, project
146146
return false, network, nil
147147
})
148148
handler.SetSleepBeforeWait(2 * time.Second)
149-
handler.SetTimeout(10 * time.Minute)
149+
handler.SetTimeout(15 * time.Minute)
150150
return handler
151151
}
152152

@@ -166,7 +166,7 @@ func DeleteNetworkWaitHandler(ctx context.Context, a APIClientInterface, project
166166
}
167167
return true, nil, nil
168168
})
169-
handler.SetTimeout(10 * time.Minute)
169+
handler.SetTimeout(15 * time.Minute)
170170
return handler
171171
}
172172

@@ -188,7 +188,7 @@ func CreateVolumeWaitHandler(ctx context.Context, a APIClientInterface, projectI
188188
}
189189
return false, volume, nil
190190
})
191-
handler.SetTimeout(10 * time.Minute)
191+
handler.SetTimeout(30 * time.Minute)
192192
return handler
193193
}
194194

@@ -216,7 +216,7 @@ func DeleteVolumeWaitHandler(ctx context.Context, a APIClientInterface, projectI
216216
}
217217
return true, nil, nil
218218
})
219-
handler.SetTimeout(10 * time.Minute)
219+
handler.SetTimeout(30 * time.Minute)
220220
return handler
221221
}
222222

@@ -521,7 +521,7 @@ func AddVolumeToServerWaitHandler(ctx context.Context, a APIClientInterface, pro
521521
}
522522
return false, nil, nil
523523
})
524-
handler.SetTimeout(10 * time.Minute)
524+
handler.SetTimeout(15 * time.Minute)
525525
return handler
526526
}
527527

@@ -546,7 +546,7 @@ func RemoveVolumeFromServerWaitHandler(ctx context.Context, a APIClientInterface
546546
}
547547
return true, nil, nil
548548
})
549-
handler.SetTimeout(10 * time.Minute)
549+
handler.SetTimeout(15 * time.Minute)
550550
return handler
551551
}
552552

0 commit comments

Comments
 (0)