Project

General

Profile

Actions

Bug #40151

open

Nautilus on Ubuntu Bionic: Module 'influx' has failed: 'InfluxDBClient' object has no attribute 'close'

Added by Soenke Schippmann almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
influx module
Target version:
-
% Done:

0%

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

Description

After upgrading from Mimic to Nautilus on Ubuntu Bionic, the ceph manager crashes as soon as I (re-)enable the influx module.

Apparently, the close method was introduced in influxdb 5.0.0, Ubuntu Bionic has influxdb 4.1.1-2 only.

Traceback:

  File "/usr/share/ceph/mgr/influx/module.py", line 476, in serve
    self.send_to_influx()
  File "/usr/share/ceph/mgr/influx/module.py", line 377, in send_to_influx
    client.close()
AttributeError: 'InfluxDBClient' object has no attribute 'close'

Quick'n'dirty patch attached.


Files

Actions #1

Updated by Soenke Schippmann almost 5 years ago

There's another call to client.close() which I missed in the first patch. Here's a more complete one, but still not well tested.

Actions

Also available in: Atom PDF