Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Notify Service['oneagent'] to refresh the service instead of using --restart-service on each oneagentctl call #39

@costco-kynelson

Description

@costco-kynelson

The oneagentctl changes are currently implemented per setting, which can chain multiple oneagentctl calls with the --restart-service commands. The primary impact is adding over a minute to the initial install, which is significant enough that this is worth improving because we have dynamic environments where Puppet is the major contributor to build times. After the initial install, most use cases won't mind the overhead as most configuration options won't be changed at once.

The ideal method would be to have all the Config/Exec resources notify the Service to refresh (restart) instead of using --restart-service.

Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]: Scheduling refresh of Exec[set_oneagent_communication]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]: Scheduling refresh of Exec[set_oneagent_communication]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]: Scheduling refresh of Exec[set_log_monitoring]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]: Scheduling refresh of Exec[set_log_monitoring]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]: Scheduling refresh of Exec[set_log_access]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]: Scheduling refresh of Exec[set_log_access]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]: Scheduling refresh of Exec[set_host_group]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]: Scheduling refresh of Exec[set_host_group]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]: Scheduling refresh of Exec[set_host_tags]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]: Scheduling refresh of Exec[set_host_tags]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]: Scheduling refresh of Exec[set_host_metadata]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]: Scheduling refresh of Exec[set_host_metadata]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]: Scheduling refresh of Exec[set_infra_only]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]: Scheduling refresh of Exec[set_infra_only]
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_oneagent_communication]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_log_monitoring]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_log_access]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_group]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_tags]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_metadata]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_infra_only]: Triggered 'refresh' from 2 events

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions