Commit f6c9939
committed
Add reproducer for bug #2099702: flavor unset --project fails for deleted projects
When a project has been deleted from Keystone, `openstack flavor unset
--project <deleted-project-id>` fails because find_project_id_sdk()
validates the project against Keystone with validate_actor_existence=True
(the default) and raises CommandError when the project is not found.
This means Nova's removeTenantAccess API is never called, effectively
bypassing the server-side fix for bug #1980845 which already handles
deleted projects gracefully.
The fix should pass validate_actor_existence=False when calling
find_project_id_sdk() for the removeTenantAccess case, similar to
how RemoveRole handles this in identity/v3/role.py.
Related-Bug: #2099702
Assisted-By: Claude-Code opus 4.6
Change-Id: I438244dd226173b61e5f7c3105fe3006829a0e65
Signed-off-by: René Ribaud <rene.ribaud@gmail.com>1 parent caec5c3 commit f6c9939
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1225 | 1256 | | |
1226 | 1257 | | |
1227 | 1258 | | |
| |||
0 commit comments