| Summary: | Can not start openshift-node-web-proxy service on node | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Ma xiaoqiang <xiama> |
| Component: | Containers | Assignee: | Jhon Honce <jhonce> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-17 13:34:14 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: | |
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/08d2f89c7bdba339f9adab08757610992c0a2f9d Bug 1016986 - Wait for node-web-proxy startup * SCL version of nodejs introduced a delay in starting the supervisor checked on devenv 3879
# /etc/init.d/openshift-node-web-proxy status
web-proxy (pid 1780) is running...
# /etc/init.d/openshift-node-web-proxy status
web-proxy (pid 1780) is running...
# /etc/init.d/openshift-node-web-proxy restart
Stopping node-web-proxy: [ OK ]
Starting node-web-proxy: [ OK ]
# /etc/init.d/openshift-node-web-proxy status
web-proxy (pid 2856) is running...
check the code:
nohup scl enable nodejs010 "$cmd" &> $logfile &
for i in {1..30}; do
pgrep -u 0 -f bin/node-supervisor > $pidfile
retval=$?
[ $retval -eq 0 ] && break
sleep 1
done
[ $retval -eq 0 ] && touch $lockfile && echo_success
|
Description of problem: Can not start openshift-node-web-proxy service on node Version-Release number of selected component (if applicable): devenv_3874 How reproducible: always Steps to Reproduce: 1.restart openshift-node-web-proxy service on node #/etc/init.d/openshift-node-web-proxy restart 2.check the status of the service #/etc/init.d/openshift-node-web-proxy status Actual results: Output: web-proxy dead but pid file exists # vim /usr/sbin/oo-diagnostics lines 38-43 38 start() { 39 echo -n $"Starting node-web-proxy: " 40 chown apache.apache /var/log/node-web-proxy/*.log >/dev/null 2>&1 || : 41 export NODE_PATH="$nodesysmodulespath" 42 nohup scl enable nodejs010 "$cmd" &> $logfile & 43 pgrep -u 0 -f bin/node-supervisor > $pidfile 44 retval=$? 45 [ $retval -eq 0 ] && touch $lockfile && echo_success 46 echo Progress "node-supervisor" need some times to start in the line 42 , so program can not get correct pid in the line 43 Expected results: The service should be running normally Additional info: