Fuel plugins examples don't catch not installed fpm error properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
slava valyavskiy |
Bug Description
Fpm ruby gem is not installed.
Steps to reproduce:
git clone https:/
mkvirtualenv fpb
cd fuel-plugins
pip install -r requirements.txt
pip install -r test-requiremen
python setup.py develop
fpb --debug --build examples/
Expected error message:
Install 'fpm' to build this plugin. Aborting.
Actual:
2016-03-23 18:51:58 DEBUG 20341 (build) Start plugin building "examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) Removing "examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) Creating directory examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) Remove files by mask examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) Execute command "examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) Stdout and stderr of command "examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) + command -v fpm
2016-03-23 18:51:58 DEBUG 20341 (utils) +++ readlink -f examples/
2016-03-23 18:51:58 DEBUG 20341 (utils) ++ dirname /home/sand/
2016-03-23 18:51:58 DEBUG 20341 (utils) + ROOT=/home/
2016-03-23 18:51:58 DEBUG 20341 (utils) + UBUNTU_
2016-03-23 18:51:58 DEBUG 20341 (utils) + CENTOS_
2016-03-23 18:51:58 DEBUG 20341 (utils) + rm -f '/home/
2016-03-23 18:51:58 DEBUG 20341 (utils) + rm -f '/home/
2016-03-23 18:51:58 DEBUG 20341 (utils) + fpm -t deb -p /home/sand/
2016-03-23 18:51:58 DEBUG 20341 (utils) /usr/lib/
2016-03-23 18:51:58 DEBUG 20341 (utils) from /usr/lib/
2016-03-23 18:51:58 DEBUG 20341 (utils) from /usr/lib/
2016-03-23 18:51:58 DEBUG 20341 (utils) from /usr/local/
2016-03-23 18:51:58 ERROR 20341 (cli) Shell command executed with "1" exit code: examples/
Traceback (most recent call last):
File "/home/
perform_
File "/home/
actions.
File "/home/
self.
File "/home/
utils.
File "/home/
'exit code: {1} '.format(exit_code, cmd))
ExecutedErrorNo
Unexpected error
Shell command executed with "1" exit code: examples/
description: | updated |
Changed in fuel: | |
status: | New → Confirmed |
summary: |
- Fuel plugins builder can't build example plugin + Fuel plugins examples don't report about non installed fpm |
description: | updated |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → slava valyavskiy (slava-val-al) |
status: | New → Confirmed |
I was not able to reproduce a bug on Ubuntu and Centos environments. All plugins examples have been built successfully. I suppose that you have issue with your environment, especially with 'fpm' gem. Could you re-install it please?(or check somehow that it's really operational)