Commit Graph

5061 Commits

Author SHA1 Message Date
Eric Ernst
691a6a7ac4 sandbox/cgroups: don't constrain if using SandboxCgroupsOnly
When SandboxCgroupsOnly is set, we are expected to just inherit our parent's
cgroup settings and to move all Kata threads within that sandbox cgroup. The
initial implementation still adjusted the size of this cgroup. This commit
fixes this.

This commit makes a couple of functional changes, small refactors, and
adds clarifying comments for some functions.

Fixes: #2090

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-30 19:16:30 -07:00
Jose Carlos Venegas Munoz
7fe0100444 cli: add kata-overhead command
Introduce kata-overhead command to kata-runtime CLI, to help
with calculating sandbox overhead.

Fixes: #2096

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-30 19:08:58 -07:00
Jose Carlos Venegas Munoz
1bbc1d58bd virtcontainers: add StatsSandbox to vc API
StatsSandbox is used to gather metrics for the sandbox (host cgroup) as
well as from the individual containers (from the guest cgroups). This is
intended to be used for easily calculating Kata sandbox overheads.

Fixes: #2096

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-30 19:07:23 -07:00
Wang Liang
569bd780f1 virtcontainers: change pass by value to pass by reference
container.config does not point to sandbox.config.Containers.ContainerConfig
which caused the ContainerConfig not sync.

Fixes: #2129

Signed-off-by: Wang Liang <wangliangzz@inspur.com>
2019-10-30 19:01:57 -07:00
Archana Shinde
62f64bb009 version: Update containerd version to 1.3.0
These include features like privileged containers without host devices
and support for per runtime annotations.

Depends-on: github.com/kata-containers/tests#2029

Fixes #2099

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-30 17:02:21 -07:00
James O. D. Hunt
6f95e3e1f3
Merge pull request #770 from chavafg/topic/release-notes
release: Fix typos and organization issues
2019-10-30 11:10:31 +00:00
Vijay Dhanraj
9d50cc1ff9 HV: Remove number of guest CPU configuration in ACRN
ACRN doesn't support configuring number of guest vcpu  option ('-c') anymore.
Number of guest vcpus will be defined in the hypervisor scenario
configuration file instead.

Removed the -c option from the acrn-dm parameters when launching VMs and
also trimmed configuration.toml file accordingly.

fixes #2136
Signed-off-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
2019-10-29 23:27:15 -07:00
GabyCT
79173ce76b
Merge pull request #772 from chavafg/topic/fix-crio-qemu-cfg
kata-deploy: fix qemu-virtiofs entry on crio configuration
2019-10-29 16:40:47 -06:00
Salvador Fuentes
84e004e426 kata-deploy: fix qemu-virtiofs entry on crio configuration
Use correct key for the kata-qemu-virtiofs runtime class definition
in the crio configuration file.

Fixes: #771.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
2019-10-29 10:44:23 -06:00
Salvador Fuentes
d56dec0475 release: Fix typos and organization issues
For better reading, re-orginize the `release/README.md`
and fix a typo in `runtime-release-notes.sh`.

Fixes: #769.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
2019-10-24 14:59:56 -05:00
Jose Carlos Venegas Munoz
030dfd92ff
Merge pull request #764 from egernst/add-actions-release-automation
Add actions release automation
2019-10-23 22:02:42 -05:00
Eric Ernst
da98191940
Merge pull request #2130 from fuxiao511/update_cpu
virtcontainers/sandbox: calculate container's CPU from sandbox.contai…
2019-10-22 21:38:36 -07:00
Eric Ernst
9a7d6922b4 kata-deploy: Add a simple GitHub Action
Create a container based action which will test a Kata artifact tarball
in the kata-deploy daemonset on AKS. This AZ credentials are available
from the callers environment.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-22 16:22:30 -07:00
Eric Ernst
4eb376b40e artifact-list: provide script to get items to build
artifact-list.sh is created so a builder can quickly determine which
artifacts may be built within this repository.

I user may get this list, which indicates exactly which functions are
available within ./release/kata-deploy-binaries.sh for building.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-22 16:22:30 -07:00
Eric Ernst
4f89e97e5e kata-deploy: look for kata artifacts locally
When building the kata-deploy images before, we would look to pull the
latest artifacts from the release URL.

It would be better to allow the user to pull from this URL, or to create
the artifacts locally, and pass the location of this tar.xz to the build
process.

Instead of providing KATA_VER, builders should provide KATA_ARTIFACTS,
which is the filename that is assumed to be located within the docker
build path.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-22 14:47:42 -07:00
Archana Shinde
dc8fe05654 release: Allow functions to take release versions
Allow functions to take release tags

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-22 14:47:42 -07:00
Archana Shinde
6c8df7fc3d release: Call kata-deploy-binaries.sh main only if it not sourced
Allow script to be sourced.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-22 14:47:42 -07:00
Archana Shinde
5307b03adb release: Define a default value for destdir
We want to isupport calling individual functions from the script,
independendent of the actual script being called.
Define a default value for $destdir.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-22 14:47:42 -07:00
Archana Shinde
7a932cf3a9 release: Create tarballs after every stage
Make every build function output a tarball.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-22 14:47:42 -07:00
Eric Ernst
420eb6e984 qemu-virtiofs: Fix tar naming for qemu with virtiofs support
Fixes the naming of tarball for qemu-virtiofs so that it is different
from the qemu one.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-22 14:47:42 -07:00
Eric Ernst
f2ef8411fa release: don't checkout packaging from packaging
We ran into issues in the past since we didn't create stable branches
for the packaging repository. We will maintain this appropriately going
forward, so let's go ahead and remove the notion of local versus remote.

Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-22 14:47:42 -07:00
Eric Ernst
643ddf9907 release: Add option to generate versions based on tag
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2019-10-22 14:47:42 -07:00
Salvador Fuentes
a1a2da6fcf
Merge pull request #2142 from jcvenegas/fix-version-checker-1.9
ci: Fix versions_checker.sh
2019-10-22 11:52:38 -05:00
Jose Carlos Venegas Munoz
559327c021
Merge pull request #2141 from jcvenegas/merge-check-for-release
ci: Fix versions_checker.sh
2019-10-21 13:19:06 -05:00
Jose Carlos Venegas Munoz
6bd5fd900c
Merge pull request #749 from jcvenegas/tag-all
tags: Tag all repos with the same kata VERSION
2019-10-21 13:18:11 -05:00
lifupan
c51d49277e virtcontainers: fix the issue of missing watchConsole
When do the reloading sandbox in shimv2, it's needed to
rewatch the hypervisor's console when debug enabled.

Fixes:#2091

Signed-off-by: lifupan <lifupan@gmail.com>
2019-10-19 00:37:15 +08:00
Jose Carlos Venegas Munoz
b8dcb1c35a tags: Tag all repos with the same kata VERSION
Now that all files have a VERSION we
can check if there is a bump for the file.

We can now tag all repos with the same kata version.
As all of them are branched and have a VERSION file.

Fixes: #748

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-10-18 15:47:28 +00:00
Jose Carlos Venegas Munoz
5b226d0d39 ci: Fix versions_checker.sh
Version checker does to work today

- Allow to detect stabe branches

Fixes #1581

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-10-17 20:54:43 -05:00
Jose Carlos Venegas Munoz
f8b84d7eba ci: Fix versions_checker.sh
Version checker does to work today

- Allow to detect stabe branches

Fixes #1581

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-10-17 20:48:10 -05:00
GabyCT
826e279db3
Merge pull request #761 from chavafg/topic/cri-containerd-virtiofs-config
kata-deploy: Add qemu-virtiofs to containerd configuration
2019-10-16 09:47:41 -05:00
GabyCT
a97b09d5cd
Merge pull request #759 from GabyCT/topic/fixspell
release: Fixing message information
2019-10-15 15:58:26 -05:00
Salvador Fuentes
eea8cea804 kata-deploy: Fix indentation issues.
Fix indentation issues on `kata-deploy.sh` file.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
2019-10-15 15:31:49 -05:00
Salvador Fuentes
8234f9a832 kata-deploy: Add qemu-virtiofs to containerd configuration
We need an entry of `kata-qemu-virtiofs` on the
containerd configuration file.
In addition we need to add `kata-qemu-virtiofs` to the
shim list, so that the wrapper is created for shimv2.

Fixes: #760.

Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
2019-10-15 15:31:49 -05:00
Gabriela Cervantes
aafd329f18 release: Fixing message information
This replaces the alph to alpha on the message information.

Fixes #758

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
2019-10-15 10:53:43 -05:00
GabyCT
5d49a78131
Merge pull request #757 from jcvenegas/qemu-virtiofs-wrapper
kata-deploy: Add qemu-virtiofs wrapper
2019-10-14 19:08:42 -05:00
Jose Carlos Venegas Munoz
dab80870e2 kata-deploy: Add qemu-virtiofs wrapper
Tarball is missing to provide a wrapper for qemu-virtiofs

Fixes: #756

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2019-10-14 21:59:46 +00:00
GabyCT
aeaf04db46
Merge pull request #755 from amshinde/Fix-release-md
doc: Fixes for release.md
2019-10-14 13:49:08 -05:00
GabyCT
b553d1a4ad
Merge pull request #751 from amshinde/skip-installing-static-nemu
deploy: Skip installing nemu
2019-10-14 08:27:24 -05:00
Peng Tao
7d484dfe4c
Merge pull request #2127 from devimc/topic/virtcontainers/rollbackUnmountHostMounts
virtcontainers: unmount host mounts if container can't be created
2019-10-14 10:32:14 +08:00
Peng Tao
a1cd0f8f76
Merge pull request #2134 from devimc/topic/virtcontainers/rootlessVCStoreUUIDPath
virtcontainers/store: make VCStoreUUIDPath rootless
2019-10-14 10:27:06 +08:00
Wang Liang
24d7aff60c virtcontainers: change pass by value to pass by reference
container.config does not point to sandbox.config.Containers.ContainerConfig
which caused the ContainerConfig not sync.

Fixes: #2129

Signed-off-by: Wang Liang <wangliangzz@inspur.com>
2019-10-12 04:24:50 -04:00
Archana Shinde
7c26509a72 doc: Fixes for release.md
Add requirement for the user to be added to the docker group.
Observed firecracker failing due to this.
Add fixes for typos and missing spaces.

Fixes #754

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
2019-10-11 10:26:53 -07:00
Julio Montes
abec17f8f2 virtcontainers/store: make VCStoreUUIDPath rootless
The uuid file shouldn't be created at `/var` if running rootless.
Modify `VMUUIDStoragePath` to get a path accessible for non-root users
if running rootless.

fixes #2133

Signed-off-by: Julio Montes <julio.montes@intel.com>
2019-10-11 15:30:23 +00:00
Julio Montes
eca7bd2705 virtcontainers: unmount host mounts if container can't be created
Mount points, like `resolv.conf` and `hostname` are left in the
host when the cgroup creation fails.
Use `unmountHostMounts()` and `bindUnmountContainerRootfs()` in the rollback
function that is called when container's creation fails.

fixes #2108

Signed-off-by: Julio Montes <julio.montes@intel.com>
2019-10-11 13:46:56 +00:00
GabyCT
4a65bad291
Merge pull request #564 from devimc/topic/how-to/loadKernelModules
how-to: add how-to for loading kernel modules
2019-10-10 15:34:20 -05:00
Julio Montes
24dd673365 how-to: add how-to for loading kernel modules
Add documentation describing how to load kernel modules with kata containers

fixes #563

Signed-off-by: Julio Montes <julio.montes@intel.com>
2019-10-10 19:17:58 +00:00
Peng Tao
c7b4c5eab9
Merge pull request #2124 from devimc/topic/virtcontainers/fixAnnotationsPrefix
virtcontainers/annotations: use right domain name for kata annotations
2019-10-10 17:02:27 +08:00
Peng Tao
729b5faf52
Merge pull request #2122 from darfux/v2_pause_resume_behavior
v2: Change the event and error behavior of pause/resume
2019-10-10 16:52:09 +08:00
Eric Ernst
4f8cc73e82
Merge pull request #2112 from amshinde/update-cni-plugin-version
Update cni plugin version
2019-10-09 15:51:08 -07:00
Archana Shinde
04489fec2d
Merge pull request #2118 from amshinde/load-state-early
Load state early so that hypervisor can store the correct state
2019-10-09 15:46:15 -07:00