When i use horizon
to create a nova instance, it is creating volume based on selected flavor and image.
But when i determine flavorRef and ImageRef via rest api endpoint, the created instance has no volume!
Have to create a volume and attach it manually?
The default in horizon dashboard is indeed to create a new volume when creating a new instance. The "yes" button is preselected in the "source" tab. If you want to create a volume via CLI you'll need to also provide the
--block-device-mapping
argument, seeopenstack help server create
for more details. I haven't tried that via API directly so I'm not sure if this is applicable for creating instances via API.