-
Notifications
You must be signed in to change notification settings - Fork 374
OpenStack Zun via DevStack doesn't work with Kata-containers (Could not setup network routes) #48
Comments
@eadamsintel -- This looks like DevStack is trying to setup interfaces and routes making use of ipv6. While we have an issue open for tracking enabling ipv6, containers/virtcontainers#579, it is not supported yet in Kata (nor Clear). |
If the problem is about the runtime support of ipv6, perhaps it can be work-around by using a v4-only neutron network. Below is the set of commands for doing that (as an example): $ openstack network create v4-only-net $ zun run --runtime=cc-runtime --net network=v4-only-net cirros ping -c 4 8.8.8.8 |
This PR for virtcontainers should skip the ipv6 routes in the meantime, while we work towards adding support for ipv6: |
@eadamsintel Change has been merged in virtcontainers which is part of the kata-runtime: Can you give this a try now? |
I would but I am blocked by kata-containers/agent#171 (comment) I'll wait another day and try setting up the kata-runtime again. |
Hi all, Any update about this issue? |
@eadamsintel I can run with newest kata-runtime 5 days ago |
@caoruidong - can you clarify that you cannot reproduce the issue? @eadamsintel can you take a look and close if you confirm? |
I just mean the newest kata-runtime works well. But I haven't test it on Zun |
@eadamsintel - can you verify this is fixed? |
I did a basic test and the container was able to ping according to zun logs so I think this issue can be closed for now. |
mockserver locking, vsock address handling and CI
Description of problem
When using a relatively recent version of DevStack and replacing the Clear Container 2.x runtime with Kata containers, then when executing "zun run --runtime=cc-runtime cirros ping -c 4 8.8.8.8" it errors out. The logs state that network routes could not be setup
Expected result
The container will start and you can interact with it
Actual result
The container errors out and the logs show ""update routes request failed" arch=amd64 error="rpc error: code = Internal desc = Could not add route dest()/gw(2001:db8::2)/dev(eth0): no route to host" name=kata-runtime pid=20578 resulting-routes="""
A gist on how to setup devstack is at https://gist.github.com/eadamsintel/86bd12acd7052ea061766f9698f69819 Instead of compiling and building the kata runtimes described in this gist just follow the CC 3.0 install instructions for Ubuntu after devstack is setup and replace the cor runtime with cc-runtime at /etc/docker/daemon.json, reload the daemon, and restart docker to enable CC 3.0 in Zun.
Meta details
This is the output from kata-collect-data.sh
Meta details
Running
kata-collect-data.sh
version3.0.20 (commit f6cbf170b7c00059454e4543cb00fd0d6d303618)
at2018-03-09.23:47:39.224704942-0800
.Runtime is
/usr/local/bin/kata-runtime
.kata-env
Output of "
/usr/local/bin/kata-runtime kata-env
":Runtime config files
Runtime default config files
Runtime config file contents
Config file
/etc/kata-containers/configuration.toml
not foundOutput of "
cat "/usr/share/defaults/kata-containers/configuration.toml"
":Logfiles
Runtime logs
Recent runtime problems found in system journal:
Proxy logs
Recent proxy problems found in system journal:
Shim logs
No recent shim problems found in system journal.
Container manager details
Have
docker
Docker
Output of "
docker version
":Output of "
docker info
":Output of "
systemctl show docker
":No
kubectl
Packages
Have
dpkg
Output of "
dpkg -l|egrep "(cc-oci-runtime|cc-proxy|cc-runtime|cc-shim|kata-proxy|kata-runtime|kata-shim|clear-containers-image|linux-container|qemu-lite|qemu-system-x86)"
":No
rpm
kata-proxy.log
kata-runtime.log
kata-shim.log
The text was updated successfully, but these errors were encountered: