Commit Graph

29683 Commits

Author SHA1 Message Date
David Anderson 381e0caf14 Remote job submission: add support for per-job templates in submit requests
This supports the TACC use case,
in the jobs in a batch can use different Docker images
and different input and output file signatures,
none of which are known in advance.

Python API binding:
    - A JOB_DESC object can optionally contain wu_template and result_template
        elements, which are the templates (the actual XML) to use for that job.
        Add these to the XML request message if present.
    - Added the same capability to the PHP binding, but not C++.
    - Added and debugged test cases for both languages.

    Also, submit_batch() can take either a batch name (in which case
    the batch is created) or a batch ID
    (in which the batch was created prior to remotely staging files).

RPC handler:
    - in submit_batch(), check for jobs with templates specified
        and store them in files.
        For input templates (which are deleted after creating jobs)
        we put them in /tmp,
        and use a map so that if two templates are the same we use 1 file.
        For output templates (which have to last until all jobs are done)
        we put them in templates/tmp, with content-based filenames
        to economize.
    - When creating jobs, or generating SQL strings for multiple jobs,
        use these names as --wu_template_filename
        and --result_template_filename args to create_work
        (either cmdline args or stdin args)
    - Delete WU templates when done

create_work.cpp:
    handle per-job --wu_template and --result_template args in stdin job lines
    (the names of per-job WU and result templates).
    Maintain a map mapping WU template name to contents,
    to avoid repeatedly reading them.

    For jobs that don't specify templates, use the ones specified
    at the batch level, or the defaults.
2017-01-21 00:24:11 -08:00
David Anderson 0bc9b02640 BOINC web: don't show mediawiki pages as https; doesn't work 2017-01-20 00:03:17 -08:00
David Anderson ebfc5dc2ce remove compile warnings. Should have done this long ago! 2017-01-20 00:01:25 -08:00
David Anderson 26591dbd6d Merge branch 'master' of github.com:BOINC/boinc 2017-01-20 00:00:47 -08:00
David Anderson 9139d9f5c1 sign_executable: remove dependence on MySQL libs 2017-01-19 23:58:49 -08:00
tristanolive b56f2fa4ce Merge pull request #1760 from drshawnkwang/drupal_fix-removedebugstm
Drupal: Removed debugging statements left in accidentally.
2017-01-19 08:48:47 -05:00
tristanolive 9ad8195e77 Merge pull request #1745 from drshawnkwang/drupal_updatephpmailer
Drupal: Updated phpmailer library to v5.2.21
2017-01-19 08:42:20 -05:00
Shawn Kwang 0adad0b124 Drupal: Removed debugging statements left in accidentally. 2017-01-18 15:51:31 -06:00
David Anderson 58f437592d web: fixed URL of BOINCstats in 3 places 2017-01-14 21:47:45 -08:00
David Anderson 4ffe582194 server: add support for constant input files
See http://boinc.berkeley.edu/trac/wiki/JobTemplates

Also remove the <number> and <file_number> nonsense from input templates.
<file_ref> i corresponds to <file_info> i
2017-01-13 00:23:01 -08:00
David Anderson 1c801108ad Merge branch 'master' of github.com:BOINC/boinc 2017-01-12 13:57:53 -08:00
David Anderson e92a398c0a client: fix typo 2017-01-12 13:57:31 -08:00
David Anderson 6b3d569ebe more 2016->2017 changes 2017-01-12 13:21:37 -08:00
David Anderson 5267da76ce BOINC web: fix some URLs 2017-01-12 13:20:38 -08:00
David Anderson 06be40e8f0 Web and web RPCs: add 5-second delay if password error
Slow down hackers trying to guess passwords
2017-01-12 13:19:01 -08:00
David Anderson 96ebcbff94 PHP binding of web RPCs: use Curl instead of file_get_contents()
That latter doesn't support HTTPS in my version of PHP
2017-01-12 13:17:55 -08:00
David Anderson 7cb58b5268 client: include # GPUs in <host_info> XML, including acct mgr requests 2017-01-12 13:15:42 -08:00
tristanolive 11dbab6093 Merge pull request #1746 from drshawnkwang/drupal_fix-profilesearchresults
Drupal: Fixes profile search result issue regarding 'Joined' date.
2017-01-12 10:30:27 -05:00
tristanolive e63907a41f Merge pull request #1735 from drshawnkwang/drupal_fix-newsmenutype
Drupal: Changed news view menu type to "Normal Menu".
2017-01-11 15:54:43 -05:00
Charlie Fenton 2d63fc2b91 Mac installer: update comments explaining how to install BOINC Manager from the command line. 2017-01-09 21:43:59 -08:00
David Anderson 79fa97cfe3 web: if mkdir fails, show the path in error msg 2017-01-09 11:46:51 -08:00
Charlie Fenton d6ff95d1ec Mac installer & uninstaller: replace all deprecated Mac APIs as of OS 10.12 2017-01-06 01:53:47 -08:00
David Anderson 31a95ba10f client: add option to use SOCKS5 for DNS
Added <socks5_remote_dns> option to cc_config.xml.
Tells Curl to use the SOCKS proxy for domain name resolution.
2017-01-05 21:34:34 -08:00
David Anderson 93b9f8fefb Merge pull request #1750 from AenBleidd/Issue1748
MGR: Enable always 'Advance View' menu item in Simple mode.
2017-01-05 14:40:43 -08:00
David Anderson a788dba8b9 lib: remove duplicate code 2017-01-05 14:01:06 -08:00
David Anderson 5e858aca97 web: if project down for maintenance, say so and quit 2017-01-05 13:25:52 -08:00
David Anderson fe485e643b Merge branch 'master' of github.com:BOINC/boinc 2017-01-05 13:25:05 -08:00
David Anderson 9e70ef3ecb client: code formatting 2017-01-05 13:24:53 -08:00
David Anderson 96274fe88f Merge pull request #1751 from mdspann/master
Add  hostinfo detection for 64 bit arm processors to use the same log…
2017-01-05 13:24:09 -08:00
Michael Spann e833bef636 Add hostinfo detection for 64 bit arm processors to use the same logic as 32 bit arm processors. 2017-01-05 19:22:28 +00:00
Vitalii Koshura 7a2ea7be78 MGR: Enable always 'Advance View' menu item in Simple mode.
'Advance view' item is enabled always even if Manager doesn't connected to client.
As requested in issue 1748.
2017-01-05 02:35:31 +02:00
David Anderson 536d89f228 Merge branch 'master' of https://github.com/BOINC/boinc 2017-01-04 13:34:37 -08:00
David Anderson b949b87ac2 client: njobs_fail, not njobs_error 2017-01-04 13:34:26 -08:00
David Anderson c44a2b45dc client: tweak account manager logic
1) store AM and login info in files whose names include the AM URL,
    and don't delete them when detach from the AM.
    That way if user detaches and reattaches,
    we'll still have the opaque data (e.g. host ID)
    and the AM won't create a new host.
2) If the AM RPC has an error on the server,
    it probably won't return AM name, signing key, or opaque data.
    In that case hang onto the old ones.
2017-01-04 13:29:10 -08:00
Shawn Kwang adf22bcaed Drupal: Added to boincuser module, hook_apachesolr_index_documents_alter(), which alters the ApaceSolr document in order to change the ds_created timestamp to be the user account creation timestamp. 2017-01-03 12:28:43 -06:00
Shawn Kwang ce313a97aa Drupal: Fixed search result template to get NID from search result directly.
NID is now obtained from Apache Solr Results. If the title field is empty, then use the user account name.
2017-01-03 12:28:43 -06:00
Shawn Kwang 74cafd2052 Drupal: Updated phpmailer library to v5.2.21.
https://dev.gridrepublic.org/browse/DBOINCP-353
2017-01-03 11:53:39 -06:00
Christian Beer 5c8c4c5897 Locale: Update localization files [skip ci] 2017-01-03 12:21:11 +01:00
Christian Beer 6d63f9cae5 Locale: Update localization files [skip ci]
Reverts some translation related changes made in 2435538, 3de9867 and f2c3963.
2017-01-03 12:12:31 +01:00
Christian Beer cfd11fc90b Locale: fix transifex config to adjust for changes in #1703
Filepaths to translation files changed with the Android Studio migration.
2017-01-03 11:53:40 +01:00
David Anderson f691a3f0f9 Merge pull request #1703 from denravonska/android-studio-support
Android studio support
2016-12-28 16:06:31 -08:00
David Anderson 20ef72e256 Merge pull request #1656 from AenBleidd/Issue1510
Fix issue #1510: MGR: Ensure start page is in page stack when launchi…
2016-12-28 15:38:03 -08:00
David Anderson 958c89c1e7 client: account per-project CPU and GPU usage; report to account managers
Also report per-project #jobs success/failure
2016-12-27 23:48:37 -08:00
David Anderson f3928622a8 web: fix bug in all-projects certificate: if only 1 project, error 2016-12-24 14:50:01 -08:00
David Anderson 33baa0bca1 client: fix compile errors and warnings 2016-12-22 11:25:44 -08:00
David Anderson 5710a5e8c8 client: report project-level REC to account managers 2016-12-21 22:17:50 -08:00
David Anderson 0dda2fffa3 some PHP stuff for project X 2016-12-21 22:12:57 -08:00
Charlie Fenton 3b355d1574 Mac uninstaller: minor bug fix affecting only OS 10.6 2016-12-21 06:53:34 -08:00
Charlie Fenton 640e8a9ff8 Mac uninstaller: replace all deprecated Mac APIs as of OS 10.12 2016-12-21 06:08:36 -08:00
David Anderson 2da0e5cdb1 client: fix bug in benchmark CPU selection 2016-12-19 17:36:11 -08:00