CI: TypeError: get_info() got an unexpected keyword argument 'use_cache'

Bug #1824300 reported by Sahid Orentino on 2019-04-11
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-lxd
High
Sahid Orentino

Bug Description

Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [-] [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] Periodic sync_power_state task had an error while processing an instance.: TypeError: get_info() got an unexpected keyword argument 'use_cache'
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] Traceback (most recent call last):
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/opt/stack/new/nova/nova/compute/manager.py", line 7721, in _sync
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] query_driver_power_state_and_sync()
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 328, in inner
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] return f(*args, **kwargs)
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/opt/stack/new/nova/nova/compute/manager.py", line 7718, in query_driver_power_state_and_sync
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] self._query_driver_power_state_and_sync(context, db_instance)
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/opt/stack/new/nova/nova/compute/manager.py", line 7758, in _query_driver_power_state_and_sync
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] use_slave=True)
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/opt/stack/new/nova/nova/compute/manager.py", line 7872, in _sync_instance_power_state
Apr 10 14:51:36.714980 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] context, vm_state, db_instance, orig_db_power_state)
Apr 10 14:51:36.715962 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] File "/opt/stack/new/nova/nova/compute/manager.py", line 7769, in _stop_unexpected_shutdown_instance
Apr 10 14:51:36.715962 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] use_cache=False)
Apr 10 14:51:36.715962 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f] TypeError: get_info() got an unexpected keyword argument 'use_cache'
Apr 10 14:51:36.715962 ubuntu-bionic-vexxhost-sjc1-0004977401 nova-compute[27793]: ERROR nova.compute.manager [instance: c12cbbd7-7e47-4281-9be1-51e2438e795f]

Changed in nova-lxd:
assignee: nobody → Sahid Orentino (sahid-ferdjaoui)
Changed in nova-lxd:
status: New → Confirmed

Fix proposed to branch: master
Review: https://review.openstack.org/652054

Changed in nova-lxd:
status: Confirmed → In Progress
Changed in nova-lxd:
importance: Undecided → High

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

commit d0faf787d92e20a55faf35ea6d95dd4d7ae7e598
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Apr 12 12:16:13 2019 +0000

    driver: add missing use_cache parameter for get_info()

    With 19cb8280232 The driver interface has been updated. Now that the
    method get_info() has an extra parameter 'use_cache'. That one is
    currently not going to be used in lxd driver since we don't cache such
    info.

    Change-Id: Iaa1c7e9717619b087b98cc5171de2984954ccc6e
    Closes-Bug: #1824300
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>

Changed in nova-lxd:
status: In Progress → Fix Committed

Reviewed: https://review.opendev.org/670037
Committed: https://git.openstack.org/cgit/x/nova-lxd/commit/?id=5ce47afcb2e5ae6adbce5c2e43ebe432c394bc51
Submitter: Zuul
Branch: stable/stein

commit 5ce47afcb2e5ae6adbce5c2e43ebe432c394bc51
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Apr 12 12:16:13 2019 +0000

    driver: add missing use_cache parameter for get_info()

    With 19cb8280232 The driver interface has been updated. Now that the
    method get_info() has an extra parameter 'use_cache'. That one is
    currently not going to be used in lxd driver since we don't cache such
    info.

    Also, to ensure that the unit tests pass on a machine with lxd installed
    as a snap, there are some additional mocks needed.

    Change the nova dependency to pull from stable/stein rather than master.

    Change-Id: Iaa1c7e9717619b087b98cc5171de2984954ccc6e
    Closes-Bug: #1824300
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
    (cherry picked from commit d0faf787d92e20a55faf35ea6d95dd4d7ae7e598)

tags: added: in-stable-stein

Reviewed: https://review.opendev.org/670038
Committed: https://git.openstack.org/cgit/x/nova-lxd/commit/?id=36b72b016b3be1538880a85379035665aee552f4
Submitter: Zuul
Branch: stable/rocky

commit 36b72b016b3be1538880a85379035665aee552f4
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Fri Apr 12 12:16:13 2019 +0000

    driver: add missing use_cache parameter for get_info()

    With 19cb8280232 The driver interface has been updated. Now that the
    method get_info() has an extra parameter 'use_cache'. That one is
    currently not going to be used in lxd driver since we don't cache such
    info.

    Also, to ensure that the unit tests pass on a machine with lxd installed
    as a snap, there are some additional mocks needed.

    Closes-Bug: #1824300
    Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>
    (cherry picked from commit d0faf787d92e20a55faf35ea6d95dd4d7ae7e598)

    Change-Id: I13a451ba95e0fd2485f94327d55ea1c0a7ed1f1d

tags: added: in-stable-rocky
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers