Ask Your Question
0

Is there an openstack command which will allow me to protect a vm [closed]

asked 2014-02-25 10:15:09 -0500

KeithJ gravatar image

updated 2014-02-28 03:19:51 -0500

Release Grizzly Currently if I want to protect a specific VM I have to go into the mysql database and perform an update. Naturally, I would prefer to avoid doing this.

Is there any openstack service command which can be used to protect a vm. Essentially, I am looking for a way of preventing the VM being deleted, even if someone tries to terminate the VM.

I have looked through nova --help and their is nothing which appears obvious.

I think glance image-update can be used to protect/unprotect the snapshot rather than the vm

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 08:08:05.271463

Comments

can you specify what you mean by 'protect'? It's not clear to me. Edit your question, please.

smaffulli gravatar imagesmaffulli ( 2014-02-27 16:43:16 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-02-28 05:39:32 -0500

foexle gravatar image

Hi Keith,

not really protect but you can configure policies in nova for deletion tasks. May you can use an user/role for manage your cloud and an other one is only authorized to delete your vm's. An other solution is not available atm. Other question is why do you will protect a vm? Normally vm's are stateless, so is one is gone you can spawn an other one with the same settings immediatally.

Cheers Heiko

edit flag offensive delete link more
0

answered 2014-03-01 16:26:07 -0500

hillad gravatar image

There was a BP for this in the API but it didn't get anywhere. [1]

You can take a look at nova's lock command.

[1] https://blueprints.launchpad.net/nova/+spec/disable-terminate (https://blueprints.launchpad.net/nova...)

edit flag offensive delete link more
0

answered 2014-02-28 10:31:59 -0500

KeithJ gravatar image

Thanks for the answer. Quite simply we are using puppet to do orchestration. One of the options is to delete vms in project which are not protected. So here in this case, we may want to prevent some vms from being deleted.

Thats the main reason for the question. During my search, I noticed that this is a requested feature, but development has not been started.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-25 10:15:09 -0500

Seen: 1,184 times

Last updated: Mar 01 '14