[Bug 2033428] Re: [FFe] Update Ceph to new 18.2.0 (Reef) version
Luciano Lo Giudice
2033428 at bugs.launchpad.net
Wed Sep 6 23:15:23 UTC 2023
It's been pointed out that the above test plan isn't sufficient since it
uses jammy-reef instead of mantic-reef. Since deploying Mantic machines
on Juju isn't supported yet, here's an alternative test plan using
cephadm:
First, we create a Mantic VM using LXD.
```
# The Mantic images aren't included by default, so download it first
lxc image copy images:ubuntu/mantic local: --copy-aliases --vm
lxc launch ubuntu/23.10 admin --vm -c limits.cpu=4 -c limits.memory=16GiB
# Jump into the VM
lxc exec admin /bin/bash
```
Now that we are in the VM, we install the necessary packages and add our
PPA:
```
apt install -y openssh-server software-properties-common && systemctl enable ssh --now
add-apt-repository ppa:lmlogiudice/ceph-reef-mantic
apt update
```
With the PPA in place, we now install Ceph and cephadm:
```
apt install ceph cephadm
```
Before proceeding, we verify that the Ceph version is the expected one:
```
root at admin:~# ceph -v
ceph version 18.2.0 (5dd24139a1eada541a3bc16b6941c5dde975e26d) reef (stable)
```
Afterwards, we bootstrap the Ceph cluster:
`cephadm bootstrap --mon-ip 10.122.104.220 --single-host-defaults
--cluster-network=10.122.104.0/24`
(Replace with your IP where necessary)
With this done, we have a Ceph cluster, but no OSD's. We can add one
with the following steps:
```
touch loop.img
truncate --size 3G ./loop.img
losetup -fP ./loop.img
losetup -a
```
Assuming the loop device has been mounted in the path `/dev/loop0`, we
proceed with the following:
`ceph orch daemon add osd `hostname`:/dev/loop0 raw`
And with that, we have an OSD ready, which we can verify by running:
`ceph -s`
which should show something like:
cluster:
id: 37ff43ae-4d08-11ee-b0f8-00163e4c7d50
health: HEALTH_WARN
OSD count 1 < osd_pool_default_size 2
services:
mon: 1 daemons, quorum admin (age 11m)
mgr: admin.ybcvya(active, since 9m), standbys: admin.aksuhv
osd: 1 osds: 0 up, 1 in (since 26s)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 0 B used, 0 B / 0 B avail
pgs:
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2033428
Title:
[FFe] Update Ceph to new 18.2.0 (Reef) version
Status in ceph package in Ubuntu:
Triaged
Status in ceph source package in Mantic:
Triaged
Bug description:
Hello,
The release of Ceph Reef [0] was delayed and didn't happen before the feature freeze in Mantic.
Reef includes fixes and features that are important to our community
and us, so we would like to include it in the Ubuntu Mantic release.
Our plan is to upload a package based on this PPA [1], corresponding
to the following git branch [2] if the FFe is accepted and the package
and sources pass their review.
0: https://docs.ceph.com/en/latest/releases/reef/
1: https://launchpad.net/~lmlogiudice/+archive/ubuntu/ceph-reef-mantic
2: https://git.launchpad.net/~lmlogiudice/ubuntu/+source/ceph/log/?h=mantic-reef-18.2.0
Please let us know if you need any additional details.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2033428/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list