Hide Forgot
Description of problem: Running "oo-frontend-plugin-modify --rebuild" after upgrade has the following error: ERROR: Failed to rebuild frontend for gear: newpysj27 cart: haproxy ERROR: The target_update option specified but no old configuration: : newpysj27-rmillner0110.dev.rhcloud.com This persists even if re-run.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/48a2df7d7caab1837412e0a8124d3233f2a7fdac Bug 1008638 - needed a way to force rebuild the framework cart.
To Q/E... 1. Create a bunch of scaled apps 2. Verify apps are reachable 3. oo-frontend-plugin-modify --delete --confirm 4. Verify apps are no longer reachable 5. oofrontend-plugin-modify --rebuild --confirm 6. Verify apps are reachable Step 5 should not have any errors and step 6 should succeed.
Checked on devenv_3818, the issue was fixed for mod_rewrite plugin. But when trying to rebuild httpd config for vhost plugin will still get the error as following. # oo-frontend-plugin-modify --rebuild --confirm ERROR: Failed to rebuild frontend for gear: jbeap1s cart: jbosseap ERROR: No such file or directory - /etc/httpd/conf.d/openshift/52415c7d2aa56bb64a000001_bmengdev2_jbeap1s/599999_element-.conf ERROR: Failed to rebuild frontend for gear: jbeap1s cart: haproxy ERROR: The target_update option specified but no old configuration: : jbeap1s-bmengdev2.dev.rhcloud.com After rebuild, only the 52415c7d2aa56bb64a000001_bmengdev2_jbeap1s.conf can be found under .httpd.d, but the conf dir does not present. And the app is not reachable.
The vhost plugin needed an additional step, added in the following pull request: https://github.com/openshift/origin-server/pull/3698
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b0a6259aaa203cca6a217d061c3080306b2011d4 Bug 1008638 - The create step is needed on vhost and other plugins.
Checked on devenv_3824, issue has been fixed. oo-frontend-plugin-modify --rebuild works will for both mod_rewrite and vhost plugins. Add app can be accessed after rebuild. Move bug to verified.