Ask Your Question
0

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
0

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
[client.admin]
keyring = /etc/ceph/ceph.client.admin.keyring
public addr = 172.17.12.8:5678
EOF

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:
curl http://172.17.12.8:5678/api/v0.1/health
# equivalent of 'ceph df':
curl http://172.17.12.8:5678/api/v0.1/df
# dumps documentation (see https://dmsimard.com/2014/01/01/documentation-for-ceph-rest-api/ ):
curl http://172.17.12.8:5678/api/v0.1/
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 419 times

Last updated: Mar 27 '16