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

vendor: update govmm to be compatible with qemu 2.8#649

Merged
jodh-intel merged 2 commits intokata-containers:masterfrom
flyflypeng:update-govmm-vendor
Aug 31, 2018
Merged

vendor: update govmm to be compatible with qemu 2.8#649
jodh-intel merged 2 commits intokata-containers:masterfrom
flyflypeng:update-govmm-vendor

Conversation

@flyflypeng
Copy link
Copy Markdown
Contributor

govmm has ExecuteBlockdevAdd() function and ExecuteBlockdevDel() function
doesn't compatible with qemu 2.8,because blockdev-add and x-blockdev-del usages
are different between qemu 2.7 and qemu 2.8

shortlog:

ce070d1 govmm: modify govmm to be compatible with qemu 2.8
0286ff9 qemu/qmp: support hotplug a nic whose qdisc is mq
8515ae4 qmp: Remind users that you must first call ExecuteQMPCapabilities()
21504d3 qemu/qmp: Add netdev_add with chardev support
ed34f61 Add some negative test cases for qmp.go
17cacc7 Add negative test cases for qemu.go

fixes: #637

Signed-off-by: flyflypeng jiangpengfei9@huawei.com

govmm has ExecuteBlockdevAdd() function and ExecuteBlockdevDel() function
doesn't compatible with qemu 2.8,because blockdev-add and x-blockdev-del usages
are different between qemu 2.7 and qemu 2.8

shortlog:

ce070d1 govmm: modify govmm to be compatible with qemu 2.8
0286ff9 qemu/qmp: support hotplug a nic whose qdisc is mq
8515ae4 qmp: Remind users that you must first call ExecuteQMPCapabilities()
21504d3 qemu/qmp: Add netdev_add with chardev support
ed34f61 Add some negative test cases for qmp.go
17cacc7 Add negative test cases for qemu.go

fixes: kata-containers#637

Signed-off-by: flyflypeng <jiangpengfei9@huawei.com>
@opendev-zuul
Copy link
Copy Markdown

opendev-zuul bot commented Aug 25, 2018

Build failed (third-party-check pipeline) integration testing with
OpenStack. For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@flyflypeng
Copy link
Copy Markdown
Contributor Author

flyflypeng commented Aug 25, 2018

Since ExecuteNetPCIDeviceAdd function definition in the govmm has changed , and kata-runtime the compile error is:

../virtcontainers/qemu.go:862:53: not enough arguments in call to q.qmpMonitorCh.qmp.ExecuteNetPCIDeviceAdd
	have ("context".Context, string, string, string, string, string)
	want ("context".Context, string, string, string, string, string, int)

So the code where call this function in the kata-runtime needed to be modified.This change is modified by @caoruidong kata-containers/govmm#41 , so @caoruidong could you modify the kata-runtime to satisfy this changes?

@katacontainersbot
Copy link
Copy Markdown
Contributor

PSS Measurement:
Qemu: 159397 KB
Proxy: 4010 KB
Shim: 8906 KB

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

@caoruidong
Copy link
Copy Markdown
Member

caoruidong commented Aug 27, 2018

Yes, I'll raise a PR. But some code is changed in #611

@ghost
Copy link
Copy Markdown

ghost commented Aug 27, 2018

@woshijpf I am sending in a PR adding support for Z by today evening. Can this wait till that gets merged? This way we need to revendor only once. However, I will raise a new PR to incldue my changes if this is urgent for you.

@WeiZhang555
Copy link
Copy Markdown
Member

@ydjainopensource I think it makes sense to update once, unless it takes too long to merge your PR

@ghost
Copy link
Copy Markdown

ghost commented Aug 27, 2018

On second thought, just let this go I am still to get the CI running. So merging my PR would take time.

I am running into some issues so might take long for the CI's to be active.

@flyflypeng
Copy link
Copy Markdown
Contributor Author

Hey @ydjainopensource ~ What do you want to add in https://github.com/intel/govmm/? And I wonder how long would you take to finish merge your PR, if not taks so long ,I think just revendor once together is better.

@ghost
Copy link
Copy Markdown

ghost commented Aug 28, 2018

The PR is waiting for review here. Can't say how long it will take

@jodh-intel
Copy link
Copy Markdown

The govmm PR has now been reviewed.

@devimc
Copy link
Copy Markdown

devimc commented Aug 30, 2018

PR kata-containers/govmm#43 is being reviewed and probably it will need more work/review
can we merge this one to unlock #669 ?

btw @woshijpf you should include the changes suggested by @caoruidong #651 (comment)

@flyflypeng
Copy link
Copy Markdown
Contributor Author

flyflypeng commented Aug 31, 2018

@devimc @WeiZhang555 Ok, I have merge #651 and update this PR.

@flyflypeng flyflypeng force-pushed the update-govmm-vendor branch from 47ee66d to 26f912e Compare August 31, 2018 03:51
@opendev-zuul
Copy link
Copy Markdown

opendev-zuul bot commented Aug 31, 2018

Build failed (third-party-check pipeline) integration testing with
OpenStack. For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

@katacontainersbot
Copy link
Copy Markdown
Contributor

PSS Measurement:
Qemu: 167247 KB
Proxy: 4135 KB
Shim: 8833 KB

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

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 31, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@7d14aea). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #649   +/-   ##
=========================================
  Coverage          ?   65.35%           
=========================================
  Files             ?       85           
  Lines             ?     9879           
  Branches          ?        0           
=========================================
  Hits              ?     6456           
  Misses            ?     2766           
  Partials          ?      657

@WeiZhang555
Copy link
Copy Markdown
Member

WeiZhang555 commented Aug 31, 2018

LGTM

Approved with PullApprove

@jshachm
Copy link
Copy Markdown
Member

jshachm commented Aug 31, 2018

LGTM

@jodh-intel
Copy link
Copy Markdown

jodh-intel commented Aug 31, 2018

lgtm

Approved with PullApprove

@jodh-intel jodh-intel merged commit 7d5a5a7 into kata-containers:master Aug 31, 2018
@flyflypeng flyflypeng deleted the update-govmm-vendor branch August 31, 2018 11:44
In order to avoid performance drop caused by qdisc. And align with
cold plug codes.

Fixes kata-containers#650

Signed-off-by: Ruidong Cao <caoruidong@huawei.com>
@sboeuf sboeuf added bug Incorrect behaviour stable-candidate labels Sep 12, 2018
@sboeuf
Copy link
Copy Markdown

sboeuf commented Sep 12, 2018

@woshijpf please backport to stable branches.

@flyflypeng
Copy link
Copy Markdown
Contributor Author

@sboeuf Could you please explain more details about "backport to stable brancher"? I am not familiar with this operation.

@sboeuf
Copy link
Copy Markdown

sboeuf commented Sep 13, 2018

@woshijpf Sure!
So on github.com/kata-containers/runtime repo, we have 3 different branche:

  • master
  • stable-1.1
  • stable-1.2

This current PR has been raised against master, and because it's been merged and it actually fixes a bug, we want to apply the same code to the 2 other branches.
Please create 2 new PRs, but make sure you open them against stable-1.1 and stable-1.2 instead of master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Incorrect behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qemu: can't run kata-containers with qemu 2.8

8 participants