← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2109592] Re: [master][periodic] oslo master jobs broken with ImportError: cannot import name 'format_inspector' from 'oslo_utils.imageutils'

 

adding devstack based on our irc converstaion today to mamintain
context.

while devstack default to using novnc form souce locally it is overriden
in the base job to use it form the disto package.

we agreed to restore the default behavior in the base job to use it form
souce and avoid that disto packaging bug.

ill use this bug to track fixing that in devstack's zuul job
definitions.


** Also affects: devstack
   Importance: Undecided
       Status: New

** Changed in: devstack
     Assignee: (unassigned) => sean mooney (sean-k-mooney)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2109592

Title:
  [master][periodic] oslo master jobs broken with ImportError: cannot
  import name 'format_inspector' from 'oslo_utils.imageutils'

Status in devstack:
  New
Status in neutron:
  Invalid
Status in OpenStack Compute (nova):
  Invalid
Status in oslo.utils:
  New

Bug description:
  Example failure:-
  2025-04-29 02:44:40.231850 | controller | + lib/nova:init_nova:889                   :   /opt/stack/data/venv/bin/nova-manage --config-file /etc/nova/nova.conf api_db sync
  2025-04-29 02:44:43.960708 | controller | Traceback (most recent call last):
  2025-04-29 02:44:43.960846 | controller |   File "/opt/stack/data/venv/bin/nova-manage", line 5, in <module>
  2025-04-29 02:44:43.960947 | controller |     from nova.cmd.manage import main
  2025-04-29 02:44:43.961048 | controller |   File "/opt/stack/nova/nova/cmd/manage.py", line 85, in <module>
  2025-04-29 02:44:43.961135 | controller |     from nova.virt.libvirt import machine_type_utils
  2025-04-29 02:44:43.961590 | controller |   File "/opt/stack/nova/nova/virt/libvirt/__init__.py", line 15, in <module>
  2025-04-29 02:44:43.961610 | controller |     from nova.virt.libvirt import driver
  2025-04-29 02:44:43.961620 | controller |   File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 108, in <module>
  2025-04-29 02:44:43.961630 | controller |     from nova.virt.disk import api as disk_api
  2025-04-29 02:44:43.961639 | controller |   File "/opt/stack/nova/nova/virt/disk/api.py", line 43, in <module>
  2025-04-29 02:44:43.961648 | controller |     from nova.virt import images
  2025-04-29 02:44:43.961657 | controller |   File "/opt/stack/nova/nova/virt/images.py", line 28, in <module>
  2025-04-29 02:44:43.961666 | controller |     from oslo_utils.imageutils import format_inspector
  2025-04-29 02:44:43.961675 | controller | ImportError: cannot import name 'format_inspector' from 'oslo_utils.imageutils' (/usr/lib/python3/dist-packages/oslo_utils/imageutils.py)
  2025-04-29 02:44:44.654218 | controller | + lib/nova:init_nova:1                     :   exit_trap
  2025-04-29 02:44:44.654846 | controller | + inc/async:async_inner:68                 :   rc=1
  2025-04-29 02:44:44.657331 | controller | + ./stack.sh:exit_trap:543                 :   local r=1
  2025-04-29 02:44:44.663187 | controller | ++ ./stack.sh:exit_trap:544                 :   jobs -p
  2025-04-29 02:44:44.667380 | controller | + ./stack.sh:exit_trap:544                 :   jobs='53865

  Example failures:-
  https://zuul.openstack.org/build/ed4861b111b342f4916e8a7b004930a7
  https://zuul.openstack.org/build/49f753c4cdd3484b83dc26dffce1426a

  Builds:- https://zuul.openstack.org/builds?job_name=neutron-ovn-
  tempest-ovs-release-with-oslo-master&job_name=neutron-ovs-tempest-
  with-oslo-master&skip=0

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/2109592/+subscriptions



References