This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2334022 - etcd healthchecks are broken because "etcdctl endpoint health" returns status via stderr
Summary: etcd healthchecks are broken because "etcdctl endpoint health" returns status...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-24 19:11 UTC by Alex Stupnikov
Modified: 2025-01-15 15:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-01-15 15:19:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-33310 0 None None None 2024-12-24 19:12:38 UTC
Red Hat Issue Tracker OSP-33467 0 None None None 2025-01-15 15:21:02 UTC
Red Hat Issue Tracker   OSPRH-13062 0 None None None 2025-01-15 15:19:03 UTC

Description Alex Stupnikov 2024-12-24 19:11:48 UTC
Description of problem:
etcd container is always marked as unhealthy in RHOSP 17.1 deployments because "etcdctl endpoint health" returns status via stderr. As a result, grep command is unable to find "is healthy" in the output and marks service as unhealthy.

Reproducer:
bash-5.1$ export ETCDCTL_API=3
bash-5.1$ export ETCD_LISTEN_CLIENT_URLS="http://172.17.1.32:2379"
bash-5.1$ ETCDCTL_ENDPOINTS=$ETCD_LISTEN_CLIENT_URLS etcdctl endpoint health
http://172.17.1.32:2379 is healthy: successfully committed proposal: took = 2.298206ms
bash-5.1$ echo $?
0
bash-5.1$ ETCDCTL_ENDPOINTS=$ETCD_LISTEN_CLIENT_URLS etcdctl endpoint health | grep "is healthy"
http://172.17.1.32:2379 is healthy: successfully committed proposal: took = 4.146423ms
bash-5.1$ echo $?
1
bash-5.1$ ETCDCTL_ENDPOINTS=$ETCD_LISTEN_CLIENT_URLS etcdctl endpoint health 2>/dev/null | grep "is healthy"
bash-5.1$

Version-Release number of selected component (if applicable): RHOSP 17.1


How reproducible: see description


Note You need to log in before you can comment on or make changes to this bug.