lxd instances not correctly networked with neutron

Bug #1447128 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-compute-lxd (Ubuntu)
Fix Released
Critical
Chuck Short

Bug Description

Spawning lxd instances results in containers connected to lxcbr0; looks like the driver is passing the devices data correctly on the PUT creation call, but lxd is ignoring that.

2015-04-22 11:08:56.210 17977 DEBUG nclxd.nova.virt.lxd.container [-] container: {'source': {'path': '/var/lib/lxd/lxc/40bd8478-a0d4-4ebf-bb88-7cdaa25a96c8/rootfs', 'type': 'none'}, 'config': {'raw.lxc': 'lxc.console.logfile=/var/lib/lxd/lxc/40bd8478-a0d4-4ebf-bb88-7cdaa25a96c8/console.log\n'}, 'name': '40bd8478-a0d4-4ebf-bb88-7cdaa25a96c8', 'devices': {'eth0': {'hwaddr': u'fa:16:3e:94:b2:df', 'type': 'nic', 'nictype': 'bridged', 'parent': u'qbrc882a581-2e'}}} setup_container /usr/lib/python2.7/dist-packages/nclxd/nova/virt/lxd/container.py:150

networking on host:

39: qbr4a9dce7a-c4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether fa:a3:98:c9:25:63 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::44cd:9aff:fe30:13ff/64 scope link
       valid_lft forever preferred_lft forever
40: qvo4a9dce7a-c4: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UP group default qlen 1000
    link/ether 92:78:7f:2a:42:39 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::9078:7fff:fe2a:4239/64 scope link
       valid_lft forever preferred_lft forever
41: qvb4a9dce7a-c4: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master qbr4a9dce7a-c4 state UP group default qlen 1000
    link/ether fa:a3:98:c9:25:63 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8a3:98ff:fec9:2563/64 scope link
       valid_lft forever preferred_lft forever
43: vethGA55Y2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master lxcbr0 state UP group default qlen 1000
    link/ether fe:c8:4d:de:de:6f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fcc8:4dff:fede:de6f/64 scope link
       valid_lft forever preferred_lft forever

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: nova-compute-lxd 0.5.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Wed Apr 22 11:40:24 2015
Ec2AMI: ami-0000031a
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.medium
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitecture: all
SourcePackage: nova-compute-lxd
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
James Page (james-page) wrote :
Download full text (4.6 KiB)

Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58 handling GET /1.0/containers/8b9df5b8-4cab-4115-bfbf-a4c92b7922c6
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: {
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "error": "not found",
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "error_code": 404,
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "type": "error"
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: }
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58 handling GET /1.0/containers/8b9df5b8-4cab-4115-bfbf-a4c92b7922c6
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: {
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "error": "not found",
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "error_code": 404,
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "type": "error"
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: }
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58 handling POST /1.0/containers
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58 responding to create
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: {
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "type": "async",
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "status": "OK",
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "status_code": 100,
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "operation": "/1.0/operations/80d1d65b-735c-440c-b547-c3bb1aba7bde",
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "resources": {
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "containers": [
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "/1.0/containers/8b9df5b8-4cab-4115-bfbf-a4c92b7922c6"
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: ]
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: },
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: "metadata": null
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: }
Apr 22 11:44:58 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:58 operation %!s(func() shared.OperationResult=0x5470f0) finished: { <nil>}
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:59 handling GET /1.0/containers/8b9df5b8-4cab-4115-bfbf-a4c92b7922c6
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:59 Configured device eth0
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: 2015/04/22 11:44:59
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: {
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "type": "sync",
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "status": "Success",
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "status_code": 200,
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "metadata": {
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "name": "8b9df5b8-4cab-4115-bfbf-a4c92b7922c6",
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "profiles": [
Apr 22 11:44:59 juju-devel3-machine-16 lxd[21246]: "default"
Apr 22 11:44:59 juju-devel3-machine-16 lxd[...

Read more...

James Page (james-page)
Changed in nova-compute-lxd (Ubuntu):
importance: Undecided → Critical
status: New → In Progress
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova-compute-lxd - 0.5.1-0ubuntu2

---------------
nova-compute-lxd (0.5.1-0ubuntu2) vivid; urgency=medium

  * debian/patches/fix-container-setup.patch: Fix container setup
    with LXD 0.7. (LP: #1447128)
 -- Chuck Short <email address hidden> Wed, 22 Apr 2015 14:23:39 -0400

Changed in nova-compute-lxd (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.