In HA configuration, storage provision failure due to wrong port 5005 in /usr/bin/ceph-rest-api

Bug #1480501 reported by Charlie Kim
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Won't Fix
High
Dheeraj Gautam
R3.0
Won't Fix
High
Dheeraj Gautam
R3.1
Fix Committed
High
Dheeraj Gautam
R3.2
Fix Committed
High
Dheeraj Gautam
Trunk
Fix Committed
High
Dheeraj Gautam

Bug Description

storage provisioning fails to complete with server-manager/storage 2.20-64 on ubuntu-14.04.1. Providing was completed by changing port to 5006 as below (it was 5005) and restart service cep-rest-api from controllers.

/Charlie

-rw-r--r-- 1 vcpe vcpe 31500700 Jul 14 15:39 contrail-server-manager-installer_2.20-64~ubuntu-14-04_all.deb
-rw-r--r-- 1 vcpe vcpe 40435368 Jul 29 12:35 contrail-storage-packages_2.20-64~ubuntu-14-04juno_all.deb
-rw-r--r-- 1 vcpe vcpe 599785472 Jul 14 15:38 ubuntu-14.04.1-server-amd64.iso

root@vcpe-server-2:~# tail /usr/bin/ceph-rest-api
    parsed_args.id,
    rest,
)

files = [os.path.split(fr[1])[-1] for fr in inspect.stack()]
if 'pdb.py' in files:
    app.run(host=app.ceph_addr, port=app.ceph_port,
            debug=True, use_reloader=False, use_debugger=False)
else:
    app.run(host=app.ceph_addr, port=5006)
root@vcpe-server-2:~#

Charlie Kim (kimcharli)
information type: Proprietary → Public
Vinod Nair (vinodnair)
tags: added: server-manager storage
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Bug update]

bug update...

Abhay Joshi (abhayj)
summary: - storage provision failure due to wrong port 5005 in /usr/bin/ceph-rest-
- api
+ In HA configuration, storage provision failure due to wrong port 5005 in
+ /usr/bin/ceph-rest-api
tags: added: releasenote
Revision history for this message
Dheeraj Gautam (dgautam) wrote :

Tried with R3.1.1-38 build. This issue issue is not there now. All 3 nodes reported ceph-rest-api is listening on 5006 and haproxy is listening 5005. So closing this issue now.

root@blaster-dgautam-003:~# PORT_NUM=5006; netstat -nap | grep -w ${PORT_NUM} | awk -F '/' '{print $1}' | awk '{print $7}' | xargs ps
  PID TTY STAT TIME COMMAND
 7332 ? Ssl 0:01 /usr/bin/python /usr/bin/ceph-rest-api -c /etc/ceph/ceph.conf -n client.admin
root@blaster-dgautam-003:~# PORT_NUM=5005; netstat -nap | grep -w ${PORT_NUM} | awk -F '/' '{print $1}' | awk '{print $7}' | xargs ps
  PID TTY STAT TIME COMMAND
 3075 ? Ss 1:17 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.