Ask Your Question

Is there a way to disable ephemeral storage?

asked 2016-04-05 07:13:06 -0500

alvaroaleman gravatar image

Is it possible to completely disable ephemeral storage/force users to use volumes?

edit retag flag offensive close merge delete


You want you use Shared volume for the ephemeral Disk ?

Bipin gravatar imageBipin ( 2016-04-07 01:02:54 -0500 )edit

No. If one creates an instance, either boot from image or boot from image(create volume) can be selected. The first creates a hypervisor local qcow2 as root disk. I don't want users to be able to do that.

alvaroaleman gravatar imagealvaroaleman ( 2016-04-07 03:34:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-07 05:00:07 -0500

dbaxps gravatar image

updated 2016-04-07 07:53:51 -0500

Looking at

I see "1. Create server code listing example" ,"2. Delete server code example" 
Dealing with original code which would have branch kinda 1
I clearly see what should be placed in (1) instead of print(nova_client.servers.list()) to delete just created server. But I have no any idea where it's under /usr/lib/python2.7/site-packages


As far as I remember on Mitaka && Liberty only admin can upload glance image and usually set "public" flag.  
Uncheck public or use glance-update as admin , so all images would have private status , but in this case
creating volumes via images would become only admin's responsibilty
edit flag offensive delete link more


I don't quite understand what that does have to do with the question...? I want to force users to use cinder volumes for everything and now allow creating ephemeral disks (=hypervisor local qcow2s).

alvaroaleman gravatar imagealvaroaleman ( 2016-04-07 06:33:36 -0500 )edit

If user can create volume via glance image , the he would be able launch VM as well, unless you know Openstack so much that can hack python code to disallow second option , but still keeping booting from volume.

dbaxps gravatar imagedbaxps ( 2016-04-07 06:42:31 -0500 )edit

Even strong python background doesn't allow make this hack, knowledge on Openstack python modules responsible for nova boot is required. Looks like "Good" RFE for upstream.

dbaxps gravatar imagedbaxps ( 2016-04-07 06:45:57 -0500 )edit

I still don't understand your approach. What does deleting have to do with this? From an API POV no ephemeral storage would mean to be forced to submit a cinder volume to boot from when creating a new instance.

alvaroaleman gravatar imagealvaroaleman ( 2016-04-07 09:00:13 -0500 )edit

What is hack ? I want update nova boot delete server right after creating server, if source was glance image. Is it so hard to understand ? I am not going to develop anything I am going achieve my target via hackery the system.

dbaxps gravatar imagedbaxps ( 2016-04-07 09:14:59 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-05 07:13:06 -0500

Seen: 1,028 times

Last updated: Apr 07 '16