Skip to content

Newly-created volume is reported to have a status of creating #1167

@ItsHarper

Description

@ItsHarper

TL;DR

When using hcloud volume create --output json, the command waits for the volume to finish being created, but the printed JSON reports that the status is creating.

Expected behavior

Until #833 is implemented, the status should be returned as available unless there was an error. With #833, the creating status would make sense when not waiting for completion.

Observed behavior

The status is always returned as creating

Minimal working example

hcloud volume create --name vol1 --format ext4 --location ash --output json --size 10 

Log output

Volume 103548878 created
{
  "volume": {
    "id": 103548878,
    "name": "vol1",
    "server": null,
    "status": "creating",
    "location": {
      "id": 4,
      "name": "ash",
      "description": "Ashburn, VA",
      "country": "US",
      "city": "Ashburn, VA",
      "latitude": 39.045821,
      "longitude": -77.487073,
      "network_zone": "us-east"
    },
    "size": 10,
    "format": "ext4",
    "protection": {
      "delete": false
    },
    "labels": {},
    "linux_device": "/dev/disk/by-id/scsi-0HC_Volume_103548878",
    "created": "2025-09-25T05:22:37Z"
  }
}

Additional information

This is with hcloud 1.52.0.

If I have my shell immediately call volume describe after volume create finishes, the state is reported as available.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions