oxidecomputer / oxidecomputer/json-schema-tools
missing params in create instance json
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Create instance json not considering new nic creation with private ipv4 address
% oxide --insecure instance create --json-body /Users/jatinderluthra/Documents/oxide_cli/create_instance_from_image.json --profile jl-df-silo --project ocp-cer
tification
failed to parse /Users/jatinderluthra/Documents/oxide_cli/create_instance_from_image.json: missing field `params` at line 35 column 3
Below template create with oxjson
% cargo run -p oxjson -- instance create --json-body-template
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/oxjson instance create --json-body-template`
{
"boot_disk": {
"description": "",
"disk_backend": {
"disk_source": {
"image_id": "",
"type": "image"
},
"type": "distributed"
},
"name": "",
"size": 0,
"type": "create"
},
"description": "",
"external_ips": [
{
"pool_selector": {
"ip_version": null,
"type": "auto"
},
"type": "ephemeral"
}
],
"hostname": "",
"memory": 0,
"name": "",
"ncpus": 0,
"network_interfaces": {
"type": "default_dual_stack"
},
"ssh_public_keys": [
""
]
}```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the oxjson instance create --json-body-template entry point and compare its output with the create-instance JSON expected by oxide instance create --json-body. Reproduce the missing params error using the shown template and private IPv4 NIC case. Done means the generated template includes the required NIC parameters and the resulting JSON parses successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100