build rpm package for logstash-forwarder

Bug #1530115 reported by Mateusz Matuszkowiak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Low
Sergey Otpuschennikov

Bug Description

Hi!

We have the following repo 'fuel-infra-packages/logstash-forwarder' which made us a deb package of that app.
We need to have it also available as an rpm package for centos6 and centos7. Please build a package for these distros.

Thanks in advance.
Mateusz

Tags: area-build
Revision history for this message
Roman Vyalov (r0mikiam) wrote :

Why do you want this packages for centos6 ?

Changed in fuel:
importance: Medium → Low
status: New → Confirmed
assignee: Fuel build team (fuel-build) → Sergey Otpuschennikov (sotpuschennikov)
Revision history for this message
Mateusz Matuszkowiak (mmatuszkowiak) wrote :

Also for centos6 because our blackduck service will be deployed on centos6 and it also needs to have logstash-forwarder running.

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to fuel-infra/backports/logstash-forwarder (master)

Related fix proposed to branch: master
Change author: Sergey Otpuschennikov <email address hidden>
Review: https://review.fuel-infra.org/15981

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Sergey Otpuschennikov (sotpuschennikov) wrote :

Packages has been built successful in the following repositories
http://perestroika-repo-tst.infra.mirantis.net/review/LP-1530115/devops/backports/centos7/os/x86_64 for Centos 7
and
http://osci-obs.vm.mirantis.net:82/qa-centos/centos/ for Centos 6
Please test them and review https://review.fuel-infra.org/15981

Changed in fuel:
assignee: Sergey Otpuschennikov (sotpuschennikov) → Fuel DevOps (fuel-devops)
Roman Vyalov (r0mikiam)
Changed in fuel:
milestone: 8.0 → 9.0
Revision history for this message
Andrey Nikitin (heos) wrote :

logstash-forwarder was installed on centos 6 manually without errors, but I have some errors, when I tried to install it by puppet manifests:

Debug: Executing '/bin/rpm -q logstash-forwarder --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Package[logstash-forwarder](provider=yum): Ensuring => 0.4.0-ubuntu1
Debug: Executing '/bin/rpm -q logstash-forwarder --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install logstash-forwarder-0.4.0-ubuntu1'
Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install logstash-forwarder-0.4.0-ubuntu1' returned 1: Error: Nothing to do

Error: /Stage[main]/Logstashforwarder::Package/Package[logstash-forwarder]/ensure: change from absent to 0.4.0-ubuntu1 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install logstash-forwarder-0.4.0-ubuntu1' returned 1: Error: Nothing to do

Notice: /Stage[main]/Logstashforwarder::Config/File[/etc/logstashforwarder]: Dependency Package[logstash-forwarder] has failures: true
Warning: /Stage[main]/Logstashforwarder::Config/File[/etc/logstashforwarder]: Skipping because of failed dependencies
Notice: /Stage[main]/Logstashforwarder::Config/File[/etc/logstashforwarder/ssl]: Dependency Package[logstash-forwarder] has failures: true
Warning: /Stage[main]/Logstashforwarder::Config/File[/etc/logstashforwarder/ssl]: Skipping because of failed dependencies

It should be fixed by our team.

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

@Andrey, in hiera common remove:

logstashforwarder::version: '0.4.0-ubuntu1'

Regards,

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

Tests of a logstash-forwarder package for both centos6 and centos7 passed.

Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Sergey Otpuschennikov (sotpuschennikov)
Revision history for this message
Sergey Otpuschennikov (sotpuschennikov) wrote :

https://review.fuel-infra.org/15981
please test, review and merge

Changed in fuel:
assignee: Sergey Otpuschennikov (sotpuschennikov) → Fuel DevOps (fuel-devops)
Revision history for this message
Igor Shishkin (teran) wrote :

Sergey, merge is responsibility of commit author.
You are responsible to get it merged.
Based on CI pass it should work. Second +1 from any Build team member familiar with package building should be enough for merge.

Changed in fuel:
assignee: Fuel DevOps (fuel-devops) → Sergey Otpuschennikov (sotpuschennikov)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to fuel-infra/backports/logstash-forwarder (master)

Reviewed: https://review.fuel-infra.org/15981
Submitter: Igor Shishkin <email address hidden>
Branch: master

Commit: 7bc3f789e975652793f351c2561925a4939933cc
Author: Sergey Otpuschennikov <email address hidden>
Date: Mon Jan 11 15:11:40 2016

Add logstash-forwarder version of 0.3.1 for centos 7

Related Jira-ticket: https://mirantis.jira.com/browse/PROD-2743
Related-Bug:#1530115

Change-Id: I8ed3a0714b40b270001d117dc5dce318c6c233c6

Changed in fuel:
status: In Progress → Fix Committed
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.