| Summary: | Jenkins build will reinstall existing package for ruby-1.8/1.9 app | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Lei Zhang <lzhang> |
| Component: | Image | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED WONTFIX | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | dmcphers, mfojtik, xtian |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-11-26 01:59:20 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Lei Zhang
2013-11-25 12:00:12 UTC
+ gear build Building git ref 'origin/HEAD', commit 4ee078e Building Ruby cartridge Bundling RubyGems based on Gemfile/Gemfile.lock to repo/vendor/bundle with 'bundle install --deployment' Fetching gem metadata from http://rubygems.org/.......... Installing rack (1.5.2) Installing ref (1.0.5) Using bundler (1.1.4) Your bundle is complete! It was installed into ./vendor/bundle + /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 5293366c2587c8a39b00022d.rhcloud.com 'gear stop --conditional --exclude-web-proxy --git-ref 4ee078e694e439d0efcfe061bba22e1eb3ec697b' Stopping gear... Stopping Ruby cartridge Waiting for stop to finish ++ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 5293366c2587c8a39b00022d.rhcloud.com 'gear create-deployment-dir' + deployment_dir=2013-11-25_06-44-48.990 + rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/5293377e2587c8a39b00024a//app-deployments/current/metadata.json 5293366c2587c8a39b00022d.rhcloud.com:app-deployments/2013-11-25_06-44-48.990/metadata.json + rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh --exclude .git /var/lib/openshift/5293377e2587c8a39b00024a/app-root/runtime/repo/ 5293366c2587c8a39b00022d.rhcloud.com:app-root/runtime/repo/ + rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/5293377e2587c8a39b00024a/app-root/runtime/build-dependencies/ 5293366c2587c8a39b00022d.rhcloud.com:app-root/runtime/build-dependencies/ + rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/5293377e2587c8a39b00024a/app-root/runtime/dependencies/ 5293366c2587c8a39b00022d.rhcloud.com:app-root/runtime/dependencies/ + /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 5293366c2587c8a39b00022d.rhcloud.com 'gear remotedeploy --deployment-datetime 2013-11-25_06-44-48.990' Preparing build for deployment Deployment id is ef801585 Activating deployment Starting Ruby cartridge Archiving artifacts Finished: SUCCESS After some investigation, I think this is not a bug... The problem here is that $REPO_DIR/vendor is not in 'ruby' cartridge, so we can't use 'dependency_dirs' in managed_files to keep these dependencies. Users can replace the 'vendor' directory with their own versions of gems, and for that we need to install them all the time. I don't think this is ideal... Lei Zhang: Is this a regression or something? I mean did this work before? It might be a regression, as we had some customizations for Ruby cartridge in jenkins script: https://github.com/openshift/origin-server/blob/a0d52b785e7317a1da7c466fc0e4e02b0c5967a9/cartridges/openshift-origin-cartridge-ruby/metadata/jenkins_shell_command.erb#L9 A Trello card has been created for this bug: https://trello.com/c/bafgWN1Z/79-support-cartridge-specific-jenkins-hooks-that-runs-during-the-jenkins-build Adding UpcomingRelease as this is not a blocker and I think we should fix this properly for all carts instead of hacking something up for Ruby ;-) We are going to live with this limitation for jenkins builds with ruby apps. |