Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update flexible_disk_size + add_disk in one payload #977

Open
sjorge opened this issue Feb 27, 2021 · 0 comments
Open

Cannot update flexible_disk_size + add_disk in one payload #977

sjorge opened this issue Feb 27, 2021 · 0 comments

Comments

@sjorge
Copy link
Contributor

sjorge commented Feb 27, 2021

{
  "flexible_disk_size": 14592,
  "add_disks": [
    {
      "boot": false,
      "model": "virtio",
      "size": 4096
    }
  ]
}

The VM didn't have enough space, so I set the new flexible_disk_size in the same payload, this still doesn't work.

cannot create 'zones/e8bfab59-cc76-4dc0-af02-9c5f5c2f5e51/disk1': out of space

The entire update then stops, I assume it is doing the create of disk1 zvol before updating the zfs reservations with the new value of flexible_disk_size, but VM.js is a confusing beast.

Doing vmadm update $(vmadm lookup hostname=bhyvetest) flexible_disk_size=14592 before doing the add_disks payload works fine. Which seem to indeed indicate that the ordering is somehow wrong internally when both are in the same payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant