Story #8066

[Deployment] API server package postinst sets up git_internal_dir

Added by Brett Smith almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
01/22/2016
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
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

Task #8134: Review arvados-dev branchResolvedWard Vandewege


Related issues

Blocked by Arvados - Story #8014: [Deployment] /var/www/arvados-RAILSPKG/config includes symlinks to /etc/arvados/RAILSPKG as appropriateResolved01/04/2016

Associated revisions

Revision 487aeb0d (diff)
Added by Ward Vandewege almost 5 years ago

Some review fixes.

closes #8066

Revision 487aeb0d (diff)
Added by Ward Vandewege almost 5 years ago

Some review fixes.

closes #8066

Revision 680bebbe
Added by Ward Vandewege almost 5 years ago

Merge branch '8066-git-init-from-postinst'

closes #8066

Revision 680bebbe
Added by Ward Vandewege almost 5 years ago

Merge branch '8066-git-init-from-postinst'

closes #8066

History

#1 Updated by Brett Smith almost 5 years ago

  • Description updated (diff)

#2 Updated by Brett Smith almost 5 years ago

  • Subject changed from [Deployment] arvados-api-server-upgrade.sh sets up git_internal_dir to [Deployment] API server package postinst sets up git_internal_dir

#3 Updated by Brett Smith almost 5 years ago

  • Target version set to Arvados Future Sprints

#4 Updated by Brett Smith almost 5 years ago

  • Description updated (diff)
  • Story points set to 1.0

#5 Updated by Brett Smith almost 5 years ago

  • Target version changed from Arvados Future Sprints to 2016-01-20 Sprint

#6 Updated by Brett Smith almost 5 years ago

  • Assigned To set to Nico César

#7 Updated by Nico César almost 5 years ago

  • Description updated (diff)

#8 Updated by Brett Smith almost 5 years ago

Please wait for #8014 to merge before you start writing code. Or maybe base your initial arvados-dev development branch off my 8014 branch.

#9 Updated by Nico César almost 5 years ago

  • Status changed from New to In Progress

#10 Updated by Nico César almost 5 years ago

the testing was done the following way:

docker run -ti -v arvados/packages/ubuntu1404/arvados-api-server_0.1.20160104193447.3344f5b-3_amd64.deb:/root/a.deb ubuntu bash

apt-get install curl
sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | sudo bash -s stable --ruby=2.1
source /usr/local/rvm/scripts/rvm
export WEB_SERVICE=nginx
apt-get install postgresql-server-dev-9.3 nginx libcurl4-gnutls-dev
gem install curb -v '0.8.8'
gem install pg -v '0.17.1'
dpkg -i /root/a.deb

#11 Updated by Ward Vandewege almost 5 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF