Brett Smith [Mon, 29 Feb 2016 17:45:39 +0000 (12:45 -0500)]
8371, 8413: Bump Rails package iteration.
Build these bug fixes into new packages.
Closes #8371, #8413.
Brett Smith [Mon, 29 Feb 2016 17:43:38 +0000 (12:43 -0500)]
Merge branch '8413-fix-rails-postinst-chgrp-wip'
Refs #8413. Closes #8475.
Brett Smith [Fri, 26 Feb 2016 23:13:19 +0000 (18:13 -0500)]
8413: Rails postinst doesn't chgrp root /etc/arvados.
Non-sensitive Rails configuration files can be 0644 root:root.
Porting those permissions is fine for the individual configuration
file, but not the parent directory tree. Don't change the group of
the directory tree in this case.
Brett Smith [Mon, 29 Feb 2016 17:43:11 +0000 (12:43 -0500)]
Merge branch '8371-centos-postrm-bugfix-wip'
Refs #8371. Closes #8476.
Brett Smith [Fri, 26 Feb 2016 23:20:41 +0000 (18:20 -0500)]
8371: Rails postrm only fires after removing last RPM.
This prevents removing the package files when the postrm script is
called for the old version of a package after doing an upgrade.
RPM post- scripts are called with $1 as the number of versions of the
package currently installed on the system. 0 means the last version
has been removed. We only want to remove files in that case.
Peter Amstutz [Thu, 25 Feb 2016 16:16:20 +0000 (11:16 -0500)]
Merge branch 'arvbox-fixes' no issue #
Peter Amstutz [Thu, 25 Feb 2016 16:15:47 +0000 (11:15 -0500)]
Tweak slurm configuration to run as non-root user.
Peter Amstutz [Thu, 25 Feb 2016 16:14:21 +0000 (11:14 -0500)]
Fix arvados-login-sync for vm account creation
Peter Amstutz [Thu, 25 Feb 2016 16:12:00 +0000 (11:12 -0500)]
Generalize arvbox 'svrestart' to 'sv' no issue #
Tom Clegg [Sat, 20 Feb 2016 08:39:03 +0000 (03:39 -0500)]
Install bundler gem in all build containers.
RVM used to install bundler by default, but now it doesn't.
https://github.com/rvm/rvm/commit/
dc07790042d78c525d7d52616c78cb2d55c0e764
I suppose some systems (like Jenkins) have been able to continue
working because they have cached docker images that were built before
RVM dropped bundler (1.26.11 -- Mar 30, 2015).
But on a new system, we ended up here:
[...]
Package python3-websocket-client_0.35.0-1_all.deb exists, not rebuilding
/jenkins/run-library.sh: line 139: bundle: command not found
ERROR: arvados-api-server package prep failed
/jenkins/run-build-packages.sh: line 492: bundle: command not found
ERROR: Asset precompilation failed
ERROR: build failed with exit status 1.
No issue #
Ward Vandewege [Sat, 20 Feb 2016 04:58:09 +0000 (23:58 -0500)]
Pin package builds of the google-api-python-client and oauth2client
packages to a known-working version.
no issue #
Peter Amstutz [Thu, 18 Feb 2016 21:28:29 +0000 (16:28 -0500)]
Run slurmctld and slurmd inside arvbox. refs #6518
Peter Amstutz [Tue, 16 Feb 2016 15:16:55 +0000 (10:16 -0500)]
Move services to /var/lib/arvbox/services because they include logs and logs
don't go in /usr. no issue #
Peter Amstutz [Mon, 15 Feb 2016 21:37:00 +0000 (16:37 -0500)]
Explicitly install Docker 1.9.1 instead of using get.dockerproject.org (which gets the latest). no issue #
Peter Amstutz [Sun, 14 Feb 2016 04:18:27 +0000 (23:18 -0500)]
Add crunch-dispatch-local to arvbox. no issue #
Peter Amstutz [Fri, 12 Feb 2016 20:14:01 +0000 (15:14 -0500)]
Add arvbox support for overriding settings in application.yml
no issue #
Brett Smith [Wed, 3 Feb 2016 19:24:07 +0000 (14:24 -0500)]
Inhibit udev startup in Debian test Docker images.
The FUSE driver package depends on fuse, which depends on udev.
udev can't start its daemon from postinst in a container.
It has code to try to detect running in a container and skip the
daemon, but it fails intermittently.
e.g., <https://ci.curoverse.com/job/build-packages/1699/consoleFull>
It also skips starting the daemon when /etc/udev/disabled exists, so
create that.
Brett Smith [Wed, 3 Feb 2016 13:19:34 +0000 (08:19 -0500)]
.deb dependencies from Python packages ignore iteration.
See comment for rationale.
Inspired by <https://github.com/curoverse/arvados/pull/35>.
No issue #.
Peter Amstutz [Mon, 1 Feb 2016 14:16:52 +0000 (09:16 -0500)]
Pin llfuse to 0.41.1 because 0.42 came out and broke things. no issue #
Peter Amstutz [Fri, 29 Jan 2016 21:15:41 +0000 (16:15 -0500)]
Add distinct fpm_exclude so it shows up in the right place on the fpm command
line. refs #8008
Peter Amstutz [Thu, 28 Jan 2016 19:55:29 +0000 (14:55 -0500)]
Use volumes for /var/log/nginx and /etc/ssl/private so that changing ownership
sticks. refs #8080
Peter Amstutz [Thu, 28 Jan 2016 19:22:23 +0000 (14:22 -0500)]
Arvbox fixes: use 'postgres' database when testing if a user exists. Copy
gitolite.rc to the right place. Print out what is being deleted when using
"reset" or "destroy". refs #8080
Peter Amstutz [Wed, 27 Jan 2016 21:40:53 +0000 (16:40 -0500)]
chown /etc/ssl/private to arvbox refs #8080
Peter Amstutz [Wed, 27 Jan 2016 20:39:38 +0000 (15:39 -0500)]
Bump iteration of rails packages to -4 refs #8008
Peter Amstutz [Wed, 27 Jan 2016 19:34:06 +0000 (14:34 -0500)]
Fix selecting most recent package for package testing, refs #8008.
Brett Smith [Mon, 25 Jan 2016 23:15:12 +0000 (18:15 -0500)]
8008: Make dependencies for build-dockerfiles.
We've apparently never had code to do this before. I guess all
deployments had the dependencies generated by hand before running.
This makes them automated to fix failures like
<https://ci.curoverse.com/job/build-packages/1668/console>.
Refs #8008.
Peter Amstutz [Mon, 25 Jan 2016 17:14:44 +0000 (12:14 -0500)]
Fix markdown for arvbox README.md refs #8080
Peter Amstutz [Mon, 25 Jan 2016 15:34:02 +0000 (10:34 -0500)]
Add "status" command, refs #8080
Peter Amstutz [Mon, 25 Jan 2016 15:21:22 +0000 (10:21 -0500)]
Just create arvbox superuser instead of creating a whole useless database.
Check directly whether creating the arvbox is required. refs #8080
Ward Vandewege [Fri, 22 Jan 2016 22:44:55 +0000 (17:44 -0500)]
Make sure not to accidentally include config/application.yml and
config/database.yml in our rails packages, take 2: make sure that
config/database.yml *is* present in our workbench packages, where we
want to include it.
No issue #
Ward Vandewege [Fri, 22 Jan 2016 21:40:26 +0000 (16:40 -0500)]
Merge branch '8066-git-init-from-postinst'
closes #8066
Ward Vandewege [Fri, 22 Jan 2016 21:39:23 +0000 (16:39 -0500)]
Some review fixes.
closes #8066
Ward Vandewege [Fri, 22 Jan 2016 21:21:23 +0000 (16:21 -0500)]
Merge branch 'master' into 8066-git-init-from-postinst
Ward Vandewege [Fri, 22 Jan 2016 15:27:59 +0000 (10:27 -0500)]
Make sure not to accidentally include config/application.yml and
config/database.yml in our rails packages.
No issue #
Peter Amstutz [Fri, 22 Jan 2016 15:26:14 +0000 (10:26 -0500)]
Bump libcloud package version pin to 0.20.2dev1 refs #8235
Peter Amstutz [Thu, 21 Jan 2016 19:47:40 +0000 (14:47 -0500)]
Merge branch '8008-test-all-packages' closes #8008
Peter Amstutz [Thu, 21 Jan 2016 19:30:03 +0000 (14:30 -0500)]
8008: Tweak error code reporting. Remove debugging line.
Brett Smith [Wed, 20 Jan 2016 23:52:36 +0000 (18:52 -0500)]
8008: Quote more variables in package test scripts.
radhika [Wed, 20 Jan 2016 17:44:02 +0000 (12:44 -0500)]
refs #8028
Merge branch '8028-crunch-dispatch-local'
radhika [Wed, 20 Jan 2016 17:43:32 +0000 (12:43 -0500)]
Merge branch 'master' into 8028-crunch-dispatch-local
Conflicts:
jenkins/run-tests.sh
Peter Amstutz [Wed, 20 Jan 2016 17:10:26 +0000 (12:10 -0500)]
Document some arvbox hw/sw requirements refs #8080
Peter Amstutz [Wed, 20 Jan 2016 16:43:10 +0000 (11:43 -0500)]
Enable arvbox user to sudo to crunch user. refs #8080
Peter Amstutz [Wed, 20 Jan 2016 16:40:09 +0000 (11:40 -0500)]
Add crunch-run to run-tests refs #7816
Peter Amstutz [Wed, 20 Jan 2016 15:38:43 +0000 (10:38 -0500)]
Fix gitolite-shell path refs #8080
Nico Cesar [Tue, 19 Jan 2016 20:17:22 +0000 (15:17 -0500)]
added git_internal_dir init in postinst.sh
Peter Amstutz [Tue, 19 Jan 2016 18:09:31 +0000 (13:09 -0500)]
Merge branch '8080-arvbox' closes #8080
Peter Amstutz [Mon, 18 Jan 2016 20:33:03 +0000 (15:33 -0500)]
8080: fpm_depends comes before run-build-package commands; fpm_args comes after
run-build package commands. Improve quoting. Use sed -i.
Peter Amstutz [Mon, 18 Jan 2016 19:43:01 +0000 (14:43 -0500)]
8008: Move test files into their own directories. Fix rails package tests to
work with debian & ubuntu. Fix error code checking.
Peter Amstutz [Thu, 14 Jan 2016 21:40:59 +0000 (16:40 -0500)]
8008: SSO package tests pass for all targets.
Peter Amstutz [Thu, 14 Jan 2016 20:45:18 +0000 (15:45 -0500)]
8008: Incorporate SSO package testing into general package testing framework.
Peter Amstutz [Wed, 13 Jan 2016 21:41:39 +0000 (16:41 -0500)]
Fixing our fpm rails package building to handle fpm-info.sh.
Peter Amstutz [Wed, 13 Jan 2016 20:40:36 +0000 (15:40 -0500)]
8008: Run bundle install and bundle list for api server and workbench.
Peter Amstutz [Wed, 13 Jan 2016 19:50:45 +0000 (14:50 -0500)]
8080: Successfully tests all packages. Produces before/after/diff lists for each package.
Peter Amstutz [Wed, 13 Jan 2016 19:11:30 +0000 (14:11 -0500)]
8008: Test each Arvados package individually.
radhika [Wed, 13 Jan 2016 16:17:11 +0000 (11:17 -0500)]
8028: add services/crunch-dispatch-local
Brett Smith [Mon, 11 Jan 2016 22:17:45 +0000 (17:17 -0500)]
Merge branch '8014-rails-postinst-scripts-wip'
Refs #8014. Closes #8036.
Brett Smith [Mon, 11 Jan 2016 22:17:09 +0000 (17:17 -0500)]
8014: Rails upgrade scripts are removed; don't run them in deploy script.
Brett Smith [Mon, 4 Jan 2016 23:02:08 +0000 (18:02 -0500)]
8014: Rails postinst script sets better default access for /etc/arvados.
Brett Smith [Sat, 2 Jan 2016 17:15:53 +0000 (12:15 -0500)]
8014, 8059: Unify Rails package building.
* Introduce a handle_rails_package function, and helpers, to build a
Rails package.
* Generalize all the support scripts into unified postinst, prerm, and
postrm scripts. handle_rails_package builds these into the
packages. See jenkins/rails-package-scripts/README.md for details.
* More error checking throughout (e.g., check for failure when doing
any prep work for Rails packages, or the Workbench packages
specifically, using `set -e` in a subshell).
One behavior change from this unification: before this,
run-build-packages treated --build-bundle-packages to mean "*also*
build bundle packages", while run-build-packages-sso treated the
switch to mean "*only* build bundle packages". This commit declares
run-build-packages to be the winner, and makes run-build-packages-sso
consistent with it.
Brett Smith [Sat, 2 Jan 2016 00:09:08 +0000 (19:09 -0500)]
Fix quoting of local variable assignments throughout.
When you assign a variable directly (e.g., `FOO=bar`), you don't need
to quote the RHS, because the shell doesn't do expansion in that
case. But when you declare and assign a variable (e.g., `local
foo=bar`), you *do* potentially need to quote it, because `local` is a
command and all the normal expansion rules for running commands
applies.
Brett Smith [Fri, 1 Jan 2016 18:38:00 +0000 (13:38 -0500)]
8014: Clean database state detection in arvados-sso postinst.
* Remove unused status code capture.
* Use `grep -q`. Previous versions of the script avoided it because
they piped directly from rake tasks, which would get upset when the
pipe broke. Now that we capture all the output, that's no longer a
concern.
Brett Smith [Fri, 1 Jan 2016 17:26:20 +0000 (12:26 -0500)]
8014: Introduce run_and_report function to arvados-sso postinst.
Use this to DRY up code that says "Doing something... done."
This commit removes some `|| exit $?` that's redundant with `set -e`.
Brett Smith [Fri, 1 Jan 2016 17:17:01 +0000 (12:17 -0500)]
8014: Improve conffile handling in arvados-sso postinst.
* DRY it up into a function.
* DATABASE_READY and APPLICATION_READY care about whether the
corresponding .yml file is usable. Always detect when it is
unmodified from the .yml.example file.
* Build symlinks from /var/www to /etc in more cases where it's safe.
Brett Smith [Fri, 1 Jan 2016 16:10:05 +0000 (11:10 -0500)]
8014: arvados-sso postinst recognizes versioned Nginx service names.
Brett Smith [Fri, 1 Jan 2016 16:02:46 +0000 (11:02 -0500)]
8014: Refactor web service detection warnings in arvados-sso postinst.
Brett Smith [Fri, 1 Jan 2016 15:54:00 +0000 (10:54 -0500)]
8014: Simplify COMMAND_PREFIX-setting code.
Brett Smith [Fri, 1 Jan 2016 15:51:01 +0000 (10:51 -0500)]
8014: Refactor "not fully configured" messages in arvados-sso postinst.
Brett Smith [Fri, 1 Jan 2016 15:41:23 +0000 (10:41 -0500)]
8014: Remove unused $VERSION tracking from arvados-sso postinst.
Brett Smith [Thu, 31 Dec 2015 20:58:18 +0000 (15:58 -0500)]
8014: Remove unused sso-server-upgrade.sh script.
Brett Smith [Sun, 10 Jan 2016 03:34:18 +0000 (22:34 -0500)]
7991: pip build process detects if --no-use-wheel is supported.
Refs #7991.
Brett Smith [Sun, 10 Jan 2016 03:33:34 +0000 (22:33 -0500)]
7991: Update error message for pip build errors.
Refs #7991.
Brett Smith [Fri, 8 Jan 2016 22:20:05 +0000 (17:20 -0500)]
Merge branch '7991-google-api-python-client-perms-wip'
Closes #7991, #8136.
Brett Smith [Fri, 8 Jan 2016 20:58:28 +0000 (15:58 -0500)]
7991: Fix permissions of google-api-python-client egg info files.
Ward Vandewege [Thu, 7 Jan 2016 00:38:28 +0000 (19:38 -0500)]
Make sure not to silence package installation during the test-packages
stage, so that we can see actual failure messages if there is a problem.
No issue #
Brett Smith [Wed, 6 Jan 2016 14:36:14 +0000 (09:36 -0500)]
8104: Pin the pycurl backport version.
Refs #8104.
Tom Clegg [Mon, 14 Dec 2015 21:56:28 +0000 (16:56 -0500)]
Merge branch '7901-crunchstat-summary' refs #7901
Tom Clegg [Thu, 10 Dec 2015 21:00:17 +0000 (16:00 -0500)]
7901: Add crunchstat-summary
Brett Smith [Thu, 10 Dec 2015 20:52:32 +0000 (15:52 -0500)]
7961: SSO postinst script uses bash.
Closes #7961.
Brett Smith [Wed, 9 Dec 2015 17:43:58 +0000 (12:43 -0500)]
7953: Update test procedure for CentOS 6 packages.
Don't install any Software Collections in the Dockerfile, just the
Software Collections tools. Test that our packages correctly declare
their dependency on the relevant Software Collection, and that it gets
pulled in. We want to tell users to install this way, so this makes
sure it's working.
Refs #7953, #7957.
Brett Smith [Tue, 8 Dec 2015 01:55:59 +0000 (20:55 -0500)]
Merge branch '7829-package-licenses-wip'
Refs #7829. Closes #7913.
Brett Smith [Mon, 7 Dec 2015 20:36:32 +0000 (15:36 -0500)]
7829: Add licenses to Arvados software packages.
Brett Smith [Mon, 7 Dec 2015 20:31:09 +0000 (15:31 -0500)]
7953: Fix Docker image to test CentOS 6.6 packages.
Follows the same rationale as
bebf531a2cb9cf08843d6ac4d4ae2238d58efc2b.
Refs #7953.
Brett Smith [Mon, 7 Dec 2015 17:00:29 +0000 (12:00 -0500)]
Merge branch '7953-centos-scl-fix-wip'
Refs #7953. Closes #7955.
Brett Smith [Mon, 7 Dec 2015 15:06:02 +0000 (10:06 -0500)]
7953: Fix Docker image to build CentOS 6.6 packages.
* Follow the Software Collections documentation at
<https://wiki.centos.org/AdditionalResources/Repositories/SCL>.
This downgrades us to Python 3.3, but that shouldn't be a
problem, since we test and build packages for Debian 7 which uses
Python 3.2. On the plus side, it removes an external dependency
on softwarecollections.org.
* The python-pip package disappeared. I don't know where it went.
Maybe there were changes to the underlying centos:6 Docker image?
Install it manually.
Ward Vandewege [Fri, 4 Dec 2015 15:14:22 +0000 (10:14 -0500)]
Default run-deploy.sh to ssh port 22, and provide a command line option
to change the port.
No issue #
radhika [Wed, 2 Dec 2015 17:51:10 +0000 (12:51 -0500)]
refs #7710
Merge branch '7710-add-go-sdk-crunchrunner'
Brett Smith [Tue, 1 Dec 2015 22:13:20 +0000 (17:13 -0500)]
7839: Stop backporting requests for Python 2.
This is no longer needed now that our Keep client is built on top of
pycurl. Confirmed by building all our Python packages from source
into a fresh virtualenv. requests does not appear in `pip freeze`.
requests is still needed for Python 3 because docker-py uses it.
Closes #7839.
radhika [Tue, 1 Dec 2015 18:35:41 +0000 (13:35 -0500)]
7710: add crunchrunner to gostuff
radhika [Thu, 26 Nov 2015 15:45:53 +0000 (10:45 -0500)]
refs #7253
Merge branch '7253-add-go-sdk-manifest'
radhika [Thu, 26 Nov 2015 05:53:55 +0000 (00:53 -0500)]
Merge branch 'master' into 7253-add-go-sdk-manifest
radhika [Wed, 25 Nov 2015 22:19:04 +0000 (17:19 -0500)]
7253: add sdk/go/blockdigest to gostuff
Tom Clegg [Wed, 25 Nov 2015 20:05:20 +0000 (15:05 -0500)]
Force pbr<1.7.0 when installing mock.
No issue #
radhika [Wed, 25 Nov 2015 15:21:50 +0000 (10:21 -0500)]
7253: add sdk/go/manifest to gostuff
radhika [Mon, 23 Nov 2015 19:18:55 +0000 (14:18 -0500)]
refs #7490
Merge branch '7490-datamanager-test'
radhika [Thu, 12 Nov 2015 18:06:27 +0000 (13:06 -0500)]
7490: add services/datamanager/keep to gostuff
Tom Clegg [Wed, 11 Nov 2015 17:14:51 +0000 (12:14 -0500)]
Merge branch '5824-keep-web-workbench' refs #5824
Peter Amstutz [Wed, 11 Nov 2015 14:20:36 +0000 (09:20 -0500)]
Merge branch '7593-arvados-cwl-runner' refs #7593
Tom Clegg [Tue, 10 Nov 2015 02:18:12 +0000 (21:18 -0500)]
Merge branch '7722-build-keep-rsync' closes #7722
Nico Cesar [Mon, 9 Nov 2015 21:48:34 +0000 (16:48 -0500)]
Merge branch '7591-httplib2-perms-fix-wip'
refs #7591
Brett Smith [Sat, 7 Nov 2015 16:49:17 +0000 (11:49 -0500)]
7591: Workaround bad permissions in the httplib2 backport.