Commit 91277e7
committed
compute: Allow users to manually specify bootable volumes
When creating a server with an attached volume, you can specify a block
device with a 'boot_index' of '0' and this will become the bootable
device. OSC allows users to do this by using either the '--volume'
option or a combination of the '--image' and '--boot-from-volume'
options, but we should also allow them to do it the "hard way" via the
'--block-device' option. For example:
openstack server create \
--block-device uuid=0a89ecd8-1fe2-45f0-94da-7789067911c9,boot_index=0 \
--block-device uuid=589266ef-fd88-46e9-b7b2-94503ce8f88f,boot_index=1 \
... \
my-server
Make this possible.
Change-Id: Ia48449fecbc590346630807b1c7da40102d53b33
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Story: 2010376
Task: 466171 parent e7bc687 commit 91277e7
3 files changed
Lines changed: 58 additions & 12 deletions
File tree
- openstackclient
- compute/v2
- tests/unit/compute/v2
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
895 | | - | |
896 | | - | |
| 894 | + | |
897 | 895 | | |
898 | 896 | | |
899 | 897 | | |
| |||
1451 | 1449 | | |
1452 | 1450 | | |
1453 | 1451 | | |
1454 | | - | |
| 1452 | + | |
1455 | 1453 | | |
1456 | 1454 | | |
1457 | 1455 | | |
1458 | 1456 | | |
1459 | 1457 | | |
1460 | 1458 | | |
1461 | | - | |
| 1459 | + | |
1462 | 1460 | | |
1463 | 1461 | | |
1464 | 1462 | | |
| |||
1467 | 1465 | | |
1468 | 1466 | | |
1469 | 1467 | | |
1470 | | - | |
| 1468 | + | |
1471 | 1469 | | |
1472 | 1470 | | |
1473 | 1471 | | |
| |||
1604 | 1602 | | |
1605 | 1603 | | |
1606 | 1604 | | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
1607 | 1614 | | |
1608 | 1615 | | |
1609 | 1616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
2458 | | - | |
| 2458 | + | |
2459 | 2459 | | |
2460 | 2460 | | |
2461 | 2461 | | |
| |||
2506 | 2506 | | |
2507 | 2507 | | |
2508 | 2508 | | |
2509 | | - | |
| 2509 | + | |
2510 | 2510 | | |
2511 | 2511 | | |
2512 | 2512 | | |
| |||
2529 | 2529 | | |
2530 | 2530 | | |
2531 | 2531 | | |
2532 | | - | |
| 2532 | + | |
2533 | 2533 | | |
2534 | | - | |
2535 | 2534 | | |
2536 | 2535 | | |
2537 | 2536 | | |
2538 | 2537 | | |
2539 | 2538 | | |
2540 | | - | |
| 2539 | + | |
2541 | 2540 | | |
2542 | 2541 | | |
2543 | 2542 | | |
2544 | 2543 | | |
2545 | 2544 | | |
| 2545 | + | |
2546 | 2546 | | |
2547 | 2547 | | |
2548 | 2548 | | |
| |||
2569 | 2569 | | |
2570 | 2570 | | |
2571 | 2571 | | |
| 2572 | + | |
2572 | 2573 | | |
2573 | 2574 | | |
2574 | 2575 | | |
| |||
2578 | 2579 | | |
2579 | 2580 | | |
2580 | 2581 | | |
2581 | | - | |
| 2582 | + | |
2582 | 2583 | | |
2583 | 2584 | | |
2584 | 2585 | | |
| |||
3506 | 3507 | | |
3507 | 3508 | | |
3508 | 3509 | | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
3509 | 3541 | | |
3510 | 3542 | | |
3511 | 3543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments