python-API test in ubuntu_lxc will fail on X-kvm kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
python3-lxc (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Steps:
1. Deploy a KVM node with Xenial, install linux-kvm on it
2. Run the ubutnu_lxc test from autotest-
Output:
FAIL: python3: API
---
Using image from local cache
Unpacking the rootfs
---
You just created an Ubuntu container (release=xenial, arch=amd64, variant=default)
To enable sshd, run: apt-get install openssh-server
For security reason, container images ship without user accounts
and without a root password.
Use lxc-attach or chroot directly into the rootfs to set a root password
or create user accounts.
Getting instance for '785bd96e-
Creating rootfs using 'download', arch=amd64
Testing the configuration
Testing the networking
Starting the container
Getting the interface names
Traceback (most recent call last):
File "/tmp/tmp.
assert(
AssertionError
If you try to intercept the ontainer.
('eth0', 'lo', 'sit0')
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.4.0-1021-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.16
Architecture: amd64
Date: Tue Apr 17 03:46:14 2018
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: ubuntu-lxc |
Changed in linux-kvm (Ubuntu): | |
assignee: | nobody → You-Sheng Yang (vicamo) |
Changed in ubuntu-kernel-tests: | |
status: | New → In Progress |
no longer affects: | ubuntu-kernel-tests |
Changed in python3-lxc (Ubuntu Xenial): | |
status: | New → Confirmed |
tags: | added: sru-20200316 |
tags: | added: sru-20200518 |
Changed in python3-lxc (Ubuntu): | |
status: | In Progress → Confirmed |
assignee: | You-Sheng Yang (vicamo) → nobody |
ip addr output from the KVM host:
$ ip addr UP,LOWER_ UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 ff:fe4f: f0f/64 scope link MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 3eff:fe00: 0/64 scope link MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue master lxcbr0 state UP group default qlen 1000 8aff:febd: 4223/64 scope link MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue master lxcbr0 state UP group default qlen 1000 c8ff:fe86: 12a8/64 scope link MULTICAST, UP,LOWER_ UP> mtu 1500 qdisc noqueue master lxcbr0 state UP group default qlen 1000 f0ff:fed6: baac/64 scope link
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens4: <BROADCAST,
link/ether 52:54:00:4f:0f:0f brd ff:ff:ff:ff:ff:ff
inet 10.246.72.55/22 brd 10.246.75.255 scope global ens4
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
link/sit 0.0.0.0 brd 0.0.0.0
4: lxcbr0: <BROADCAST,
link/ether 00:16:3e:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 10.0.3.1/24 scope global lxcbr0
valid_lft forever preferred_lft forever
inet6 fe80::216:
valid_lft forever preferred_lft forever
86: veth33NLN2@if85: <BROADCAST,
link/ether fe:c0:8a:bd:42:23 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::fcc0:
valid_lft forever preferred_lft forever
88: vethMH25TY@if87: <BROADCAST,
link/ether fe:d8:c8:86:12:a8 brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet6 fe80::fcd8:
valid_lft forever preferred_lft forever
90: veth4J6PQB@if89: <BROADCAST,
link/ether fe:f5:f0:d6:ba:ac brd ff:ff:ff:ff:ff:ff link-netnsid 2
inet6 fe80::fcf5:
valid_lft forever preferred_lft forever