Bug 1101779
Summary: | openshift-origin-cartridge-ruby 1.25.1 unable to update to 1.25.2 | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Adam Miller <admiller> |
Component: | Image | Assignee: | Vojtech Vitek <vvitek> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | bmeng, chunchen, hripps, jokerman, mmccomas, tdawson, xiuwang |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-15 10:29:39 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: | |
Embargoed: |
Description
Adam Miller
2014-05-27 22:04:01 UTC
Adding the following to the spec file would fix the directory to link problem during upgrades. %pretrans [ -d %{cartridgedir}/versions/1.8/template/.openshift ] && ! [ -L %{cartridgedir}/versions/1.8/template/.openshift ] && \ rm -rf %{cartridgedir}/versions/1.8/template/.openshift || : [ -d %{cartridgedir}/versions/1.9/template/.openshift ] && ! [ -L %{cartridgedir}/versions/1.9/template/.openshift ] && \ rm -rf %{cartridgedir}/versions/1.9/template/.openshift || : Can not scale up ruby app in INT.And could not create scalable ruby app sometimes in INT. Both situation shows message: #rhc cartridge-scale -a rubys -c ruby-1.8 --min 2 -l xiuwang+m This operation will run until the application is at the minimum scale and may take several minutes. Setting scale range for ruby-1.8 ... cp: cannot stat `/var/lib/openshift/5385a6b76cec0e9a65000203/ruby//versions/1.8/template/.openshift;5384f5a5/.openshift.save/action_hooks/README.md': No such file or directory cp: cannot stat `/var/lib/openshift/5385a6b76cec0e9a65000203/ruby//versions/1.8/template/.openshift;5384f662/.openshift.save/action_hooks/README.md': No such file or directory cp: cannot stat `/var/lib/openshift/5385a6b76cec0e9a65000203/ruby//versions/1.8/template/.openshift;538505d5/.openshift.save/action_hooks/README.md': No such file or directory Have checked no dirs of openshift;5384f5a5,.openshift;5384f662,.openshift;538505d5 under /var/lib/openshift/5385a6b76cec0e9a65000203/ruby//versions/1.8/template Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/33b149e66f8dda2f593b4779066766f514ff4344 Fix bug 1101779 RPM can't handle directories being replaced by symlinks and thus %pretrans workaround is needed. Credit: Troy Dawson Tested it by upgrading devenv_stage_837 to devenv_4824, the ruby package can be updated to the latest version now, but it's failed to upgrade/migrate ruby applications, please refer to the following details: # oo-broker oo-admin-upgrade upgrade-gear --login chunchen --app-name <ruby_app_name> --version 2.0.45 --upgrade-gear 5386a21568a7bb0f75000368 <--------------snip--------------> Unhandled shell exception performing step: Shell command '/bin/cp -ad /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/versions /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/run /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/lib /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/bin /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/metadata /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/README.md /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/logs /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/COPYRIGHT /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/LICENSE /var/lib/openshift/.cartridge_repository/redhat-ruby/0.0.18/env /var/lib/openshift/5386a21c30a7bb0f75000259/ruby' returned an error. rc=1\nreturn code: 1\nstdout: \nstderr: /bin/cp: cannot overwrite directory `/var/lib/openshift/5386a21c30a7bb0f75000259/ruby/versions/1.8/template/.openshift' with non-directory\n/bin/cp: cannot overwrite directory `/var/lib/openshift/5386a21c30a7bb0f75000259/ruby/versions/1.9/template/.openshift' with non-directory\n <--------------snip--------------> btw, after instance upgrading, the latest ruby package version is openshift-origin-cartridge-ruby-1.25.3-1.git.0.7206a7f.el6.noarch . The upgrade gear issue will be tracked by https://bugzilla.redhat.com/show_bug.cgi?id=1102428 The rpm issue has been fixed here. Move the bug to verified. |