pveceph install fails

Lefuneste

Active Member
Mar 7, 2017
13
18
43
52
I have a 3 node Proxmox 7.1.12, with a ceph RBD storage for HA VM.

Following a violent brown out this morning due to local roadworks, despite heavy duty UPS my ceph cluster went down the drain.

I could not restart the OSD, and could not recreate them. I tried to clean up the ceph cluster as I have many backups of the VM running on this ceph cluster.

When trying to reinstall the Ceph packages on the nodes I get the following error that I cannot resolve.

update available package list start installation Reading package lists... Done Building dependency tree... Done Reading state information... Done gdisk is already the newest version (1.0.6-1.1). nvme-cli is already the newest version (1.12-5). ceph-common is already the newest version (16.2.7-1~bpo11+1). ceph-fuse is already the newest version (16.2.7-1~bpo11+1). Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ceph-mds : Depends: ceph-base (= 16.2.7) but 16.2.7-1~bpo11+1 is to be installed ceph-mgr : Depends: ceph-base (= 16.2.7) but 16.2.7-1~bpo11+1 is to be installed ceph-mon : Depends: ceph-base (= 16.2.7) but 16.2.7-1~bpo11+1 is to be installed ceph-osd : Depends: ceph-base (= 16.2.7) but 16.2.7-1~bpo11+1 is to be installed E: Unable to correct problems, you have held broken packages. apt failed during ceph installation (25600) Connection to 192.168.0.66 closed.


I have tried many different things like forcing package versions to 16.2.7 without success.

All nodes have the exact same apt configurations

/etc/apt/source.list deb http://ftp.fr.debian.org/debian bullseye main contrib deb http://ftp.fr.debian.org/debian bullseye-updates main contrib # security updates deb http://security.debian.org bullseye-security main contrib /etc/apt/sources.list.d/ceph.list deb http://download.proxmox.com/debian/ceph-pacific bullseye main /etc/apt/sources.list.d/pve-enterprise.list #deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

The first time I deployed Ceph functionnalities it installed in a snap but now it seems totally broken. Any idea on how to solve this ?
 
Hurrah

I solved my own mess by doing something NOT recommended... I basically followed the dependencies complains and forced the version of each package. Then pveceph runs untill the end and completes the process with the "ceph" package install. Not tested yet if it is running properly but at least it completes the install and leaves a clean apt status.

apt-get download ceph-base=16.2.7 ceph-mgr=16.2.7 ceph-osd=16.2.7 librados2=16.2.7 librgw2=16.2.7 python3-ceph-common=16.2.7 python3-pecan=1.3.3-3 python3-rgw=16.2.7 ceph-common=16.2.7 ceph-mgr-modules-core=16.2.7 libcephfs2=16.2.7 libradosstriper1=16.2.7 python3-bcrypt=3.1.7-4 python3-cephfs=16.2.7 python3-rados=16.2.7 python3-werkzeug=1.0.1+dfsg1-2 ceph-mds=16.2.7 ceph-mon=16.2.7 libjaeger=16.2.7 librbd1=16.2.7 python3-ceph-argparse=16.2.7 python3-cherrypy3=8.9.1-8 python3-rbd=16.2.7 dpkg --force-all -i libjaeger_16.2.7_amd64.deb librbd1_16.2.7_amd64.deb python3-cephfs_16.2.7_amd64.deb python3-ceph-argparse_16.2.7_all.deb python3-ceph-common_16.2.7_all.deb python3-rados_16.2.7_amd64.deb python3-rbd_16.2.7_amd64.deb python3-rgw_16.2.7_amd64.deb libcephfs2_16.2.7_amd64.deb librados2_16.2.7_amd64.deb ceph-common_16.2.7_amd64.deb ceph-mgr_16.2.7_amd64.deb ceph-mon_16.2.7_amd64.deb ceph-osd_16.2.7_amd64.deb ceph-mds_16.2.7_amd64.deb libradosstriper1_16.2.7_amd64.deb librgw2_16.2.7_amd64.deb ceph-mgr-modules-core_16.2.7_all.deb python3-bcrypt_3.1.7-4_amd64.deb python3-cherrypy3_8.9.1-8_all.deb python3-pecan_1.3.3-3_all.deb python3-werkzeug_1.0.1+dfsg1-2_all.deb ceph-base_16.2.7_amd64.deb
 

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!