This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app-deployments | |
$datetime | |
dependencies | |
php | |
phplib | |
<stuff> | |
app-root | |
runtime | |
dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-28-104-31 ~]# rhc app create p2 php-5.3 | |
Application Options | |
------------------- | |
Domain: agoldste | |
Cartridges: php-5.3 | |
Gear Size: default | |
Scaling: no | |
Creating application 'p2' ... done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-28-104-31 n6]# ls -l /var/lib/openshift/n6-agoldste/nodejs/node_modules/ | |
total 0 | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 27 Oct 21 16:40 async -> /usr/lib/node_modules/async | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 29 Oct 21 16:40 connect -> /usr/lib/node_modules/connect | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 29 Oct 21 16:40 express -> /usr/lib/node_modules/express | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 32 Oct 21 16:40 formidable -> /usr/lib/node_modules/formidable | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 34 Oct 21 16:40 generic-pool -> /usr/lib/node_modules/generic-pool | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 29 Oct 21 16:40 hashish -> /usr/lib/node_modules/hashish | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 26 Oct 21 16:40 mime -> /usr/lib/node_modules/mime | |
lrwxrwxrwx. 1 5265913ad9a2d8fbfd000040 5265913ad9a2d8fbfd000040 28 Oct 21 16:4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-182-128-154 ~]# ls -la /var/lib/openshift/bz1021399-agoldste/ | |
total 72 | |
drwxr-x---. 14 root 5266b303d51adea463000066 4096 Oct 22 13:17 . | |
drwxr-xr-x. 19 root root 4096 Oct 22 13:23 .. | |
drwxr-xr-x. 4 5266b303d51adea463000066 5266b303d51adea463000066 4096 Oct 22 13:20 app-deployments | |
drwxr-xr-x. 4 root 5266b303d51adea463000066 4096 Oct 22 13:16 app-root | |
drwxr-x---. 2 5266b303d51adea463000066 5266b303d51adea463000066 4096 Oct 22 13:17 .auth | |
drwxr-x---. 3 root 5266b303d51adea463000066 4096 Oct 22 13:17 .env | |
drwxr-x---. 2 5266b303d51adea463000066 5266b303d51adea463000066 4096 Oct 22 13:16 .gem | |
drwxr-xr-x. 3 root root 4096 Oct 22 13:17 git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[p2-agoldste.dev.rhcloud.com 52680ec9e7386b581500001d]\> gear build blarg | |
An error occurred executing 'gear build' (exit code: 1) | |
Error message: Shell command ' | |
set -xe; | |
shopt -s dotglob; | |
if [ "$(find objects -type f 2>/dev/null | wc -l)" -eq "0" ]; then | |
exit 0; | |
fi | |
git archive --format=tar blarg | (cd /var/lib/openshift/52680ec9e7386b581500001d/app-root/runtime/repo/ && tar --warning=no-timestamp -xf -); | |
' returned an error. rc=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
October 23 15:07:14 INFO oo_spawn running /sbin/runuser -s /bin/sh 52681e29e7386b3487000043 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c10 | |
09' /bin/sh -c \"/usr/bin/oo-ssh 52681e4ae7386b348700006a@ec2-54-226-97-196.compute-1.amazonaws.com gear activate 67c360d0 --as-json --init --no-rotation\"": {:u | |
nsetenv_others=>true, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 12>, :err=>#<IO:fd 8>} | |
October 23 15:07:19 INFO oo_spawn buffer(7/) An error occurred executing 'gear activate' (exit code: 1) | |
October 23 15:07:19 INFO oo_spawn buffer(7/) Error message: Failed to execute: 'control enable-server' for /var/lib/openshift/52681e4ae7386b348700006a/haproxy | |
stdout: Enabling server 52681e4ae7386b348700006a | |
stderr: /usr/lib/openshift/cartridge_sdk/ruby/sdk.rb:36:in `app_web_to_proxy_ratio_and_colocated_gears': undefined method `keys' for nil:NilClass (NoMethodError) | |
from -e:1:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create jbossews/as/eap app: | |
- install script puts ROOT.war in jbossews/webapps/ROOT.war or jboss{as,eap}/standalone/deployments/ROOT.ar | |
- AFTER prepare syncs files to app-deployments, post_install script copies ROOT.war to app-root/runtime/repo | |
- NOTHING synced to app-deployments/current/repo/webapps or deployments | |
- ROOT.war synced to app-deployments/current/dependencies/webapps|deployments | |
Scale up: | |
- new gear created | |
- head gear's app-deployments synced to new gear | |
- activation copies from app-deployments to app-root/runtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-182-203-76 b1]# rhc deploy master | |
Deployment of git ref 'master' in progress for application b1 ... | |
OPENSHIFT_DEPLOYMENT_TYPE is 'binary' - git-based deployments are disabled. | |
Error deploying git ref. You can try to deploy manually with: | |
ssh -t [email protected] 'gear deploy master' | |
SSH command finished with exit status = 255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app-create (head) | |
app-create (child) | |
configure php (head) | |
configure php (child) | |
configure haproxy (head) | |
post-configure haproxy (head) | |
update-cluster (head) | |
after update-cluster syncs deployments, it attempts to activate the proxy gear's current deployment on the new web gears |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/upgradomatic b/build/upgradomatic | |
index 8f82213..e01e3eb 100755 | |
--- a/build/upgradomatic | |
+++ b/build/upgradomatic | |
@@ -209,18 +209,19 @@ def load_rhlogin(config) | |
match[1] | |
end | |
-def update_devenv(mig_config, devenv, new_version) | |
+def update_devenv(mig_config, devenv, stage, new_version) |