Commit 2fe2c57
nova_verify, pre_launch_ironic: fix ironic post-adoption provisioning
The post-adoption ironic instance provisioning task in nova_verify.yaml
can fail with quota exceeded (HTTP 403) when the adopted environment
already uses all available instances (e.g. uni04delta-ipv6 with 10 VMs
from the source cloud at the default quota of 10).
Set the instance quota correctly from the start in pre_launch_ironic.bash
by reading the current quota and adding headroom for the pre-adoption
and post-adoption test instances. The quota carries over through the
Nova database migration during adoption, so the post-adoption
provisioning step no longer hits the limit.
Also add ironic_post_adoption_create_instance variable (default true)
to allow scenarios to skip the post-adoption provisioning step entirely.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent f00c5db commit 2fe2c57
3 files changed
Lines changed: 6 additions & 0 deletions
File tree
- tests/roles
- dataplane_adoption/tasks
- development_environment/files
- ironic_adoption/defaults
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
0 commit comments