| Summary: | Fail to move db(mysql/mongo/postgresql) gear for scale app with db cartridge | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | zhaozhanqi <zzhao> |
| Component: | Pod | Assignee: | Rob Millner <rmillner> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.x | CC: | mfisher, rmillner, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-17 13:31:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
zhaozhanqi
2013-09-26 06:16:42 UTC
Comments from Rob Millner: It looks like the FrontendHttpServer module's to_json call returned nil. He requested doing "oo-devel-node -t frontend-to-json -c [uuid]" on the command line to see what happens. don't worry about running "oo-devel-node -t frontend-to-json -c [uuid]", found the issue. irb(main):010:0> f.to_json NoMethodError: undefined method `[]' for nil:NilClass from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-frontend-nodejs-websocket-0.1.6/lib/openshift/runtime/frontend/http/plugins/nodejs-websocket.rb:125:in `block in idle?' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-frontend-apachedb-0.1.5/lib/openshift/runtime/frontend/http/plugins/apachedb.rb:259:in `open' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-frontend-nodejs-websocket-0.1.6/lib/openshift/runtime/frontend/http/plugins/nodejs-websocket.rb:124:in `idle?' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:540:in `block in call_plugins' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:536:in `map' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:536:in `call_plugins' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:390:in `idle?' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:206:in `to_hash' from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.15.4/lib/openshift-origin-node/model/frontend_httpd.rb:215:in `to_json' from (irb):10 from /opt/rh/ruby193/root/usr/bin/irb:12:in `<main>' Pull request: https://github.com/openshift/origin-server/pull/3718 Tested this bug on devenv_3838, it has been fixed. [root@ip-10-147-189-146 ~]# oo-admin-move --gear_uuid 52454ecb9553e90a8e000010 -i ip-10-147-189-146 URL: http://zqphps-zqd.dev.rhcloud.com Login: zzhao App UUID: 524544b99553e9ec7300003c Gear UUID: 52454ecb9553e9ec73000173 DEBUG: Source district uuid: 215149309514994275057664 DEBUG: Destination district uuid: 215149309514994275057664 Error moving gear. Old and new servers are the same: ip-10-147-189-146 [root@ip-10-147-189-146 ~]# oo-admin-move --gear_uuid 52454ecb9553e90a8e000010 -i ip-10-185-23-32 URL: http://zqphps-zqd.dev.rhcloud.com Login: zzhao App UUID: 524544b99553e9ec7300003c Gear UUID: 52454ecb9553e9ec73000173 DEBUG: Source district uuid: 215149309514994275057664 DEBUG: Destination district uuid: 215149309514994275057664 DEBUG: Getting existing app 'zqphps' status before moving DEBUG: Gear component 'php-5.3' was running DEBUG: Stopping existing app cartridge 'mongodb-2.2' before moving DEBUG: Creating new account for gear '52454ecb9553e90a8e000010' on ip-10-185-23-32 DEBUG: Moving content for app 'zqphps', gear '52454ecb9553e90a8e000010' to ip-10-185-23-32 Identity added: /var/www/openshift/broker/config/keys/rsync_id_rsa (/var/www/openshift/broker/config/keys/rsync_id_rsa) Agent pid 21929 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 21929 killed; DEBUG: Moving system components for app 'zqphps', gear '52454ecb9553e90a8e000010' to ip-10-185-23-32 Identity added: /var/www/openshift/broker/config/keys/rsync_id_rsa (/var/www/openshift/broker/config/keys/rsync_id_rsa) Agent pid 22358 unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 22358 killed; DEBUG: Starting cartridge 'mongodb-2.2' in 'zqphps' after move on ip-10-185-23-32 DEBUG: Fixing DNS and mongo for gear '52454ecb9553e90a8e000010' after move DEBUG: Changing server identity of '52454ecb9553e90a8e000010' from 'ip-10-147-189-146' to 'ip-10-185-23-32' DEBUG: Deconfiguring old app 'zqphps' on ip-10-147-189-146 after move Successfully moved gear with uuid '52454ecb9553e90a8e000010' of app 'zqphps' from 'ip-10-147-189-146' to 'ip-10-185-23-32' |