feat(server/create): refuse g2d-* flavors with a clear error (closes #196)#199
Merged
Conversation
…196) Built-in-disk flavors (g2d-*) require a server-side block_device_mapping payload that this CLI does not currently build, so creating one with the existing flow produces a misleading HTTP 400 ("block_device_mapping required") well after the create-summary prompt. Refuse g2d-* up front with an actionable message pointing to volume-backed alternatives (g2l-* / g2w-*). The interactive flavor picker already filters via isUsableFlavor, so this only affects --flavor users who pass a g2d-* UUID or name. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The interactive flavor picker already filters to g2l-t-* via `isUsableFlavor`, so this only affects users who explicitly pass `--flavor <g2d-*>` (UUID or name).
Test plan
Future work
When/if ConoHa3 publishes the BDM shape required for g2d-* over the public API, swap the early refusal for an automatic BDM build so users can actually create dedicated-disk servers.
🤖 Generated with Claude Code