Bug 1008638 - ERROR: The target_update option specified but no old configuration
Summary: ERROR: The target_update option specified but no old configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-16 17:57 UTC by Rob Millner
Modified: 2015-05-14 23:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:28:54 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Rob Millner 2013-09-16 17:57:21 UTC
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.

Comment 1 openshift-github-bot 2013-09-20 21:45:04 UTC
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.

Comment 2 Rob Millner 2013-09-20 22:10:10 UTC
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.

Comment 3 Meng Bo 2013-09-24 10:02:31 UTC
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.

Comment 4 Rob Millner 2013-09-24 21:12:31 UTC
The vhost plugin needed an additional step, added in the following pull request:
https://github.com/openshift/origin-server/pull/3698

Comment 5 openshift-github-bot 2013-09-25 02:00:10 UTC
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.

Comment 6 Meng Bo 2013-09-25 06:54:00 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.