Charm should remove inappropriate checks if not needed

Bug #2023700 reported by Paul Goins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-infra-node
Triaged
Low
Unassigned

Bug Description

The infra-node charm appears to add appropriate MAAS checks, but does nothing to remove inappropriate ones.

Consider the code here:

-----
        if self.is_maas_snap_loaded():
            services = ['snap.maas.supervisor']
        else:
            services = ['maas-proxy', 'maas-rackd', 'maas-regiond', 'bind9']
            if config.get('nagios_check_dhcpd'):
                services.append('maas-dhcpd')
        nrpe.add_init_service_checks(nrpe_setup, services, current_unit)
        nrpe_setup.write()
-----

If the environment were using deb-based MAAS and switched to using snap-based MAAS - while the new checks would be added, nothing would be done to remove the old checks.

We appear to have reproduced this bug on a customer cloud, where we concretely have checks for snap.maas.supervisor in addition to maas-regiond, maas-rackd, etc.

Andrea Ieri (aieri)
Changed in charm-infra-node:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.