Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1154651

Summary: Got "Could not connect to WildFly management interface, skipping deployment verification" during start a stopped aerogear app
Product: OpenShift Container Platform Reporter: Brenton Leanhardt <bleanhar>
Component: ImageStreamsAssignee: John W. Lamb <jolamb>
Status: CLOSED EOL QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.2.0CC: admiller, fjuma, gpei, jokerman, jolamb, libra-bugs, libra-onpremise-devel, mfojtik, mmccomas, pruan, rthrashe, yadu
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-origin-util-scl-1.20.1.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1153975 Environment:
Last Closed: 2017-01-13 22:24:03 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:
Bug Depends On: 1009237, 1153975, 1154521    
Bug Blocks:    

Description Brenton Leanhardt 2014-10-20 12:32:59 UTC
+++ This bug was initially created as a clone of Bug #1153975 +++

Description of problem:

Try to start a stopped aerogear app or git push the app, got the error  "Could not connect to WildFly management interface, skipping deployment verification"

[root@Daphne test]# rhc app stop push1s
RESULT:
push1s stopped

[root@Daphne test]# rhc app start push1s
Could not connect to WildFly management interface, skipping deployment verification
RESULT:
push1s started



remote: Stopping aerogear-push cart
remote: Sending SIGTERM to wildfly:32435 ...
remote: Stopping MySQL 5.5 cartridge
remote: /usr/bin/oo-exec-ruby: line 8: /bin/rpm: Permission denied
remote: Building git ref 'master', commit d66a4b6
remote: Preparing build for deployment
remote: Deployment id is e3425bda
remote: Activating deployment
remote: Starting MySQL 5.5 cartridge
remote: /usr/bin/oo-exec-ruby: line 8: /bin/rpm: Permission denied
remote: Deploying WildFly
remote: ls: cannot access /var/lib/openshift/5440be1dd20b7de1e2000003/app-root/runtime/repo//deployments: No such file or directory
remote: Starting aerogear-push cart
remote: Found 127.1.249.1:8080 listening port
remote: Found 127.1.249.1:9990 listening port
remote: CLIENT_MESSAGE: Could not connect to WildFly management interface, skipping deployment verification
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://5440be1dd20b7de1e2000003.rhcloud.com/~/git/push1.git/
   22f9be2..d66a4b6  master -> master



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



How reproducible:
always



Steps to Reproduce:
1. Create aerogear app from website
2. rhc app stop $app
3. rhc app start $app
4. Make some change and git push



Actual results:
Same as description


Expected results:
App could start normally after stopped


Additional info:

--- Additional comment from Michal Fojtik on 2014-10-17 06:22:07 EDT ---

remote: /usr/bin/oo-exec-ruby: line 8: /bin/rpm: Permission denied

I think this is due to this:

https://github.com/openshift/origin-server/blob/master/util-scl/oo-exec-ruby#L8

We also call oo-exec-ruby when we do oo-erb, which is used to process a lot of gear ERB files.

Adam, can we use something else than RPM to get the system ruby version? (/usr/bin/ruby -v?)

--- Additional comment from Michal Fojtik on 2014-10-17 09:20:03 EDT ---

This might be related to the bug above, QA can you please re-test?

--- Additional comment from Yan Du on 2014-10-20 00:48:02 EDT ---

Retest on devenv_5248, the issue still can be reproduced after the "remote: /usr/bin/oo-exec-ruby: line 8: /bin/rpm: Permission denied" bug fixed. (https://bugzilla.redhat.com/show_bug.cgi?id=1153889)

remote: Stopping aerogear-push cart
remote: Sending SIGTERM to wildfly:701 ...
remote: Stopping MySQL 5.5 cartridge
remote: Building git ref 'master', commit fd897c9
remote: Preparing build for deployment
remote: Deployment id is 3a212416
remote: Activating deployment
remote: Starting MySQL 5.5 cartridge
remote: Deploying WildFly
remote: ls: cannot access /var/lib/openshift/5444b91f6f9958d456000003/app-root/runtime/repo//deployments: No such file or directory
remote: Starting aerogear-push cart
remote: Found 127.1.245.1:8080 listening port
remote: Found 127.1.245.1:9990 listening port
remote: CLIENT_MESSAGE: Could not connect to WildFly management interface, skipping deployment verification
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://5444b91f6f9958d456000003.rhcloud.com/~/git/push1.git/

--- Additional comment from Michal Fojtik on 2014-10-20 04:44:10 EDT ---

Seems like the commit was not there yet, can you please re-test:

This seems to be merged now:
https://github.com/openshift/origin-server/pull/5883

--- Additional comment from Michal Fojtik on 2014-10-20 05:12:11 EDT ---

Sorry, wrong BZ ;-)

--- Additional comment from Michal Fojtik on 2014-10-20 07:21:35 EDT ---

PR (to fix the 'ls' error message).

https://github.com/aerogear/openshift-origin-cartridge-aerogear-push/pull/9

I'm not sure about the Wildfly error. Farah?

Comment 1 Brenton Leanhardt 2014-10-20 12:33:50 UTC
This PR will need to be backported as well:
https://github.com/openshift/origin-server/pull/5887

Comment 4 Gaoyun Pei 2014-11-25 07:27:55 UTC
Couldn't create an aerogear app on puddle-2-2-2014-11-24 env, always get "Timed out waiting for http listening port" error.

[root@broker ~]# rhc app create --no-git test2 https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push -g medium
The cartridge 'https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push'
will be downloaded and installed

Application Options
-------------------
Domain:     domainwyy
Cartridges: https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push
Gear Size:  medium
Scaling:    no

Creating application 'test2' ... 
Starting aerogear-push cart
Timed out waiting for http listening port
Failed to execute: 'control start' for /var/lib/openshift/547429b8e5fed5608d000002/aerogear-push

Comment 7 Rory Thrasher 2017-01-13 22:24:03 UTC
OpenShift Enterprise v2 has officially reached EoL.  This product is no longer supported and bugs will be closed.

Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3.  https://www.openshift.com/container-platform/

More information can be found here: https://access.redhat.com/support/policy/updates/openshift/