Creating flavor requires Extented attribute OS-FLV-EXT-DATA:ephemeral

Bug #1158698 reported by Sergio M
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

When I create a flavour through the API ( v2/{tenant_id}/flavors ), with a request like:
curl -i http://localhost:8774/v2/f6cb51c22ef94d80823ec498d5f94355/flavors -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "X-Auth-Token: fd72aee7935b4327847b3e7e7763425f" -d '{"flavor": {"disk": 10, "vcpus": 2, "ram": 1024, "name": "test_doesnot_work", "id": "1234", "swap": 22}}'
It returns me an error, and does not let me create the flavor.
The problem I've found is that OpenStack requires the "OS-FLV-EXT-DATA:ephemeral" extended attribute; otherwise, it will not let me create the flavor. For example the example below works fine:
curl -i http://localhost:8774/v2/f6cb51c22ef94d80823ec498d5f94355/flavors -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "X-Auth-Token: fd72aee7935b4327847b3e7e7763425f" -d '{"flavor": {"disk": 10, "vcpus": 2, "ram": 1024, "name": "test_fine", "id": "1234", "swap": 22,"OS-FLV-EXT-DATA:ephemeral" : 2}}'

OS-FLV-EXT-DATA:ephemeral is an attribute for The size of secondary drive, in GBs, to attach to a server. Is it always necessary to create a secondary drive to attach to a server when creating a VM ?

The OpenStack version is Essex

Tags: api flavor
Sergio M (sergiomendo)
description: updated
Revision history for this message
Chuck Short (zulcss) wrote :

Which version is this?

Changed in nova:
status: New → Incomplete
Revision history for this message
Sergio M (sergiomendo) wrote :

The version is Essex

description: updated
Changed in nova:
status: Incomplete → New
Revision history for this message
Andrew Laski (alaski) wrote :

Dupe of https://bugs.launchpad.net/nova/+bug/1056910 which had a fix released in grizzly.

Changed in nova:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.