sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

compute server zone: selector code assumes that the available instance types are the same across the zones in a region, but this isn't always true #7994

Open williamstein opened 3 weeks ago

williamstein commented 3 weeks ago
  1. Create a compute server in us-west1-c and start, then stop it.
  2. Try to change the vm type to a c3 instance type -- it's an option
  3. But then you can't make the change, because c3's are only in us-west1-a and us-west1-b.

The problem is that the compute server selector code assumes that the available instance types are the same across the zones in a region, but this isn't always true. Instead it shouldn't show c3 as an option except in the second part of the modal that says "change region/zone".

This isn't a major bug, since you do get a clear indicator in red at the top of the modal. It's just a mild inconvenience.