Using external Ceph cluster

leihnix

Member
Mar 22, 2016
26
3
23
Dear Community
I have the same Problem, I installed a external Ceph Cluster using cephadm. (https://ralph.blog.imixs.com/2020/04/14/ceph-octopus-running-on-debian-buster/). Then I created a replicated pool (T_Pool) and applied the rbd Application.

1627378489699.png

I copied the Keys from my ceph cluster to the proxmox node:
scp /etc/ceph/ceph.client.admin.keyring proxmox:/etc/ceph
scp /etc/ceph/ceph.conf proxmox:/etc/ceph

I copied the file on the proxmox node as following:
cp /etc/ceph/ceph.conf /etc/pve/priv/ceph/T_Pool.conf
cp /etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/T_Pool.keyring

In the Proxmox Webinterface I added my pool.

1627378528791.png

my pool is now visible with a question mark but the size on the pool is recognized.

1627378588048.png

When I want to create a VM into that pool i get an error: "TASK ERROR: unable to create VM 115 - rbd error: rbd: listing images failed: (2) No such file or directory"

Can someone tell me what is going wrong?

On Proxmox I have
root@px01:/etc/pve/priv/ceph# ceph --version
ceph version 15.2.13 (1f5c7871ec0e36ade641773b9b05b6211c308b9d) octopus (stable)

On Ceph I have
root@v-ceph-01:/# ceph --version
ceph version 15.2.13 (c44bc49e7a57a87d84dfff2a077a2058aa2172e2) octopus (stable)

Kind regards
Mike
 
What version is the Ceph cluster?

So you have the keyring file located at /etc/pve/priv/ceph/<storage>.keyring? And its contents match if you check against the keyrings in the Ceph cluster? ceph auth ls

Try to remove any ceph.conf file as it is not needed if you just have an external Ceph cluster that is not managed by Proxmox VE.
 
Dear Aaron

the contents of the keyring matches the one in the "ceph auth ls"

1627460787363.png

On the Ceph cluster I have_
root@v-ceph-01:/# ceph --version
ceph version 15.2.13 (c44bc49e7a57a87d84dfff2a077a2058aa2172e2) octopus (stable)

On the Proxmox node i have:
root@px01:/etc/pve/priv/ceph# ceph --version
ceph version 15.2.13 (1f5c7871ec0e36ade641773b9b05b6211c308b9d) octopus (stable)

I tried to look for unnessecary ceph.conf files, and found the following files:

root@px01:~# find / -name ceph.conf
find: ‘/proc/2650314’: No such file or directory
1. /etc/ceph/ceph.conf
2. /usr/lib/tmpfiles.d/ceph.conf

the second file seems somewhat irrelevant. Otherwise i dont see any additional ceph.conf files.

Kind Regards Mike
 
Does the following command work?
Code:
rbd -p <POOL> -m <MON1>,<MON2> -n client.admin --keyring /etc/pve/priv/ceph/<STORAGE>.keyring ls
 
Hallo Aaron

the command comes back with a empty result

root@px01:/etc/pve/priv/ceph# /usr/bin/rbd -p T_Pool -m 192.168.10.71,192.168.10.72 -n client.admin --keyring /etc/pve/priv/ceph/T_Pool.keyring ls
root@px01:/etc/pve/priv/ceph#

Kind regards Mike
 
the command comes back with a empty result
As expected, since no disk image is present yet? That means that the connection itself is working.

root@px01:~# find / -name ceph.conf
find: ‘/proc/2650314’: No such file or directory
1. /etc/ceph/ceph.conf
2. /usr/lib/tmpfiles.d/ceph.conf

the second file seems somewhat irrelevant. Otherwise i dont see any additional ceph.conf files.
Try to remove the /etc/ceph/ceph.conf file as well, since all you have is the external cluster and not one managed by PVE itself.
For external Ceph clusters, the RBD command is used as we did it manually and there is no need for the ceph.conf. Depending on what you have in there, it might even confuse PVE.
 
Hello Aaron

Thank you for your answer!

after hours of trial and error I finally got it working. Unfortunately I cannot remember what the cause was.
The only thing I have now left is the question mark, the unknow status and the usage graph with the 1070 date.

1627636970229.png

1627637071225.png

Is there a solution to that?

Regards Mike
 
Last edited:
Try to restart the pvestatd daemon.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!