Created attachment 604525 [details] move log from development.log Description of problem: when move non-scalable app embed with mysql, show error log like: . Output /usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/35e551b673ff4b63bc5456ffc5c61b40//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory\n", :data=>{:output=>"/usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/35e551b673ff4b63bc5456ffc5c61b40//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory\n", :exitcode=>1}, :sender=>"ip-10-122-51-233", when move non-scalable app embed with mongodb, show error log like: rpc_client.custom_request('cartridge_do', {:args=>"'qruby19' 'qgong2' '6d58e99209c240b98a64b917853fb823'", :action=>"move", :cartridge=>"embedded/mongodb-2.0"}, @id, {'identity' => @id}) DEBUG: [#<MCollective::RPC::Result:0x7f4a886dd4e8 @results={:statusmsg=>"cartridge_do_action failed 1. Output /usr/libexec/stickshift/cartridges/embedded/mongodb-2.0/info/hooks/move: line 77: /var/lib/stickshift/6d58e99209c240b98a64b917853fb823//mongodb-2.0/.env/OPENSHIFT_NOSQL_DB_HOST: No such file or directory\n", :data=>{:output=>"/usr/libexec/stickshift/cartridges/embedded/mongodb-2.0/info/hooks/move: line 77: /var/lib/stickshift/6d58e99209c240b98a64b917853fb823//mongodb-2.0/.env/OPENSHIFT_NOSQL_DB_HOST: No such file or directory\n", :exitcode=>1}, :sender=>"ip-10-121-5-132", :statuscode=>1}, @action="cartridge_do", @agent="stickshift">] DEBUG: server results: /usr/libexec/stickshift/cartridges/embedded/mongodb-2.0/info/hooks/move: line 77: /var/lib/stickshift/6d58e99209c240b98a64b917853fb823//mongodb-2.0/.env/OPENSHIFT_NOSQL_DB_HOST: No such file or directo Version-Release number of selected component (if applicable): devenv_1990 How reproducible: always Steps to Reproduce: 1.Create non-scalable app 2.Embed mysql or mongodb-2.0 3.Do move by within district rhc-admin-move --gear_uuid 35e551b673ff4b63bc5456ffc5c61b40 -i ip-10-122-51-233 Actual results: Move fail, please see the attachment. Expected results: Move success. Additional info: Both mysql and mongodb need modify
This error also block move mysql gear in scalable app. log: DEBUG: Performing cartridge level move for embedded mysql-5.1 for 'qsphp' on ip-10-121-5-132 DEBUG: rpc_exec_direct: rpc_client=#<MCollective::RPC::Client:0x7fa6232c0b20> DEBUG: rpc_client.custom_request('cartridge_do', {:args=>"'5bb219d085' 'qgong2' '5bb219d085e6485cad597430f6f2df47'", :action=>"move", :cartridge=>"embedded/mysql-5.1"}, @id, {'identity' => @id}) DEBUG: [#<MCollective::RPC::Result:0x7fa62325ae38 @results={:statusmsg=>"cartridge_do_action failed 1. Output /usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/5bb219d085e6485cad597430f6f2df47//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory\n", :data=>{:output=>"/usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/5bb219d085e6485cad597430f6f2df47//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory\n", :exitcode=>1}, :sender=>"ip-10-121-5-132", :statuscode=>1}, @action="cartridge_do", @agent="stickshift">] DEBUG: server results: /usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/5bb219d085e6485cad597430f6f2df47//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory DEBUG: Cartridge command embedded/mysql-5.1::move exitcode = 1 DEBUG: server results: /usr/libexec/stickshift/cartridges/embedded/mysql-5.1/info/hooks/move: line 79: /var/lib/stickshift/5bb219d085e6485cad597430f6f2df47//mysql-5.1/.env/OPENSHIFT_DB_PORT: No such file or directory DEBUG: Cartridge command embedded/mysql-5.1::move exitcode = 1 DEBUG: Moving failed. Rolling back gear '5bb219d085' 'qsphp' with remove-httpd-proxy on 'ip-10-121-5-132' DEBUG: Moving failed. Rolling back gear '5bb219d085' in 'qsphp' with destroy on 'ip-10-121-5-132' after rolling back, I found the mysql can't use any more: [5bb219d085-qgong2.dev.rhcloud.com ~]\> mysql ERROR 2003 (HY000): Can't connect to MySQL server on '127.1.246.1' (111)
From the logs, it looks like pre-move isn't getting called.
https://github.com/openshift/crankcase/pull/384
Verify on devenv_1997