Project

General

Profile

Bug #37658

AttributeError: 'Module' object has no attribute 'get_localized_config'

Added by Neha Ojha over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
prometheus module
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

2018-12-13T17:50:48.951 INFO:teuthology.orchestra.run.smithi061.stderr:2018-12-13 17:50:48.955 7fe3918df700  1 -- 172.21.15.61:46368/4100138231 --> 172.21.15.61:6800/53470 -- command(tid 0: {"prefix": "mgr self-test module", "target": ["mgr", ""], "module": "prometheus"}) v1 -- 0x7fe364002f00 con 0
2018-12-13T17:50:48.960 INFO:tasks.ceph.mgr.x.smithi061.stderr:2018-12-13 17:50:48.963 7f3cdb759700 -1 Remote method threw exception: Traceback (most recent call last):
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 807, in self_test
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:    self.collect()
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 761, in collect
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:    self.get_rbd_stats();
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 552, in get_rbd_stats
2018-12-13T17:50:48.961 INFO:tasks.ceph.mgr.x.smithi061.stderr:    pools = self.get_localized_config('rbd_stats_pools', '').split()
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:AttributeError: 'Module' object has no attribute 'get_localized_config'
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:2018-12-13 17:50:48.963 7f3cdb759700 -1 mgr.server reply reply (1) Operation not permitted Test failed: Remote method threw exception: Traceback (most recent call last):
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 807, in self_test
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:    self.collect()
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 761, in collect
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:    self.get_rbd_stats();
2018-12-13T17:50:48.962 INFO:tasks.ceph.mgr.x.smithi061.stderr:  File "/usr/lib64/ceph/mgr/prometheus/module.py", line 552, in get_rbd_stats
2018-12-13T17:50:48.963 INFO:tasks.ceph.mgr.x.smithi061.stderr:    pools = self.get_localized_config('rbd_stats_pools', '').split()
2018-12-13T17:50:48.963 INFO:tasks.ceph.mgr.x.smithi061.stderr:AttributeError: 'Module' object has no attribute 'get_localized_config'

rados/mgr/{clusters/{2-node-mgr.yaml openstack.yaml} debug/mgr.yaml objectstore/bluestore-bitmap.yaml supported-random-distro$/{rhel_latest.yaml} tasks/module_selftest.yaml

/a/nojha-2018-12-13_15:13:17-rados-master-distro-basic-smithi/3358507/

History

#1 Updated by Lenz Grimmer over 5 years ago

  • Category set to prometheus module

#2 Updated by Sebastian Wagner over 5 years ago

Does recompiling Ceph help?

#3 Updated by Mykola Golub over 5 years ago

  • Status changed from New to Resolved
  • Pull request ID set to 25488

The problem was that initial code was merged simultaneously with these methods rename in another PR. It was fixed in this PR https://github.com/ceph/ceph/pull/25488, which is already merged.

#4 Updated by Jan Fajerski over 5 years ago

Also https://github.com/ceph/ceph/pull/25565 would have fixed this.

Also available in: Atom PDF