Skip to content

icinga: fix a typo on the graphql host declaration

Fix this error:

Sep 12 14:21:45 pergamon safe-reload[3710886]: [2022-09-12 14:21:45 +0000] critical/config: Error: Validation failed for object 'graphql.staging.swh.network!Software Heritage Staging Graphql Instance' of type 'Service'; Attribute 'host_name': Object 'graphql.staging.swh.network' of type 'Host' does not exist.

Related to T4135

Test Plan

*******************************************
+ Concat::Fragment[icinga2::object::Host::graphql.staging.swh.network] =>
   parameters =>
     "content": "\nobject Host \"graphql.staging.swh.network\" {\n  import \"gene...
     "order": 50,
     "target": "/etc/icinga2/conf.d/static-checks.conf"
*******************************************
- Concat::Fragment[icinga2::object::Host::grapqhl.staging.swh.network]
*******************************************
+ Concat_fragment[icinga2::object::Host::graphql.staging.swh.network] =>
   parameters =>
     "content": "\nobject Host \"graphql.staging.swh.network\" {\n  import \"gene...
     "order": 50,
     "tag": "_etc_icinga2_conf.d_static-checks.conf",
     "target": "/etc/icinga2/conf.d/static-checks.conf"
*******************************************
- Concat_fragment[icinga2::object::Host::grapqhl.staging.swh.network]
*******************************************
+ Icinga2::Object::Host[graphql.staging.swh.network] =>
   parameters =>
     "address": "graphql.staging.swh.network",
     "check_command": "dummy",
     "ensure": "present",
     "host_name": "graphql.staging.swh.network",
     "import": [
       "generic-host"
     ],
     "order": 50,
     "target": "/etc/icinga2/conf.d/static-checks.conf",
     "template": false,
     "vars": {
       "dummy_state": 0,
       "dummy_text": "HTTP-only host"
     }
*******************************************
- Icinga2::Object::Host[grapqhl.staging.swh.network]
*******************************************
+ Icinga2::Object[icinga2::object::Host::graphql.staging.swh.network] =>
   parameters =>
     "apply": false,
     "assign": [

     ],
     "attrs": {
       "address": "graphql.staging.swh.network",
       "check_command": "dummy",
       "vars": {
         "dummy_state": 0,
         "dummy_text": "HTTP-only host"
       }
     },
     "attrs_list": [
       "address",
       "address6",
       "groups",
       "display_name",
       "check_command",
       "max_check_attempts",
       "check_period",
       "check_timeout",
       "check_interval",
       "retry_interval",
       "enable_notifications",
       "enable_active_checks",
       "enable_passive_checks",
       "enable_event_handler",
       "enable_flapping",
       "enable_perfdata",
       "event_command",
       "flapping_threshold_low",
       "flapping_threshold_high",
       "volatile",
       "zone",
       "command_endpoint",
       "notes",
       "notes_url",
       "action_url",
       "icon_image",
       "icon_image_alt",
       "vars",
       "Acknowledgement",
       "ApiBindHost",
       "ApiBindPort",
       "ApiEnvironment",
       "ApplicationType",
       "Array",
       "AttachDebugger",
       "BuildCompilerName",
       "BuildCompilerVersion",
       "BuildHostName",
       "Checkable",
       "Command",
       "Concurrency",
       "ConfigObject",
       "Configuration",
       "Critical",
       "Custom",
       "CustomVarObject",
       "DateTime",
       "Deprecated",
       "Dictionary",
       "Down",
       "DowntimeEnd",
       "DowntimeRemoved",
       "DowntimeStart",
       "Environment",
       "FlappingEnd",
       "FlappingStart",
       "Function",
       "HostDown",
       "HostUp",
       "IncludeConfDir",
       "Internal",
       "Json",
       "LocalStateDir",
       "LogCritical",
       "LogDebug",
       "Logger",
       "LogInformation",
       "LogNotice",
       "LogWarning",
       "Math",
       "MaxConcurrentChecks",
       "ModAttrPath",
       "Namespace",
       "NodeName",
       "OK",
       "ObjectsPath",
       "PerfdataValue",
       "PidPath",
       "PkgDataDir",
       "PlatformArchitecture",
       "PlatformKernel",
       "PlatformKernelVersion",
       "PlatformName",
       "PlatformVersion",
       "PrefixDir",
       "Problem",
       "Recovery",
       "Reference",
       "RunAsGroup",
       "RunAsUser",
       "RunDir",
       "ServiceCritical",
       "ServiceOK",
       "ServiceUnknown",
       "ServiceWarning",
       "StatePath",
       "StreamLogger",
       "SysconfDir",
       "System",
       "Type",
       "Types",
       "Unknown",
       "Up",
       "UseVfork",
       "VarsPath",
       "Warning",
       "ZonesDir",
       "NodeName",
       "ZoneName",
       "TicketSalt",
       "PluginDir",
       "PluginContribDir",
       "ManubulonPluginDir",
       "name",
       "NodeName",
       "ZoneName",
       "TicketSalt",
       "PluginDir",
       "PluginContribDir",
       "ManubulonPluginDir",
       "name"
     ],
     "ensure": "present",
     "ignore": [

     ],
     "import": [
       "generic-host"
     ],
     "object_name": "graphql.staging.swh.network",
     "object_type": "Host",
     "order": 50,
     "prefix": false,
     "target": "/etc/icinga2/conf.d/static-checks.conf",
     "template": false
*******************************************
- Icinga2::Object[icinga2::object::Host::grapqhl.staging.swh.network]
*******************************************
*** End octocatalog-diff on pergamon.softwareheritage.org

Migrated from D8450 (view on Phabricator)

Merge request reports