azure root-disk constraint fails if < default root disk size

Bug #1645408 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Juju 2.0.1-xenial-amd64 on Xenial:

juju deploy ubuntu --constraints="root-disk=20G"

Deployment fails with a 'provisioning error'. Azure portal gives more details on why it failed:

machine-0 Provisioning failed. Disk size reduction is not supported. Current size is 31457280512 bytes, requested size is 22548578816 bytes.. ResizeDiskError

This happens because the default instance for my given constraint has a 32G root disk. Specifying anything smaller via the root-disk constraint will fail. It would be nice if we know the default root disk sizes for azure instance types. If a root-disk constraint is smaller than that, ignore the constraint.

AFAICT, this does not affect AWS. The disk size for default aws instances is 8G, and even if I specify root-disk=4G, my deployment succeeds. I end up with an 8G root disk, so it seems anything smaller is simply ignored on AWS. I'd like the same thing to happen on Azure.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

From IRC conversation with axw, we should add a check for minimum around https://github.com/juju/juju/blob/staging/provider/azure/environ.go#L415.

We currently define one for windows only.

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.1.0
Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.