Please install ruby gem FPM on plugin slave in product-ci.

Bug #1584123 reported by Lesya Novaselskaya
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Lesya Novaselskaya

Bug Description

> description:
At the moment it's impossible to build plugins on plugin02-bud slave (https://product-ci.infra.mirantis.net/computer/plugins02-bud.infra.mirantis.net) because Ruby gem 'fpm' is missing there:

2016-05-20 14:32:32 DEBUG 12251 (build) Start plugin building "/home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1"
2016-05-20 14:32:32 DEBUG 12251 (utils) Removing "/home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/.build"
2016-05-20 14:32:32 DEBUG 12251 (utils) Creating directory /home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/.build
2016-05-20 14:32:32 DEBUG 12251 (utils) Remove files by mask /home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/fuel_plugin_example-*.fp
2016-05-20 14:32:32 DEBUG 12251 (utils) Execute command "/home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/pre_build_hook"
2016-05-20 14:32:32 DEBUG 12251 (utils) Stdout and stderr of command "/home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/pre_build_hook":
2016-05-20 14:32:32 DEBUG 12251 (utils) + command -v fpm
2016-05-20 14:32:32 DEBUG 12251 (utils) + echo 'Install '\''fpm'\'' to build this plugin. Aborting.'
2016-05-20 14:32:32 DEBUG 12251 (utils) Install 'fpm' to build this plugin. Aborting.
2016-05-20 14:32:32 DEBUG 12251 (utils) + exit 1
2016-05-20 14:32:32 ERROR 12251 (cli) Shell command executed with "1" exit code: /home/jenkins/workspace/build-fuel-plugins/examples/fuel_plugin_example_v1/pre_build_hook

> product-ci console log:
https://product-ci.infra.mirantis.net/job/build-fuel-plugins/3/console

> on previously used plugin building server it somehow was installed:
/usr/local/rvm/gems/ruby-2.1.5/bin/fpm`

> jenkins-product.srt console log:
http://jenkins-product.srt.mirantis.net:8080/job/build-fuel-plugins

> additional info:
source: https://github.com/jordansissel/fpm

summary: - Please isntall ruby gem FPM and other missing packages on plugin slave
- in product-ci.
+ Please isntall ruby gem FPM on plugin slave in product-ci.
description: updated
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

version

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote : Re: Please isntall ruby gem FPM on plugin slave in product-ci.

ok so first the build team must create a package for this ruby gem stuff.

bug created:
https://bugs.launchpad.net/fuel/+bug/1584130

Changed in fuel:
status: New → Confirmed
Revision history for this message
Igor Shishkin (teran) wrote :

Lesya, are you sure you want it on Product CI slaves? Based on your node description it should on Plugin CI slaves.

Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

Absolutely. I meant to say we need it on plugin building slave in new Jenkins, which is called 'https://product-ci.infra.mirantis.net' <-- I've shortened it name to 'product-ci'. Sorry for confusion.

Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

2016-05-23 09:50:43 DEBUG 10036 (utils) 'Fpm' binary file is present, but gem seems to be broken! Aborting.

console log: https://product-ci.infra.mirantis.net/job/build-fuel-plugins/7/console

Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

This issue blocks QA and 9.0 release, thus changing to Critical from High. Please fix it as soon as possible.

Changed in fuel:
importance: High → Critical
Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :
Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

Seems that sourcing /etc/profile is necessary, so let's have it back in plugin building script.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to fuel-infra/jenkins-jobs (master)

Fix proposed to branch: master
Change author: Lesya Novaselskaya <email address hidden>
Review: https://review.fuel-infra.org/21122

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote : Re: Please isntall ruby gem FPM on plugin slave in product-ci.
Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

As soon the issue can be worked around, priority can be lowered a bit from Critical to High.

Changed in fuel:
importance: Critical → High
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to fuel-infra/jenkins-jobs (master)

Reviewed: https://review.fuel-infra.org/21122
Submitter: Lesya Novaselskaya <email address hidden>
Branch: master

Commit: 03cd7665707237d8525a74839ed3d90355a2086e
Author: Lesya Novaselskaya <email address hidden>
Date: Mon May 23 11:09:29 2016

Small fixes for Fuel plugin builder

If /etc/profile is not sourced, newer Ruby version is enforced
(which causes 'fpm' to screw up and some plugins cannot be built)

+ fix scheduled hours

Partial-bug: #1584123

Change-Id: I54248d2b125d55bb3d27dd57dd296e0f3518b12e
Signed-off-by: Lesya Novaselskaya <email address hidden>

Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote : Re: Please isntall ruby gem FPM on plugin slave in product-ci.

So we install fpm by the rvm_gem in our slave manifests.
Not sure if its high prio now to migrate from rvm_gem to the package, as you successfully resolved the issue on your side.

summary: - Please isntall ruby gem FPM on plugin slave in product-ci.
+ Please install ruby gem FPM on plugin slave in product-ci.
Revision history for this message
Igor Shishkin (teran) wrote :

@Mateusz, there's no way to install gem to rvm via package. So we have to live with it unfortunately.

Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote :

reassigning as there is nothing to do on our side.

Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Lesya Novaselskaya (onovaselskaya)
Revision history for this message
Lesya Novaselskaya (onovaselskaya) wrote :

Thus, enforcing default Ruby makes everything work. Yay!

Changed in fuel:
status: In Progress → Fix Committed
tags: added: dev-to-verify
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.