Commit 894250e
committed
Use coriolis-writer v2 API
The v1 coriolis-writer API only accepts device names such as /dev/vdb.
Device names are unreliable and can change depending on the order
in which the devices are identified.
For this reason, most Coriolis providers attach one device at a time
and then check the device name that was identified by the VM.
This is unnecessary for providers that can predentermine the SCSI
ID or address of the device and use that instead of device names.
As such, we'll use the v2 API of the Coriolis writer, which also
accepts udev links such as /dev/disk/by-id/<disk-id>. The Coriolis
writer will still resolve those links to ensure that there aren't
multiple lock owners of the same device.
The main difference is that the disk path is passed as a b64 encoded
string. Also, the lock acquire/release now became POST requests,
which are more appropriate than using GET for this purpose.1 parent a9b70ff commit 894250e
2 files changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
574 | 575 | | |
575 | 576 | | |
576 | 577 | | |
577 | | - | |
578 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
586 | | - | |
| 588 | + | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| |||
594 | 596 | | |
595 | 597 | | |
596 | 598 | | |
597 | | - | |
| 599 | + | |
598 | 600 | | |
599 | 601 | | |
600 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | | - | |
| 746 | + | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
786 | | - | |
| 786 | + | |
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| |||
0 commit comments