Fail to build fluentd image for Pike

Bug #1766274 reported by Kevin Tibi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Unassigned

Bug Description

The build for fluentd on pike version fail.

The gem "fluent-plugin-kubernetes_metadata_filter" has been released since 4 days in 2.0.0 which need ruby =>2.1.

The ruby version on the centos is 2.0.0.648.

We need to fix the version 1.0.2 on https://github.com/openstack/kolla/blob/stable/pike/docker/fluentd/Dockerfile.j2#L43

We can see the build of image fail too on dockerhub : https://hub.docker.com/r/kolla/centos-binary-fluentd/tags/

Revision history for this message
Kevin Tibi (ktibi) wrote :

Without fix :

INFO:kolla.image.build.fluentd:Step 7/8 : RUN ulimit -n 65536 && gem install --minimal-deps activesupport:4.2.9 public_suffix:2.0.5 fluent-plugin-parser fluent-plugin-kubernetes_metadata_filter fluent-plugin-elasticsearch:1.10.2 flue
nt-plugin-grep fluent-plugin-grok-parser:0.3.1 fluent-plugin-rewrite-tag-filter:1.6.0 fluent-plugin-secure-forward && chmod -R 440 /etc/sudoers.d/kolla_fluentd_sudoers && chmod 755 /usr/local/bin/kolla_extend_start && mkdir
-p /var/run/fluentd && chown -R fluentd: /etc/fluentd /var/run/fluentd
INFO:kolla.image.build.fluentd: ---> Running in b34e5d8354ec
INFO:kolla.image.build.fluentd:unable to convert "\x84" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
INFO:kolla.image.build.fluentd:
INFO:kolla.image.build.fluentd:ERROR: Error installing fluent-plugin-kubernetes_metadata_filter:
INFO:kolla.image.build.fluentd: serverengine requires Ruby version >= 2.1.0.

With Fix :

INFO:kolla.image.build.fluentd:Step 7/8 : RUN ulimit -n 65536 && gem install --minimal-deps activesupport:4.2.9 public_suffix:2.0.5 fluent-plugin-parser fluent-plugin-kubernetes_metadata_filter:1.0.2 fluent-plugin-elasticsearch:1.10.
2 fluent-plugin-grep fluent-plugin-grok-parser:0.3.1 fluent-plugin-rewrite-tag-filter:1.6.0 fluent-plugin-secure-forward && chmod -R 440 /etc/sudoers.d/kolla_fluentd_sudoers && chmod 755 /usr/local/bin/kolla_extend_start &&
mkdir -p /var/run/fluentd && chown -R fluentd: /etc/fluentd /var/run/fluentd
INFO:kolla.image.build.fluentd: ---> Running in 28d5875ae951
INFO:kolla.image.build.fluentd:unable to convert "\x84" from ASCII-8BIT to UTF-8 for lib/active_support/values/unicode_tables.dat, skipping
INFO:kolla.image.build.fluentd:
INFO:kolla.image.build.fluentd:Successfully installed concurrent-ruby-1.0.5
INFO:kolla.image.build.fluentd:Successfully installed i18n-0.9.5
INFO:kolla.image.build.fluentd:Successfully installed minitest-5.11.3
INFO:kolla.image.build.fluentd:Successfully installed activesupport-4.2.9
......
......
INFO:kolla.image.build.fluentd:Successfully installed fluent-plugin-kubernetes_metadata_filter-1.0.2

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/pike)

Reviewed: https://review.openstack.org/563657
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=53a4932106b635581fe2e00cb3d81f91de8799c8
Submitter: Zuul
Branch: stable/pike

commit 53a4932106b635581fe2e00cb3d81f91de8799c8
Author: Juan Badia Payno <email address hidden>
Date: Mon Apr 23 17:05:04 2018 +0200

    fluentd: Fix plugin dependency

    The current fluent-plugin-kubernetes_metadata_filter plugin
    needs ruby version 2.1.0 or higher.

    This patch uses the fluent-plugin-kubernetes_metadata_filter:1.0.2 plugin
    which only requires ruby version 2.0.0 or higher.

    Change-Id: I5067e7f7c71db7405c99913009aef1cfaa3fce20
    Closes-Bug: #1766195
    Closes-Bug: #1766274

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.3

This issue was fixed in the openstack/kolla 5.0.3 release.

Chuck Short (zulcss)
Changed in kolla:
status: New → 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.