nova-lxd fails to boot with TypeError: 'filter' object is not subscriptable
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
nova-lxd | Status tracked in Trunk | |||||
Rocky |
Fix Committed
|
High
|
Unassigned | |||
Trunk |
Fix Committed
|
High
|
Unassigned | |||
nova-lxd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When attempting to boot a xenial image on a bionic devstack host, I get the following error in the devstack@n-cpu log:
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Feb 09 17:32:43 b-lxc-devstack nova-compute[
Changed in nova-lxd: | |
status: | Incomplete → In Progress |
Changed in nova-lxd (Ubuntu): | |
status: | New → In Progress |
status: | In Progress → New |
Hi Michael
Some of the stack trace seems missing. Also, please could you provide information for:
* Host OS
* LXD version
* OpenStack version of nova and nova-lxd (e.g. queens, rocky, or version numbers)
* The nova.conf for the LXD compute host
I suspect, but I'm not sure, that the bug is because it's running in Python3 (which it should be able to do!), and the code in question from driver.py is trying to use the [] operator on the filter object (Python3) rather than a list returned from filter (Python2). If you can confirm the versions, I can get the bug fixed and backported (as needed).