Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

cli: support factory status command#546

Merged
amshinde merged 2 commits intokata-containers:masterfrom
bergwolf:status-factory
Aug 2, 2018
Merged

cli: support factory status command#546
amshinde merged 2 commits intokata-containers:masterfrom
bergwolf:status-factory

Conversation

@bergwolf
Copy link
Member

@bergwolf bergwolf commented Aug 2, 2018

It checks vm factory status and prints the result.

Fixes: #545

It checks vm factory status and prints the result.

Fixes: kata-containers#545

Signed-off-by: Peng Tao <bergwolf@gmail.com>
cli/factory.go Outdated
kataLog.WithField("factory", factoryConfig).Info("load vm factory")
f, err := vf.NewFactory(factoryConfig, true)
if err != nil {
fmt.Println("vm factory is off")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth changing this (and the other functions in this file) to be something like:

fmt.Fprintln(defaultOutputFile, "vm factory is off")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jodh-intel
Copy link

jodh-intel commented Aug 2, 2018

lgtm

Approved with PullApprove

To follow the same rule as other commands.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
@katacontainersbot
Copy link
Contributor

PSS Measurement:
Qemu: 170104 KB
Proxy: 4193 KB
Shim: 8807 KB

Memory inside container:
Total Memory: 2043464 KB
Free Memory: 2003688 KB

@opendev-zuul
Copy link

opendev-zuul bot commented Aug 2, 2018

Build succeeded (third-party-check pipeline).

@amshinde amshinde merged commit 244917c into kata-containers:master Aug 2, 2018
@egernst egernst mentioned this pull request Aug 22, 2018
@sboeuf sboeuf added the feature New functionality label Sep 12, 2018
@bergwolf bergwolf deleted the status-factory branch September 13, 2018 03:28
zklei pushed a commit to zklei/runtime that referenced this pull request Jun 13, 2019
Start a debug console if the `agent.debug_console` option is part of the kernel
command line and a shell (bash or sh) is installed in the rootfs.
The debug console is useful when the developer wants to debug the agent process
or any other processes (even containers). The current way to do this is by
modifying a systemd target + creating a new system unit, the problem with this
approach is that it's not user-friendly and we depend on systemd, since it must
be installed in the rootfs.

fixes kata-containers#546

Signed-off-by: Julio Montes <julio.montes@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants