~vultaire/charm-hw-health:lp1904032

Last commit made on 2020-11-16
Get this branch:
git clone -b lp1904032 https://git.launchpad.net/~vultaire/charm-hw-health
Only Paul Goins can upload to this branch. If you are Paul Goins please log in for upload directions.

Branch merges

Branch information

Name:
lp1904032
Repository:
lp:~vultaire/charm-hw-health

Recent commits

3440d39... by Paul Goins

LP#1904032: Fix "lshw -json" parsing on Focal

In Bionic, "lshw -json" output one dictionary per item it was
displaying. In the case of multiple items (e.g. "-class network" with
multiple adapters), it would output multiple dictionaries in sequence.

In Focal, "lshw -json" outputs records in a list, which is more
correct for JSON parsers, however it breaks our current parsing.

The fix is simply to grab the first item in the list and act upon it.
Since the "lshw -json" query outputs the system record by default,
there will only be one item for our case.

278e94a... by Alvaro Uria

Merge branch 'bug/1904045'

Reviewed-on: https://code.launchpad.net/~canonical-is-bootstack/charm-hw-health/+git/charm-hw-health/+merge/393712
Reviewed-by: James Troup <email address hidden>

ee9ba76... by Alvaro Uria

LP#1904045: Fix ipmi cronjob runas permissions

When the ipmi cronjob is configured, the nagios user will run the croned
script. However, the configuration of the nrpe check reconfigured the
cronjob to be run as root. This fix makes the cronjob be always run by
the nagios user.

1ca277c... by Alvaro Uria

Merge branch 'aluria/bug/1893461'

Reviewed-on: https://code.launchpad.net/~canonical-is-bootstack/charm-hw-health/+git/charm-hw-health/+merge/393454
Reviewed-by: Paul Goins <email address hidden>
Reviewed-by: Alvaro Uria <email address hidden>

2e7f1c2... by Facundo Ciccioli

Add support for a whole family of controllers (MegaRAID SAS ones)

This is instead of listing every product that can be controlled by
megacli, encompass them by the driver.

d7bc020... by Alvaro Uria

Merge branch 'blacken-20.10'

Reviewed-on: https://code.launchpad.net/~canonical-is-bootstack/charm-hw-health/+git/charm-hw-health/+merge/392535
Reviewed-by: Drew Freiberger <email address hidden>

3781709... by Alvaro Uria

Fix linting via black

b1caca2... by Facundo Ciccioli

As it was, the ifeq was always going to evaluate to false

The use of wildcard is mandatory to produce the desired effect of
checking the existance of a file.

27fac68... by Xav Paice

Merge branch 'remove-check-ilorest.py'

cc1f497... by Drew Freiberger

Remove extraneous debug print from test_cron_ilorest.py unit test.