Description of problem: idled app can never be recovered after move it from one node to another. Try to access app home page via browser after move operation, but it return "Service Temporarily Unavailable" error. Version-Release number of selected component (if applicable): devenv_1661 How reproducible: Always Steps to Reproduce: 1. Setup multi-node env 2. Create a jboss app 3. Log into instance, idle this app # rhc-idler -u cc5fc37ebe1e41a49f2dbb5c46c28e88 4. Move this app from on node to another. # rhc-admin-move --app_uuid cc5fc37ebe1e41a49f2dbb5c46c28e88 -i ip-10-72-238-117 URL: http://jb-jialiu.dev.rhcloud.com Login: jialiu App UUID: cc5fc37ebe1e41a49f2dbb5c46c28e88 DEBUG: Source district uuid: df03c6c0ee5b4f92b5b16c26e3a68abc DEBUG: Destination district uuid: df03c6c0ee5b4f92b5b16c26e3a68abc DEBUG: District unchanged keeping uid DEBUG: Moving app 'jb' with uuid cc5fc37ebe1e41a49f2dbb5c46c28e88 from ip-10-110-222-57 to ip-10-72-238-117 DEBUG: Getting existing app 'jb' status before moving DEBUG: App 'jb' was idle DEBUG: Not accessing url since application was stopped DEBUG: Force stopping existing app 'jb' before moving DEBUG: Creating new account for app 'jb' on ip-10-72-238-117 DEBUG: Moving content for app 'jb' to ip-10-72-238-117 Identity added: /var/www/stickshift/broker/config/keys/rsync_id_rsa (/var/www/stickshift/broker/config/keys/rsync_id_rsa) Agent pid 9476 DEBUG: Performing cartridge level move for 'jb' on ip-10-72-238-117 DEBUG: Fixing DNS and mongo for app 'jb' after move DEBUG: Changing server identity of 'jb' from 'ip-10-110-222-57' to 'ip-10-72-238-117' URL: http://jb-jialiu.dev.rhcloud.com DEBUG: Deconfiguring old app 'jb' on ip-10-110-222-57 after move Successfully moved 'jb' with uuid 'cc5fc37ebe1e41a49f2dbb5c46c28e88' from 'ip-10-110-222-57' to 'ip-10-72-238-117' 5. Check this app's status, and try to access app's page from browser. Actual results: # rhc-idler -l cc5fc37ebe1e41a49f2dbb5c46c28e88 is idled # ls .httpd.d/cc5fc37ebe1e41a49f2dbb5c46c28e88_jialiu_jb 00000_default.conf NOTE: 0000000000000_disabled.conf is not listed there. Access app home page via browser, but it return "Service Temporarily Unavailable" error. Expected results: After move idled app should be accessible when accessing it. Additional info:
The issue here is rhc-idler is now looking at the state files. Which says the app is idled already.
commit 89c64c408ef1600338941efefd8deaaefbe96a7a State file is now checked after original checks are indeterminate.
Verified this bug with devenv_1662, and PASS.