github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/rackspace/flavors.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package rackspace 5 6 import ( 7 "strings" 8 9 "github.com/juju/loggo" 10 "gopkg.in/goose.v2/nova" 11 ) 12 13 var logger = loggo.GetLogger("juju.provider.rackspace") 14 15 func acceptRackspaceFlavor(d nova.FlavorDetail) bool { 16 // On Rackspace, the "compute" and "memory" class 17 // flavors do not have ephemeral root disks. You 18 // can only boot them with a Cinder volume. 19 // 20 // TODO(axw) 2016-11-18 #1642795 21 // Support flavors without a root disk by 22 // creating a bootable Cinder volume. 23 if strings.HasPrefix(d.Id, "compute") || strings.HasPrefix(d.Id, "memory") { 24 return false 25 } 26 return true 27 }