Commit 42c07e9
committed
mgr/rgw: don't fail realm bootstrap if system user exists already
If you create a realm/zonegroup/zone and a system user for the
zone, delete the realm/zonegroup/zone, and then recreate them,
attempting to recreate the system user failes with EEXIST. Instead
of having the realm bootstrap fail in these scenarios, we can
go grab the info we need from the existing user.
Fixes: https://tracker.ceph.com/issues/70914
Signed-off-by: Adam King <[email protected]>1 parent 61e2b24 commit 42c07e9
1 file changed
+28
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
511 | 513 | | |
512 | 514 | | |
513 | | - | |
| 515 | + | |
514 | 516 | | |
515 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
516 | 538 | | |
517 | 539 | | |
518 | 540 | | |
| |||
0 commit comments