FNNDSC / projectman

FNNDSC project manager
3 stars 0 forks source link

ChRIS switch to single cluster user #95

Open rudolphpienaar opened 9 years ago

rudolphpienaar commented 9 years ago

ChRIS switch to single cluster user

rudolphpienaar commented 9 years ago

ChRIS single cluster user

Overview

This task should "simplify" the general operation of ChRIS. Currently a validated user to the system preserves their uid/gid when running jobs on the backend cluster. The problem with this is that users can have all sorts of custom environments and setup scripts resulting in a lot of work to get a particular user working well.

Solution

Only a single backend user will now be used for all ChRIS users.

NicolasRannou commented 9 years ago

Feed controller

Commits:

NicolasRannou commented 9 years ago

File controller

Commits:

NicolasRannou commented 9 years ago

Launcher

could user shell_exec('ssh something....') http://phpseclib.sourceforge.net/ssh/auth.html

Commits:

NicolasRannou commented 9 years ago

Runner

Commits:

NicolasRannou commented 9 years ago

User controller

Commits:

NicolasRannou commented 9 years ago

Utils

Note: do not touch config file location yet because we need a folder chris can access to load assets (i.e. background image)

NicolasRannou commented 9 years ago

Api

Commmits:

NicolasRannou commented 9 years ago

WIP: remote jobs (on the cluster).

Some issues with quotes escaping as PHP "magic quote is ON".

Will turn it off tomorrow morning (Boston night), so we can ensure production ChRIS not affected, and if affected, time to fix it.

chris@chris:/neuro/users/chris $>sudo vim /etc/php5/cli/php.ini
chris@chris:/neuro/users/chris $>sudo service apache2 restart
NicolasRannou commented 9 years ago

we didn't turn off magic quotes as it maybe have unexpected side effects, solution to deal with escaping hell it to have extra scripts (https://github.com/FNNDSC/chrisreloaded/commit/95e92bdfb37a3f3d119e72cb9941aacd1a15ebb7)