-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cAdvisor does not return CPU metrics for 1.4 #11199
Comments
@spadgett the root cause is cAdvisor in the 1.4 version of OpenShift returing 0 values for the cpu usage |
@derekwaynecarr any idea here? This breaks the console graphing of cpu usage in 1.4 |
/cc @jwforres |
If openshift is running as a container, this will not work until the following is merged upstream and we cherry-pick it into origin 1.4: kubernetes/kubernetes#33806 |
docker version: 1.10.3 OpenShift is running directly on the machine, not in a docker container. I know that cAdvisor doesn't necessarily work well with a newer systemd, was hoping that would have been resolved by now |
systemd 229 changed the cgroup hierarchy and put pid 1 in init.scope. |
I am now running the fedora docker 1.12 rpms which should have this fix, and yet I still don't see any difference here with the cpu usage, its still zero |
@sjenning -- ptal |
i've been able to recreate. debugging now. |
could be related to this 9607748 |
yes, reverting 9607748 fixes the issue |
Ok gathering information: opencontainers/runc PR that allows for all cgroup mount points: PR that vendors this into cAdvisor: PR that vendors new cAdvisor into Kubernetes: This isn't vendored into any version of projectatomic/docker right now. Hack commit to get cAdvisor work at all containerized on RHEL for openshift/origin: IIUC, the fix for this issue is to vendor the fixed cAdvisor into origin and revert the hack commit. |
Yes |
Just out of morbid curiosity, I wanted to find out why cpuacct,cpu is inverted for RHEL7. Turns out that the list of cgroup subsystems is a statically defined enum in the kernel: For v3.10 (RHEL7) that subsystem enum is converted into a linked list which inserts at the head, inverting the enum order. In v3.15, the support for adding cgroup subsystems as modules was dropped and the code was greatly simplified, removing the need for the linked list and reversing the order for users of Upstream v3.10
So... mystery solved! |
Gets out knife. Stabs self. Chooses another profession. On Tue, Oct 4, 2016 at 6:26 PM, Seth Jennings notifications@github.com
|
Linked lists should only support append! On Tuesday, October 4, 2016, Clayton Coleman notifications@github.com
|
This is fixed by #11642 |
Bugzilla opened for this: https://bugzilla.redhat.com/show_bug.cgi?id=1390502 |
cAdvisor is returning empty cpu usage for origin 1.4 (built from master, commit ffdeb1b)
Version
commit ffdeb1b
but I suspect this also affect the v1.4.0-alpha.0
In the v1.3.0 versions, cpu metrics are collected
Steps To Reproduce
eg:
curl -k -H "Authorization: Bearer
oc whoami -t
" -X POST -d '{"num_stats":1}' https://127.0.0.1:10250/stats/${PROJECT_NAME}/${POD_NAME}/${POD_ID}/${CONTAINER_NAME}Alternatively, install origin metrics (https://docs.openshift.org/latest/install_config/cluster_metrics.html) and verify that the cpu graphs are empty.
Current Result
cpu metrics are all zero
Expected Result
cpu metrics to not be zero
The text was updated successfully, but these errors were encountered: