Hide Forgot
Description of problem: When trying to restore frontend configs from a backed-up file, will meet the following error. # oo-devel-node frontend-restore -c 5228233ae7da5b3f020003e7 --file back.json undefined method `json_create' for #<OpenShift::Runtime::FrontendHttpServer:0x00000001b72ce8> Version-Release number of selected component (if applicable): devenv_3745 How reproducible: always Steps to Reproduce: 1.Create app 2.Backup the app frontend config to file # oo-devel-node frontend-backup -c 5228233ae7da5b3f020003e7 > back.json 3.Try to restore the config # oo-devel-node frontend-restore -c 5228233ae7da5b3f020003e7 --file back.json Actual results: Will meet error: undefined method `json_create' for #<OpenShift::Runtime::FrontendHttpServer:0x00000001b72ce8> Expected results: Should restore without errors. Additional info: Try this on devenv-stage_461, the oo-frontend-restore did not need a container uuid which is required in new command. And I think it is better to support backup to file for the frontend-backup option.
Pull request here: https://github.com/openshift/origin-server/pull/3594
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b44b614f1cdcad8e709a8f8dc450d945d0401a51 Bug 1004687 - Fix 'undefined method json_create' in frontend-restore
Checked on devenv_3770, Issue has been fixed, frontend config can be restored.