James O. D. Hunt
70e4dc550a
config: Move check code to end of LoadConfiguration
...
Move the VSOCK handling code higher up so that all the checking code is
gathered together at the end of `LoadConfiguration()`.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-11-29 08:19:33 +00:00
Sebastien Boeuf
fa9b15dafe
virtcontainers: Return the appropriate container status
...
When our runtime is asked for the container status, we also handle
the scenario where the container is stopped if the shim process for
that container on the host has terminated.
In the current implementation, we retrieve the container status
before stopping the container, causing a wrong status to be returned.
The wait for the original go-routine's completion was done in a defer
within the caller of statusContainers(), resulting in the
statusContainer()'s values to return the pre-stopped value.
This bug is first observed when updating to docker v18.09/containerd
v1.2.0. With the current implementation, containerd-shim receives the
TaskExit when it detects kata-shim is terminating. When checking the
container state, however, it does not get the expected "stopped" value.
The following commit resolves the described issue by simplifying the
locking used around the status container calls. Originally
StatusContainer would request a read lock. If we needed to update the
container status in statusContainer, we'd start a go-routine which
would request a read-write lock, waiting for the original read lock to
be released. Can't imagine a bug could linger in this logic. We now
just request a read-write lock in the caller (StatusContainer),
skipping the need for a separate go-routine and defer. This greatly
simplifies the logic, and removes the original bug.
Fixes #926
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2018-11-28 20:10:34 -08:00
NingBo
7da6a4c7c6
qmp: fix mem-path properties for hotplug memory.
...
The QMP command 'object-add' only has three arguments: 'qom-type'
'id' and 'props', thus 'mem-path' has to be saved in 'props'.
https://github.com/qemu/qemu/blob/stable-2.0/qapi-schema.json#L2958
https://github.com/qemu/qemu/blob/stable-2.12/qapi/misc.json#L1846
Signed-off-by: NingBo <ning.bo9@zte.com.cn>
2018-11-29 09:56:26 +08:00
Sebastien Boeuf
e06c8aafdc
Merge pull request #572 from hyperhq/shimv2
...
Implement containerd shim v2 API for Kata Containers
2018-11-28 16:37:10 +00:00
Peng Tao
a8fe5b1746
release: fix install command
...
The kata-shim Makefile is changed and we should not set libexecdir
anymore.
Fixes : #257
Signed-off-by: Peng Tao <bergwolf@gmail.com>
2018-11-28 20:46:44 +08:00
James O. D. Hunt
c2eea35b18
Merge pull request #865 from nitkon/kata-env
...
ppc64le: kata-env fails due to missing vendor field
2018-11-28 09:22:47 +00:00
James O. D. Hunt
7c44129614
Merge pull request #308 from jodh-intel/mention-warnings
...
docs: Add warnings to doc requirements doc
2018-11-28 08:48:12 +00:00
fupan
02f8b29837
containerd-shim-kata-v2: add building of shimv2 into Makefile
...
Add the Makefile target of building shimv2.
Fixes : #485
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
8199d10742
containerd-shim-kata: add unit test cases
...
Add unit test cases.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
ZeroMagic
7951041eb0
containerd-shim-kata-v2: add the service Stats support
...
Add the Stats api support to get the container's
resouces statistic.
Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
2018-11-28 14:32:25 +08:00
ZeroMagic
5cc016c8a2
containerd-shim-kata-v2: add the service Kill support
...
Add the Kill api support to send signal to a given
container process.
Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
Signed-off-by: fupan.li <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
ZeroMagic
9ee53be986
containerd-shim-kata-v2: add the service Resume support
...
Add the Resume api support to resume a paused container.
Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
2018-11-28 14:32:25 +08:00
ZeroMagic
8df33d34e8
containerd-shim-kata-v2: add the service Pause support
...
Add the Pause api support to pause a container running
in the pod.
Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
2018-11-28 14:32:25 +08:00
ZeroMagic
cd321a3e6e
containerd-shim-kata-v2: add the service ResizePty support
...
Add the ResizePty api support to resize the console.
Signed-off-by: ZeroMagic <anthonyliu@zju.edu.cn>
2018-11-28 14:32:25 +08:00
fupan
47326f566c
containerd-shim-kata-v2: add the service Update support
...
Add the Update api support to update a running
process's resouce.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
642231ba25
containerd-shim-kata-v2: add the service Shutdown support
...
Add the Shutdown api support to shutdown the shim.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
87f591a697
containerd-shim-kata-v2: add the service Connect support
...
Add the Connect api to get the shim's info.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
ec4f27b4c6
containerd-shim-kata-v2: add the service CloseIO support
...
Add the CloseIO api support to close a process's
input stream.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
8c95b7569d
containerd-shim-kata-v2: add the service Pids support
...
Add the Pids api support to get the processes
pids running in the pod.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
709bc9aa12
containerd-shim-kata-v2: add the service Cleanup support
...
Add the Cleanup api support to cleanup the pod and
containers running in it when the pod's corresponding
shim died.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
a0e6456455
containerd-shim-kata-v2: add the service Delete support
...
Add the Delete api support to delete a stopped
container or pod.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
fd18b2289d
containerd-shim-kata-v2: add the service State support
...
Add the State api support to get a container
or exec process's states.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
fbaefc9af1
containerd-shim-kata-v2: add the service wait support
...
Add the Wait api to wait on a started container
or exec process.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
269c940edc
containerd-shim-kata-v2: add the exec service support
...
Add the Exec api support for exec an process in
a running container.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:25 +08:00
fupan
4c5b29647b
containerd-shim-kata-v2: add the start service support
...
Add the Start api support of start a pod or
container created before.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:32:03 +08:00
fupan
72fd6e0c7d
containerd-shim-kata-v2: add the create service support
...
Add the "Create" api support for creating a pod
or container.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-28 14:29:35 +08:00
Graham Whaley
d7d5d0bdd2
Merge pull request #313 from egernst/azure-install-guide
...
Azure install guide
2018-11-27 19:30:38 +00:00
Eric Ernst
584bc5d232
docs: update azure install guide
...
Add link to distribution specific guides, and reference
azure document from install README.
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2018-11-27 11:31:36 -08:00
Sebastien Boeuf
60a5f7ca7f
Merge pull request #64 from alicefr/preparation
...
qemu/qmp: preparation for s390x support
2018-11-27 19:23:58 +00:00
Marco Vedovati
c3a371b2b0
obs-packaging: detect versions misalignments
...
Detect misalignments of versions between the content of versions.txt
file and the version found in the VERSION file in the git branch being
released on OBS.
Signed-off-by: Marco Vedovati <mvedovati@suse.com>
2018-11-27 19:40:53 +01:00
Marco Vedovati
a0b8cc8ab8
obs-packaging: add --compare option to gen_versions_txt.sh
...
Introduce the --compare option to compare the content of the local
versions.txt file with the one found at the specified git branch.
Signed-off-by: Marco Vedovati <mvedovati@suse.com>
2018-11-27 19:39:32 +01:00
Marco Vedovati
5a10544dca
obs-packaging: bump versions.txt content to 1.4.0
...
Align the content of versions.txt with the latest version released on OBS.
Fixes : #255
Signed-off-by: Marco Vedovati <mvedovati@suse.com>
2018-11-27 19:38:10 +01:00
Marco Vedovati
f994560859
rootfs: Bump golang version to 1.11.1
...
Bump the golang version to 1.11.1, that is the "newest-version"
currently specified in the runtime version file.
Fixes : #208
Signed-off-by: Marco Vedovati <mvedovati@suse.com>
2018-11-27 16:41:34 +01:00
James O. D. Hunt
342a8a6cf6
Merge pull request #317 from grahamwhaley/20181127_vexx_docfix
...
cloud: vexx: fix wrong style type of vexx title
2018-11-27 10:47:04 +00:00
Graham Whaley
4bfed86116
cloud: vexx: fix wrong style type of vexx title
...
The vexx got added as a '#' top level item instead of a
'*' bullet entry. Fix it...
Fixes : #316
Signed-off-by: Graham Whaley <graham.whaley@intel.com>
2018-11-27 10:24:10 +00:00
Graham Whaley
d45863a2a4
Merge pull request #309 from hejianet/master_my
...
docs: Improve Developer-Guide and SRIOV doc on arm64
2018-11-27 09:58:54 +00:00
Nitesh Konkar
ca58bb4ca1
ppc64le: kata-env fails due to missing vendor field
...
There is no vendor field in /proc/cpuinfo contents
on ppc64le. Make sure to return "" for vendor field
for ppc64le and fix all the corresponding testcases
as well.
Fixes : #864
Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
2018-11-27 15:26:33 +05:30
Graham Whaley
adc8a92a22
Merge pull request #252 from egernst/kata-deploy-1.4
...
kata-deploy: update for 1.4 release
2018-11-27 09:41:31 +00:00
fupan
d6c4ca5fe5
container-shim-kata-v2: The init containerd shim v2 support
...
This patch is the init codes of the shimv2 for
containerd.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-27 17:17:43 +08:00
fupan
5e6cd0090f
containerd-shim-v2: add the shim v2 required vendors
...
Add the vendors required by containerd shim v2.
Signed-off-by: fupan <lifupan@gmail.com>
2018-11-27 17:17:43 +08:00
fupan
f0cb0c7ef7
cli: refactor to align with katautils package
...
refactor the cli codes which can be shared with shimv2.
Signed-off-by: fupan <lifupan@gmail.com>
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2018-11-27 17:17:31 +08:00
James O. D. Hunt
2931f8db08
Merge pull request #819 from bergwolf/nested
...
kata-check: do not require nested vt
2018-11-27 08:16:29 +00:00
Jia He
fc6d46b7a3
docs: Improve Developer-Guide and SRIOV doc on arm64
...
This improves the guest kernel build section of Developer-Guide
on arm64.
This also improve the description of sriov use-case.
Fixes : #299
Signed-off-by: Jia He <justin.he@arm.com>
2018-11-27 16:11:00 +08:00
Sebastien Boeuf
c664d3dd94
Merge pull request #60 from teawater/cache
...
qemu/qmp: add new function ExecuteBlockdevAddWithCache
2018-11-27 07:46:36 +00:00
James O. D. Hunt
cf506408e2
Merge pull request #314 from mnaser/master
...
vexxhost: add quickstart docs
2018-11-27 07:28:36 +00:00
Frank Cao
c55e73da24
Merge pull request #937 from jodh-intel/kata-env-show-tracing
...
kata-env: Show runtime trace setting
2018-11-27 10:51:36 +08:00
Jose Carlos Venegas Munoz
64eb46e901
Merge pull request #248 from alicefr/s390_configs
...
kernel: s390 configs
2018-11-26 17:45:20 -06:00
Eric Ernst
8bc6f042d2
kata-deploy: update for 1.4 release
...
Fixes : #251
Signed-off-by: Eric Ernst <eric.ernst@intel.com>
2018-11-26 15:45:17 -08:00
Jose Carlos Venegas Munoz
e8092a38dc
Merge pull request #250 from marcov/remove-modaliases
...
obs-packaging: remove dh-modaliases deb requirement
2018-11-26 17:44:46 -06:00
Mohammed Naser
03758b1ce1
vexxhost: add quickstart docs
...
Created a new installation guide for installing Kata on
https://vexxhost.com .
Fixes #315 .
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2018-11-26 15:28:55 -08:00