Score:0

auto cinder volume when creating nova instance via REST API

kz flag

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?

Score:0
us flag

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, see openstack 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.

Vahid Alimohamadi avatar
kz flag
yes its's possible, just need to change the type from local (is default) to volume in block_device_mapping_v2
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.