Ask Your Question

Fuel 7.0 How to Change Port Number for ceph-rest-api

asked 2016-02-21 07:34:55 -0500

kclev gravatar image

I am trying to access the "ceph-rest-api" for Ceph that is present on the Fuel controller nodes in order to do some development. The problem is that the ceph-rest-api uses port 5000 by default, which is obviously the same port that keystone uses, so I am unable to start the ceph-rest-api because port 5000 is already in use by keystone (the ceph-rest-api runs on the Ceph mon's so it resides on the Fuel controller nodes).

After googling around I can't seem to find a way to start the ceph-rest-api with a different port number (I am trying to start it like this: ceph-rest-api -c /etc/ceph/ceph.conf -n client.admin).

Anyone know how to fix this? Any help is greatly appreciated :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-27 11:35:30 -0500

sxc731 gravatar image

It looks like Fuel doesn't deploy/configure this process, so we'll have to configure it manually.

According to the Ceph docs the way to configure the port being listened on is by way of public addr. Here's how I configured mine:

cat >> /etc/ceph/ceph.conf << EOF
keyring = /etc/ceph/ceph.client.admin.keyring
public addr =

Obviously back-up your config first and adjust the IP/port as required. The keyring referenced here is pre-generated by Fuel and looks appropriate..(?)

Then run the process as follows: ceph-rest-api -i admin(-i admin tells the process to identify as client.admin which will make it use the piece of config we added above).

Let's try it out; here are a few examples:

# first a classic:
# equivalent of 'ceph df':
# dumps documentation (see ):
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-02-21 07:34:55 -0500

Seen: 538 times

Last updated: Mar 27 '16