Actions
Bug #41737
closedmgr/k8sevents: exception in non-kubernetes environment
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
k8sevents module is introduced in this PR: https://github.com/ceph/ceph/pull/29520
Start mgr in a non Kubernetes spawned cluster and find these lines in log:
2019-09-10T04:29:36.219+0000 7f2747939d40 -1 mgr[py] Module not found: 'k8sevents' 2019-09-10T04:29:36.219+0000 7f2747939d40 -1 mgr[py] Traceback (most recent call last): File "/ceph/src/pybind/mgr/k8sevents/__init__.py", line 1, in <module> from .module import Module File "/ceph/src/pybind/mgr/k8sevents/module.py", line 189, in <module> class RookCeph(object): File "/ceph/src/pybind/mgr/k8sevents/module.py", line 192, in RookCeph pod_name = os.environ['POD_NAME'] File "/usr/lib64/python3.7/os.py", line 678, in __getitem__ raise KeyError(key) from None KeyError: 'POD_NAME' 2019-09-10T04:29:36.219+0000 7f2747939d40 -1 mgr[py] Class not found in module 'k8sevents' 2019-09-10T04:29:36.219+0000 7f2747939d40 -1 mgr[py] Error loading module 'k8sevents': (2) No such file or directory
The behavior is correct since mgr is not in a Kubernetes spawned cluster.
But handling these exceptions will be nice.
Updated by Sebastian Wagner over 4 years ago
Updated by Sebastian Wagner over 4 years ago
If possible, I'd like to wait with https://github.com/ceph/ceph/pull/30215 until this is solved.
Updated by Paul Cuzner over 4 years ago
PR raised - https://github.com/ceph/ceph/pull/30482
Updated by Sebastian Wagner over 4 years ago
- Status changed from New to Pending Backport
- Backport set to nautilus
- Pull request ID set to 30482
Nautilus Backport PR: https://github.com/ceph/ceph/pull/30215
Updated by Sebastian Wagner over 4 years ago
- Copied to Backport #41720: nautilus: Add mgr module for kubernetes event integration added
Updated by Nathan Cutler over 4 years ago
- Copied to deleted (Backport #41720: nautilus: Add mgr module for kubernetes event integration)
Updated by Nathan Cutler over 4 years ago
- Status changed from Pending Backport to Resolved
- Backport deleted (
nautilus)
Backport being handled via #41435
Updated by Nathan Cutler over 4 years ago
- Related to Bug #41435: Add mgr module for kubernetes event integration added
Actions