Commit 8a40298
committed
nfs: log error when go-ceph fails to create the export
With Ceph Tentacle creating a (the first?) NFS-export fails with:
```
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 2010, in _handle_command
return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
File "/usr/share/ceph/mgr/mgr_module.py", line 534, in call
return self.func(mgr, **kwargs)
File "/usr/share/ceph/mgr/object_format.py", line 592, in _format_response
robj = f(*args, **kwargs)
File "/usr/share/ceph/mgr/nfs/module.py", line 45, in
_cmd_nfs_export_create_cephfs
earmark_resolver = CephFSEarmarkResolver(self)
File "/usr/share/ceph/mgr/mgr_util.py", line 356, in __init__
self._cephfs_client = client or CephfsClient(mgr)
File "/usr/share/ceph/mgr/mgr_util.py", line 318, in __init__
self.connection_pool = CephfsConnectionPool(self.mgr)
File "/usr/share/ceph/mgr/mgr_util.py", line 223, in __init__
self.timer_task.start()
File "/usr/lib64/python3.9/threading.py", line 899, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
```
It seems this can only happen when the CLI is used, that means go-ceph
failed to create the export in the first place. It would be useful to
log the go-ceph failure, so that improving is possible.
Signed-off-by: Niels de Vos <ndevos@ibm.com>1 parent ea29841 commit 8a40298
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
0 commit comments