Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Stackscripts question
PostPosted: Wed May 19, 2010 5:46 pm 
Offline
Senior Newbie

Joined: Tue Jan 19, 2010 7:59 pm
Posts: 14
Website: http://www.scottphillips.com
I've been working on a set of stack scripts to setup my new install of ubuntu 10.4 LTS so that I can upgrade. I've run into something weird.

One of the commands restricts SSH disallow root logins, a pretty basic task when setting up a new box. After deploying a new image with the stack script I am able to login as root. After looking through the logs it appears that the stack scripts just start a bash script executing and then report success. So, if I just wait a little while the stack-script will finish and root logins are restricted.

1) Is this true, do stack scripts run after "success" is reported in the linode manager.

2) Is there a way from the linode manager to tell when a stack script has finished setting up the server?

3) After deploying via stack scripts, what is the current state of the machine is it running? Is it running silently, because I still have to click the boot button for the machine to be accessible over the network.

4) Does this seem wiered to anyone else?


Top
   
PostPosted: Mon May 24, 2010 12:02 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
AggieScott wrote:
1) Is this true, do stack scripts run after "success" is reported in the linode manager.

After success on the boot job, yes. The deploy from StackScript job simply inserts the StackScript into the distribution you have selected. It is executed after that disk image boots for the first time, by your distribution (not the Linode Manager).

Our platform boots your Linode in Xen, passes off control, then no longer cares. When your Linode's kernel takes off, as far as the Linode Manager is concerned your Linode has booted successfully. It doesn't wait for the StackScript to finish, as really, it has no way to tell -- that's all under the jurisdiction of your Linode's kernel. The StackScript is entirely on its own in this department, from a technological standpoint.

AggieScott wrote:
2) Is there a way from the linode manager to tell when a stack script has finished setting up the server?

No, because then you're asking every StackScript author to remember to ping Linode.com, or jobs will hang indefinitely -- StackScripts do not fit into the job architecture that we currently have. I pitched this very idea, and it was wisely concluded that my idea was flawed for this very reason. Some StackScripts take tens of minutes, and it is entirely under your kernel's responsibility -- do you really want to lose the ability to shut down your Linode during that time?

If there is a better way we'll find it, but it doesn't fit well today.

AggieScott wrote:
3) After deploying via stack scripts, what is the current state of the machine is it running? Is it running silently, because I still have to click the boot button for the machine to be accessible over the network.

When the Linode Manager says Powered Off, your Linode is Powered Off. It simply doesn't exist on the host, and is just a filesystem waiting to be shoved into Xen. That's what the boot job does. Linodes do not ever run silently with their network disabled.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Wed May 26, 2010 10:32 am 
Offline
Senior Newbie

Joined: Tue Jan 19, 2010 7:59 pm
Posts: 14
Website: http://www.scottphillips.com
Thanks for the reply!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group