Bug 994130
Summary: | Deplying new code via 'git push' sometimes hangs indefinitely | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Ben Browning <bbrownin> |
Component: | Image | Assignee: | Dan Mace <dmace> |
Status: | CLOSED WONTFIX | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | bbrownin, dmcphers, xtian |
Target Milestone: | --- | Keywords: | SupportQuestion |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-06-11 21:18:40 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: | |
Embargoed: |
Description
Ben Browning
2013-08-06 14:40:52 UTC
Hi, Ben, Have you added any action hooks for the application? Thanks, Mrunal Yes, my application does have a pre_start_jbossas7 hook - https://github.com/openshift-quickstart/torquebox-quickstart/blob/master/.openshift/action_hooks/pre_start_jbossas-7 that calls into https://github.com/openshift-quickstart/torquebox-quickstart/blob/master/.openshift/torquebox.sh Is there some exit code I need to ensure the hooks have for things to progress smoothly? This may not be the issue, but could help: https://github.com/openshift-quickstart/torquebox-quickstart/blob/master/.openshift/action_hooks/pre_start_jbossas-7#L22 TORQUEBOX_HOME isn't set in this file, so torquebox is getting installed on every pre_start if I am reading the code correctly, which could slow down the deploy cycle. TORQUEBOX_HOME is set via the sourced https://github.com/openshift-quickstart/torquebox-quickstart/blob/master/.openshift/torquebox.sh The pre_start_jbossas-7 script is executing fine and the new scaled up gear is booting and deploying the application fine. Everything's working great except the 'rhc scale-cartridge' command just hangs instead of exiting when things are scaled up. The steps to download, unzip torquebox and then the bundle install are adding to the long times here. Did your rhc scale-cartridge commands eventually return? Sometimes the command returns and sometimes it hangs indefinitely. I've waited more than 30 minutes on several occasions just to see if it would ever return and it has not. The weird thing is as far as I can tell the new code does get pushed to all the gears and everything restarts and comes back up fine. The 'git push' just doesn't return. I tried this a few times yesterday but wasn't able to reproduce the git push hanging. I will keep on trying to see if we can get anything. *** Bug 993248 has been marked as a duplicate of this bug. *** I retried this several times yesterday. It did exceed 240 seconds but the gears did eventually come up. I suggest converting the quickstart into a cartridge using CDK. Also, the code in pre start seems to be re-installing torquebox every time slowing down git pushes/scale ups. As far as the git push hanging, I wasn't able to reproduce that. I am wondering if it has something to do with your ssh/git settings. I am lowering severity on this one since it should not block the release. I've seen a hang during scaling up with the Immutant cartridge as well (https://github.com/immutant/openshift-immutant-cart) which is very similar to my quickstart but converted to a cartridge. Thus, I don't think converting to a cartridge will help anything. The code does not install torquebox on every git push - it only does it once per gear and never again for that gear. Also, the 240 seconds mentioned - is that some timeout that could just be increased? |