cs:influxdb-13 (latest yesterday) successfully created the admin influxdb user and dropped the creds in /root/.influx-auth. Also when related to nrpe the charm successfully created the nagios user dropping the creds in /var/lib/nagios/.influx-auth
The recent release of cs:influxdb-14 to the charmstore seems to have caused a regression here where the users and auth files do not get created causing mojo deployments to fail on verification:
2018-05-23 08:48:36 [ERROR] 1 FAIL on influxdb/0:
+ /usr/local/lib/nagios/plugins/check_influxdb.py
error authorizing query: create admin user first or disable authentication
CRITICAL: Exception while attempting to check InfluxDB
Traceback (most recent call last):
File "/usr/local/lib/nagios/plugins/check_influxdb.py", line 29, in <module>
output = subprocess.check_output(cmd)
File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
**kwargs).stdout
File "/usr/lib/python3.5/subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['influx', '-execute', 'show diagnostics', '-format', 'json']' returned non-zero exit status 1
2018-05-23 08:48:36 [ERROR] Nagios checks failed
We should publish the previous version of the charm as cs:influxdb-15 until we can get this fixed, unless the fix is very quick.