add-storage does not respect provider's maximum ranges

Bug #1835689 reported by Tim McNamara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

On the Azure provider, the VM instance types that Juju uses for its model-config default may only have 2 disks attached to them. Perhaps the maximum number of disks per instance type be added as a constraint?

$ juju deploy swift-storage
$ juju add-storage swift-storage/0 block-devices=azure-premium,,3
$ juju status --storage
Model Controller Cloud/Region Version SLA Timestamp
default c-teststorage azure/southeastasia 2.6.6.1 unsupported 14:07:21+12:00

App Version Status Scale Charm Store Rev OS Notes
swift-storage waiting 0/1 swift-storage jujucharms 256 ubuntu

Unit Workload Agent Machine Public address Ports Message
swift-storage/0* waiting allocating 0 52.139.235.153 agent initializing

Machine State DNS Inst id Series AZ Message
0 started 52.139.235.153 machine-0 bionic

Storage Unit Storage id Type Pool Mountpoint Size Status Message
swift-storage/0 block-devices/0 block azure-premium 1.0GiB attaching compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="The maximum number of data disks allowed to be attached to a VM of this size is 2." Target="dataDisks"
swift-storage/0 block-devices/1 block azure-premium 1.0GiB attaching compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="The maximum number of data disks allowed to be attached to a VM of this size is 2." Target="dataDisks"
swift-storage/0 block-devices/2 block azure-premium 1.0GiB attaching compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="OperationNotAllowed" Message="The maximum number of data disks allowed to be attached to a VM of this size is 2." Target="dataDisks"

tags: added: azure-provider storage
removed: stora
John A Meinel (jameinel)
Changed in juju:
status: New → Triaged
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Wishlist → Low
tags: added: expirebugs-bot
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.