The fixtures library is missing from requirements.txt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Takashi Kajinami |
Bug Description
Description
===========
The following change[1] made the nova.utils module depend on the fixtures library.
[1] https:/
However the fixtures library is listed only in test-requiremen
Because of this the library is not installed in normal deployment and the `nova-manage api_db sync` command fails with the following error.
Traceback (most recent call last):
File "/usr/bin/
from nova.cmd.manage import main
File "/usr/lib/
from nova.cmd import common as cmd_common
File "/usr/lib/
import nova.db.main.api
File "/usr/lib/
from nova import block_device
File "/usr/lib/
from nova import utils
File "/usr/lib/
import fixtures
ModuleNotFoundE
This issue was initially detected in litmus jobs in puppet repos[2].
These jobs uses rdo packages which define dependencies based on requirements.txt
[2] example: https:/
Steps to reproduce
==================
Expected result
===============
Actual result
=============
Environment
===========
Logs & Configs
==============
Changed in nova: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Critical |
tags: | added: gate-failure |
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /824830 /opendev. org/openstack/ nova/commit/ 33bc5c09f576680 d150435fb7ad435 b23e778316
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 33bc5c09f576680 d150435fb7ad435 b23e778316
Author: Takashi Kajinami <email address hidden>
Date: Sun Jan 16 23:30:41 2022 +0900
Add fixtures to requirements
The commit 887c445a7a6a17b 92a37b6ed1dcdcc 7dd009f65d made the nova.utils
module dependent on the fixtures library but the change missed updating
requirements and the fixtures library is not installed automatically.
This change migrates the fixtures library from test-requiremen ts.txt to s.txt so that the library is installed without test codes.
requirement
Closes-Bug: #1958075 fe6d1f13e708f3b d8874452a8f
Change-Id: I712f88fc1b6053