Bug 872026 - Can't move zend app success across district, without district and from no district node to district node
Summary: Can't move zend app success across district, without district and from no dis...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
: 880107 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-01 03:07 UTC by Rony Gong 🔥
Modified: 2015-05-15 02:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-16 16:50:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
development.log (9.95 KB, text/plain)
2012-11-01 03:07 UTC, Rony Gong 🔥
no flags Details
newest developement.log (10.31 KB, text/plain)
2012-11-16 06:16 UTC, Rony Gong 🔥
no flags Details

Description Rony Gong 🔥 2012-11-01 03:07:02 UTC
Created attachment 636427 [details]
development.log

Description of problem:
Only can't move zend app success across district.
Could move php-5.3 app success across district.
Could move zend app success within district.

Version-Release number of selected component (if applicable):
devenv_2417

How reproducible:
always

Steps to Reproduce:
1.Create multi node env, and create 2 districts and add nodes.
2.Create zend app, and move it from one district to another district
3.
  
Actual results:
[root@ip-10-122-102-153 openshift]# oo-admin-move --gear_uuid 51d037d22f054848908ec767372e7c07 -i ip-10-93-5-25  --allow_change_district
URL: http://qzend-qgong14.dev.rhcloud.com
Login: qgong
App UUID: 51d037d22f054848908ec767372e7c07
Gear UUID: 51d037d22f054848908ec767372e7c07
DEBUG: Source district uuid: 87d0722a9ee346449d6400d1b9f65aca
DEBUG: Destination district uuid: 5483f4a5cee34a40a7fec62130f490af
DEBUG: Getting existing app 'qzend' status before moving
DEBUG: Gear component 'zend-5.6' was running
DEBUG: Stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Force stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Reserved uid '1009' on district: '5483f4a5cee34a40a7fec62130f490af'
DEBUG: Creating new account for gear 'qzend' on ip-10-93-5-25
DEBUG: Moving content for app 'qzend', gear 'qzend' to ip-10-93-5-25
Identity added: /var/www/openshift/broker/config/keys/rsync_id_rsa (/var/www/openshift/broker/config/keys/rsync_id_rsa)
Agent pid 28959
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 28959 killed;
DEBUG: Performing cartridge level move for 'zend-5.6' on ip-10-93-5-25
DEBUG: Starting cartridge 'zend-5.6' in 'qzend' after move on ip-10-93-5-25
DEBUG: Moving failed.  Rolling back gear 'qzend' 'qzend' with remove-httpd-proxy on 'ip-10-93-5-25'
DEBUG: Moving failed.  Rolling back gear 'qzend' in 'qzend' with destroy on 'ip-10-93-5-25'
/usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:1265:in `run_cartridge_command_old': Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support. (OpenShift::NodeException)
	from /var/www/openshift/broker/lib/express/broker/mcollective_ext.rb:12:in `run_cartridge_command'
	from /usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:673:in `send'
	from /usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:673:in `move_gear_post'
	from /usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:665:in `each'
	from /usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:665:in `move_gear_post'
	from /usr/lib/ruby/gems/1.8/gems/openshift-origin-msg-broker-mcollective-1.0.1/lib/openshift-origin-msg-broker-mcollective/lib/openshift/mcollective_application_container_proxy.rb:814:in `move_gear'
	from /usr/sbin/oo-admin-move:111

Expected results:
move app across district success.

Additional info:

Comment 1 Rony Gong 🔥 2012-11-01 05:16:38 UTC
Also happened can't move zend app from no district node to district node.
Also happened can't move zend app without districts

Comment 2 Lili Nader 2012-11-14 00:58:41 UTC
Can't add a second node to district

oo-admin-ctl-district -c add-node -n dis2 -i ip-10-124-246-39
ERROR OUTPUT:
Node with server identity: ip-10-124-246-39 could not be found

even though I can ping the server from the 1st node
ping ip-10-124-246-39
PING ip-10-124-246-39.ec2.internal (10.124.246.39) 56(84) bytes of data.
64 bytes from ip-10-124-246-39.ec2.internal (10.124.246.39): icmp_seq=1 ttl=63 time=0.425 ms
64 bytes from ip-10-124-246-39.ec2.internal (10.124.246.39): icmp_seq=2 ttl=63 time=0.414 ms
64 bytes from ip-10-124-246-39.ec2.internal (10.124.246.39): icmp_seq=3 ttl=63 time=0.407 ms
64 bytes from ip-10-124-246-39.ec2.internal (10.124.246.39): icmp_seq=4 ttl=63 time=0.374 ms

Comment 3 Dan McPherson 2012-11-14 19:33:47 UTC
Hi Lili,

  Did you do the multi node setup?  The only way add-node will work is when mco-ping can see the second node:

https://engineering.redhat.com/trac/Libra/wiki/Multi_Node_DevEnv

  Basically the broker needs to have knowledge of all the nodes.  And that's the system oo-admin-ctl-district should be run from.

Comment 4 Lili Nader 2012-11-16 00:51:10 UTC
Works for me for all the below scenrios:

Created a 2 node environment.

scenario 1:  
- created 2 districts and put each node in different districts.  
- created app on dis1 and then moved to node2 (on dis2)

scenatio 2:
- removed node2 from dis2
- created another app in dis1 and moved it to node2 (no district)

scenario 3:
- removed node1 from dis1
- destroyed both districts
- created app on node1 and moved it to node2

NOTE: In all the above scenarios I created a new app.  There's known issue about trying to move the same app back and forth between the same nodes.

Comment 5 Dan McPherson 2012-11-16 01:12:32 UTC
What's the known issue?

Comment 6 Rony Gong 🔥 2012-11-16 06:16:02 UTC
Tested on devenv_2484
Only can't move zend app from node(without district) to node(within district)

[root@ip-10-90-246-99 openshift]# oo-admin-move --gear_uuid 0d780ac934634b0aa76e1a50c1b7fba7 -i domU-12-31-38-04-7A-E7  --allow_change_district
Mocha deprecation warning: Test::Unit or MiniTest must be loaded *before* Mocha.
Mocha deprecation warning: If you're integrating with another test library, you should probably require 'mocha_standalone' instead of 'mocha'
URL: http://qzend-qgong5.dev.rhcloud.com
Login: qgong
App UUID: 0d780ac934634b0aa76e1a50c1b7fba7
Gear UUID: 0d780ac934634b0aa76e1a50c1b7fba7
DEBUG: Source district uuid: NONE
DEBUG: Destination district uuid: 602b2f3a24a140b68d0c28d4407a422a
DEBUG: Getting existing app 'qzend' status before moving
DEBUG: Gear component 'zend-5.6' was running
DEBUG: Stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Force stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Reserved uid '1004' on district: '602b2f3a24a140b68d0c28d4407a422a'
DEBUG: Creating new account for gear 'qzend' on domU-12-31-38-04-7A-E7
DEBUG: Moving content for app 'qzend', gear 'qzend' to domU-12-31-38-04-7A-E7
Identity added: /var/www/openshift/broker/config/keys/rsync_id_rsa (/var/www/openshift/broker/config/keys/rsync_id_rsa)
Agent pid 8550
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 8550 killed;
DEBUG: Performing cartridge level move for 'zend-5.6' on domU-12-31-38-04-7A-E7
DEBUG: Starting cartridge 'zend-5.6' in 'qzend' after move on domU-12-31-38-04-7A-E7
DEBUG: Moving failed.  Rolling back gear 'qzend' 'qzend' with remove-httpd-proxy on 'domU-12-31-38-04-7A-E7'
DEBUG: Moving failed.  Rolling back gear 'qzend' in 'qzend' with destroy on 'domU-12-31-38-04-7A-E7'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.1.3/lib/openshift/mcollective_application_container_proxy.rb:1265:in `run_cartridge_command': Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support. (OpenShift::NodeException)
	from /var/www/openshift/broker/lib/express/broker/mcollective_ext.rb:12:in `run_cartridge_command'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.1.3/lib/openshift/mcollective_application_container_proxy.rb:673:in `block in move_gear_post'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.1.3/lib/openshift/mcollective_application_container_proxy.rb:665:in `each'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.1.3/lib/openshift/mcollective_application_container_proxy.rb:665:in `move_gear_post'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.1.3/lib/openshift/mcollective_application_container_proxy.rb:814:in `move_gear'
	from /usr/sbin/oo-admin-move:111:in `<main>'

Comment 7 Rony Gong 🔥 2012-11-16 06:16:35 UTC
Created attachment 646193 [details]
newest  developement.log

Comment 8 Lili Nader 2012-11-26 20:41:20 UTC
*** Bug 880107 has been marked as a duplicate of this bug. ***

Comment 9 Rony Gong 🔥 2012-11-27 01:57:06 UTC
Retested on devenv_2518
Can't move zend app success across district successfully, caused by start this app when move
Permission denied: make_sock: could not bind to address 127.1.245.129:16083\nno listening sockets available, shutting down\nUnable to open logs\nFailed to start zend-5.6\n", :data=>{:exitcode=>121, :output=>"Starting Deployment \e[32m[OK]\e[0m\n[26.11.2012 03:14:58 SYSTEM] watchdog for zdd is running. 


[root@ip-10-112-221-246 ~]# oo-admin-move --gear_uuid 7146a72df90d4af8b69deb894a8ad572 -i ip-10-152-131-32 --allow_change_district
URL: http://qzend2-qgong12.dev.rhcloud.com
Login: qgong
App UUID: 7146a72df90d4af8b69deb894a8ad572
Gear UUID: 7146a72df90d4af8b69deb894a8ad572
DEBUG: Source district uuid: 6848ca01690e427cb0c8cca5ca122418
DEBUG: Destination district uuid: 9d457eeccaf445a4a3fae8d59d0579ea
DEBUG: Getting existing app 'qzend2' status before moving
DEBUG: Gear component 'zend-5.6' was running
DEBUG: Stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Force stopping existing app cartridge 'zend-5.6' before moving
DEBUG: Reserved uid '1005' on district: '9d457eeccaf445a4a3fae8d59d0579ea'
DEBUG: Creating new account for gear 'qzend2' on ip-10-152-131-32
DEBUG: Moving content for app 'qzend2', gear 'qzend2' to ip-10-152-131-32
Identity added: /var/www/openshift/broker/config/keys/rsync_id_rsa (/var/www/openshift/broker/config/keys/rsync_id_rsa)
Agent pid 18000
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 18000 killed;
DEBUG: Performing cartridge level move for 'zend-5.6' on ip-10-152-131-32
DEBUG: Starting cartridge 'zend-5.6' in 'qzend2' after move on ip-10-152-131-32
DEBUG: Moving failed.  Rolling back gear 'qzend2' 'qzend2' with remove-httpd-proxy on 'ip-10-152-131-32'
DEBUG: Moving failed.  Rolling back gear 'qzend2' in 'qzend2' with destroy on 'ip-10-152-131-32'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.2.1/lib/openshift/mcollective_application_container_proxy.rb:1190:in `run_cartridge_command': Node execution failure (invalid exit code from node).  If the problem persists please contact Red Hat support. (OpenShift::NodeException)
	from /var/www/openshift/broker/lib/express/broker/mcollective_ext.rb:12:in `run_cartridge_command'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.2.1/lib/openshift/mcollective_application_container_proxy.rb:585:in `block in move_gear_post'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.2.1/lib/openshift/mcollective_application_container_proxy.rb:577:in `each'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.2.1/lib/openshift/mcollective_application_container_proxy.rb:577:in `move_gear_post'
	from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.2.1/lib/openshift/mcollective_application_container_proxy.rb:737:in `move_gear'
	from /usr/sbin/oo-admin-move:110:in `<main>'

Comment 10 Mike McGrath 2013-04-16 16:50:57 UTC
The cases described in this bug are officially 'not supported' as such we're going to close the bug - bug triage meeting.


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