Skip to content

Commit cc1e747

Browse files
authored
[blueprint-planner] Don't fail on sleds with no zpools (#8355)
Fixes #7800. That issue notes that this is a minor inconvenience when adding a sled, but (a) it's easy to fix and (b) we hit it in colo in a different context (expunging all the disks on a sled). That combo made it seem worth it to go ahead and fix it.
1 parent 8de2328 commit cc1e747

File tree

4 files changed

+296
-3
lines changed

4 files changed

+296
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Load example system
2+
load-example --nsleds 3 --ndisks-per-sled 3
3+
4+
# Show the sleds, blueprints, and inventory collections we have.
5+
sled-list
6+
blueprint-list
7+
inventory-list
8+
9+
# Add a new sled with no disks.
10+
sled-add --ndisks 0
11+
12+
# Generate a new inventory collection that includes that sled.
13+
inventory-generate
14+
15+
# Try to plan a new blueprint; this should be okay even though the sled
16+
# we added has no disks.
17+
blueprint-plan dbcbd3d6-41ff-48ae-ac0b-1becc9b2fd21 eb0796d5-ab8a-4f7b-a884-b4aeacb8ab51
18+
blueprint-show 8da82a8e-bf97-4fbd-8ddd-9f6462732cf1

dev-tools/reconfigurator-cli/tests/output/cmds-add-sled-no-disks-stderr

Whitespace-only changes.

0 commit comments

Comments
 (0)