Ask Your Question

Is it possible to reboot the VM during Software Deployment using HEAT

asked 2015-08-21 03:37:17 -0500

machi029 gravatar image

We have a requirment to automate software deployment using heat. I believe that this is very common but some softwares requires to install premodules and then REBOOT before installing the the actual softwares. ( .Net framework of Windows for example )

Is this possible to express this in a single heat template ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-08-21 17:16:15 -0500

smaffulli gravatar image

I'm not familiar with Windows and .NET but without getting in there, I would suggest a different approach: instead of delegating to Heat the installation of basic framework packages in the image, I would prepare ad-hoc images with all the basic pieces installed and delegate to Heat only the parts that don't require reboots. I would assume that having images ready to take on your application would also speed up the boot time quite considerably

edit flag offensive delete link more


Thanks you for your comment.

I hoped that heat had some way to express this. but I do believe your opinion is the most strait forward way to achieve this.

machi029 gravatar imagemachi029 ( 2015-08-23 20:19:41 -0500 )edit

answered 2015-08-24 12:35:45 -0500

alexpilotti gravatar image

updated 2015-08-24 12:38:52 -0500

It is definitely possible, look for example at this Heat template which shows how to deploy Active Directory in a Windows instance:

About rebooting, just exit the userdata script with a 1001 code as shown in the example. This will instruct Cloudbase-Init to reboot.

More info:

Windows Server 2012 R2 OpenStack evaluation images:

edit flag offensive delete link more


Thank you for your information. I'm still reading the template to understand how this works... so I understand that "1001" is a special code only for windows?

machi029 gravatar imagemachi029 ( 2015-09-25 01:15:41 -0500 )edit

Sorry I see a code "1003" to reexcute user-data Do you have any information on what this means? "The user data script can keep track of the current state before a reboot by using custom registry values in order to resume execution at the desired.."

machi029 gravatar imagemachi029 ( 2015-09-25 01:20:04 -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: 2015-08-21 03:37:17 -0500

Seen: 825 times

Last updated: Aug 24 '15