[Bug 1815325] Re: nova-lxd fails to boot with TypeError: 'filter' object is not subscriptable

OpenStack Infra 1815325 at bugs.launchpad.net
Thu Feb 28 16:46:55 UTC 2019


Reviewed:  https://review.openstack.org/636067
Committed: https://git.openstack.org/cgit/openstack/nova-lxd/commit/?id=15cdfc071b86160020edc1bbef5b77acab78d06e
Submitter: Zuul
Branch:    master

commit 15cdfc071b86160020edc1bbef5b77acab78d06e
Author: Michael Johnson <johnsomor at gmail.com>
Date:   Sun Feb 10 10:23:38 2019 -0800

    Fix 'filter' object is not subscriptable
    
    nova-lxd has a python3 compatibility issue where it will fail with:
    TypeError: 'filter' object is not subscriptable
    
    This patch corrects that problem.
    
    Change-Id: Ib2208fdc2289b6a52e5ad41ca540c75e9d1d94b4
    Closes-Bug: #1815325


** Changed in: nova-lxd
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova-lxd in Ubuntu.
https://bugs.launchpad.net/bugs/1815325

Title:
  nova-lxd fails to boot with TypeError: 'filter' object is not
  subscriptable

Status in nova-lxd:
  Fix Committed
Status in nova-lxd rocky series:
  In Progress
Status in nova-lxd trunk series:
  Fix Committed
Status in nova-lxd package in Ubuntu:
  New

Bug description:
  When attempting to boot a xenial image on a bionic devstack host, I
  get the following error in the devstack at n-cpu log:

  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [None req-f18fc390-d8d1-4bd9-9a3e-2ef029f01add admin admin] [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5] Instance failed to spawn: TypeError: 'filter' object is not subscriptable
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5] Traceback (most recent call last):
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]   File "/opt/stack/nova/nova/compute/manager.py", line 2379, in _build_resources
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]     yield resources
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]   File "/opt/stack/nova/nova/compute/manager.py", line 2142, in _build_and_run_instance
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]     block_device_info=block_device_info)
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 591, in spawn
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]     network_info)
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 1280, in _add_configdrive
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]     storage_id = uid_map[0].get("Hostid", 0)
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5] TypeError: 'filter' object is not subscriptable
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: ERROR nova.compute.manager [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5]
  Feb 09 17:32:43 b-lxc-devstack nova-compute[12553]: INFO nova.compute.manager [None req-f18fc390-d8d1-4bd9-9a3e-2ef029f01add admin admin] [instance: 08c9f6ce-ff96-47ba-adb3-34cbe27b93a5] Terminating instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova-lxd/+bug/1815325/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list