integrations-core
integrations-core copied to clipboard
kubernetes_state check fails to initialize
Output of the info page
====================
Collector (v 5.27.0)
====================
Status date: 2018-09-19 23:03:42 (12s ago)
Pid: 26
Platform: Linux-4.4.111+-x86_64-with-debian-9.5
Python Version: 2.7.15, 64bit
Logs: <stderr>, /var/log/datadog/collector.log
Clocks
======
NTP offset: -0.0003 s
System UTC time: 2018-09-19 23:03:54.418839
Paths
=====
conf.d: /etc/dd-agent/conf.d
checks.d: Not found
Hostnames
=========
socket-hostname: dd-agent-xkqrd
hostname: gke-pre-prd-cluster-pre-prd-pool-1-8--1350f1d9-4n17.c.docrepository-160410.internal
socket-fqdn: dd-agent-xkqrd
Checks
======
kubernetes_state (3.0.0)
------------------------
- initialize check class [ERROR]: AttributeError("'KubernetesState' object has no attribute '_deprecations'",)
Emitters
========
- http_emitter [OK]
====================
Dogstatsd (v 5.27.0)
====================
Status date: 2018-09-19 23:03:53 (2s ago)
Pid: 23
Platform: Linux-4.4.111+-x86_64-with-debian-9.5
Python Version: 2.7.15, 64bit
Logs: <stderr>, /var/log/datadog/dogstatsd.log
Flush count: 506
Packet Count: 3775
Packets per second: 2.3
Metric count: 23
Event count: 0
Service check count: 2
====================
Forwarder (v 5.27.0)
====================
Status date: 2018-09-19 23:03:53 (4s ago)
Pid: 22
Platform: Linux-4.4.111+-x86_64-with-debian-9.5
Python Version: 2.7.15, 64bit
Logs: <stderr>, /var/log/datadog/forwarder.log
Queue Size: 1791 bytes
Queue Length: 1
Flush Count: 1631
Transactions received: 1530
Transactions flushed: 1529
Transactions rejected: 0
API Key Status: API Key is valid
======================
Trace Agent (v 5.27.0)
======================
Pid: 21
Uptime: 5131 seconds
Mem alloc: 1148472 bytes
Hostname: gke-pre-prd-cluster-pre-prd-pool-1-8--1350f1d9-4n17.c.docrepository-160410.internal
Receiver: 0.0.0.0:8126
API Endpoint: https://trace.agent.datadoghq.com
--- Receiver stats (1 min) ---
--- Writer stats (1 min) ---
Traces: 0 payloads, 0 traces, 0 bytes
Stats: 0 payloads, 0 stats buckets, 0 bytes
Services: 0 payloads, 0 services, 0 bytes
Additional environment details (Operating System, Cloud provider, etc): Linux / k8s (Google GKE) / COS
Steps to reproduce the issue:
- Create a kubernetes_state check (with auto discovery)
Describe the results you received: The check can not be initialized since it fails in the constructor (starting since version 3.0.0):
2018-09-19 22:55:29,015 | ERROR | dd.collector | config(config.py:1076) | Unable to initialize check kubernetes_state
Traceback (most recent call last):
File "/opt/datadog-agent/agent/config.py", line 1060, in _initialize_check
agentConfig=agentConfig, instances=instances)
File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/kubernetes_state/kubernetes_state.py", line 47, in __init__
"DEPRECATION NOTICE: pod phase service checks are deprecated. Please set "
AttributeError: 'KubernetesState' object has no attribute '_deprecations'
Describe the results you expected: THe check not throwing an error
Additional information you deem important (e.g. issue happens only occasionally):
Is there a known workaround for this? I'm experiencing the same issue.
Fixed in 5.27.2, see https://github.com/DataDog/integrations-core/pull/2317