View Issue Details

IDProjectCategoryView StatusLast Update
0001961Slicer4Core: Building (CMake, Superbuild)public2013-08-30 20:34
Reporterjcfr Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0001961: Setup mechanism to restart factory on a weekly basis
Description

MacOSx becomes unstable after a long time without restart. Program are segfaulting ...

Setting up a weekly restart could help avoiding this issue.

That said, it would be great to have a better understanding of the underlying issue.

TagsNo tags attached.

Relationships

related to 0002367 closedjcfr Fix ubuntu factory error "Xlib: extension "GLX" missing on display ":0.0" 
related to 0002368 closedcrmullin Checkout DashboardScripts CVS 
related to 0002370 closedcrmullin Document Slicer factory organization 
related to 0002493 closedjcfr Nightly extension builds are not available 

Activities

jcfr

jcfr

2012-05-04 14:08

administrator   ~0004171

Email sent to sysadmin - May 4th 2012:

Dear Sysadmin,

I would like to have the slicer factory restart every Saturday.

Considering that:
1) the factory is running MacOSX
2) 2 virtual machine are running (Windows and ubuntu)

Which strategy would you recommend to setup such a mechanism ?

See http://www.na-mic.org/Bug/view.php?id=1961

Thanks for you help,

jcfr

jcfr

2012-06-25 15:13

administrator   ~0004932

From Matt - May 7 2012:

It’s less painfull to the filesystem of the vm to have the os of the vm restart itself.. not the vm server restart the os.

So just make crons/tasks to reboot inside each.

Matt

jcfr

jcfr

2012-06-25 15:15

administrator   ~0004933

Email sent to sysadmin - June 25 2012:

Hi Matt,

The idea was to restart the host of the VMs. In that case, shutting gracefully the VM would be required.

Do you have any script that would allow to gracefully shutdown a VM ?

Thanks

jcfr

jcfr

2012-06-25 15:40

administrator   ~0004936

From Matt - June 25 2012:

so, I suppose if you need to reboot the host as well it's a different ballgame. but, I meant just initiate the shutdown by a scheduled task/cron job..

both unix and windows have a shutdown command that can be called from batch file or directly in a cron. Reboot for linux more likely..

I forgot the shutdown for windows options.. try shutdown /?

if you need the host as well.. i'd have to research.

matt

jcfr

jcfr

2012-06-26 09:30

administrator   ~0004940

From Matt - June 25 2012:

if you are looking for both the vm's to restart as well as the host(factory) this may work:

basically if we have the parallel tools installed on the vm, which I did for the ubuntu instance, I'm unsure about windows. You can run this command without the --kill option. But, if the tools aren't installed it will perform a hard stop.. same as if you pulled the power plug..

So, we should get the tools on the instances to make sure we do not have to deal with corrupted file systems all the time.

http://download.parallels.com/desktop/v4/wl/docs/en/Parallels_Command_Line_Reference_Guide/23466.htm

son on factory in mac os, create a script:

stop ubuntu
stop windows

wait a few minutes for machines to stop.

reboot host os

ensure host is set to start parallels and run vm instances at boot.

or it could be that parallels calls a soft shutdown of vm instance when it shuts down normally.. so in that case just schedule a restart in a cron on the host, and make sure parallel tools are installed on vm instances.

jcfr

jcfr

2013-08-30 20:34

administrator   ~0009760

Currently:

  • "factory" is only doing MacOSX build and is restarting every day at 10.50pm
  • "Windows and Linux virtual machine running on "factory-south" are also restarting every day at 10.50pm

Issue History

Date Modified Username Field Change
2012-05-01 08:07 jcfr New Issue
2012-05-01 08:07 jcfr Status new => assigned
2012-05-01 08:07 jcfr Assigned To => jcfr
2012-05-04 14:08 jcfr Note Added: 0004171
2012-06-25 15:13 jcfr Note Added: 0004932
2012-06-25 15:15 jcfr Note Added: 0004933
2012-06-25 15:15 jcfr Status assigned => feedback
2012-06-25 15:40 jcfr Note Added: 0004936
2012-06-25 15:40 jcfr Status feedback => assigned
2012-06-26 09:30 jcfr Note Added: 0004940
2012-06-29 16:12 jcfr Status assigned => feedback
2012-07-27 10:31 jcfr Relationship added related to 0002367
2012-07-27 10:34 jcfr Relationship added related to 0002368
2012-07-27 10:48 jcfr Relationship added related to 0002370
2012-08-21 11:51 jcfr Target Version => Slicer 4.3.0
2012-10-01 11:20 jcfr Relationship added related to 0002493
2013-08-27 11:43 jcfr Target Version Slicer 4.3.0 => Slicer 4.4.0
2013-08-30 20:34 jcfr Note Added: 0009760
2013-08-30 20:34 jcfr Status feedback => resolved
2013-08-30 20:34 jcfr Fixed in Version => Slicer 4.3.0
2013-08-30 20:34 jcfr Resolution open => fixed
2013-08-30 20:34 jcfr Status resolved => closed
2013-08-30 20:34 jcfr Target Version Slicer 4.4.0 => Slicer 4.3.0