Commit Graph

24847 Commits

Author SHA1 Message Date
Rom Walton fa7ebdca4e VBOX: Do not go off the rails if a process handle cannot be obtained for the VM process. Changing process priority of a Virtualbox 4.3.14 VM does not currently work. 2014-07-12 15:27:03 -04:00
David Anderson cb1bb4069a web: be more thorough when deleting users
When deleting a spammer, delete
- forum_logging
- private messages
- notifications

Also, when displaying private messages, check if sender
doesn't exist, and delete if so
2014-07-11 15:20:01 -07:00
David Anderson 99b51693ea client (Win): if CreateProcess() fails because of mem, wait and retry
Apparently on some Win 7/8 with SSD drives, CreateProcess() sometimes returns
ERROR_NOT_ENOUGH_MEMORY; presumably it then allocates more swap space.
Treat this case using the "temporary exit" logic:
delay for 10 min, then try again.
If 100 failures, abort task.

Note: not tested.  This may be a bad idea.
2014-07-11 12:31:23 -07:00
David Anderson 3b12ee0311 transitioner: don't exit if fail to find expected host_app_version record. 2014-07-10 20:51:46 -07:00
David Anderson df53b4591d client: don't assume that notices with same GUID are identical; a project may have edited a news item. 2014-07-10 20:46:47 -07:00
Rom Walton 077c05bd89 client: Include error code in error string when process creation fails.
It'll help to quickly identify the problem for localized systems.
2014-07-08 19:50:52 -04:00
David Anderson 81faa12ff3 scheduler: make matchmaker scheduling the default
Remove <matchmaker> config option; add <sched_old> option.
2014-07-08 12:35:45 -07:00
David Anderson dd91a2c976 client: message tweak 2014-07-08 12:35:31 -07:00
Charlie Fenton 5c475782fe LIB: A more efficient fix than commit 87d3cb5 to eliminate the spurious 'dyld: DYLD_ environment variables being ignored' stderr messages on Mac OS X 10.8. 2014-07-08 00:16:12 -07:00
Rom Walton 6ad292cbdc VBOX: resolve build breaks caused by a bad merge. 2014-07-07 16:30:31 -04:00
Rom Walton d252088210 Add filename to log
Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
2014-07-07 16:18:54 -04:00
Carlos Aguado Sanchez acf54750a8 Fix naming scheme for cache and iso
Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
2014-07-07 16:04:11 -04:00
Rom Walton a57cbb7987 Add implementation for an extra cache disk
This commit adds two extra options:
- enable_cache_disk
- cache_disk_filename

This allows to attach a cache disk image to extend the storage
needs initially provided by the OS image.

In context-based systems such as uCernVM, this image can be
used to store the local cache of artifacs coming from CVMFS.

Note this image is attached without further checking on the content
and is entirely up to the main OS to make good use of it.

Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
2014-07-07 16:03:46 -04:00
Rom Walton 56ae3415a4 VBOX: remove unneeded variable 2014-07-07 15:47:31 -04:00
Rom Walton 7ec9e95822 Enable VM contextualization via ISO9660 image
This commit allows to attach an ISO9660 image to a vbox VM
from a well-known file. The purpose is to enable the dynamic
configuration of the VM in first boot so that the volunteer VM
can be kept generic. This process is otherwise widely known as
contextualization of virtual machines.

The actual content of the ISO9660 image is application dependent
and outside the scope of this implementation.

Signed-off-by: Carlos Aguado Sanchez <carlos.aguado@epfl.ch>
2014-07-07 15:46:59 -04:00
David Anderson e437d09824 web: show peak device FLOPS on result page 2014-07-06 19:59:08 -07:00
David Anderson 6fa0940502 client: tweaks to log output for <rrsim_detail> 2014-07-05 12:00:11 -07:00
David Anderson 6496da31a3 client: check for negative usage values in app_config.xml 2014-07-05 00:15:39 -07:00
David Anderson 658547ccf6 wrapper: add --trickle X cmdline option to periodically report runtime
Add logic in wrapper to maintain and checkpoint total runtime.
Also vboxwrapper: slight refactor.

Note: we often use "elapsed time" where we mean "runtime".
Should use the latter.
2014-07-04 12:19:31 -07:00
David Anderson 65c82b067f API: remove handle_trickle_down and handle_trickle_up from BOINC_OPTIONS.
Sending or receiving trickle messages required setting flags in BOINC_OPTIONS.
There were two problems with this:
1) it wasn't documented
2) it's not necessary; the act of calling boinc_send_trickle_up()
   tells the runtime system to do the trickle-up-related stuff.

Furthermore, because intermediate file upload shares message channels
with trickles, these functions also required the option flags
(also undocumented).

With this change, you don't need to set options to use
trickle messages are intermediate file upload.
2014-07-04 11:11:38 -07:00
David Anderson 02325341c8 update BOINC Web translation template 2014-07-04 09:44:53 -07:00
David Anderson 2edfe0317d scheduler: don't send spurious "GPU needed" message 2014-07-04 09:42:28 -07:00
David Anderson a177ef0068 client: fix job scheduling bug. Sort by avg_ncpus doesn't apply to GPU jobs 2014-07-03 21:53:38 -07:00
David Anderson 5250f55c8a scheduler: fix bugs related to changing code signing key
Two separate problems:
- a well-meaning change to remove compile warnings on 9 July 2013
  broke the reading of key files
- in the logic to scan old key files, we needed to use strip_whitespace()
  to remove the \n at end of file.
2014-07-03 13:33:53 -07:00
Rom Walton 87d3cb5474 LIB: Get rid of the spurious 'dyld: DYLD_ environment variables being ignored' stderr messages on Mac OS X 10.8 machines across all of our apps. 2014-07-03 12:10:28 -04:00
David Anderson 572d7bf9e5 scheduler: handle <dont_send_work> tag from client
If a project has both NCI and non-NCI apps,
it needs to send NCI jobs even if the work request is zero;
otherwise a client might not get NCI jobs.

However, this policy will send NCI jobs even if the user
has set "no new tasks" for the project.
To handle this correctly, we recently added a <dont_send_work>
element to the scheduler request.
Add logic to the scheduler to parse and enforce this flag.
2014-07-03 00:39:33 -07:00
David Anderson bed5baead4 client: add <dont_send_work> element to scheduler request;
set if dont_request_more_work is set.
Prevents projects w/ NCI apps from sending jobs
2014-07-03 00:33:24 -07:00
David Anderson a1b345373e db_purge: allow fractional values of min_age_days 2014-07-02 23:23:45 -07:00
David Anderson ec08b24c7f scheduler: if a request returns new code sign key, it can also return work 2014-07-02 22:26:18 -07:00
Rom Walton 8821d735a6 VBOX: Fix another typo. 2014-07-03 00:10:53 -04:00
Rom Walton ccfd312975 Merge branch 'master' of ssh://isaac.ssl.berkeley.edu/boinc-v2 2014-07-02 23:42:24 -04:00
Rom Walton 124223fd41 VBOX: Fix typos in launch_vboxvm() logic. It isn't currently used, but I do want to try and get that working at some point in the future. 2014-07-02 23:41:58 -04:00
David Anderson 4ed83d0c6d web: in user-visible app version list, don't show beta apps as latest 2014-07-02 20:23:32 -07:00
Rom Walton 0c5c1ca933 BUILD: Update vboxwrappers version to 26094. 2014-07-02 19:47:00 -04:00
Rom Walton f230391349 VBOX: If recent copies of VirtualBox log files are missing, use the last cached copy of the log file we successfully retrieved for dumping out log data on premature shutdowns. 2014-07-02 19:44:05 -04:00
Rom Walton 5960c9eeb3 BUILD: Update vboxwrappers version to 26093. 2014-07-02 18:29:30 -04:00
Rom Walton c77ac42984 WINBUILD: Update vboxwrappers version to 26092. 2014-07-02 18:27:27 -04:00
Charlie Fenton 714675fc85 BUILD: Update vboxwrapper's version to 26092. 2014-07-02 01:01:43 -07:00
David Anderson 870cbb0079 create_work program: add --hr_class cmdline argument 2014-07-02 00:17:20 -07:00
David Anderson 89b27cabf9 vboxwrapper: temporary change to completion trigger file:
pause for 60 seconds before exiting, and don't read trigger file.
For ATLAS@home.  Undo when they update their VM.
2014-07-01 23:01:42 -07:00
Rom Walton 4ef802071c BUILD: Update vboxwrapper's version to 26091. 2014-07-02 01:12:31 -04:00
David Anderson 73d580c4cd web: fix bug that prevented Recaptcha display 2014-07-01 20:11:06 -07:00
Rom Walton 2220a839c5 DOC: Update manager_links.php to handle help for both the advanced preferences and simple preferences dialog. 2014-07-01 20:14:13 -04:00
David Anderson 56c30c8427 vboxwrapper: fix function names to use consistent style. 2014-07-01 13:43:43 -07:00
David Anderson b8627bace1 vboxwrapper: add "completion trigger file" mechanism.
When it's finished, the VM app can write a file of a given name
(specified in vbox_job.xml) in the shared dir.
This file can optionally contain an exit code and stderr text.
If vboxwrapper finds this file, it cleans up the VM and calls boinc_finish().
This works around a problem where the VM doesn't exit properly
and the task hangs forever.
2014-07-01 13:31:25 -07:00
Rom Walton b9907469b8 DOC: Update manager_links.php to include new simple view control ids 2014-07-01 15:41:58 -04:00
Rom Walton b22d2a7855 VBOX: Late saved file 2014-07-01 15:22:05 -04:00
Rom Walton a55c18a8a9 Merge branch 'master' of ssh://isaac.ssl.berkeley.edu/boinc-v2 2014-07-01 15:19:48 -04:00
Rom Walton f1981368f8 VBOX: Partial commit for completion trigger files (David taking over) 2014-07-01 15:19:17 -04:00
Joachim Fritzsch da4a9f40d5 android: prototypical social media button after attach. 2014-07-01 15:21:05 +02:00