Ask Your Question

FlavorDiskTooSmall : is there a way to define a minimal flavor on in the image in glance

asked 2014-12-04 04:25:38 -0500

I've started using glance image properties to have better metadata about my images in glance

So I was wondering if there was a way to define the minimal flavor an image can run on in those properties. Updating them using glance image-update.

ps. while I'm at it, is there a way to use these properties to define the default username one has to use to login via ssh on the VM ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-10 03:06:23 -0500

You could use the instance_type_* properties for the image:

  • instance_type_ephemeral_gb
  • instance_type_flavorid
  • instance_type_id
  • instance_type_memory_mb
  • instance_type_name
  • instance_type_root_gb
  • instance_type_rxtx_factor
  • instance_type_swap
  • instance_type_vcpu_weight
  • instance_type_vcpus

According to the title of your question I assume you are most likely interested in instance_type_root_gb.

CLI: glance image-update <uuid> --property instance_type_root_gb=<size>

Hint: In documentation and code one will often find instance_type as a synonym to flavor.


The second question about providing a default username for ssh login cannot be answered by me, sorry.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-04 04:25:38 -0500

Seen: 317 times

Last updated: Dec 10 '14