Bug 1004687 - Met "undefined method `json_create'" error when trying to restore frontend config with oo-devel-node frontend-restore
Met "undefined method `json_create'" error when trying to restore frontend co...
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Michal Fojtik
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-09-05 04:48 EDT by Meng Bo
Modified: 2015-05-14 19:27 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-19 12:49:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Meng Bo 2013-09-05 04:48:39 EDT
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):

How reproducible:

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.
Comment 1 Michal Fojtik 2013-09-10 04:20:46 EDT
Pull request here:

Comment 2 openshift-github-bot 2013-09-10 09:28:06 EDT
Commit pushed to master at https://github.com/openshift/origin-server

Bug 1004687 - Fix 'undefined method json_create' in frontend-restore
Comment 3 Meng Bo 2013-09-10 23:19:10 EDT
Checked on devenv_3770,

Issue has been fixed, frontend config can be restored.

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