[Bug 2003530] Re: Rook mgr module crashes due to missing mgr.nfs
Luciano Lo Giudice
2003530 at bugs.launchpad.net
Fri Jun 30 21:48:28 UTC 2023
Hello everyone,
I've run the following test plan to confirm that the fix addresses this
issue:
First, I've created a small ceph cluster with 3 mons and 3 osd's using
Ubuntu Jammy images and the folllowing PPA that includes the fix:
ppa:lmlogiudice/ceph-jammy-17.2.6
With that in place, we can ssh into one of the monitors and run the
following:
sudo apt install ceph-mgr-rook
afterwards, fetching the status via: "sudo ceph status" will show that
no modules have crashed and the command "sudo ceph mgr module ls" will
show that the rook mgr module is present and enabled.
In addition, there will be a directory under "/usr/share/ceph/mgr/nfs/"
with all the needed bits. The absence of those files was causing the
issue reported in this bug.
The same procedure can be run for Ubuntu Kinetic using the ppa:
"ppa:lmlogiudice/ceph-kinetic-17.2.6", and I've likewise found no
errors.
--
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/2003530
Title:
Rook mgr module crashes due to missing mgr.nfs
Status in ceph package in Ubuntu:
Fix Released
Status in ceph source package in Jammy:
Fix Committed
Status in ceph source package in Kinetic:
Fix Committed
Status in ceph source package in Lunar:
Fix Released
Bug description:
[Impact]
The rook mgr service crashes on installing the ceph-mgr-rook package
(see below traceback from /var/log/syslog). This is due to a missing
ceph mgr package "nfs" which the rook mgr module depends upon.
This makes the rook mgr module unusable which is required for
integrating Ceph with the Rook storage orchestrator.
The proposed patch fixes this by including the nfs mgr package into
the ceph-mgr-modules-core .deb. This is similar as upstream packages
nfs for the ceph mgr system.
Jan 17 16:39:18 devcontainer-269785 bash[247610]: debug 2023-01-17T16:39:18.008+0000 7f930419fdc0 -1 mgr[py] Module not found: 'rook'
Jan 17 16:39:18 devcontainer-269785 bash[247610]: debug 2023-01-17T16:39:18.008+0000 7f930419fdc0 -1 mgr[py] Traceback (most recent call last):
Jan 17 16:39:18 devcontainer-269785 bash[247610]: File "/usr/share/ceph/mgr/rook/__init__.py", line 5, in <module>
Jan 17 16:39:18 devcontainer-269785 bash[247610]: from .module import RookOrchestrator
Jan 17 16:39:18 devcontainer-269785 bash[247610]: File "/usr/share/ceph/mgr/rook/module.py", line 41, in <module>
Jan 17 16:39:18 devcontainer-269785 bash[247610]: from .rook_cluster import RookCluster
Jan 17 16:39:18 devcontainer-269785 bash[247610]: File "/usr/share/ceph/mgr/rook/rook_cluster.py", line 29, in <module>
Jan 17 16:39:18 devcontainer-269785 bash[247610]: from nfs.cluster import create_ganesha_pool
Jan 17 16:39:18 devcontainer-269785 bash[247610]: ModuleNotFoundError: No module named 'nfs'
[Test plan]
The test requires a Ceph cluster. SSH to a system with a running ceph-
mon service.
$ sudo ceph mgr module ls # verify: no rook mgr module
$ sudo apt-get -q install ceph-mgr-rook
$ sudo ceph -s # verify: no crashed modules
$ sudo ceph mgr module ls # verify: rook mgr module present and enabled
[Where problems could occur]
The proposed patch only includes an additional Python package, and
regression potential should be low.
Issues could occur due to packaging bugs, such as missing dependencies
for the nfs mgr package. As the nfs package is currently missing,
there should not be any additional impact due to this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2003530/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list