Hide Forgot
The oo-admin-upgrade tool makes 2 tries to upgrade a gear by default, but the output is only given for the second upgrade attempt, which makes debugging difficult. Expected behavior is: 1. No output should be lost. Prior attempts should be part of the response. 2. You should be able to configure the number of tries
https://github.com/openshift/origin-server/pull/4141 added --num_tries and the initial failures are added to the log file.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/8c58849946b9f10a98f81755f2d1dedd5a753e29 Fix bug 1028518: include prior upgrade attempts in oo-admin-upgrade output
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/65dc8b901099f15b463ef8e6c40a18deff1c2ffd Bug 1028518
Checked on devenv_4016, whatever I set the num-tries, it will report failed after 2 tries. I have tried num-tries=1 and num-tries=5 # oo-admin-upgrade upgrade-node --version 2.0.36 --ignore-cartridge-version --num-tries=1 Upgrader started with options: {:version=>"2.0.36", :ignore_cartridge_version=>true, :target_server_identity=>nil, :upgrade_position=>1, :num_upgraders=>1, :max_threads=>12, :gear_whitelist=>[], :num_tries=>1} "errors": [ "Gear upgrade result is marked incomplete", "Failed upgrade after 2 tries" And for the 2 tries by default, still cannot find the logs for each try.
https://github.com/openshift/origin-server/pull/4151
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/38350835da5ce55ab21c80ecac4ed7538b589a03 Bug 1028518
The option works well on devenv_4022, the result show the correct number of tries, and error log for each time can be found in the log. "errors": [ "Gear upgrade result is marked incomplete", "Failed upgrade after 3 tries" Move bug to verified.