Ask Your Question
0

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

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

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
0

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

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

Comments

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 -0600 )edit
0

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

alexpilotti gravatar image

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

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

https://github.com/openstack/heat-tem...

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: https://github.com/stackforge/cloudba...

Windows Server 2012 R2 OpenStack evaluation images: http://www.cloudbase.it/ws2012r2/

edit flag offensive delete link more

Comments

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 -0600 )edit

Sorry I see a code "1003" to reexcute user-data http://wiki.cloudbase.it/heat-windows 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 -0600 )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

Stats

Asked: 2015-08-21 03:37:17 -0600

Seen: 798 times

Last updated: Aug 24 '15