Commit 903daef
committed
cephfs: address review feedback on MDS pinning
Handle several review comments on the VolumeAttributesClass MDS pinning
support:
- Purge the freshly created subvolume when applying the mutable
parameters fails in CreateVolume, so a failed pin does not leave an
orphaned subvolume behind. The already-existing subvolume path is left
untouched on failure.
- Reject unknown mutable parameters in validateMDSPinParameters and
return InvalidArgument, as recommended by the CSI spec for unsupported
parameters.
- Return NotFound (instead of InvalidArgument) from
ControllerModifyVolume when the volume backing the given ID cannot be
found, and Internal for other resolution errors.
- Log the manager command status and output returned when pinning a
subvolume.
- Clarify the PinVolume documentation to describe the valid pin setting
value for each pin type.
Assisted-by: goose <noreply@block.xyz>
Signed-off-by: Ismael Puerto Freire <ismaelpf@inditex.com>1 parent b8b5c07 commit 903daef
3 files changed
Lines changed: 48 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
499 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
503 | 511 | | |
504 | 512 | | |
505 | 513 | | |
| |||
1514 | 1522 | | |
1515 | 1523 | | |
1516 | 1524 | | |
1517 | | - | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1518 | 1528 | | |
1519 | 1529 | | |
1520 | | - | |
1521 | | - | |
| 1530 | + | |
| 1531 | + | |
1522 | 1532 | | |
1523 | 1533 | | |
1524 | 1534 | | |
1525 | 1535 | | |
1526 | 1536 | | |
1527 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1528 | 1544 | | |
1529 | 1545 | | |
1530 | 1546 | | |
| |||
1663 | 1679 | | |
1664 | 1680 | | |
1665 | 1681 | | |
1666 | | - | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
1667 | 1689 | | |
1668 | 1690 | | |
1669 | 1691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
359 | 362 | | |
360 | 363 | | |
361 | 364 | | |
362 | | - | |
| 365 | + | |
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
367 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
368 | 374 | | |
369 | 375 | | |
0 commit comments