Requirements for fuel-qa are failed to install on CI servers: "ImportError: No module named pbr_json"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Committed
|
High
|
Artur Kaszuba |
Bug Description
Steps to reproduce:
1) Login to any CI server, for example: srv81-bud.
2) Create a virtual env:
virtualenv --system-
3) Activate the virtual env:
. ./devops-
4) Clone the fuel-qa repository from 'master' branch:
git clone https:/
5) Install requirements for fuel-qa repository via PyPI:
pip install -r ./fuel-
Expected result: All requirements are installed without errors.
Actual result: Requirements are failed to install with the following error:
...
Collecting positional>=1.0.1 (from python-
Downloading positional-
...
Installed /tmp/pip-
...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-
...
ImportError: No module named pbr_json
The cause is that there is a system package installed with the outdated version 0.7.0:
$ dpkg -l|grep pbr
ii python-pbr 0.7.0-0ubuntu2
$ pip list|grep pbr
pbr (0.7.0)
Proposed solution:
================
Remove the package 'python-pbr' from the system:
$ apt-get remove python-pbr
Then, install the requirements for fuel-qa. New version of 'pbr' will be installed via PyPI into the virtual environment:
$ pip list|grep pbr
pbr (0.11.1)
The same issue was already fixed in the https:/
I think that removing the package from the system is better to avoid the same issues in the future.
description: | updated |
tags: | added: area-devops |
Changed in mos: | |
status: | New → Confirmed |
assignee: | Fuel DevOps (fuel-devops) → Pawel Brzozowski (pbrzozowski) |
Changed in mos: | |
assignee: | Pawel Brzozowski (pbrzozowski) → Artur Kaszuba (akaszuba) |
Reviewed: https:/ /review. fuel-infra. org/17213
Submitter: Igor Shishkin <email address hidden>
Branch: master
Commit: 1a297cec01f33ea 53813d862064885 7739072188
Author: Pawel Brzozowski <email address hidden>
Date: Thu Feb 18 15:21:13 2016
remove python-pbr module from manifests
- only required by ISO and package building
- distribution version conflicts with fuel-main
Closes-Bug: #1547035 979f89b8affa2d9 abbf5dbe89b
Change-Id: Ic53d391c57234d