Project

General

Profile

Actions

Idea #8066

closed

[Deployment] API server package postinst sets up git_internal_dir

Added by Brett Smith over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
01/22/2016
Due date:
Story points:
1.0

Description

The API server has code to try to set this up itself, but it frequently fails because the parent directory doesn't exist, or the API server can't write to it. Doing it from the package is much less error-prone.

When crunch-dispatch inits the repository, it frequently has wrong ownerships (root:root instead of www-data:www-data).

  • Take the git init code out of crunch-dispatch.
  • After config:check succeeds, grab the value of git_internal_dir. If it doesn't exist, set up all directories as necessary as www-data:root 0770, then su -c "git init …" www-data. Make sure to follow symlinks all the way through, from the existence check to the final init.
  • Make sure Puppet isn't going to thrash on these changes.
  • Test on a test cluster to make sure it doesn't make any changes.

Subtasks 1 (0 open1 closed)

Task #8134: Review arvados-dev branchResolvedWard Vandewege01/22/2016Actions

Related issues

Blocked by Arvados - Idea #8014: [Deployment] /var/www/arvados-RAILSPKG/config includes symlinks to /etc/arvados/RAILSPKG as appropriateResolvedBrett Smith01/04/2016Actions
Actions

Also available in: Atom PDF