Commit Graph

2746 Commits

Author SHA1 Message Date
David Ashpole
b52edf25b3
Merge pull request #2491 from tedyu/mach-info-map
Make a copy of the maps of MachineInfo
2020-04-13 09:35:01 -07:00
Ted Yu
7cf9bf1b60 Make a copy of the maps of MachineInfo
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-11 17:37:31 -07:00
David Ashpole
3b7947f333
Merge pull request #2490 from tedyu/mach-info-copy
Make a copy of MachineInfo in GetMachineInfo()
2020-04-10 11:01:42 -07:00
Ted Yu
cf1ac06b2c Make a copy of MachineInfo in GetMachineInfo()
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-10 10:07:38 -07:00
David Ashpole
ca7a1173b7
Merge pull request #2478 from dims/switch-to-klog-v2
Switch to klog v2
2020-04-10 09:13:38 -07:00
David Ashpole
f72e6ae382
Merge pull request #2448 from dims/docker-based-integration-test
Docker based integration test for cadvisor
2020-04-10 09:04:21 -07:00
Davanum Srinivas
94508e8a2f
Switch to klog v2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-09 22:54:37 -04:00
David Ashpole
49f4075210
Merge pull request #2486 from tedyu/cont-stat-eq
Add missing fields to ContainerStats#StatsEq
2020-04-09 15:44:13 -07:00
Ted Yu
4824925f07 Add missing fields to ContainerStats#StatsEq
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-09 15:24:32 -07:00
David Ashpole
84ef5301ee
Merge pull request #2480 from tedyu/cont-spec-eq
Add missing fields to ContainerSpec#Eq
2020-04-09 11:38:20 -07:00
Ted Yu
f7b3d111c3 Add missing fields to ContainerSpec#Eq
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-09 10:39:41 -07:00
iwankgb
e7efc0a49d
Measuring perf events - chapter I (#2419)
* Configuration and initial implementation of perf events.

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-09 10:20:07 -07:00
iwankgb
1baad3f20b
Returning more error information from stats.Manager and stats.Collector (#2477)
* Returning more error information from stats.Manager and stats.Collector

Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-09 09:42:02 -07:00
David Ashpole
9de631424e
Merge pull request #2479 from tedyu/mgr-exists
manager#Exists should take read lock
2020-04-09 09:35:20 -07:00
David Ashpole
e35a0d574a
Merge pull request #2456 from lubinszARM/pr_cacheinfo
Issue fix: get wrong machine info on Arm64 guest
2020-04-09 09:03:52 -07:00
bblu
7f1ea45122 Issue fix: get wrong machine info in Arm64 guest
The latest kubernetes deployment on Arm64 VM-s always fails.
Because k8s always get num_cores=0 from cAdvisor on Arm64 VM-s.

The reason is that, there is no cache info on Arm64 VM-s.
And the good news is that, we can get cache info on Arm64 hosts.

When this patch was merged, I will deliver a patch to update the version
of cAdvisor in kubernetes as soon as possible.

Signed-off-by: bblu <bin.lu@arm.com>
2020-04-09 14:01:45 +08:00
Ted Yu
b2891b7e9b manager#Exists should take read lock
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-08 19:17:07 -07:00
David Ashpole
ebfe3ce776
Merge pull request #2475 from giuseppe/fix-assets
cmd: fix path for assets
2020-04-08 10:19:35 -07:00
David Ashpole
12190a2d2a
Merge pull request #2476 from iwankgb/using_value_before_checking_for_error
Returning error before using value
2020-04-08 09:58:46 -07:00
Maciej "Iwan" Iwanowski
3342050493
Returning error before using value
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-08 17:04:36 +02:00
Giuseppe Scrivano
a319876023
cmd: fix path for assets
commit c22edbcc7d moved the files under
cmd/internal.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-08 09:26:22 +02:00
David Ashpole
7f840ac879
Merge pull request #2331 from saschagrunert/crio-drivers
Update CRI-O storage driver support
2020-04-07 09:26:35 -07:00
David Ashpole
f41d71fa3f
Merge pull request #2474 from tedyu/cpu-package-id
Check the error return from GetCPUPhysicalPackageID()
2020-04-07 09:24:19 -07:00
Davanum Srinivas
831b5000c2
fix test to ensure nodes are sorted
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 20:30:24 -04:00
Davanum Srinivas
c37b1cb9dc
Use github actions to run tests
Runs against go 1.13 adn 1.14 using ubuntu latest

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 20:00:04 -04:00
Davanum Srinivas
315d155a9d
Add a docker based integration test
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 19:57:28 -04:00
Davanum Srinivas
9303744bfe
Pick the right Network interface
On Docker / macOS, there is a tun10 and a eth0, so we pick the right one
to check for traffic to avoid flakes

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 19:57:09 -04:00
Ted Yu
f6e5433e67 Check the error return from GetCPUPhysicalPackageID()
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-06 16:50:53 -07:00
Davanum Srinivas
74bd4f1516
Support for vfs driver
Gives us the ability to run tests on Docker macOS

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-06 19:50:04 -04:00
David Ashpole
069f7e7eb6
Merge pull request #2471 from katarzyna-z/kk-fix-cpus-without-nodes
Fix getting CPU topology
2020-04-06 16:24:10 -07:00
David Ashpole
59157600ab
Merge pull request #2472 from tedyu/crio-dial
Replace deprecated Dial call
2020-04-06 11:36:29 -07:00
Ted Yu
17df9a9313 Replace deprecated Dial call
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-06 09:38:48 -07:00
Katarzyna Kujawa
6536a6c35e Fix number of logical CPU cores when nodes are not available
Add reading CPU topology without nodes

Add test for reading CPU topology without nodes

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-06 17:42:24 +02:00
David Ashpole
d16bbe88c6
Merge pull request #2467 from tedyu/cad-dual-stack
Populate IP address for cri-o release with dual stack support
2020-04-06 08:34:03 -07:00
David Ashpole
16ebc4c053
Merge pull request #2461 from tedyu/crio-client-once
Construct crio client once
2020-04-03 20:24:35 -07:00
Ted Yu
ab40025d40 Populate IP address for cri-o release with dual stack support
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-03 17:27:34 -07:00
Ted Yu
4273303203 Construct crio client once
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-03 17:09:18 -07:00
David Ashpole
e21d71c584
Merge pull request #2460 from tedyu/crio-client-err
CRI-O client should check Unix Transport error
2020-04-03 13:25:16 -07:00
Katarzyna Kujawa
921d0824c4
Extending Prometheus metrics by hardware metrics (#2444)
* Extending Prometheus metrics by hardware metrics:
- machine_cpu_physical_cores
- machine_cpu_sockets
- machine_dimm_capacity_bytes
- machine_dimm_count
- machine_nvm_capacity

Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
2020-04-02 11:43:47 -07:00
Ted Yu
407d228639 CRI-O client should check Unix Transport error
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
2020-04-02 09:02:41 -07:00
David Ashpole
e0c7caafcc
Merge pull request #2458 from iwankgb/nvm_segmentation_fault
Workaround for not being able to call nvm_init() after nvm_uninit()
2020-04-01 11:00:13 -07:00
Maciej "Iwan" Iwanowski
73126c00fa
Removing commented out code and certain other artifacts
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-01 19:45:48 +02:00
Maciej "Iwan" Iwanowski
dcb53e03d5
Workaround for not being able to call nvm_init() after nvm_uninit()
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-01 19:33:08 +02:00
David Ashpole
88f3ad8715
Merge pull request #2445 from dims/remove-unused-code
Cleanup unused code
2020-04-01 09:25:14 -07:00
David Ashpole
fd3fca4f5f
Merge pull request #2454 from saschagrunert/runtime-spec
Update runtime-spec to v1.0.2
2020-03-30 09:20:05 -07:00
Sascha Grunert
8ecf87ddb5
Update runtime-spec to v1.0.2
Update runtime-spec to the latest official release and run `make tidy`.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-03-30 09:07:28 +02:00
David Ashpole
fcf32767e1
Merge pull request #2449 from dashpole/lower_summary_log
lower logging verbosity for summary reader creation failure
2020-03-25 10:50:56 -07:00
David Ashpole
1f05bd7929
Merge pull request #2450 from dims/update-to-released-tags-of-containerd-projects
update to released tags of containerd/ projects
2020-03-25 10:23:04 -07:00
Davanum Srinivas
ba815311f7
update to released tags of containerd/ projects
No change in SHA, same existing SHA now has a v1.0.0 tag

- 8375c3424e
- 92c8520ef9
- a93fcdb778

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-25 13:10:50 -04:00
David Ashpole
1794d1d707 lower logging verbosity for summary reader creation failure 2020-03-25 10:05:50 -07:00